@oliasoft-open-source/react-ui-library 5.8.4 → 5.8.5-beta-1

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
@@ -6333,12 +6333,12 @@ const Content = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, c
6333
6333
  children: e
6334
6334
  });
6335
6335
  var tree_module_default = {
6336
- tree: "_tree_8luu9_1",
6337
- toggle: "_toggle_8luu9_4",
6338
- dropTarget: "_dropTarget_8luu9_11",
6339
- placeholder: "_placeholder_8luu9_26",
6340
- draggingSource: "_draggingSource_8luu9_32",
6341
- placeholderContainer: "_placeholderContainer_8luu9_35"
6336
+ tree: "_tree_1359a_1",
6337
+ toggle: "_toggle_1359a_6",
6338
+ dropTarget: "_dropTarget_1359a_13",
6339
+ placeholder: "_placeholder_1359a_28",
6340
+ draggingSource: "_draggingSource_1359a_34",
6341
+ placeholderContainer: "_placeholderContainer_1359a_37"
6342
6342
  };
6343
6343
  const TreeItem = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
6344
6344
  let { id: l, data: u } = t, { active: d, testId: f, onClick: p, actions: m = [] } = u, [h, _] = React.useState(!1), [v, y] = React.useState(0), b = (e) => {
@@ -6427,53 +6427,51 @@ const TreeItem = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, drag
6427
6427
  }));
6428
6428
  return /* @__PURE__ */ jsxs("div", {
6429
6429
  "data-testid": i,
6430
+ className: list_module_default.list,
6430
6431
  children: [e.name && !e.noHeader && /* @__PURE__ */ jsx(ListHeading, {
6431
6432
  name: e.name,
6432
6433
  actions: e.actions,
6433
6434
  stickyHeader: d
6434
- }), /* @__PURE__ */ jsx("div", {
6435
- className: list_module_default.list,
6436
- children: /* @__PURE__ */ jsx(DndProvider, {
6437
- backend: MultiBackend,
6438
- options: getBackendOptions(),
6439
- context: window,
6440
- children: /* @__PURE__ */ jsx(Tree$1, {
6441
- ref: o,
6442
- tree: y,
6443
- sort: !1,
6444
- insertDroppableFirst: !1,
6445
- canDrag: () => t,
6446
- canDrop: (e, { dragSource: t, dropTargetId: n }) => {
6447
- if (t?.parent === n) return !0;
6448
- },
6449
- rootId: 0,
6450
- render: (e, { depth: n, isOpen: r, onToggle: i, hasChild: a }) => /* @__PURE__ */ jsx(TreeItem, {
6451
- hasChild: s ? s(e) : a,
6452
- node: e,
6453
- depth: n,
6454
- isOpen: r,
6455
- onToggle: () => {
6456
- c?.(e, !r), i();
6457
- },
6458
- draggable: t,
6459
- icons: l,
6460
- onDrop: e.data?.onDrop
6461
- }),
6462
- onDrop: v,
6463
- onChangeOpen: f,
6464
- dropTargetOffset: 10,
6465
- placeholderRender: (e, { depth: t }) => /* @__PURE__ */ jsx(TreePlaceholder, { depth: t }),
6466
- placeholderComponent: "div",
6467
- listComponent: "div",
6468
- listItemComponent: "div",
6469
- classes: {
6470
- root: tree_module_default.tree,
6471
- draggingSource: tree_module_default.draggingSource,
6472
- dropTarget: tree_module_default.dropTarget,
6473
- placeholder: tree_module_default.placeholderContainer
6435
+ }), /* @__PURE__ */ jsx(DndProvider, {
6436
+ backend: MultiBackend,
6437
+ options: getBackendOptions(),
6438
+ context: window,
6439
+ children: /* @__PURE__ */ jsx(Tree$1, {
6440
+ ref: o,
6441
+ tree: y,
6442
+ sort: !1,
6443
+ insertDroppableFirst: !1,
6444
+ canDrag: () => t,
6445
+ canDrop: (e, { dragSource: t, dropTargetId: n }) => {
6446
+ if (t?.parent === n) return !0;
6447
+ },
6448
+ rootId: 0,
6449
+ render: (e, { depth: n, isOpen: r, onToggle: i, hasChild: a }) => /* @__PURE__ */ jsx(TreeItem, {
6450
+ hasChild: s ? s(e) : a,
6451
+ node: e,
6452
+ depth: n,
6453
+ isOpen: r,
6454
+ onToggle: () => {
6455
+ c?.(e, !r), i();
6474
6456
  },
6475
- initialOpen: a
6476
- })
6457
+ draggable: t,
6458
+ icons: l,
6459
+ onDrop: e.data?.onDrop
6460
+ }),
6461
+ onDrop: v,
6462
+ onChangeOpen: f,
6463
+ dropTargetOffset: 10,
6464
+ placeholderRender: (e, { depth: t }) => /* @__PURE__ */ jsx(TreePlaceholder, { depth: t }),
6465
+ placeholderComponent: "div",
6466
+ listComponent: "div",
6467
+ listItemComponent: "div",
6468
+ classes: {
6469
+ root: tree_module_default.tree,
6470
+ draggingSource: tree_module_default.draggingSource,
6471
+ dropTarget: tree_module_default.dropTarget,
6472
+ placeholder: tree_module_default.placeholderContainer
6473
+ },
6474
+ initialOpen: a
6477
6475
  })
6478
6476
  })]
6479
6477
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.8.4",
3
+ "version": "5.8.5-beta-1",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {