react-input-material 0.0.437 → 0.0.439
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/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/components/RequireableCheckbox.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/type.d.ts +11 -11
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -123,11 +123,9 @@ export interface BaseProperties extends CommonBaseModel, ModelState {
|
|
|
123
123
|
enforceUncontrolled: boolean;
|
|
124
124
|
id: string;
|
|
125
125
|
initialValue: unknown;
|
|
126
|
-
invertedPattern: Array<RegExp | string> | null | RegExp | string;
|
|
127
126
|
label: string;
|
|
128
127
|
model: BaseModel;
|
|
129
128
|
name: string;
|
|
130
|
-
pattern: Array<RegExp | string> | null | RegExp | string;
|
|
131
129
|
required: boolean;
|
|
132
130
|
requiredText: string;
|
|
133
131
|
ripple: RipplePropT;
|
|
@@ -175,14 +173,14 @@ export interface EditorState {
|
|
|
175
173
|
editorIsActive: boolean;
|
|
176
174
|
selectionIsUnstable: boolean;
|
|
177
175
|
}
|
|
178
|
-
export interface StaticWebComponent<MS = ModelState, DP = DefaultProperties> extends StaticBaseWebComponent {
|
|
176
|
+
export interface StaticWebComponent<Type, MS = ModelState, DP = DefaultProperties> extends StaticBaseWebComponent<Type> {
|
|
179
177
|
defaultModelState: MS;
|
|
180
178
|
defaultProperties: DP;
|
|
181
179
|
strict: boolean;
|
|
182
180
|
}
|
|
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> {
|
|
181
|
+
export declare type StaticComponent<Type, P = Props, MS = ModelState, DP = DefaultProperties> = Omit<ComponentClass<P>, 'propTypes'> & StaticWebComponent<Type, MS, DP>;
|
|
182
|
+
export declare type StaticFunctionComponent<Type, P = Props, MS = ModelState, DP = DefaultProperties> = Omit<FunctionComponent<P>, 'propTypes'> & StaticComponent<Type, P, MS, DP>;
|
|
183
|
+
export interface InputComponent<Type, P = Props, MS = ModelState, DP = DefaultProperties, A = ComponentAdapter<P>> extends Omit<ForwardRefExoticComponent<P>, 'propTypes'>, StaticWebComponent<Type, MS, DP> {
|
|
186
184
|
(props: P & RefAttributes<A>): ReactElement;
|
|
187
185
|
}
|
|
188
186
|
export declare const baseModelPropertyTypes: ValidationMapping;
|
|
@@ -209,7 +207,7 @@ export declare type DefaultCheckboxProperties = Omit<CheckboxProps, 'model'> & {
|
|
|
209
207
|
};
|
|
210
208
|
export declare type CheckboxState = State<boolean>;
|
|
211
209
|
export declare type CheckboxAdapter = ComponentAdapter<CheckboxProperties, Omit<CheckboxState, 'value'>>;
|
|
212
|
-
export declare type CheckboxComponent = InputComponent<CheckboxProps, CheckboxModelState, DefaultCheckboxProperties, CheckboxAdapter>;
|
|
210
|
+
export declare type CheckboxComponent<Type> = InputComponent<Type, CheckboxProps, CheckboxModelState, DefaultCheckboxProperties, CheckboxAdapter>;
|
|
213
211
|
export declare const checkboxPropertyTypes: PropertiesValidationMap;
|
|
214
212
|
export declare const defaultCheckboxModel: CheckboxModel;
|
|
215
213
|
export declare const defaultCheckboxProperties: DefaultCheckboxProperties;
|
|
@@ -288,6 +286,7 @@ export interface InputProperties<T = unknown> extends InputModelState, Propertie
|
|
|
288
286
|
tooltip?: string | TooltipProps;
|
|
289
287
|
});
|
|
290
288
|
inputProperties: Partial<CodeEditorProps | RichTextEditorProps | SelectProps | TextFieldProps>;
|
|
289
|
+
invertedPattern: Array<RegExp | string> | null | RegExp | string;
|
|
291
290
|
invertedPatternText: string;
|
|
292
291
|
labels: Array<[string, string]> | Array<string> | Mapping;
|
|
293
292
|
maximumLengthText: string;
|
|
@@ -301,6 +300,7 @@ export interface InputProperties<T = unknown> extends InputModelState, Propertie
|
|
|
301
300
|
onSelect: (event: GenericEvent, properties: this) => void;
|
|
302
301
|
onSelectionChange: (event: GenericEvent, properties: this) => void;
|
|
303
302
|
outlined: boolean;
|
|
303
|
+
pattern: Array<RegExp | string> | null | RegExp | string;
|
|
304
304
|
patternText: string;
|
|
305
305
|
placeholder: string;
|
|
306
306
|
representation: ReactNode | string;
|
|
@@ -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 {
|