@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/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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.115",
3
+ "version": "0.1.116",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",