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

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 (25) hide show
  1. package/dist/assets/{index-zmbFJmOv.js → index-D5kcnHmD.js} +182 -702
  2. package/dist/assets/{index-gESxyZjr.css → index-Oe0PlEED.css} +0 -35
  3. package/dist/index.d.ts +1 -5
  4. package/dist/index.html +1 -1
  5. package/dist/index.js +3 -26
  6. package/dist/index.js.map +1 -1
  7. package/dist/storybook/assets/{Color-KGDBMAHA-Cvq3XQg3.js → Color-KGDBMAHA-q-P5APaO.js} +1 -1
  8. package/dist/storybook/assets/{DocsRenderer-PKQXORMH-Copxu6Si.js → DocsRenderer-PKQXORMH-D3Cy2r_Z.js} +1 -1
  9. package/dist/storybook/assets/{buttons-and-links-BHLN948A.js → buttons-and-links-caWZb4X6.js} +1 -1
  10. package/dist/storybook/assets/{chunk-HLWAVYOI-C3Nc_Hl_.js → chunk-HLWAVYOI-PihY4p8L.js} +1 -1
  11. package/dist/storybook/assets/{color-ClG_lSfj.js → color-DVJ4PKqw.js} +1 -1
  12. package/dist/storybook/assets/{iframe-ud1XJtGn.js → iframe-MGOUznuN.js} +2 -2
  13. package/dist/storybook/assets/{index-q5GJvRDd.js → index-Br4CWgtc.js} +1 -1
  14. package/dist/storybook/assets/{index-BwF95xBr.js → index-W0dVTpIv.js} +4 -4
  15. package/dist/storybook/assets/{input-validation-CvKyplhN.js → input-validation-CbAszrvQ.js} +1 -1
  16. package/dist/storybook/assets/{inputs-DhUf5Lzj.js → inputs-BcVLXteo.js} +1 -1
  17. package/dist/storybook/assets/{layout-forms-NapA4Ibs.js → layout-forms-l-XDMkfI.js} +1 -1
  18. package/dist/storybook/assets/{layout-general-CnLft8nK.js → layout-general-DL0Q90Ai.js} +1 -1
  19. package/dist/storybook/assets/{padding-and-spacing-J82LpJ4b.js → padding-and-spacing-B2-WaM9r.js} +1 -1
  20. package/dist/storybook/assets/{preview-CM5CE7B2.js → preview-Duk5kU8o.js} +1 -1
  21. package/dist/storybook/assets/{preview-CJK2YTz-.js → preview-Eh31roT5.js} +2 -2
  22. package/dist/storybook/assets/{unit-input.stories-BzMia-WR.js → unit-input.stories-RF3UHFxA.js} +31 -31
  23. package/dist/storybook/iframe.html +1 -1
  24. package/dist/storybook/project.json +1 -1
  25. package/package.json +4 -1
@@ -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$m = {
9280
+ const styles$j = {
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$m.wrapper,
9885
- (clickable2 || onClick) && !disabledContext ? styles$m.clickable : ""
9884
+ styles$j.wrapper,
9885
+ (clickable2 || onClick) && !disabledContext ? styles$j.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$m.customSvg,
9893
+ className: styles$j.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$m.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$j.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$l = {
11884
+ const styles$i = {
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$l.tooltip,
11916
- error2 ? styles$l.error : warning2 ? styles$l.warning : ""
11915
+ styles$i.tooltip,
11916
+ error2 ? styles$i.error : warning2 ? styles$i.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$k = {
11993
+ const styles$h = {
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$k.helpIcon,
12025
- onClick ? styles$k.clickable : "",
12026
- active2 ? styles$k.active : ""
12024
+ styles$h.helpIcon,
12025
+ onClick ? styles$h.clickable : "",
12026
+ active2 ? styles$h.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$4 = "_small_1rzkf_198";
17533
+ const small$3 = "_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$2 = "_groupOrderFirst_1rzkf_340";
17540
- const groupOrderMiddle$2 = "_groupOrderMiddle_1rzkf_341";
17541
- const groupOrderLast$2 = "_groupOrderLast_1rzkf_342";
17539
+ const groupOrderFirst$1 = "_groupOrderFirst_1rzkf_340";
17540
+ const groupOrderMiddle$1 = "_groupOrderMiddle_1rzkf_341";
17541
+ const groupOrderLast$1 = "_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$4,
17560
+ small: small$3,
17561
17561
  pill,
17562
17562
  round,
17563
17563
  error: error$l,
17564
17564
  warning: warning$2,
17565
17565
  inverted,
17566
- groupOrderFirst: groupOrderFirst$2,
17567
- groupOrderMiddle: groupOrderMiddle$2,
17568
- groupOrderLast: groupOrderLast$2
17566
+ groupOrderFirst: groupOrderFirst$1,
17567
+ groupOrderMiddle: groupOrderMiddle$1,
17568
+ groupOrderLast: groupOrderLast$1
17569
17569
  };
17570
17570
  const spinner = "_spinner_156m4_1";
17571
- const styles$j = {
17571
+ const styles$g = {
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$j.spinner, style: { color: color2, fontSize } });
17582
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$g.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$i = {
17705
+ const styles$f = {
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$h = {
17739
+ const styles$e = {
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$h.heading,
17773
+ className: styles$e.heading,
17774
17774
  "data-testid": testId,
17775
17775
  children: [
17776
17776
  label2,
17777
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$h.headingIcon, onClick, children: icon2 })
17777
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$e.headingIcon, onClick, children: icon2 })
17778
17778
  ]
17779
17779
  }
17780
17780
  );
17781
- const Divider$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: styles$h.divider });
17781
+ const Divider$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: styles$e.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$h.option,
17819
- disabled2 ? styles$h.disabled : "",
17820
- inline2 ? styles$h.inline : "",
17821
- selected2 ? styles$h.selected : ""
17818
+ styles$e.option,
17819
+ disabled2 ? styles$e.disabled : "",
17820
+ inline2 ? styles$e.inline : "",
17821
+ selected2 ? styles$e.selected : ""
17822
17822
  ),
