reso-ui 2.29.0 → 2.30.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reso-ui",
3
- "version": "2.29.0",
3
+ "version": "2.30.0",
4
4
  "description": "Reusable React components in Typescript",
5
5
  "types": "types/index",
6
6
  "main": "dist/lib.js",
@@ -9,7 +9,9 @@ export interface IDndArraySorterDraggableWrapperProps extends IComponent, IPaddi
9
9
  draggableItemKey: string;
10
10
  itemId: string;
11
11
  orientation: "horizontal" | "vertical";
12
+ readOnly?: boolean;
13
+ onClick?: () => void;
12
14
  children: React.ReactNode;
13
15
  }
14
- declare const DndArraySorterDraggableWrapper: ({ dropTargetId, draggedDraggableItemKey, draggableItemKey, itemId, orientation, rootClassName, rootStyles, children, }: IDndArraySorterDraggableWrapperProps) => React.JSX.Element;
16
+ declare const DndArraySorterDraggableWrapper: ({ dropTargetId, draggedDraggableItemKey, draggableItemKey, itemId, orientation, rootClassName, rootStyles, readOnly, onClick, children, }: IDndArraySorterDraggableWrapperProps) => React.JSX.Element;
15
17
  export default DndArraySorterDraggableWrapper;
@@ -10,6 +10,8 @@ export interface IDndArraySorterProps extends IComponent, IMarginProps, IPadding
10
10
  identifierKey?: string;
11
11
  orientation?: "horizontal" | "vertical";
12
12
  accepts?: string[];
13
+ readOnly?: boolean;
14
+ onClickItem?: (item: unknown, idx: number) => void;
13
15
  onArrUpdate?: (arrItems: unknown[]) => void;
14
16
  onCancelDrag?: () => void;
15
17
  arrItems: unknown[];
@@ -18,4 +20,4 @@ export interface IDndArraySorterProps extends IComponent, IMarginProps, IPadding
18
20
  draggableItemWrapperClassName?: string;
19
21
  draggableItemWrapperStyles?: React.CSSProperties;
20
22
  }
21
- export declare const DndArraySorter: ({ dropTargetId, draggedDraggableItemKey, draggableItemKey, identifierKey, orientation, horizontalWrap, accepts, onArrUpdate, onCancelDrag, arrItems, setArrItems, renderDraggableItem, draggableItemWrapperClassName, draggableItemWrapperStyles, rootClassName, rootStyles, ...spacingsProps }: IDndArraySorterProps) => React.JSX.Element;
23
+ export declare const DndArraySorter: ({ dropTargetId, draggedDraggableItemKey, draggableItemKey, identifierKey, orientation, horizontalWrap, accepts, onArrUpdate, readOnly, onClickItem, onCancelDrag, arrItems, setArrItems, renderDraggableItem, draggableItemWrapperClassName, draggableItemWrapperStyles, rootClassName, rootStyles, ...spacingsProps }: IDndArraySorterProps) => React.JSX.Element;