@oliasoft-open-source/react-ui-library 4.19.0-beta-2 → 4.19.0-beta-3

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/README.md CHANGED
@@ -1094,8 +1094,10 @@ The `List` component renders a list of data items with various customization opt
1094
1094
 
1095
1095
  | Prop | Description | Default Value |
1096
1096
  |-----------------------------|-----------------------------------------------------------------------------------------------------------------|--------------------------|
1097
+ | `scrollable` | Determines whether the list is scrollable. | `false` |
1097
1098
  | `hideScrollbar` | Determines whether to hide the scrollbar when scrolling. | `false` |
1098
1099
  | `triggerScrollToActiveItem` | Specifies whether scrolling should be triggered to display the active item. | `false` |
1100
+ | `infiniteScroll` | Specifies whether to enable infinite scroll functionality. | `false` |
1099
1101
 
1100
1102
  ### Usage Example
1101
1103
 
package/dist/index.js CHANGED
@@ -13886,7 +13886,7 @@ const ListDragWrapper = ({
13886
13886
  const { active: active2, over } = event;
13887
13887
  const from3 = active2 == null ? void 0 : active2.id;
13888
13888
  const to2 = over == null ? void 0 : over.id;
13889
- if (from3 !== to2) {
13889
+ if (to2 !== void 0 && from3 !== to2) {
13890
13890
  onListReorder({
13891
13891
  from: Number(from3),
13892
13892
  to: Number(to2)
@@ -14702,11 +14702,14 @@ const ListScrollWrapper = ({
14702
14702
  }
14703
14703
  const listContainerRef = useRef(null);
14704
14704
  const estimateItemHeight = () => {
14705
- let height2 = 37;
14705
+ const LINE_HEIGHT = 20;
14706
+ const PADDING2 = 8;
14707
+ const BORDER_WIDTH = 1;
14708
+ let height2 = LINE_HEIGHT + PADDING2 * 2 + BORDER_WIDTH;
14706
14709
  if (items.length > 0) {
14707
14710
  const item2 = items[items.length - 1];
14708
- if (item2.details) height2 += 20;
14709
- if (item2.metadata) height2 += 20;
14711
+ if (item2.details) height2 += LINE_HEIGHT;
14712
+ if (item2.metadata) height2 += LINE_HEIGHT;
14710
14713
  }
14711
14714
  return height2;
14712
14715
  };
@@ -67014,7 +67017,7 @@ const SettingField = ({
67014
67017
  { label: "Admin only", value: "superusers_admin" }
67015
67018
  ];
67016
67019
  return /* @__PURE__ */ jsxs("div", { children: [
67017
- /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", children: [
67020
+ /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", wrap: false, children: [
67018
67021
  children,
67019
67022
  !noPermission && /* @__PURE__ */ jsx(
67020
67023
  Select,