react-input-material 0.0.691 → 0.0.692
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValueOf } from 'clientnode';
|
|
2
2
|
import BasePropertyTypes, { Requireable } from 'clientnode/dist/property-types';
|
|
3
|
-
import { ElementType, ForwardRefExoticComponent, HTMLProps,
|
|
3
|
+
import { ElementType, ForwardRefExoticComponent, HTMLProps, ReactElement, ReactNode, RefAttributes, RefObject } from 'react';
|
|
4
4
|
import { ComponentAdapter, ValidationMapping } from 'web-component-wrapper/type';
|
|
5
5
|
import { ComponentProps as RMWCComponentProps } from '@rmwc/types';
|
|
6
6
|
import { CardMediaProps } from '@rmwc/card';
|
|
@@ -87,11 +87,11 @@ export type Adapter<Type extends Value = Value> = ComponentAdapter<Properties<Ty
|
|
|
87
87
|
}>;
|
|
88
88
|
export interface AdapterWithReferences extends Adapter {
|
|
89
89
|
references: {
|
|
90
|
-
deleteButtonReference:
|
|
91
|
-
downloadLinkReference:
|
|
92
|
-
fileInputReference:
|
|
93
|
-
nameInputReference:
|
|
94
|
-
uploadButtonReference:
|
|
90
|
+
deleteButtonReference: RefObject<HTMLButtonElement | null>;
|
|
91
|
+
downloadLinkReference: RefObject<HTMLAnchorElement | null>;
|
|
92
|
+
fileInputReference: RefObject<HTMLInputElement | null>;
|
|
93
|
+
nameInputReference: RefObject<TextInputAdapter<string> | null>;
|
|
94
|
+
uploadButtonReference: RefObject<HTMLButtonElement | null>;
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
export interface Component<Type> extends Omit<ForwardRefExoticComponent<Props>, 'propTypes'>, StaticWebComponent<Type, ModelState, DefaultProperties> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValueOf } from 'clientnode';
|
|
2
2
|
import BasePropertyTypes from 'clientnode/dist/property-types';
|
|
3
|
-
import { ForwardRefExoticComponent,
|
|
3
|
+
import { ForwardRefExoticComponent, ReactElement, ReactNode, RefAttributes, MutableRefObject as RefObject } from 'react';
|
|
4
4
|
import { ComponentAdapter, ValidationMapping } from 'web-component-wrapper/type';
|
|
5
5
|
import { IconOptions } from '@rmwc/types';
|
|
6
6
|
import { Properties as TextInputProperties, Props as TextInputProps } from '../TextInput/type';
|
|
@@ -67,7 +67,7 @@ export type PropertyTypes<T = unknown, P extends PropertiesItem<T> = BasePropert
|
|
|
67
67
|
export type State<T = unknown> = BaseState<Array<null | T | undefined>>;
|
|
68
68
|
export type Adapter<T = unknown, P extends PropertiesItem<T> = BaseProperties<T>> = ComponentAdapter<Properties<T, P>, State<T>>;
|
|
69
69
|
export type AdapterWithReferences<T = unknown, P extends PropertiesItem<T> = BaseProperties<T>, RefType = unknown> = Adapter<T, P> & {
|
|
70
|
-
references: Array<
|
|
70
|
+
references: Array<RefObject<RefType>>;
|
|
71
71
|
};
|
|
72
72
|
export interface Component<Type> extends Omit<ForwardRefExoticComponent<Props>, 'propTypes'>, StaticWebComponent<Type, ModelState, DefaultProperties> {
|
|
73
73
|
<T = string, P extends PropertiesItem<T> = TextInputProperties<T>>(props: Props<T, P> & RefAttributes<Adapter<T, P>>): ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValueOf } from 'clientnode';
|
|
2
2
|
import BasePropertyTypes from 'clientnode/dist/property-types';
|
|
3
|
-
import { MutableRefObject } from 'react';
|
|
3
|
+
import { MutableRefObject as RefObject } from 'react';
|
|
4
4
|
import { GenericEvent } from 'react-generic-tools/type';
|
|
5
5
|
import { ComponentAdapter, PropertiesValidationMap } from 'web-component-wrapper/type';
|
|
6
6
|
import { IconOptions } from '@rmwc/types';
|
|
@@ -75,8 +75,8 @@ export type Adapter = ComponentAdapter<Properties, {
|
|
|
75
75
|
}>;
|
|
76
76
|
export interface AdapterWithReferences extends Adapter {
|
|
77
77
|
references: {
|
|
78
|
-
end:
|
|
79
|
-
start:
|
|
78
|
+
end: RefObject<TextInputAdapterWithReferences<DateTimeRepresentation | null> | null>;
|
|
79
|
+
start: RefObject<TextInputAdapterWithReferences<DateTimeRepresentation | null> | null>;
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
export type Component<ComponentType> = BaseComponent<Configuration | Value | null, ComponentType, Props, ModelState, DefaultProperties, Adapter>;
|
|
@@ -2,7 +2,7 @@ import { LanguageSupport } from '@codemirror/language';
|
|
|
2
2
|
import { JSONContent } from '@tiptap/core';
|
|
3
3
|
import { Mapping, PlainObject, RecursivePartial, ValueOf } from 'clientnode';
|
|
4
4
|
import BasePropertyTypes, { Requireable } from 'clientnode/dist/property-types';
|
|
5
|
-
import { FocusEvent as ReactFocusEvent, ForwardRefExoticComponent, KeyboardEvent, MouseEvent,
|
|
5
|
+
import { FocusEvent as ReactFocusEvent, ForwardRefExoticComponent, KeyboardEvent, MouseEvent, ReactElement, ReactNode, RefAttributes, MutableRefObject as RefObject } from 'react';
|
|
6
6
|
import { GenericEvent } from 'react-generic-tools/type';
|
|
7
7
|
import { ComponentAdapter, ValidationMapping } from 'web-component-wrapper/type';
|
|
8
8
|
import { MDCMenuFoundation } from '@material/menu';
|
|
@@ -64,10 +64,10 @@ export interface EditorWrapperEventWrapper {
|
|
|
64
64
|
input: (value: number | string, event: object) => void;
|
|
65
65
|
}
|
|
66
66
|
export interface EditorWrapperProps extends Partial<EditorProperties> {
|
|
67
|
-
eventMapper:
|
|
68
|
-
materialTextField?:
|
|
69
|
-
mdcTextFieldReference?:
|
|
70
|
-
textareaReference?:
|
|
67
|
+
eventMapper: RefObject<EditorWrapperEventWrapper | null>;
|
|
68
|
+
materialTextField?: RefObject<MDCTextField | null>;
|
|
69
|
+
mdcTextFieldReference?: RefObject<HTMLLabelElement | null>;
|
|
70
|
+
textareaReference?: RefObject<HTMLTextAreaElement | null>;
|
|
71
71
|
children: ReactNode;
|
|
72
72
|
barContentSlot?: ReactNode;
|
|
73
73
|
classNamePrefix: string;
|
|
@@ -202,11 +202,11 @@ export type Adapter<T = unknown> = ComponentAdapter<Properties<T>, Omit<State<T>
|
|
|
202
202
|
}>;
|
|
203
203
|
export interface AdapterWithReferences<T = unknown> extends Adapter<T> {
|
|
204
204
|
references: {
|
|
205
|
-
foundationReference:
|
|
206
|
-
inputReference:
|
|
207
|
-
suggestionMenuAPIReference:
|
|
208
|
-
suggestionMenuFoundationReference:
|
|
209
|
-
wrapperReference:
|
|
205
|
+
foundationReference: RefObject<MDCSelectFoundation | MDCTextFieldFoundation | null>;
|
|
206
|
+
inputReference: RefObject<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | null>;
|
|
207
|
+
suggestionMenuAPIReference: RefObject<MenuApi | null>;
|
|
208
|
+
suggestionMenuFoundationReference: RefObject<MDCMenuFoundation | null>;
|
|
209
|
+
wrapperReference: RefObject<HTMLDivElement | null>;
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
export interface Component<Type> extends Omit<ForwardRefExoticComponent<Props>, 'propTypes'>, StaticWebComponent<Type, ModelState, DefaultProperties> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-input-material",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.692",
|
|
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",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@babel/eslint-parser": "^7.25.9",
|
|
104
104
|
"@babel/plugin-transform-proto-to-assign": "^7.25.9",
|
|
105
|
-
"@babel/preset-react": "^7.
|
|
105
|
+
"@babel/preset-react": "^7.26.3",
|
|
106
106
|
"@babel/runtime": "^7.26.0",
|
|
107
107
|
"@codemirror/autocomplete": "^6.18.3",
|
|
108
108
|
"@codemirror/commands": "^6.7.1",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@codemirror/lint": "^6.8.4",
|
|
113
113
|
"@codemirror/search": "^6.5.8",
|
|
114
114
|
"@codemirror/state": "^6.4.1",
|
|
115
|
-
"@codemirror/view": "^6.35.
|
|
115
|
+
"@codemirror/view": "^6.35.1",
|
|
116
116
|
"@emotion/react": "^11.13.5",
|
|
117
117
|
"@rmwc/card": "^14.3.5",
|
|
118
118
|
"@rmwc/checkbox": "^14.3.5",
|
|
@@ -139,14 +139,14 @@
|
|
|
139
139
|
"@types/jsdom": "^21.1.7",
|
|
140
140
|
"@types/node": "^22.10.1",
|
|
141
141
|
"@types/react": "^18.3.12",
|
|
142
|
-
"@types/react-dom": "^18.3.
|
|
142
|
+
"@types/react-dom": "^18.3.2",
|
|
143
143
|
"@types/react-transition-group": "^4.4.11",
|
|
144
144
|
"@types/spark-md5": "^3.0.5",
|
|
145
145
|
"@types/webpack-env": "^1.18.5",
|
|
146
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
147
|
-
"@typescript-eslint/parser": "^8.
|
|
146
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
147
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
148
148
|
"blob-util": "^2.0.2",
|
|
149
|
-
"clientnode": "^3.0.
|
|
149
|
+
"clientnode": "^3.0.1235",
|
|
150
150
|
"css-loader": "^7.1.2",
|
|
151
151
|
"cssnano": "^7.0.6",
|
|
152
152
|
"documentation-website": "^1.0.340",
|
|
@@ -167,9 +167,9 @@
|
|
|
167
167
|
"prop-types": "^15.8.1",
|
|
168
168
|
"react": "^18.3.1",
|
|
169
169
|
"react-dom": "^18.3.1",
|
|
170
|
-
"react-generic-animate": "^0.0.
|
|
171
|
-
"react-generic-dummy": "^0.0.
|
|
172
|
-
"react-generic-tools": "^0.0.
|
|
170
|
+
"react-generic-animate": "^0.0.64",
|
|
171
|
+
"react-generic-dummy": "^0.0.87",
|
|
172
|
+
"react-generic-tools": "^0.0.59",
|
|
173
173
|
"react-transition-group": "^4.4.5",
|
|
174
174
|
"react-useanimations": "^2.10.0",
|
|
175
175
|
"spark-md5": "^3.0.2",
|
|
@@ -177,10 +177,10 @@
|
|
|
177
177
|
"stylelint": "^16.11.0",
|
|
178
178
|
"stylelint-config-standard": "^36.0.1",
|
|
179
179
|
"tslib": "^2.8.1",
|
|
180
|
-
"typescript-eslint": "^8.
|
|
180
|
+
"typescript-eslint": "^8.17.0",
|
|
181
181
|
"typescript-plugin-css-modules": "^5.1.0",
|
|
182
|
-
"web-component-wrapper": "^0.0.
|
|
183
|
-
"weboptimizer": "^2.0.
|
|
182
|
+
"web-component-wrapper": "^0.0.507",
|
|
183
|
+
"weboptimizer": "^2.0.1542",
|
|
184
184
|
"webpack-dev-server": "^5.1.0"
|
|
185
185
|
},
|
|
186
186
|
"peerDependencies": {
|