@scalably/ui 0.12.2 → 0.12.4

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.cts CHANGED
@@ -3258,6 +3258,7 @@ type DropdownItem = {
3258
3258
  id: string;
3259
3259
  label: string;
3260
3260
  children?: DropdownItem[];
3261
+ onClick?: () => void;
3261
3262
  [key: string]: any;
3262
3263
  };
3263
3264
 
@@ -3273,8 +3274,11 @@ interface MultiLevelDropdownProps {
3273
3274
  }, updatedItems: DropdownItem[]) => void;
3274
3275
  onAddClick?: (level: number, parentId: string | null) => void;
3275
3276
  addLabels?: Record<number, string>;
3277
+ onItemClick?: (item: DropdownItem) => void;
3278
+ onEditClick?: (item: DropdownItem) => void;
3279
+ onDeleteClick?: (item: DropdownItem) => void;
3276
3280
  }
3277
- declare function MultiLevelDropdown({ items: initialItems, draggableLevels, onChange, onAddClick, addLabels, containerClassname, itemClassname, }: MultiLevelDropdownProps): react_jsx_runtime.JSX.Element;
3281
+ declare function MultiLevelDropdown({ items: initialItems, draggableLevels, onChange, onAddClick, addLabels, containerClassname, itemClassname, onItemClick, onEditClick, onDeleteClick, }: MultiLevelDropdownProps): react_jsx_runtime.JSX.Element;
3278
3282
 
3279
3283
  /**
3280
3284
  * Type for class values accepted by clsx
package/dist/index.d.ts CHANGED
@@ -3258,6 +3258,7 @@ type DropdownItem = {
3258
3258
  id: string;
3259
3259
  label: string;
3260
3260
  children?: DropdownItem[];
3261
+ onClick?: () => void;
3261
3262
  [key: string]: any;
3262
3263
  };
3263
3264
 
@@ -3273,8 +3274,11 @@ interface MultiLevelDropdownProps {
3273
3274
  }, updatedItems: DropdownItem[]) => void;
3274
3275
  onAddClick?: (level: number, parentId: string | null) => void;
3275
3276
  addLabels?: Record<number, string>;
3277
+ onItemClick?: (item: DropdownItem) => void;
3278
+ onEditClick?: (item: DropdownItem) => void;
3279
+ onDeleteClick?: (item: DropdownItem) => void;
3276
3280
  }
3277
- declare function MultiLevelDropdown({ items: initialItems, draggableLevels, onChange, onAddClick, addLabels, containerClassname, itemClassname, }: MultiLevelDropdownProps): react_jsx_runtime.JSX.Element;
3281
+ declare function MultiLevelDropdown({ items: initialItems, draggableLevels, onChange, onAddClick, addLabels, containerClassname, itemClassname, onItemClick, onEditClick, onDeleteClick, }: MultiLevelDropdownProps): react_jsx_runtime.JSX.Element;
3278
3282
 
3279
3283
  /**
3280
3284
  * Type for class values accepted by clsx