@scalably/ui 0.12.2 → 0.12.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.d.cts CHANGED
@@ -3273,8 +3273,11 @@ interface MultiLevelDropdownProps {
3273
3273
  }, updatedItems: DropdownItem[]) => void;
3274
3274
  onAddClick?: (level: number, parentId: string | null) => void;
3275
3275
  addLabels?: Record<number, string>;
3276
+ onItemClick?: (item: DropdownItem) => void;
3277
+ onEditClick?: (item: DropdownItem) => void;
3278
+ onDeleteClick?: (item: DropdownItem) => void;
3276
3279
  }
3277
- declare function MultiLevelDropdown({ items: initialItems, draggableLevels, onChange, onAddClick, addLabels, containerClassname, itemClassname, }: MultiLevelDropdownProps): react_jsx_runtime.JSX.Element;
3280
+ declare function MultiLevelDropdown({ items: initialItems, draggableLevels, onChange, onAddClick, addLabels, containerClassname, itemClassname, onItemClick, onEditClick, onDeleteClick, }: MultiLevelDropdownProps): react_jsx_runtime.JSX.Element;
3278
3281
 
3279
3282
  /**
3280
3283
  * Type for class values accepted by clsx
package/dist/index.d.ts CHANGED
@@ -3273,8 +3273,11 @@ interface MultiLevelDropdownProps {
3273
3273
  }, updatedItems: DropdownItem[]) => void;
3274
3274
  onAddClick?: (level: number, parentId: string | null) => void;
3275
3275
  addLabels?: Record<number, string>;
3276
+ onItemClick?: (item: DropdownItem) => void;
3277
+ onEditClick?: (item: DropdownItem) => void;
3278
+ onDeleteClick?: (item: DropdownItem) => void;
3276
3279
  }
3277
- declare function MultiLevelDropdown({ items: initialItems, draggableLevels, onChange, onAddClick, addLabels, containerClassname, itemClassname, }: MultiLevelDropdownProps): react_jsx_runtime.JSX.Element;
3280
+ declare function MultiLevelDropdown({ items: initialItems, draggableLevels, onChange, onAddClick, addLabels, containerClassname, itemClassname, onItemClick, onEditClick, onDeleteClick, }: MultiLevelDropdownProps): react_jsx_runtime.JSX.Element;
3278
3281
 
3279
3282
  /**
3280
3283
  * Type for class values accepted by clsx