@oliasoft-open-source/react-ui-library 4.19.3-beta-1 → 4.19.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/dist/index.js CHANGED
@@ -52153,10 +52153,14 @@ const TableDragWrapper = (props) => {
52153
52153
  setDragIndex(null);
52154
52154
  setDropDisabled(false);
52155
52155
  const { active: active2, over } = event;
52156
- if (!active2 || !over || active2.id === over.id) return;
52156
+ if (!active2 || !over || active2.id === over.id) {
52157
+ return;
52158
+ }
52157
52159
  const from3 = Number(active2.id);
52158
52160
  const to2 = Number(over == null ? void 0 : over.id);
52159
- if (!canListReorder({ from: from3, to: to2 })) return;
52161
+ if (!canListReorder({ from: from3, to: to2 })) {
52162
+ return;
52163
+ }
52160
52164
  onListReorder({ from: from3, to: to2 });
52161
52165
  };
52162
52166
  const handleDragOver = (event) => {
@@ -52167,18 +52171,24 @@ const TableDragWrapper = (props) => {
52167
52171
  setDropDisabled(disabled2);
52168
52172
  };
52169
52173
  const getCalculatedWidths = () => {
52170
- if (!(tbodyRef == null ? void 0 : tbodyRef.current)) return [];
52174
+ if (!(tbodyRef == null ? void 0 : tbodyRef.current)) {
52175
+ return [];
52176
+ }
52171
52177
  const rows2 = tbodyRef.current.querySelectorAll("tr");
52172
52178
  const activeRow = rows2[Number(dragIndex)];
52173
52179
  const cells = activeRow == null ? void 0 : activeRow.querySelectorAll("td");
52174
- if (!cells) return [];
52180
+ if (!cells) {
52181
+ return [];
52182
+ }
52175
52183
  const widths = Array.from(cells).map(
52176
52184
  (cell2) => `${cell2.getBoundingClientRect().width}px`
52177
52185
  );
52178
52186
  widths.shift();
52179
52187
  return widths;
52180
52188
  };
52181
- if (!draggable) return children({});
52189
+ if (!draggable) {
52190
+ return children({});
52191
+ }
52182
52192
  return /* @__PURE__ */ jsxs(
52183
52193
  DndContext$1,
52184
52194
  {