@delightui/components 0.1.114 → 0.1.116
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/atoms/Input/Input.d.ts +1 -0
- package/dist/cjs/components/atoms/Input/Input.presenter.d.ts +2 -1
- package/dist/cjs/components/atoms/Input/Input.types.d.ts +5 -0
- package/dist/cjs/components/atoms/Password/Password.presenter.d.ts +1 -0
- package/dist/cjs/components/molecules/List/List.types.d.ts +1 -1
- package/dist/cjs/library.js +2 -2
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Input/Input.d.ts +1 -0
- package/dist/esm/components/atoms/Input/Input.presenter.d.ts +2 -1
- package/dist/esm/components/atoms/Input/Input.types.d.ts +5 -0
- package/dist/esm/components/atoms/Password/Password.presenter.d.ts +1 -0
- package/dist/esm/components/molecules/List/List.types.d.ts +1 -1
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/docs/components/molecules/List.md +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -426,6 +426,11 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
|
|
|
426
426
|
* Icon to be displayed after the input.
|
|
427
427
|
*/
|
|
428
428
|
trailingIcon?: React.ReactNode;
|
|
429
|
+
/**
|
|
430
|
+
* a function that will preprocess the value before updating the value for form
|
|
431
|
+
* and onValueChange value
|
|
432
|
+
*/
|
|
433
|
+
preProcessInput?: (text: string) => string;
|
|
429
434
|
/**
|
|
430
435
|
* provide a way to override the styling
|
|
431
436
|
*/
|
|
@@ -436,6 +441,7 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
|
|
|
436
441
|
inputType?: InputTypeEnum;
|
|
437
442
|
leadingIcon?: React.ReactNode;
|
|
438
443
|
trailingIcon?: React.ReactNode;
|
|
444
|
+
preProcessInput?: (text: string) => string;
|
|
439
445
|
'component-variant'?: string;
|
|
440
446
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
441
447
|
|
|
@@ -1247,7 +1253,7 @@ type ListProps<T extends ListItemType> = Omit<HTMLAttributes<HTMLUListElement>,
|
|
|
1247
1253
|
* @param data
|
|
1248
1254
|
* @returns
|
|
1249
1255
|
*/
|
|
1250
|
-
updateSortOrder?: (data: T[]) => void;
|
|
1256
|
+
updateSortOrder?: (data: T[], oldIndex: number, newIndex: number) => void;
|
|
1251
1257
|
};
|
|
1252
1258
|
|
|
1253
1259
|
/**
|
|
@@ -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.).
|