@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/cjs/components/molecules/List/List.types.d.ts +1 -1
- package/dist/cjs/library.js +1 -1
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/List/List.types.d.ts +1 -1
- package/dist/esm/library.js +1 -1
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/docs/components/molecules/List.md +1 -1
- package/package.json +1 -1
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.).
|