react-input-material 0.0.435 → 0.0.438
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.d.ts +1 -1
- package/components/FileInput.js +1 -1
- package/components/GenericAnimate.d.ts +10 -1
- package/components/GenericAnimate.js +1 -1
- package/components/GenericInput.d.ts +1 -1
- package/components/GenericInput.js +1 -1
- package/components/Inputs.d.ts +1 -1
- package/components/Inputs.js +1 -1
- package/components/Interval.d.ts +1 -1
- package/components/Interval.js +1 -1
- package/components/RequireableCheckbox.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/type.d.ts +10 -10
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { TooltipProps } from '@rmwc/tooltip';
|
|
|
17
17
|
import { IconOptions, RipplePropT } from '@rmwc/types';
|
|
18
18
|
import { Editor as RichTextEditorComponent, IAllProps as RichTextEditorProps } from '@tinymce/tinymce-react';
|
|
19
19
|
export declare type GenericAnimateProps = Partial<TransitionProps<HTMLElement | undefined>>;
|
|
20
|
-
export interface GenericAnimateComponent extends Omit<ForwardRefExoticComponent<GenericAnimateProps>, 'propTypes'>, StaticBaseWebComponent {
|
|
20
|
+
export interface GenericAnimateComponent<Type> extends Omit<ForwardRefExoticComponent<GenericAnimateProps>, 'propTypes'>, StaticBaseWebComponent<Type> {
|
|
21
21
|
(props: (GenericAnimateProps & RefAttributes<HTMLDivElement | HTMLSpanElement>)): ReactElement;
|
|
22
22
|
}
|
|
23
23
|
export declare type DummyProps = Mapping<unknown> & {
|
|
@@ -175,14 +175,14 @@ export interface EditorState {
|
|
|
175
175
|
editorIsActive: boolean;
|
|
176
176
|
selectionIsUnstable: boolean;
|
|
177
177
|
}
|
|
178
|
-
export interface StaticWebComponent<MS = ModelState, DP = DefaultProperties> extends StaticBaseWebComponent {
|
|
178
|
+
export interface StaticWebComponent<Type, MS = ModelState, DP = DefaultProperties> extends StaticBaseWebComponent<Type> {
|
|
179
179
|
defaultModelState: MS;
|
|
180
180
|
defaultProperties: DP;
|
|
181
181
|
strict: boolean;
|
|
182
182
|
}
|
|
183
|
-
export declare type StaticComponent<P = Props, MS = ModelState, DP = DefaultProperties> = Omit<ComponentClass<P>, 'propTypes'> & StaticWebComponent<MS, DP>;
|
|
184
|
-
export declare type StaticFunctionComponent<P = Props, MS = ModelState, DP = DefaultProperties> = Omit<FunctionComponent<P>, 'propTypes'> & StaticComponent<P, MS, DP>;
|
|
185
|
-
export interface InputComponent<P = Props, MS = ModelState, DP = DefaultProperties, A = ComponentAdapter<P>> extends Omit<ForwardRefExoticComponent<P>, 'propTypes'>, StaticWebComponent<MS, DP> {
|
|
183
|
+
export declare type StaticComponent<Type, P = Props, MS = ModelState, DP = DefaultProperties> = Omit<ComponentClass<P>, 'propTypes'> & StaticWebComponent<Type, MS, DP>;
|
|
184
|
+
export declare type StaticFunctionComponent<Type, P = Props, MS = ModelState, DP = DefaultProperties> = Omit<FunctionComponent<P>, 'propTypes'> & StaticComponent<Type, P, MS, DP>;
|
|
185
|
+
export interface InputComponent<Type, P = Props, MS = ModelState, DP = DefaultProperties, A = ComponentAdapter<P>> extends Omit<ForwardRefExoticComponent<P>, 'propTypes'>, StaticWebComponent<Type, MS, DP> {
|
|
186
186
|
(props: P & RefAttributes<A>): ReactElement;
|
|
187
187
|
}
|
|
188
188
|
export declare const baseModelPropertyTypes: ValidationMapping;
|
|
@@ -209,7 +209,7 @@ export declare type DefaultCheckboxProperties = Omit<CheckboxProps, 'model'> & {
|
|
|
209
209
|
};
|
|
210
210
|
export declare type CheckboxState = State<boolean>;
|
|
211
211
|
export declare type CheckboxAdapter = ComponentAdapter<CheckboxProperties, Omit<CheckboxState, 'value'>>;
|
|
212
|
-
export declare type CheckboxComponent = InputComponent<CheckboxProps, CheckboxModelState, DefaultCheckboxProperties, CheckboxAdapter>;
|
|
212
|
+
export declare type CheckboxComponent<Type> = InputComponent<Type, CheckboxProps, CheckboxModelState, DefaultCheckboxProperties, CheckboxAdapter>;
|
|
213
213
|
export declare const checkboxPropertyTypes: PropertiesValidationMap;
|
|
214
214
|
export declare const defaultCheckboxModel: CheckboxModel;
|
|
215
215
|
export declare const defaultCheckboxProperties: DefaultCheckboxProperties;
|
|
@@ -354,7 +354,7 @@ export interface TinyMCEOptions extends RawTinyMCEOptions {
|
|
|
354
354
|
selector?: undefined;
|
|
355
355
|
target?: undefined;
|
|
356
356
|
}
|
|
357
|
-
export interface GenericInputComponent extends Omit<ForwardRefExoticComponent<InputProps>, 'propTypes'>, StaticWebComponent<InputModelState, DefaultInputProperties> {
|
|
357
|
+
export interface GenericInputComponent<Type> extends Omit<ForwardRefExoticComponent<InputProps>, 'propTypes'>, StaticWebComponent<Type, InputModelState, DefaultInputProperties> {
|
|
358
358
|
<T = string>(props: InputProps<T> & RefAttributes<InputAdapter<T>>): ReactElement;
|
|
359
359
|
locales: Array<string>;
|
|
360
360
|
transformer: InputDataTransformation;
|
|
@@ -448,7 +448,7 @@ export interface FileInputAdapterWithReferences extends FileInputAdapter {
|
|
|
448
448
|
uploadButtonReference: MutableRefObject<HTMLButtonElement | null>;
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
|
-
export declare type FileInputComponent = InputComponent<FileInputProps, FileInputModelState, DefaultFileInputProperties, FileInputAdapter>;
|
|
451
|
+
export declare type FileInputComponent<Type> = InputComponent<Type, FileInputProps, FileInputModelState, DefaultFileInputProperties, FileInputAdapter>;
|
|
452
452
|
export declare const fileInputModelStatePropertyTypes: {
|
|
453
453
|
[key in keyof FileInputModelState]: Requireable<boolean | symbol>;
|
|
454
454
|
};
|
|
@@ -518,7 +518,7 @@ export declare type InputsAdapter<T = unknown, P extends InputsPropertiesItem<T>
|
|
|
518
518
|
export declare type InputsAdapterWithReferences<T = unknown, P extends InputsPropertiesItem<T> = Properties<T>, RefType = unknown> = InputsAdapter<T, P> & {
|
|
519
519
|
references: Array<MutableRefObject<RefType>>;
|
|
520
520
|
};
|
|
521
|
-
export interface InputsComponent extends Omit<ForwardRefExoticComponent<InputsProps>, 'propTypes'>, StaticWebComponent<InputsModelState, DefaultInputsProperties> {
|
|
521
|
+
export interface InputsComponent<Type> extends Omit<ForwardRefExoticComponent<InputsProps>, 'propTypes'>, StaticWebComponent<Type, InputsModelState, DefaultInputsProperties> {
|
|
522
522
|
<T = string, P extends InputsPropertiesItem<T> = InputProperties<T>>(props: InputsProps<T, P> & RefAttributes<InputsAdapter<T, P>>): ReactElement;
|
|
523
523
|
}
|
|
524
524
|
export declare const inputsPropertyTypes: PropertiesValidationMap;
|
|
@@ -573,7 +573,7 @@ export interface IntervalAdapterWithReferences extends IntervalAdapter {
|
|
|
573
573
|
start: MutableRefObject<InputAdapterWithReferences<number> | null>;
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
|
-
export declare type IntervalComponent = InputComponent<IntervalProps, IntervalModelState, DefaultIntervalProperties, IntervalAdapter>;
|
|
576
|
+
export declare type IntervalComponent<Type> = InputComponent<Type, IntervalProps, IntervalModelState, DefaultIntervalProperties, IntervalAdapter>;
|
|
577
577
|
export declare const intervalPropertyTypes: PropertiesValidationMap;
|
|
578
578
|
export declare const defaultIntervalProperties: DefaultIntervalProperties;
|
|
579
579
|
export interface ConfigurationProperties {
|