react-input-material 0.0.411 → 0.0.412
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.module.css +2 -1
- package/components/GenericInput.tsx +4 -4
- package/components/Inputs.js +1 -1
- package/components/Inputs.tsx +7 -5
- package/components/Interval.js +1 -1
- package/components/RequireableCheckbox.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/type.d.ts +8 -2
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -418,12 +418,17 @@ export interface InputsPropertiesItem<T, TS = unknown> {
|
|
|
418
418
|
};
|
|
419
419
|
value?: null | T;
|
|
420
420
|
}
|
|
421
|
-
export interface
|
|
421
|
+
export interface InputsCreateOptions<T, IP> {
|
|
422
422
|
index: number;
|
|
423
423
|
properties: IP;
|
|
424
|
-
prototype: Partial<P>;
|
|
425
424
|
values: Array<null | T | undefined> | null;
|
|
426
425
|
}
|
|
426
|
+
export interface InputsCreateItemOptions<T, P extends InputsPropertiesItem<T>, IP> extends InputsCreateOptions<T, IP> {
|
|
427
|
+
item: Partial<P>;
|
|
428
|
+
}
|
|
429
|
+
export interface InputsCreatePrototypeOptions<T, P extends InputsPropertiesItem<T>, IP> extends InputsCreateItemOptions<T, P, IP> {
|
|
430
|
+
lastValue: null | T | undefined;
|
|
431
|
+
}
|
|
427
432
|
export interface InputsModelState extends ModelState {
|
|
428
433
|
invalidMaximumNumber: boolean;
|
|
429
434
|
invalidMinimumNumber: boolean;
|
|
@@ -443,6 +448,7 @@ export interface InputsProperties<T = unknown, P extends InputsPropertiesItem<T>
|
|
|
443
448
|
addIcon: IconOptions;
|
|
444
449
|
removeIcon: IconOptions;
|
|
445
450
|
children: (options: InputsChildrenOptions<T, P, this>) => ReactElement;
|
|
451
|
+
createItem: (options: InputsCreateItemOptions<T, P, this>) => P;
|
|
446
452
|
createPrototype: (options: InputsCreatePrototypeOptions<T, P, this>) => P;
|
|
447
453
|
maximumNumber: number;
|
|
448
454
|
minimumNumber: number;
|