@delightui/components 0.1.115 → 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/library.js +1 -1
- 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/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +6 -0
- 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
|
|