@delightui/components 0.1.114 → 0.1.115

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
@@ -1247,7 +1247,7 @@ type ListProps<T extends ListItemType> = Omit<HTMLAttributes<HTMLUListElement>,
1247
1247
  * @param data
1248
1248
  * @returns
1249
1249
  */
1250
- updateSortOrder?: (data: T[]) => void;
1250
+ updateSortOrder?: (data: T[], oldIndex: number, newIndex: number) => void;
1251
1251
  };
1252
1252
 
1253
1253
  /**
@@ -24,7 +24,7 @@ A flexible list component that renders collections of data with support for cust
24
24
  | `wrap` | `boolean` | - | No | Whether list content should wrap |
25
25
  | `align` | `'Horizontal' \| 'Vertical'` | `'Vertical'` | No | Layout direction for the list |
26
26
  | `sortable` | `boolean` | - | No | Enable drag-and-drop sorting |
27
- | `updateSortOrder` | `(data: T[]) => void` | - | No | Callback when sort order changes |
27
+ | `updateSortOrder` | `(data: T[], oldIndex: number, newIndex: number) => void` | - | No | Callback when sort order changes |
28
28
  | `className` | `string` | - | No | Additional CSS class names |
29
29
 
30
30
  Plus all standard HTML ul attributes (role, aria-*, data-*, etc.).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",