@oliasoft-open-source/react-ui-library 5.8.0-beta-3 → 5.8.0-beta-5

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 (2) hide show
  1. package/dist/index.js +134 -108
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3502,87 +3502,77 @@ const Cell = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment:
3502
3502
  testId: a
3503
3503
  })
3504
3504
  });
3505
- }, Row$1 = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: l = !1, columnWidths: u, dropDisabled: d = !1, height: f, triggerScrollToActiveRow: p, testId: m }) => {
3506
- let h = getHeaderAlignment(a, n, t), { onRowClick: _, onRowFocus: v, onRowMouseEnter: y, onRowMouseLeave: b, expandedContent: x, error: S, warning: C, active: w } = e;
3507
- useEffect(() => {
3508
- if (w && p) {
3509
- let e = document.querySelector("tr[data-active=\"true\"]");
3510
- e && e.scrollIntoView({
3511
- behavior: "smooth",
3512
- block: "center"
3513
- });
3514
- }
3515
- }, [w, p]);
3516
- let T = e.cells.map((e, r) => {
3505
+ }, Row$1 = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
3506
+ let p = getHeaderAlignment(a, n, t), { onRowClick: m, onRowFocus: h, onRowMouseEnter: _, onRowMouseLeave: v, expandedContent: y, error: b, warning: x, active: S } = e, C = e.cells.map((e, r) => {
3517
3507
  let i = `${n ? 0 : 1}_${t}_${r}`;
3518
3508
  return /* @__PURE__ */ jsx(Cell, {
3519
3509
  cell: e,
3520
3510
  isHeader: n,
3521
3511
  columnAlignment: o[r],
3522
- columnHeaderAlignment: h[r],
3523
- width: u ? u[r] : void 0,
3512
+ columnHeaderAlignment: p[r],
3513
+ width: l ? l[r] : void 0,
3524
3514
  testId: e.testId
3525
3515
  }, i);
3526
- }), E = s && /* @__PURE__ */ jsx(Cell, {
3516
+ }), w = s && /* @__PURE__ */ jsx(Cell, {
3527
3517
  cell: {
3528
3518
  type: CellType.ACTIONS,
3529
3519
  actions: e.actions
3530
3520
  },
3531
3521
  isHeader: n
3532
- }, r), { attributes: D, listeners: O, setNodeRef: k, transform: A, transition: j, isDragging: M } = useSortable({
3522
+ }, r), { attributes: T, listeners: E, setNodeRef: D, transform: O, transition: k, isDragging: A } = useSortable({
3533
3523
  id: t.toString(),
3534
3524
  animateLayoutChanges: () => !1
3535
- }), N = {
3536
- transform: d ? void 0 : CSS.Translate.toString(A),
3537
- height: f,
3538
- transition: j,
3539
- opacity: M ? 0 : void 0
3540
- }, P = () => e.noDrag ? /* @__PURE__ */ jsx("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ jsx("td", {
3525
+ }), j = {
3526
+ transform: u ? void 0 : CSS.Translate.toString(O),
3527
+ height: d,
3528
+ transition: k,
3529
+ opacity: A ? 0 : void 0
3530
+ }, M = () => e.noDrag ? /* @__PURE__ */ jsx("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ jsx("td", {
3541
3531
  className: row_module_default$1.dragIconCell,
3542
3532
  children: /* @__PURE__ */ jsx("div", {
3543
- className: cx(row_module_default$1.dragIcon, d ? row_module_default$1.dragIconDisabled : ""),
3544
- ...D,
3545
- ...O,
3533
+ className: cx(row_module_default$1.dragIcon, u ? row_module_default$1.dragIconDisabled : ""),
3534
+ ...T,
3535
+ ...E,
3546
3536
  children: /* @__PURE__ */ jsx(Icon, { icon: IconType.DRAG })
3547
3537
  })
3548
3538
  });
3549
3539
  return n ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("tr", {
3550
- onClick: _,
3551
- onMouseEnter: y,
3552
- onMouseLeave: b,
3553
- onFocus: v,
3554
- className: cx(_ ? row_module_default$1.clickableRow : null, y ? row_module_default$1.hoverableRow : null),
3540
+ onClick: m,
3541
+ onMouseEnter: _,
3542
+ onMouseLeave: v,
3543
+ onFocus: h,
3544
+ className: cx(m ? row_module_default$1.clickableRow : null, _ ? row_module_default$1.hoverableRow : null),
3555
3545
  children: [
3556
- l ? /* @__PURE__ */ jsx("th", {}) : null,
3557
- T,
3558
- E
3546
+ c ? /* @__PURE__ */ jsx("th", {}) : null,
3547
+ C,
3548
+ w
3559
3549
  ]
3560
- }, t), x && x.content ? /* @__PURE__ */ jsx(ExpandedContentRow, {
3550
+ }, t), y && y.content ? /* @__PURE__ */ jsx(ExpandedContentRow, {
3561
3551
  colSpan: i,
3562
- flush: x.flush === !0,
3563
- children: x.content
3552
+ flush: y.flush === !0,
3553
+ children: y.content
3564
3554
  }, `${t}_expanded_content`) : null] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("tr", {
3565
- ref: e.noDrag ? null : k,
3566
- onClick: _,
3567
- onMouseEnter: y,
3568
- onMouseLeave: b,
3569
- onFocus: v,
3570
- className: cx(_ && !_.noStyle ? row_module_default$1.clickableRow : null, y && !y.noStyle ? row_module_default$1.hoverableRow : null, w ? row_module_default$1.rowActive : null),
3571
- "data-active": w || null,
3572
- "data-error": S || null,
3573
- "data-warning": C || null,
3555
+ ref: e.noDrag ? null : D,
3556
+ onClick: m,
3557
+ onMouseEnter: _,
3558
+ onMouseLeave: v,
3559
+ onFocus: h,
3560
+ className: cx(m && !m.noStyle ? row_module_default$1.clickableRow : null, _ && !_.noStyle ? row_module_default$1.hoverableRow : null, S ? row_module_default$1.rowActive : null),
3561
+ "data-active": S || null,
3562
+ "data-error": b || null,
3563
+ "data-warning": x || null,
3574
3564
  "data-index": t,
3575
3565
  "data-even": t % 2 == 0,
3576
- style: N,
3566
+ style: j,
3577
3567
  children: [
3578
- l ? P() : null,
3579
- T,
3580
- E
3568
+ c ? M() : null,
3569
+ C,
3570
+ w
3581
3571
  ]
3582
- }, t), x && x.content ? /* @__PURE__ */ jsx(ExpandedContentRow, {
3572
+ }, t), y && y.content ? /* @__PURE__ */ jsx(ExpandedContentRow, {
3583
3573
  colSpan: i,
3584
- flush: x.flush === !0,
3585
- children: x.content
3574
+ flush: y.flush === !0,
3575
+ children: y.content
3586
3576
  }, `${t}_expanded_content`) : null] });
3587
3577
  }, TableDragWrapper = (e) => {
3588
3578
  let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [f, p] = useState(null), [h, _] = useState(!1), v = useMemo(() => l.map((e, t) => t.toString()), [l]);
@@ -3662,23 +3652,61 @@ const Cell = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment:
3662
3652
  })()
3663
3653
  })
3664
3654
  });