17823
17823
  onClick: handleClick2,
17824
17824
  "data-testid": testId,
17825
17825
  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: [
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: [
17828
17828
  upload && /* @__PURE__ */ jsxRuntimeExports.jsx(
17829
17829
  "input",
17830
17830
  {
17831
17831
  type: "file",
17832
- className: styles$h.fileInput,
17832
+ className: styles$e.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$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 }) })
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 }) })
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$h.layer, isNested ? styles$h.nested : null),
17976
+ className: cx$2(styles$e.layer, isNested ? styles$e.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$3 = "_small_nwprz_29";
18007
+ const small$2 = "_small_nwprz_29";
18008
18008
  const dot = "_dot_nwprz_33";
18009
18009
  const hasChildren = "_hasChildren_nwprz_39";
18010
- const styles$g = {
18010
+ const styles$d = {
18011
18011
  wrapper,
18012
18012
  badge,
18013
18013
  label: label$3,
18014
18014
  dark,
18015
18015
  light,
18016
- small: small$3,
18016
+ small: small$2,
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$g.wrapper, children: [
18038
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$d.wrapper, children: [
18039
18039
  visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
18040
18040
  "sup",
18041
18041
  {
18042
18042
  className: cx$2(
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 : ""
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 : ""
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$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 }) })
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 }) })
18076
18076
  ] }) : null;
18077
18077
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
18078
18078
  "div",
