@oliasoft-open-source/react-ui-library 10.9.1-beta-2 → 10.10.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.d.ts CHANGED
@@ -1904,6 +1904,7 @@ declare interface ITreeListItemProps extends IListItem {
1904
1904
  parent: TStringOrNumber;
1905
1905
  draggable?: boolean;
1906
1906
  droppable?: boolean;
1907
+ status?: IconProps['status'];
1907
1908
  onDrop?: (event: default_2.DragEvent<HTMLDivElement>) => void;
1908
1909
  }
1909
1910
 
package/dist/index.js CHANGED
@@ -10387,6 +10387,7 @@ var tree_module_default = {
10387
10387
  var TreeItem = ({ node, depth, isOpen, onToggle, hasChild, draggable, icons, onDrop }) => {
10388
10388
  const { id, data } = node;
10389
10389
  const { active, disabled, testId, onClick, actions = [] } = data;
10390
+ const toggleIcon = isOpen ? (icons === null || icons === void 0 ? void 0 : icons.collapse) || IconType.COLLAPSE : (icons === null || icons === void 0 ? void 0 : icons.expand) || IconType.EXPAND;
10390
10391
  const [isDragOver, setDragOver] = React.useState(false);
10391
10392
  const [dragOverStartTime, setDragOverStartTime] = React.useState(0);
10392
10393
  const handleToggle = (e) => {
@@ -10441,7 +10442,10 @@ var TreeItem = ({ node, depth, isOpen, onToggle, hasChild, draggable, icons, onD
10441
10442
  colored: isOpen ? true : Color.MUTED,
10442
10443
  small: true,
10443
10444
  round: true,
10444
- icon: isOpen ? (icons === null || icons === void 0 ? void 0 : icons.collapse) || IconType.COLLAPSE : (icons === null || icons === void 0 ? void 0 : icons.expand) || IconType.EXPAND,
10445
+ icon: data.status ? /* @__PURE__ */ jsx(Icon, {
10446
+ icon: toggleIcon,
10447
+ status: data.status
10448
+ }) : toggleIcon,
10445
10449
  onClick: handleToggle
10446
10450
  })
10447
10451
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "10.9.1-beta-2",
3
+ "version": "10.10.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": {
@@ -45,7 +45,7 @@
45
45
  "memoize-one": "^6.0.0",
46
46
  "normalize.css": "^8.0.1",
47
47
  "papaparse": "^5.5.3",
48
- "react-aria-components": "1.20.0",
48
+ "react-aria-components": "^1.20.0",
49
49
  "react-diff-viewer-continued": "^4.2.2",
50
50
  "react-dnd": "^16.0.1",
51
51
  "react-fast-compare": "^3.2.2",