3665
- }, TableScrollWrapper = ({ table: e, theadRef: t, children: n }) => {
3666
- let { infiniteScroll: r = !1 } = e;
3655
+ };
3656
+ var ScrollToActiveRow = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => {
3657
+ let i = useRef(null), a = useMemo(() => debounce((e) => {
3658
+ if (n && r) r.scrollToIndex(e, {
3659
+ align: "center",
3660
+ behavior: "auto"
3661
+ });
3662
+ else {
3663
+ let t = document.querySelector(`tr[data-index="${e}"]`);
3664
+ t && t.scrollIntoView({
3665
+ behavior: "auto",
3666
+ block: "center"
3667
+ });
3668
+ }
3669
+ i.current = e;
3670
+ }, 100, {
3671
+ leading: !1,
3672
+ trailing: !0
3673
+ }), [n, r]);
3674
+ return useEffect(() => {
3675
+ if (t && !(e == null || e < 0) && i.current !== e) return a(e), () => {
3676
+ a.cancel();
3677
+ };
3678
+ }, [
3679
+ e,
3680
+ t,
3681
+ a
3682
+ ]), null;
3683
+ };
3684
+ const TableScrollWrapper = ({ table: e, theadRef: t, children: n }) => {
3685
+ let { infiniteScroll: r = !1, triggerScrollToActiveRow: i = !1, rows: a } = e, o = useMemo(() => typeof e.activeRowIndex == "number" ? e.activeRowIndex : Array.isArray(a) && a.length ? a.findIndex((e) => e && e.active) : -1, [a, e.activeRowIndex]);
3667
3686
  return r ? /* @__PURE__ */ jsx(TableVirtualScrollWrapper, {
3668
3687
  table: e,
3669
3688
  theadRef: t,
3670
- children: ({ virtualizer: e, tableStyle: t }) => n({
3689
+ children: ({ virtualizer: e, tableStyle: t }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ScrollToActiveRow, {
3690
+ isVirtualized: !0,
3691
+ virtualizer: e,
3692
+ activeIndex: o,
3693
+ triggerScrollToActiveRow: i
3694
+ }), n({
3671
3695
  virtualizer: e,
3672
3696
  tableStyle: t
3673
- })
3674
- }) : /* @__PURE__ */ jsx("div", {
3697
+ })] })
3698
+ }) : /* @__PURE__ */ jsxs("div", {
3675
3699
  id: "scrollWrapper",
3676
3700
  className: table_module_default.scroll,
3677
- children: n({})
3701
+ children: [/* @__PURE__ */ jsx(ScrollToActiveRow, {
3702
+ isVirtualized: !1,
3703
+ activeIndex: o,
3704
+ triggerScrollToActiveRow: i
3705
+ }), n({})]
3678
3706
  });