18079
18079
  {
18080
18080
  className: cx$2(
18081
- styles$h.trigger,
18082
- disabled2 || disabledContext ? styles$h.disabled : null
18081
+ styles$e.trigger,
18082
+ disabled2 || disabledContext ? styles$e.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$h.trigger,
18123
- disabled2 ? styles$h.disabled : null,
18124
- isOpen ? styles$h.active : null
18122
+ styles$e.trigger,
18123
+ disabled2 ? styles$e.disabled : null,
18124
+ isOpen ? styles$e.active : null
18125
18125
  ),
18126
18126
  children: [
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
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
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$h.component, disabled2 ? styles$h.disabled : null),
18141
+ className: cx$2(styles$e.component, disabled2 ? styles$e.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$h.wrapper,
18222
+ className: styles$e.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$h.layerContainer,
18444
+ className: styles$e.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$i.actions), children: actions2.map((action2, index2) => {
18513
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$f.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$i.childComponent,
18521
+ className: styles$f.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$f = {
18576
+ const styles$c = {
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$f.card,
18598
- bordered2 ? styles$f.bordered : "",
18599
- raised2 ? styles$f.raised : ""
18597
+ styles$c.card,
18598
+ bordered2 ? styles$c.bordered : "",
18599
+ raised2 ? styles$c.raised : ""
18600
18600
  ),
18601
18601
  style: { margin },
18602
18602
  children: [
18603
- heading2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$f.cardHeader), children: heading2 }) : null,
18603
+ heading2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$c.cardHeader), children: heading2 }) : null,
18604
18604
  /* @__PURE__ */ jsxRuntimeExports.jsx(
18605
18605
  "div",
18606
18606
  {
18607
18607
  className: cx$2(
18608
- styles$f.cardContent,
18609
- heading2 ? styles$f.cardContentBorderTop : "",
18610
- padding2 ? styles$f.padding : ""
18608
+ styles$c.cardContent,
18609
+ heading2 ? styles$c.cardContentBorderTop : "",
18610
+ padding2 ? styles$c.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$e = {
19719
+ const styles$b = {
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$2 = "_small_11ofj_22";
19731
+ const small$1 = "_small_11ofj_22";
19732
19732
  const link$2 = "_link_11ofj_25";
19733
- const styles$d = {
19733
+ const styles$a = {
19734
19734
  bold: bold$1,
19735
19735
  center,
19736
19736
  muted: muted$1,
@@ -19738,7 +19738,7 @@ const styles$d = {
19738
19738
  success,
19739
19739
  warning: warning$1,
19740
19740
  error: error$k,
19741
- small: small$2,
19741
+ small: small$1,
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$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
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
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$e.alignLeft;
19780
+ return styles$b.alignLeft;
19781
19781
  case Align.RIGHT:
19782
- return styles$e.alignRight;
19782
+ return styles$b.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$e.divider} ${cssAlignClass(align)}`,
19795
+ className: `${styles$b.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$c = {
19807
+ const styles$9 = {
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$c.heading, top2 ? styles$c.top : ""),
19828
+ className: cx$2(styles$9.heading, top2 ? styles$9.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$c.icons, children: [
19834
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$9.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$b = {
19875
+ const styles$8 = {
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$b.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19916
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$8.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19917
19917
  "div",
19918
19918
  {
19919
19919
  className: cx$2(
19920
- styles$b.tab,
19921
- activeTab === index2 && open ? styles$b.active : "",
19922
- tab2.disabled ? styles$b.disabled : ""
19920
+ styles$8.tab,
19921
+ activeTab === index2 && open ? styles$8.active : "",
19922
+ tab2.disabled ? styles$8.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$b.tabsContent,
19937
+ className: styles$8.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$b.resizeHandle, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.DRAG }) });
21858
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ref2, className: styles$8.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$b.isResizing : "",
21884
+ className: isResizing2 ? styles$8.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$b.drawer,
21983
- shadow4 ? styles$b.shadow : "",
21984
- fixed2 ? styles$b.fixed : styles$b.inline,
21985
- right2 ? styles$b.right : styles$b.left
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
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$b.drawerContent, border2 && styles$b.border),
21992
+ className: cx$2(styles$8.drawerContent, border2 && styles$8.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$b.toggleButton,
22019
- localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$b.toggleButtonOpen : "",
22020
- buttonPosition === "top" ? styles$b.top : styles$b.bottom
22018
+ styles$8.toggleButton,
22019
+ localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$8.toggleButtonOpen : "",
22020
+ buttonPosition === "top" ? styles$8.top : styles$8.bottom
22021
22021
  ),
22022
22022
  children: isCustomButton ? button2 : /* @__PURE__ */ jsxRuntimeExports.jsx(
22023
22023
  Button$1,
@@ -22035,38 +22035,6 @@ 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
- };
22070
22038
  const inputInTable$3 = "_inputInTable_jnwnh_1";
22071
22039
  const inputHover$3 = "_inputHover_jnwnh_13";
22072
22040
  const inputFocus$3 = "_inputFocus_jnwnh_18";
@@ -22076,14 +22044,14 @@ const inputDisabled$3 = "_inputDisabled_jnwnh_61";
22076
22044
  const hideScrollbars$3 = "_hideScrollbars_jnwnh_67";
22077
22045
  const input = "_input_jnwnh_1";
22078
22046
  const isInTable = "_isInTable_jnwnh_100";
22079
- const small$1 = "_small_jnwnh_124";
22047
+ const small = "_small_jnwnh_124";
22080
22048
  const error$j = "_error_jnwnh_130";
22081
22049
  const warning = "_warning_jnwnh_147";
22082
22050
  const right$2 = "_right_jnwnh_170";
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 = {
22051
+ const groupOrderFirst = "_groupOrderFirst_jnwnh_173";
22052
+ const groupOrderMiddle = "_groupOrderMiddle_jnwnh_174";
22053
+ const groupOrderLast = "_groupOrderLast_jnwnh_175";
22054
+ const styles$7 = {
22087
22055
  inputInTable: inputInTable$3,
22088
22056
  inputHover: inputHover$3,
22089
22057
  inputFocus: inputFocus$3,
@@ -22093,15 +22061,15 @@ const styles$9 = {
22093
22061
  hideScrollbars: hideScrollbars$3,
22094
22062
  input,
22095
22063
  isInTable,
22096
- small: small$1,
22064
+ small,
22097
22065
  error: error$j,
22098
22066
  warning,
22099
22067
  right: right$2,
22100
- groupOrderFirst: groupOrderFirst$1,
22101
- groupOrderMiddle: groupOrderMiddle$1,
22102
- groupOrderLast: groupOrderLast$1
22068
+ groupOrderFirst,
22069
+ groupOrderMiddle,
22070
+ groupOrderLast
22103
22071
  };
22104
- const Input = reactExports.forwardRef(
22072
+ reactExports.forwardRef(
22105
22073
  ({
22106
22074
  error: error2 = null,
22107
22075
  tooltip: tooltip2 = null,
@@ -22138,11 +22106,11 @@ const Input = reactExports.forwardRef(
22138
22106
  if (groupOrder) {
22139
22107
  switch (groupOrder) {
22140
22108
  case "first":
22141
- return styles$9.groupOrderFirst;
22109
+ return styles$7.groupOrderFirst;
22142
22110
  case "last":
22143
- return styles$9.groupOrderLast;
22111
+ return styles$7.groupOrderLast;
22144
22112
  default:
22145
- return styles$9.groupOrderMiddle;
22113
+ return styles$7.groupOrderMiddle;
22146
22114
  }
22147
22115
  }
22148
22116
  return "";
@@ -22176,11 +22144,11 @@ const Input = reactExports.forwardRef(
22176
22144
  autoComplete: "off",
22177
22145
  disabled: disabled2 || disabledContext,
22178
22146
  className: cx$2(
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 : ""
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 : ""
22184
22152
  ),
22185
22153
  style: { width: width2 },
22186
22154
  "data-testid": testId
@@ -22268,38 +22236,6 @@ const Grid = ({
22268
22236
  }
22269
22237
  );
22270
22238
  };
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
- };
22303
22239
  var ReactReduxContext = /* @__PURE__ */ React$4.createContext(null);
22304
22240
  function defaultNoopBatch(callback) {
22305
22241
  callback();
@@ -23586,7 +23522,7 @@ function useUniqueId(prefix2, options2) {
23586
23522
  }, [options2.separator, prefix2]);
23587
23523
  }
23588
23524
  var AppContext = React$4.createContext(null);
23589
- function usePrevious$3(current) {
23525
+ function usePrevious$2(current) {
23590
23526
  var ref2 = reactExports.useRef(current);
23591
23527
  reactExports.useEffect(function() {
23592
23528
  ref2.current = current;
@@ -23819,7 +23755,7 @@ function useDroppablePublisher(args) {
23819
23755
  var appContext = useRequiredContext(AppContext);
23820
23756
  var uniqueId3 = useUniqueId("droppable");
23821
23757
  var registry = appContext.registry, marshal = appContext.marshal;
23822
- var previousRef = usePrevious$3(args);
23758
+ var previousRef = usePrevious$2(args);
23823
23759
  var descriptor = useMemo(function() {
23824
23760
  return {
23825
23761
  id: args.droppableId,
@@ -25404,7 +25340,7 @@ reactExports.forwardRef(
25404
25340
  );
25405
25341
  const page = "_page_beskc_1";
25406
25342
  const scroll = "_scroll_beskc_23";
25407
- const styles$7 = {
25343
+ const styles$6 = {
25408
25344
  page,
25409
25345
  scroll
25410
25346
  };
@@ -25419,7 +25355,7 @@ const Page$1 = ({
25419
25355
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
25420
25356
  "div",
25421
25357
  {
25422
- className: cx$2(styles$7.page, scroll3 ? styles$7.scroll : ""),
25358
+ className: cx$2(styles$6.page, scroll3 ? styles$6.scroll : ""),
25423
25359
  style: { left: left2, padding: padding2, top: top2 },
25424
25360
  children
25425
25361
  }
@@ -53155,7 +53091,7 @@ function createContextHook(useHook) {
53155
53091
  function contextHookFactory(DefaultContext2) {
53156
53092
  return (selector, equalityCheck) => {
53157
53093
  const context2 = reactExports.useContext(DefaultContext2);
53158
- const previousContext = usePrevious$2(context2);
53094
+ const previousContext = usePrevious$1(context2);
53159
53095
  if (!context2) {
53160
53096
  throw new Error(
53161
53097
  "`useContextHook` must be placed inside the `Provider` returned by the `createContextState` method"
@@ -53177,7 +53113,7 @@ function contextHookFactory(DefaultContext2) {
53177
53113
  return equalityCheck(previousValue, value) ? previousValue : value;
53178
53114
  };
53179
53115
  }
53180
- function usePrevious$2(value) {
53116
+ function usePrevious$1(value) {
53181
53117
  const ref2 = reactExports.useRef();
53182
53118
  useIsomorphicLayoutEffect$3(() => {
53183
53119
  ref2.current = value;
@@ -54757,7 +54693,7 @@ var ReactFramework = class extends Framework {
54757
54693
  };
54758
54694
  _editorRef = /* @__PURE__ */ new WeakMap();
54759
54695
  var useIsomorphicLayoutEffect$2 = typeof document !== "undefined" ? reactExports.useLayoutEffect : reactExports.useEffect;
54760
- function usePrevious$1(value) {
54696
+ function usePrevious(value) {
54761
54697
  const ref2 = reactExports.useRef();
54762
54698
  useIsomorphicLayoutEffect$2(() => {
54763
54699
  ref2.current = value;
@@ -54811,7 +54747,7 @@ function useFramework(props) {
54811
54747
  function useControlledEditor(framework) {
54812
54748
  const { state } = framework.props;
54813
54749
  const isControlledRef = reactExports.useRef(!!state);
54814
- const previousValue = usePrevious$1(state);
54750
+ const previousValue = usePrevious(state);
54815
54751
  useIsomorphicLayoutEffect$2(() => {
54816
54752
  const validUpdate = state ? isControlledRef.current === true : isControlledRef.current === false;
54817
54753
  invariant$2(validUpdate, {
@@ -54879,7 +54815,7 @@ var interopRequireDefaultExports = interopRequireDefault.exports;
54879
54815
  const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
54880
54816
  const richTextToolbar = "_richTextToolbar_1gbkk_1";
54881
54817
  const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
54882
- const styles$6 = {
54818
+ const styles$5 = {
54883
54819
  richTextToolbar,
54884
54820
  richTextToolbarContainer
54885
54821
  };
@@ -54931,8 +54867,8 @@ const RichTextToolbar = ({
54931
54867
  active: active2.orderedList()
54932
54868
  }
54933
54869
  ];
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(
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(
54936
54872
  Button$1,
54937
54873
  {
54938
54874
  small: true,
@@ -54960,7 +54896,7 @@ const inputWarning$1 = "_inputWarning_ta5ga_26";
54960
54896
  const inputDisabled$1 = "_inputDisabled_ta5ga_61";
54961
54897
  const hideScrollbars$1 = "_hideScrollbars_ta5ga_67";
54962
54898
  const richTextInput = "_richTextInput_ta5ga_77";
54963
- const styles$5 = {
54899
+ const styles$4 = {
54964
54900
  inputInTable: inputInTable$1,
54965
54901
  inputHover: inputHover$1,
54966
54902
  inputFocus: inputFocus$1,
@@ -54996,7 +54932,7 @@ reactExports.forwardRef(
54996
54932
  }
54997
54933
  setState(state2);
54998
54934
  };
54999
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$5.richTextInput, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
54935
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.richTextInput, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
55000
54936
  Remirror,
55001
54937
  {
55002
54938
  manager,
@@ -55108,7 +55044,7 @@ const item$1 = "_item_1ube5_140";
55108
55044
  const experimental = "_experimental_1ube5_155";
55109
55045
  const active$1 = "_active_1ube5_159";
55110
55046
  const icon = "_icon_1ube5_163";
55111
- const styles$4 = {
55047
+ const styles$3 = {
55112
55048
  inputInTable,
55113
55049
  inputHover,
55114
55050
  inputFocus,
@@ -55141,10 +55077,10 @@ const TooltipIcon = reactExports.memo(
55141
55077
  fontSize: 16,
55142
55078
  padding: "var(--padding-sm)",
55143
55079
  display: "block",
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 }) }) })
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 }) }) })
55145
55081
  }
55146
55082
  ),
55147
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.label, children: label2 })
55083
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.label, children: label2 })
55148
55084
  ] });
55149
55085
  },
55150
55086
  (prevProps, nextProps) => isEqual4(prevProps, nextProps)
@@ -55156,16 +55092,16 @@ const Link$1 = ({
55156
55092
  onClick,
55157
55093
  testId
55158
55094
  }) => {
55159
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$4.list, children: items2.map((link2, i) => {
55095
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.list, children: items2.map((link2, i) => {
55160
55096
  const key2 = `${sectionIndex}_${i}`;
55161
55097
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
55162
55098
  "a",
55163
55099
  {
55164
55100
  href: link2.value,
55165
55101
  className: cx$2(
55166
- styles$4.item,
55167
- link2.isActive ? styles$4.active : "",
55168
- link2.isExperimental ? styles$4.experimental : ""
55102
+ styles$3.item,
55103
+ link2.isActive ? styles$3.active : "",
55104
+ link2.isExperimental ? styles$3.experimental : ""
55169
55105
  ),
55170
55106
  onClick: (evt) => onClick(evt, link2.value, link2.label, link2.onClick),
55171
55107
  "data-testid": testId,
@@ -55190,7 +55126,7 @@ const Sections = ({
55190
55126
  onClick
55191
55127
  }) => {
55192
55128
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: sections.map((section, i) => /* @__PURE__ */ jsxRuntimeExports.jsxs(React$4.Fragment, { children: [
55193
- /* @__PURE__ */ jsxRuntimeExports.jsx("h5", { className: styles$4.subtitle, children: section.heading.toUpperCase() }),
55129
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h5", { className: styles$3.subtitle, children: section.heading.toUpperCase() }),
55194
55130
  /* @__PURE__ */ jsxRuntimeExports.jsx(
55195
55131
  Link$1,
55196
55132
  {
@@ -55246,8 +55182,8 @@ reactExports.memo(
55246
55182
  icon: IconType.LEFT
55247
55183
  }
55248
55184
  ),
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 }),
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 }),
55251
55187
  /* @__PURE__ */ jsxRuntimeExports.jsx(
55252
55188
  Sections,
55253
55189
  {
@@ -58905,10 +58841,10 @@ function requireConstants() {
58905
58841
  })(constants);
58906
58842
  return constants;
58907
58843
  }
58908
- var validate$3 = {};
58844
+ var validate$2 = {};
58909
58845
  var ajv$1 = { exports: {} };
58910
58846
  var core$2 = {};
58911
- var validate$2 = {};
58847
+ var validate$1 = {};
58912
58848
  var boolSchema = {};
58913
58849
  var errors = {};
58914
58850
  var codegen = {};
@@ -61073,8 +61009,8 @@ function getSchemaRefs(schema, baseId) {
61073
61009
  }
61074
61010
  }
61075
61011
  resolve$2.getSchemaRefs = getSchemaRefs;
61076
- Object.defineProperty(validate$2, "__esModule", { value: true });
61077
- validate$2.getData = validate$2.KeywordCxt = validate$2.validateFunctionCode = void 0;
61012
+ Object.defineProperty(validate$1, "__esModule", { value: true });
61013
+ validate$1.getData = validate$1.KeywordCxt = validate$1.validateFunctionCode = void 0;
61078
61014
  const boolSchema_1 = boolSchema;
61079
61015
  const dataType_1$1 = dataType;
61080
61016
  const applicability_1 = applicability;
@@ -61097,7 +61033,7 @@ function validateFunctionCode(it2) {
61097
61033
  }
61098
61034
  validateFunction(it2, () => (0, boolSchema_1.topBoolOrEmptySchema)(it2));
61099
61035
  }
61100
- validate$2.validateFunctionCode = validateFunctionCode;
61036
+ validate$1.validateFunctionCode = validateFunctionCode;
61101
61037
  function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
61102
61038
  if (opts.code.es5) {
61103
61039
  gen.func(validateName, (0, codegen_1$o._)`${names_1$3.default.data}, ${names_1$3.default.valCxt}`, schemaEnv.$async, () => {
@@ -61517,7 +61453,7 @@ class KeywordCxt {
61517
61453
  }
61518
61454
  }
61519
61455
  }
61520
- validate$2.KeywordCxt = KeywordCxt;
61456
+ validate$1.KeywordCxt = KeywordCxt;
61521
61457
  function keywordCode(it2, keyword2, def2, ruleType) {
61522
61458
  const cxt = new KeywordCxt(it2, def2, keyword2);
61523
61459
  if ("code" in def2) {
@@ -61572,7 +61508,7 @@ function getData($data, { dataLevel, dataNames, dataPathArr }) {
61572
61508
  return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
61573
61509
  }
61574
61510
  }
61575
- validate$2.getData = getData;
61511
+ validate$1.getData = getData;
61576
61512
  var validation_error = {};
61577
61513
  Object.defineProperty(validation_error, "__esModule", { value: true });
61578
61514
  class ValidationError extends Error {
@@ -61602,7 +61538,7 @@ const validation_error_1 = validation_error;
61602
61538
  const names_1$2 = names$2;
61603
61539
  const resolve_1 = resolve$2;
61604
61540
  const util_1$k = util;
61605
- const validate_1$1 = validate$2;
61541
+ const validate_1$1 = validate$1;
61606
61542
  class SchemaEnv {
61607
61543
  constructor(env2) {
61608
61544
  var _a;
@@ -62495,7 +62431,7 @@ uri$1.default = uri;
62495
62431
  (function(exports) {
62496
62432
  Object.defineProperty(exports, "__esModule", { value: true });
62497
62433
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
62498
- var validate_12 = validate$2;
62434
+ var validate_12 = validate$1;
62499
62435
  Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
62500
62436
  return validate_12.KeywordCxt;
62501
62437
  } });
@@ -64097,7 +64033,7 @@ const def$a = {
64097
64033
  additionalProperties.default = def$a;
64098
64034
  var properties$1 = {};
64099
64035
  Object.defineProperty(properties$1, "__esModule", { value: true });
64100
- const validate_1 = validate$2;
64036
+ const validate_1 = validate$1;
64101
64037
  const code_1$2 = code;
64102
64038
  const util_1$7 = util;
64103
64039
  const additionalProperties_1$1 = additionalProperties;
@@ -64948,7 +64884,7 @@ const require$$3 = {
64948
64884
  module.exports.Ajv = Ajv;
64949
64885
  Object.defineProperty(exports, "__esModule", { value: true });
64950
64886
  exports.default = Ajv;
64951
- var validate_12 = validate$2;
64887
+ var validate_12 = validate$1;
64952
64888
  Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
64953
64889
  return validate_12.KeywordCxt;
64954
64890
  } });
@@ -64987,7 +64923,7 @@ var dist$1 = { exports: {} };
64987
64923
  const ajv_12 = ajvExports;
64988
64924
  const codegen_12 = codegen;
64989
64925
  const code_12 = code$1;
64990
- const validate_12 = validate$2;
64926
+ const validate_12 = validate$1;
64991
64927
  const errors_12 = errors;
64992
64928
  const names_12 = names$2;
64993
64929
  const keyword2 = "errorMessage";
@@ -66238,21 +66174,21 @@ var distExports = dist.exports;
66238
66174
  var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod) {
66239
66175
  return mod && mod.__esModule ? mod : { "default": mod };
66240
66176
  };
66241
- Object.defineProperty(validate$3, "__esModule", { value: true });
66177
+ Object.defineProperty(validate$2, "__esModule", { value: true });
66242
66178
  const ajv_1 = __importDefault(ajvExports);
66243
66179
  const ajv_errors_1 = __importDefault(distExports$1);
66244
66180
  const ajv_keywords_1 = __importDefault(distExports);
66245
66181
  const ajv = new ajv_1.default({ allErrors: true, $data: true });
66246
66182
  (0, ajv_errors_1.default)(ajv);
66247
66183
  (0, ajv_keywords_1.default)(ajv, "transform");
66248
- const validate$1 = (data, schema) => {
66184
+ const validate = (data, schema) => {
66249
66185
  var _a;
66250
66186
  const v2 = ajv.compile(schema);
66251
66187
  const valid = v2(data);
66252
66188
  const errorMessages = (_a = v2.errors) === null || _a === void 0 ? void 0 : _a.map(({ message }) => message);
66253
66189
  return { valid, errors: errorMessages };
66254
66190
  };
66255
- validate$3.default = validate$1;
66191
+ validate$2.default = validate;
66256
66192
  var validateNumber_schema = {};
66257
66193
  Object.defineProperty(validateNumber_schema, "__esModule", { value: true });
66258
66194
  const validNumberSchema = {
@@ -66275,7 +66211,7 @@ function requireUnits() {
66275
66211
  const display_number_1 = requireDisplayNumber();
66276
66212
  const numbers_1 = requireNumbers();
66277
66213
  const rounding_1 = requireRounding();
66278
- const validate_12 = __importDefault2(validate$3);
66214
+ const validate_12 = __importDefault2(validate$2);
66279
66215
  const validate_number_schema_1 = __importDefault2(validateNumber_schema);
66280
66216
  exports.SEPARATOR = "|";
66281
66217
  const UNIT_RE = /^(-?[0-9., /]*?(?:e[-+]?[0-9]+)?)([^0-9-., /].*)?$/;
@@ -67095,7 +67031,7 @@ const button = "_button_oyr59_138";
67095
67031
  const menu = "_menu_oyr59_139";
67096
67032
  const active = "_active_oyr59_168";
67097
67033
  const alert = "_alert_oyr59_193";
67098
- const styles$3 = {
67034
+ const styles$2 = {
67099
67035
  topbar,
67100
67036
  fixed,
67101
67037
  appSwitcher,
@@ -67114,7 +67050,7 @@ const styles$3 = {
67114
67050
  alert
67115
67051
  };
67116
67052
  const Warning = ({ warning: warning2 }) => {
67117
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.alert, children: warning2 });
67053
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.alert, children: warning2 });
67118
67054
  };
67119
67055
  const AppSwitcher = ({
67120
67056
  icon: icon2,
@@ -67122,7 +67058,7 @@ const AppSwitcher = ({
67122
67058
  onClick
67123
67059
  }) => {
67124
67060
  const content = /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 });
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 });
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 });
67126
67062
  };
67127
67063
  const Title = ({
67128
67064
  label: label2,
@@ -67131,12 +67067,12 @@ const Title = ({
67131
67067
  version: version2,
67132
67068
  onClick
67133
67069
  }) => {
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 })
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 })
67138
67074
  ] });
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 }) });
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 }) });
67140
67076
  };
67141
67077
  var ElementType = /* @__PURE__ */ ((ElementType2) => {
67142
67078
  ElementType2["LINK"] = "Link";
@@ -67165,7 +67101,7 @@ const Link = ({
67165
67101
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
67166
67102
  Component2,
67167
67103
  {
67168
- className: cx$2(styles$3.link, active2 ? styles$3.active : ""),
67104
+ className: cx$2(styles$2.link, active2 ? styles$2.active : ""),
67169
67105
  href: url || "#",
67170
67106
  to: url,
67171
67107
  onClick: handleClick2,
@@ -67174,7 +67110,7 @@ const Link = ({
67174
67110
  role: onClick && !url ? "button" : void 0,
67175
67111
  children: [
67176
67112
  icon2,
67177
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.label, children: label2 })
67113
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$2.label, children: label2 })
67178
67114
  ]
67179
67115
  }
67180
67116
  );
@@ -67182,7 +67118,7 @@ const Link = ({
67182
67118
  const Element$1 = ({ element }) => {
67183
67119
  switch (element.type) {
67184
67120
  case ElementType.LINK:
67185
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.item, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67121
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.item, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67186
67122
  Link,
67187
67123
  {
67188
67124
  label: element.label,
@@ -67196,7 +67132,7 @@ const Element$1 = ({ element }) => {
67196
67132
  }
67197
67133
  ) });
67198
67134
  case ElementType.BUTTON:
67199
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$3.item, styles$3.button), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67135
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$2.item, styles$2.button), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67200
67136
  Button$1,
67201
67137
  {
67202
67138
  label: element.label,
@@ -67209,7 +67145,7 @@ const Element$1 = ({ element }) => {
67209
67145
  }
67210
67146
  ) });
67211
67147
  case ElementType.MENU:
67212
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$3.item, styles$3.menu), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67148
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx$2(styles$2.item, styles$2.menu), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
67213
67149
  Menu,
67214
67150
  {
67215
67151
  maxHeight: "100%",
@@ -67230,7 +67166,7 @@ const Element$1 = ({ element }) => {
67230
67166
  }
67231
67167
  ) });
67232
67168
  case ElementType.COMPONENT:
67233
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.item, children: element.component });
67169
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.item, children: element.component });
67234
67170
  default:
67235
67171
  return null;
67236
67172
  }
@@ -67249,7 +67185,7 @@ const TopBar = ({
67249
67185
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
67250
67186
  "div",
67251
67187
  {
67252
- className: cx$2(styles$3.topbar, fixedPosition ? styles$3.fixed : ""),
67188
+ className: cx$2(styles$2.topbar, fixedPosition ? styles$2.fixed : ""),
67253
67189
  style: { height: height2 },
67254
67190
  children: [
67255
67191
  !!appSwitcher2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -67260,7 +67196,7 @@ const TopBar = ({
67260
67196
  onClick: appSwitcher2.onClick
67261
67197
  }
67262
67198
  ),
67263
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$3.left, children: [
67199
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.left, children: [
67264
67200
  title2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
67265
67201
  Title,
67266
67202
  {
@@ -67278,7 +67214,7 @@ const TopBar = ({
67278
67214
  return null;
67279
67215
  })
67280
67216
  ] }),
67281
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.right, children: contentRight.map((element, i) => {
67217
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.right, children: contentRight.map((element, i) => {
67282
67218
  if (element) {
67283
67219
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, { element }, i);
67284
67220
  }
@@ -75909,463 +75845,7 @@ function TreeInner(props, ref2) {
75909
75845
  );
75910
75846
  }
75911
75847
  reactExports.forwardRef(TreeInner);
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);
75848
+ requireUnits();
76369
75849
  const Footer = () => {
76370
75850
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76371
75851
  /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}),