react-input-material 0.0.406 → 0.0.409
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/components/FileInput.js +1 -1
- package/components/GenericInput.js +1 -1
- package/components/GenericInput.tsx +160 -64
- package/components/Inputs.js +1 -1
- package/components/Interval.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/type.d.ts +4 -4
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -185,9 +185,9 @@ export interface DataTransformSpecification<T = unknown, InputType = number | st
|
|
|
185
185
|
export declare type InputDataTransformation = {
|
|
186
186
|
boolean: DataTransformSpecification<boolean, number | string>;
|
|
187
187
|
currency: DataTransformSpecification<number, string>;
|
|
188
|
-
date: DataTransformSpecification<number, number | string>;
|
|
189
|
-
'datetime-local': DataTransformSpecification<number, number | string>;
|
|
190
|
-
time: DataTransformSpecification<number, number | string>;
|
|
188
|
+
date: DataTransformSpecification<number, Date | number | string>;
|
|
189
|
+
'datetime-local': DataTransformSpecification<number, Date | number | string>;
|
|
190
|
+
time: DataTransformSpecification<number, Date | number | string>;
|
|
191
191
|
float: DataTransformSpecification<number, string>;
|
|
192
192
|
integer: DataTransformSpecification<number, string>;
|
|
193
193
|
number: DataTransformSpecification<number, number>;
|
|
@@ -267,7 +267,7 @@ export interface InputProperties<T = unknown> extends InputModelState, Propertie
|
|
|
267
267
|
trailingIcon: string | (IconOptions & {
|
|
268
268
|
tooltip?: string | TooltipProps;
|
|
269
269
|
});
|
|
270
|
-
transformer: RecursivePartial<DataTransformSpecification<T>>;
|
|
270
|
+
transformer: RecursivePartial<DataTransformSpecification<T, Date | number | string>>;
|
|
271
271
|
}
|
|
272
272
|
export declare type InputProps<T = unknown> = Partial<Omit<InputProperties<T>, 'model'>> & {
|
|
273
273
|
model?: Partial<InputModel<T>>;
|