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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-input-material",
3
- "version": "0.0.411",
3
+ "version": "0.0.412",
4
4
  "description": "Reusable material design based input field with support for (richt-)text, code, selections, numbers, dates and so on.",
5
5
  "keywords": [
6
6
  "form-field",
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 InputsCreatePrototypeOptions<T, P extends InputsPropertiesItem<T>, IP> {
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;