3679
3707
  }, Table = (e) => {
3680
- let { onListReorder: t = () => {}, canListReorder: n = () => !0, beforeRenderRow: r, table: i } = e, { columnWidths: a, footer: o, name: s, rows: c = [], actions: l, actionsRight: u, columnHeaderAlignments: d, columnAlignment: f, striped: m = !0, testId: h, draggable: _, defaultEmptyRow: v = null, onAddRow: y = null, bordered: b = !0, maxHeight: x, fixedWidth: S, triggerScrollToActiveRow: C = !1 } = i, w = useRef(null), T = useRef(null), E = get(e, "table.headers", []), D = getColumnCount(c, E), O = hasRowActions(c, E), k = D + (O ? 1 : 0), A = o ? o?.pagination?.rowsPerPage?.value === 0 || Number(o?.pagination?.selectedPage) >= Number(o?.pagination?.rowCount) / Number(o?.pagination?.rowsPerPage?.value) : !0, j = v?.cells?.length && y && A, M = {
3681
- cells: j ? v.cells.map((e, t) => e?.type === "Input" ? {
3708
+ let { onListReorder: t = () => {}, canListReorder: n = () => !0, beforeRenderRow: r, table: i } = e, { columnWidths: a, footer: o, name: s, rows: c = [], actions: l, actionsRight: u, columnHeaderAlignments: d, columnAlignment: f, striped: m = !0, testId: h, draggable: _, defaultEmptyRow: v = null, onAddRow: y = null, bordered: b = !0, maxHeight: x, fixedWidth: S } = i, C = useRef(null), w = useRef(null), T = get(e, "table.headers", []), E = getColumnCount(c, T), D = hasRowActions(c, T), O = E + (D ? 1 : 0), k = o ? o?.pagination?.rowsPerPage?.value === 0 || Number(o?.pagination?.selectedPage) >= Number(o?.pagination?.rowCount) / Number(o?.pagination?.rowsPerPage?.value) : !0, A = v?.cells?.length && y && k, j = {
3709
+ cells: A ? v.cells.map((e, t) => e?.type === "Input" ? {
3682
3710
  ...e,
3683
3711
  onChange: (e) => {
3684
3712
  let n = e?.target?.value, r = {
@@ -3695,12 +3723,12 @@ const Cell = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment:
3695
3723
  disabled: !0
3696
3724
  }) : null,
3697
3725
  testId: h ? `${h}-last-empty-row` : void 0
3698
- }, N = j ? c.concat(M) : c, P = {
3726
+ }, M = A ? c.concat(j) : c, N = {
3699
3727
  ...i,
3700
- rows: N
3701
- }, F = cx(table_module_default.wrapper, b ? table_module_default.bordered : "");
3728
+ rows: M
3729
+ }, P = cx(table_module_default.wrapper, b ? table_module_default.bordered : "");
3702
3730
  return /* @__PURE__ */ jsxs("div", {
3703
- className: F,
3731
+ className: P,
3704
3732
  style: {
3705
3733
  maxHeight: x,
3706
3734
  width: S,
@@ -3714,57 +3742,56 @@ const Cell = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment:
3714
3742
  testId: h && `${h}-title`
3715
3743
  }),
3716
3744
  /* @__PURE__ */ jsx(TableDragWrapper, {
3717
- colSpan: k,
3745
+ colSpan: O,
3718
3746
  columnAlignment: f,
3719
- columnCount: D,
3747
+ columnCount: E,
3720
3748
  draggable: _,
3721
3749
  onListReorder: t,
3722
- rowActions: O,
3723
- rows: N,
3724
- tbodyRef: T,
3750
+ rowActions: D,
3751
+ rows: M,
3752
+ tbodyRef: w,
3725
3753
  canListReorder: n,
3726
3754
  children: ({ dropDisabled: e }) => /* @__PURE__ */ jsx(TableScrollWrapper, {
3727
- table: P,
3728
- theadRef: w,
3755
+ table: N,
3756
+ theadRef: C,
3729
3757
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ jsxs("table", {
3730
3758
  className: cx(table_module_default.table, m ? table_module_default.striped : ""),
3731
3759
  "data-testid": h,
3732
3760
  style: n,
3733
3761
  children: [/* @__PURE__ */ jsx("thead", {
3734
- ref: w,
3735
- children: E.map((e, t) => /* @__PURE__ */ jsx(Row$1, {
3762
+ ref: C,
3763
+ children: T.map((e, t) => /* @__PURE__ */ jsx(Row$1, {
3736
3764
  rowIndex: t,
3737
3765
  isHeader: !0,
3738
3766
  row: e,
3739
- columnCount: D,
3767
+ columnCount: E,
3740
3768
  columnWidths: a,
3741
- colSpan: k,
3742
- hasRowActions: O,
3769
+ colSpan: O,
3770
+ hasRowActions: D,
3743
3771
  columnAlignment: f,
3744
3772
  columnHeaderAlignments: d,
3745
3773
  draggableTable: _
3746
3774
  }, `0_${t}`))
3747
3775
  }), /* @__PURE__ */ jsx("tbody", {
3748
- ref: T,
3776
+ ref: w,
3749
3777
  children: t ? t.getVirtualItems().map((t) => {
3750
- let n = t.index, i = N[n], o = r ? r({
3778
+ let n = t.index, i = M[n], o = r ? r({
3751
3779
  row: i,
3752
3780
  rowIndex: n
3753
3781
  }) : i;
3754
3782
  return /* @__PURE__ */ jsx(Row$1, {
3755
3783
  rowIndex: n,
3756
3784
  row: o,
3757
- columnCount: D,
3785
+ columnCount: E,
3758
3786
  columnWidths: a,
3759
- colSpan: k,
3760
- hasRowActions: O,
3787
+ colSpan: O,
3788
+ hasRowActions: D,
3761
3789
  columnAlignment: f,
3762
3790
  draggableTable: _,
3763
3791
  height: t.size,
3764
- dropDisabled: e,
3765
- triggerScrollToActiveRow: C
3792
+ dropDisabled: e
3766
3793
  }, `1_${n}`);
3767
- }) : N.map((t, n) => {
3794
+ }) : M.map((t, n) => {
3768
3795
  let i = r ? r({
3769
3796
  row: t,
3770
3797
  rowIndex: n
@@ -3772,14 +3799,13 @@ const Cell = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment:
3772
3799
  return /* @__PURE__ */ jsx(Row$1, {
3773
3800
  rowIndex: n,
3774
3801
  row: i,
3775
- columnCount: D,
3802
+ columnCount: E,
3776
3803
  columnWidths: a,
3777
- colSpan: k,
3778
- hasRowActions: O,
3804
+ colSpan: O,
3805
+ hasRowActions: D,
3779
3806
  columnAlignment: f,
3780
3807
  draggableTable: _,
3781
- dropDisabled: e,
3782
- triggerScrollToActiveRow: C
3808
+ dropDisabled: e
3783
3809
  }, `1_${n}`);
3784
3810
  })
3785
3811
  })]
@@ -6582,7 +6608,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6582
6608
  } : {
6583
6609
  value: G,
6584
6610
  unit: U
6585
- }), Od = k || K?.value === void 0, [J, kd] = useState(w ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM), Ad = !!(O || n), Y = C && C.find((e) => {
6611
+ }), kd = k || K?.value === void 0, [J, Ad] = useState(w ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM), jd = !!(O || n), Y = C && C.find((e) => {
6586
6612
  if (!e?.value) return;
6587
6613
  if (E) return E === e.valueKey;
6588
6614
  let t = isValueWithUnit(e.value) ? getUnit(e.value) : "", { value: n = l } = convertUnit({
@@ -6591,7 +6617,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6591
6617
  toUnit: t
6592
6618
  });
6593
6619
  return withUnit(n, t) === e.value;
6594
- }), jd = () => {
6620
+ }), Md = () => {
6595
6621
  let e = l ?? "", t = K.unit;
6596
6622
  if (checkConversion({
6597
6623
  value: e,
@@ -6605,7 +6631,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6605
6631
  return null;
6606
6632
  }
6607
6633
  } else return getAltUnitsListByQuantity(u)?.map((e) => ["", e?.unit]);
6608
- }, Md = (t) => {
6634
+ }, Nd = (t) => {
6609
6635
  let n = getStringName(e), r = t.target, { value: i, selectionStart: a } = r, o = withUnit(i, K?.unit || ""), s = A ? withUnit(convertAndGetValue(o, B), B) : o;
6610
6636
  h({ target: {
6611
6637
  value: s,
@@ -6618,7 +6644,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6618
6644
  }), R(() => {
6619
6645
  r.selectionStart = a, r.selectionEnd = a;
6620
6646
  });
6621
- }, Nd = (e, t) => {
6647
+ }, Pd = (e, t) => {
6622
6648
  t === K.unit || isNaN(Number(e)) || (q({
6623
6649
  value: e,
6624
6650
  unit: t
@@ -6649,7 +6675,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6649
6675
  e !== void 0 && q({
6650
6676
  value: e,
6651
6677
  unit: t
6652
- }), C && kd(Y && T ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM);
6678
+ }), C && Ad(Y && T ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM);
6653
6679
  }
6654
6680
  }, [
6655
6681
  U,
@@ -6657,7 +6683,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6657
6683
  i,
6658
6684
  T
6659
6685
  ]);
6660
- let X = jd(), Z = label(K.unit) || K.unit || "", Pd = p || !X || X && X.length === 1, Q = getStringName(e), $, Fd = (t) => {
6686
+ let X = Md(), Z = label(K.unit) || K.unit || "", Fd = p || !X || X && X.length === 1, Q = getStringName(e), $, Id = (t) => {
6661
6687
  let r = t?.value ? t.value : "", [i = "", a = ""] = isValueWithUnit(r) ? split(r) : [r], o = withPrettyUnitLabel(r);
6662
6688
  if (checkConversion({
6663
6689
  value: r,
@@ -6677,7 +6703,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6677
6703
  type: MenuType.OPTION,
6678
6704
  inline: !0,
6679
6705
  onClick: () => {
6680
- validateNumber(i).valid && !n && (kd(PredefinedOptionsMenuState.PREDEFINED), h({ target: {
6706
+ validateNumber(i).valid && !n && (Ad(PredefinedOptionsMenuState.PREDEFINED), h({ target: {
6681
6707
  value: r,
6682
6708
  name: typeof e == "string" ? e : e?.fieldName || "",
6683
6709
  predefinedSelected: !0,
@@ -6704,10 +6730,10 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6704
6730
  label: "Custom",
6705
6731
  selected: J === PredefinedOptionsMenuState.CUSTOM
6706
6732
  }], C?.length) {
6707
- let e = C.map(Fd);
6733
+ let e = C.map(Id);
6708
6734
  $ = [...$, ...e];
6709
6735
  }
6710
- let Id = (e) => {
6736
+ let Ld = (e) => {
6711
6737
  if (isValueWithUnit(e)) {
6712
6738
  let t = getUnit(e), { value: n } = safeConvertValue({
6713
6739
  value: e,
@@ -6719,7 +6745,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6719
6745
  return n;
6720
6746
  }
6721
6747
  return e;
6722
- }, Ld = !C && (!F || F === GroupOrder.FIRST) ? GroupOrder.FIRST : GroupOrder.MIDDLE, Rd = !F || F === GroupOrder.LAST ? GroupOrder.LAST : GroupOrder.MIDDLE;
6748
+ }, Rd = !C && (!F || F === GroupOrder.FIRST) ? GroupOrder.FIRST : GroupOrder.MIDDLE, zd = !F || F === GroupOrder.LAST ? GroupOrder.LAST : GroupOrder.MIDDLE;
6723
6749
  return /* @__PURE__ */ jsx("div", {
6724
6750
  className: J === PredefinedOptionsMenuState.PREDEFINED ? cx(unit_input_module_default.predefinedMenuActive) : "",
6725
6751
  children: /* @__PURE__ */ jsxs(InputGroup, {
@@ -6751,31 +6777,31 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6751
6777
  name: Q,
6752
6778
  testId: x,
6753
6779
  disabled: n,
6754
- placeholder: Id(t),
6780
+ placeholder: Ld(t),
6755
6781
  value: K.value,
6756
- onChange: Md,
6782
+ onChange: Nd,
6757
6783
  onFocus: v,
6758
6784
  error: i === null ? void 0 : i,
6759
6785
  warning: S === null ? void 0 : S,
6760
6786
  left: a,
6761
- allowEmpty: Od,
6787
+ allowEmpty: kd,
6762
6788
  validationCallback: (e, t) => D(Q, t),
6763
6789
  enableCosmeticRounding: j,
6764
6790
  enableDisplayRounding: M,
6765
6791
  roundDisplayValue: N,
6766
- groupOrder: Ld,
6767
- disableInternalErrorValidationMessages: Ad,
6792
+ groupOrder: Rd,
6793
+ disableInternalErrorValidationMessages: jd,
6768
6794
  small: o,
6769
6795
  selectOnFocus: P,
6770
6796
  tooltip: I
6771
6797
  }, Q)
6772
6798
  }),
6773
- Z && (Pd || !H ? /* @__PURE__ */ jsx(InputGroupAddon, {
6774
- groupOrder: Rd,
6799
+ Z && (Fd || !H ? /* @__PURE__ */ jsx(InputGroupAddon, {
6800
+ groupOrder: zd,
6775
6801
  small: o,
6776
6802
  children: Z
6777
6803
  }) : /* @__PURE__ */ jsx(Menu, {
6778
- groupOrder: Rd,
6804
+ groupOrder: zd,
6779
6805
  maxHeight: 380,
6780
6806
  disabled: r,
6781
6807
  testId: x && `${x}-menu`,
@@ -6791,7 +6817,7 @@ const UnitInput = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUni
6791
6817
  label: j ? safeRoundNumbers(i) : i,
6792
6818
  inline: !0,
6793
6819
  onClick: (n) => {
6794
- n.stopPropagation(), Nd(e, t);
6820
+ n.stopPropagation(), Pd(e, t);
6795
6821
  },
6796
6822
  description: r,
6797
6823
  selected: r === Z,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.8.0-beta-3",
3
+ "version": "5.8.0-beta-5",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {