@oliasoft-open-source/react-ui-library 4.18.0-beta-6 → 4.18.0-beta-8

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.
package/dist/index.d.ts CHANGED
@@ -1602,7 +1602,7 @@ declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
1602
1602
  declare interface IUnitTableCell {
1603
1603
  autoUnit: boolean;
1604
1604
  unitKey: string;
1605
- formatDisplayValue?: (value: TStringNumberNull) => TStringNumberNull;
1605
+ formatDisplayValue?: (value: TStringNumberNull, selectedUnit: string) => TStringNumberNull;
1606
1606
  }
1607
1607
 
1608
1608
  declare interface IUnitTableInputCell extends IInputCell, IUnitTableCell {
package/dist/index.js CHANGED
@@ -14698,7 +14698,7 @@ const List = ({
14698
14698
  }) => {
14699
14699
  const { hideScrollbar: hideScrollbar2, triggerScrollToActiveItem } = scrollDetails;
14700
14700
  const listContainerRef = useRef(null);
14701
- const MIN_ITEM_HEIGHT = 37;
14701
+ const MIN_ITEM_HEIGHT = 56;
14702
14702
  const virtualizer = useVirtualizer({
14703
14703
  count: list2.items.length,
14704
14704
  getScrollElement: () => listContainerRef.current,
@@ -66697,7 +66697,7 @@ const convertVisibleRows = ({
66697
66697
  fromUnit: storageUnit
66698
66698
  });
66699
66699
  const convertedValue = unitChanged ? resultValue : cell2.value;
66700
- const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(convertedValue) : convertedValue;
66700
+ const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(convertedValue, selectedUnit) : convertedValue;
66701
66701
  return {
66702
66702
  ...cell2,
66703
66703
  value: formattedDisplayValue,