vasille-web 4.3.1 → 4.3.2
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/lib/bin.js +0 -0
- package/lib/dev.js +25 -0
- package/lib/index.js +1 -1
- package/lib/spec/css.js +1 -0
- package/lib/spec/html.js +1 -0
- package/package.json +2 -2
- package/types/dev.d.ts +9 -0
- package/types/index.d.ts +1 -1
- package/types/spec/css.d.ts +7 -0
- package/types/spec/html.d.ts +852 -0
package/lib/bin.js
CHANGED
|
File without changes
|
package/lib/dev.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { devMount as coreMount } from "vasille-jsx/dev";
|
|
2
|
+
import { devRouteApp as coreRouteApp } from "vasille-router/dev";
|
|
3
|
+
import { DevPortal, DevRunner } from "vasille/dev";
|
|
4
|
+
import { modal, prompt } from "./index.js";
|
|
5
|
+
function createPortal(node, declaration, usage, name) {
|
|
6
|
+
const portal = new DevPortal({ node: document.body }, node.runner, declaration, usage, name);
|
|
7
|
+
node.create(portal);
|
|
8
|
+
return portal;
|
|
9
|
+
}
|
|
10
|
+
export function devModal(modalFn, declaration, name) {
|
|
11
|
+
return (input, node, usage) => {
|
|
12
|
+
modal(modalFn, node => createPortal(node, declaration, usage, name))(input, node);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export function devPrompt(modal, declaration, name) {
|
|
16
|
+
return function (node, input, timeout, usage) {
|
|
17
|
+
return prompt(modal, node => createPortal(node, declaration, usage, name))(node, input, timeout);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function devMount(element, component, input, inspector) {
|
|
21
|
+
return coreMount(element, component, new DevRunner(window.document, inspector), input, inspector);
|
|
22
|
+
}
|
|
23
|
+
export function devRouterApp(init, element, inspector) {
|
|
24
|
+
return coreRouteApp(element, window, window.location, init, inspector);
|
|
25
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { mount as coreMount } from "vasille-jsx";
|
|
|
4
4
|
import { styleSheet as coreStyleSheet } from "vasille-css";
|
|
5
5
|
import { routeApp as coreRouteApp } from "vasille-router/web-router";
|
|
6
6
|
export { safe } from "vasille";
|
|
7
|
-
export { view, view as component, view as compose, forward, backward, ensure, ref, expr, expr as bind, expr as calculate, expr as watch, set, Debug, Delay, For, Slot, Watch, awaited, store, model, setModel, mapModel, arrayModel, Switch, setErrorHandler, match, } from "vasille-jsx";
|
|
7
|
+
export { view, view as component, view as compose, forward, backward, ensure, ref, expr, expr as bind, expr as calculate, expr as watch, set, Debug, Delay, For, Slot, Watch, awaited, store, model, setModel, mapModel, arrayModel, Switch, setErrorHandler, match, extract, } from "vasille-jsx";
|
|
8
8
|
export { screen, screen as page, } from "vasille-router";
|
|
9
9
|
export { Router, routeApp } from "vasille-router/web-router";
|
|
10
10
|
export { setMobileMaxWidth, setTabletMaxWidth, setLaptopMaxWidth } from "vasille-css";
|
package/lib/spec/css.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/spec/html.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vasille-web",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "The same framework which is designed to build bulletproof frontends.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"csstype": "^3.1.3",
|
|
50
50
|
"vasille": "^4.3.1",
|
|
51
51
|
"vasille-css": "^4.1.0",
|
|
52
|
-
"vasille-jsx": "^4.3.
|
|
52
|
+
"vasille-jsx": "^4.3.4",
|
|
53
53
|
"vasille-router": "^4.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
package/types/dev.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Fragment } from "vasille";
|
|
2
|
+
import { TagOptions } from "vasille/web-runner";
|
|
3
|
+
import { IDevRunner, Inspector, StaticPosition } from "vasille/dev";
|
|
4
|
+
import { PromptProps } from "./index.js";
|
|
5
|
+
import { WebRouterInitialization } from "vasille-router/web-router";
|
|
6
|
+
export declare function devModal<T extends object>(modalFn: (node: Fragment<Node, Element, TagOptions, IDevRunner<Node, Element, TagOptions>>, input: T) => void, declaration: StaticPosition, name: string): (input: T, node: Fragment<Node, Element, TagOptions, IDevRunner<Node, Element, TagOptions>>, usage: StaticPosition | undefined) => void;
|
|
7
|
+
export declare function devPrompt<T extends PromptProps>(modal: (node: Fragment<Node, Element, TagOptions, IDevRunner<Node, Element, TagOptions>>, input: T) => void, declaration: StaticPosition, name: string): (node: Fragment<Node, Element, TagOptions, IDevRunner<Node, Element, TagOptions>>, input: T, timeout: number | undefined, usage: StaticPosition | undefined) => Promise<unknown>;
|
|
8
|
+
export declare function devMount<T>(element: Element, component: ($: T) => void, input: T, inspector: Inspector): import("vasille").App<Node, Element, import("vasille/dev").DevTagOptions, import("vasille").Runner<Node, Element, import("vasille/dev").DevTagOptions>>;
|
|
9
|
+
export declare function devRouterApp<Routes extends string>(init: WebRouterInitialization<Routes>, element: Element, inspector: Inspector): import("vasille").App<Node, Element, import("vasille/dev").DevTagOptions, import("vasille").Runner<Node, Element, import("vasille/dev").DevTagOptions>>;
|
package/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { WebRouterInitialization } from "vasille-router/web-router";
|
|
|
5
5
|
export type { RawStyleProps as StyleProps } from "../spec/css.js";
|
|
6
6
|
export type { ClassItem } from "./jsx-runtime.js";
|
|
7
7
|
export { safe } from "vasille";
|
|
8
|
-
export { view, view as component, view as compose, forward, backward, ensure, ref, expr, expr as bind, expr as calculate, expr as watch, set, Debug, Delay, For, Slot, Watch, awaited, store, model, setModel, mapModel, arrayModel, Switch, setErrorHandler, match, } from "vasille-jsx";
|
|
8
|
+
export { view, view as component, view as compose, forward, backward, ensure, ref, expr, expr as bind, expr as calculate, expr as watch, set, Debug, Delay, For, Slot, Watch, awaited, store, model, setModel, mapModel, arrayModel, Switch, setErrorHandler, match, extract, } from "vasille-jsx";
|
|
9
9
|
export { type QueryParams, type ScreenProps, type RouteParameters, screen, screen as page, type FallbackScreenProps, type ErrorScreenProps, } from "vasille-router";
|
|
10
10
|
export { Router, type WebRouterInitialization, type NavigationMode, routeApp } from "vasille-router/web-router";
|
|
11
11
|
export { setMobileMaxWidth, setTabletMaxWidth, setLaptopMaxWidth } from "vasille-css";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ObsoletePropertiesHyphen, StandardPropertiesHyphen, VendorPropertiesHyphen } from "csstype";
|
|
2
|
+
export type RawStyleProps = StandardPropertiesHyphen<string | number | number[]> & VendorPropertiesHyphen<string | number | number[]> & ObsoletePropertiesHyphen<string | number | number[]> & {
|
|
3
|
+
[variable: `--${string}`]: string;
|
|
4
|
+
};
|
|
5
|
+
export type StyleSheetProps = {
|
|
6
|
+
[K in keyof RawStyleProps]: RawStyleProps[K] | RawStyleProps[K][];
|
|
7
|
+
};
|
|
@@ -0,0 +1,852 @@
|
|
|
1
|
+
export type EventHandler<Event, Target> = (ev: Event, target: Target) => any;
|
|
2
|
+
export interface Tag<Attrs, Events, Props> {
|
|
3
|
+
attrs: Attrs;
|
|
4
|
+
events: Events;
|
|
5
|
+
props: Props;
|
|
6
|
+
}
|
|
7
|
+
type TagEvents<Target> = {
|
|
8
|
+
[K in keyof HTMLElementEventMap]: EventHandler<HTMLElementEventMap[K], Target> | undefined;
|
|
9
|
+
};
|
|
10
|
+
interface TagAttrs {
|
|
11
|
+
id: string;
|
|
12
|
+
accesskey: string;
|
|
13
|
+
autocapitalize: "off" | "none" | "on" | "sentences" | "words" | "characters";
|
|
14
|
+
autofocus: "" | boolean;
|
|
15
|
+
contenteditable: "true" | "false" | "" | boolean;
|
|
16
|
+
dir: "ltr" | "rtl" | "auto";
|
|
17
|
+
draggable: "true" | "false" | "" | boolean;
|
|
18
|
+
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
19
|
+
hidden: "until-found" | "hidden" | "" | boolean;
|
|
20
|
+
inert: boolean;
|
|
21
|
+
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
|
|
22
|
+
is: string;
|
|
23
|
+
itemid: string;
|
|
24
|
+
itemprop: string;
|
|
25
|
+
itemref: string;
|
|
26
|
+
itemscope: boolean;
|
|
27
|
+
itemtype: string;
|
|
28
|
+
lang: string;
|
|
29
|
+
nonce: string;
|
|
30
|
+
spellcheck: "true" | "false" | "" | boolean;
|
|
31
|
+
tabindex: number;
|
|
32
|
+
title: string;
|
|
33
|
+
translate: "yes" | "no" | "" | boolean;
|
|
34
|
+
}
|
|
35
|
+
interface MediaTagAttrs extends TagAttrs {
|
|
36
|
+
src: string;
|
|
37
|
+
crossorigin: "anonymous" | "use-credentials" | "" | boolean;
|
|
38
|
+
preload: "none" | "metadata" | "auto";
|
|
39
|
+
autoplay: boolean;
|
|
40
|
+
loop: boolean;
|
|
41
|
+
muted: boolean;
|
|
42
|
+
controls: boolean;
|
|
43
|
+
}
|
|
44
|
+
type MediaEvents<Target> = {
|
|
45
|
+
[K in keyof HTMLMediaElementEventMap]: EventHandler<HTMLMediaElementEventMap[K], Target> | undefined;
|
|
46
|
+
};
|
|
47
|
+
type VideoEvents<Target> = {
|
|
48
|
+
[K in keyof HTMLVideoElementEventMap]: EventHandler<HTMLVideoElementEventMap[K], Target> | undefined;
|
|
49
|
+
};
|
|
50
|
+
interface BaseAttrs extends TagAttrs {
|
|
51
|
+
href: string;
|
|
52
|
+
target: string;
|
|
53
|
+
}
|
|
54
|
+
interface LinkAttrs extends TagAttrs {
|
|
55
|
+
href: string;
|
|
56
|
+
crossorigin: "anonymous" | "use-credentials" | "" | boolean;
|
|
57
|
+
rel: string;
|
|
58
|
+
media: string;
|
|
59
|
+
integrity: string;
|
|
60
|
+
hreflang: string;
|
|
61
|
+
type: string;
|
|
62
|
+
referrerpolicy: string;
|
|
63
|
+
sizes: string;
|
|
64
|
+
imagesrcset: string;
|
|
65
|
+
imagesizes: string;
|
|
66
|
+
as: string;
|
|
67
|
+
blocking: boolean;
|
|
68
|
+
color: string;
|
|
69
|
+
}
|
|
70
|
+
interface MetaAttrs extends TagAttrs {
|
|
71
|
+
name: string;
|
|
72
|
+
"http-equiv": string;
|
|
73
|
+
content: string;
|
|
74
|
+
charset: string;
|
|
75
|
+
media: string;
|
|
76
|
+
}
|
|
77
|
+
interface StyleAttrs extends TagAttrs {
|
|
78
|
+
media: string;
|
|
79
|
+
blocking: string;
|
|
80
|
+
}
|
|
81
|
+
type BodyEvents = {
|
|
82
|
+
[K in keyof HTMLBodyElementEventMap]: EventHandler<HTMLBodyElementEventMap[K], HTMLBodyElement> | undefined;
|
|
83
|
+
};
|
|
84
|
+
interface BlockQuoteAttrs extends TagAttrs {
|
|
85
|
+
cite: string;
|
|
86
|
+
}
|
|
87
|
+
interface OlAttrs extends TagAttrs {
|
|
88
|
+
reversed: boolean;
|
|
89
|
+
start: number;
|
|
90
|
+
type: "1" | "a" | "A" | "i" | "I";
|
|
91
|
+
}
|
|
92
|
+
interface AAttrs extends TagAttrs {
|
|
93
|
+
href: string;
|
|
94
|
+
target: string;
|
|
95
|
+
download: string;
|
|
96
|
+
ping: string;
|
|
97
|
+
hreflang: string;
|
|
98
|
+
type: string;
|
|
99
|
+
referrerpolicy: string;
|
|
100
|
+
}
|
|
101
|
+
interface QAttrs extends TagAttrs {
|
|
102
|
+
cite: string;
|
|
103
|
+
}
|
|
104
|
+
interface DataAttr extends TagAttrs {
|
|
105
|
+
value: string;
|
|
106
|
+
}
|
|
107
|
+
interface BdoAttrs extends TagAttrs {
|
|
108
|
+
dir: "ltr" | "rtl";
|
|
109
|
+
}
|
|
110
|
+
interface SourceAttrs extends TagAttrs {
|
|
111
|
+
type: string;
|
|
112
|
+
src: string;
|
|
113
|
+
srcset: string;
|
|
114
|
+
sizes: string;
|
|
115
|
+
media: string;
|
|
116
|
+
width: number;
|
|
117
|
+
height: number;
|
|
118
|
+
}
|
|
119
|
+
interface ImgAttrs extends TagAttrs {
|
|
120
|
+
alt: string;
|
|
121
|
+
src: string;
|
|
122
|
+
srcset: string;
|
|
123
|
+
sizes: string;
|
|
124
|
+
crossorigin: "anonymous" | "use-credentials" | "" | boolean;
|
|
125
|
+
usemap: string;
|
|
126
|
+
ismap: string;
|
|
127
|
+
width: number;
|
|
128
|
+
height: number;
|
|
129
|
+
referrerpolicy: string;
|
|
130
|
+
decoding: string;
|
|
131
|
+
loading: string;
|
|
132
|
+
}
|
|
133
|
+
interface IframeAttrs extends TagAttrs {
|
|
134
|
+
src: string;
|
|
135
|
+
srcdoc: string;
|
|
136
|
+
name: string;
|
|
137
|
+
sandbox: string;
|
|
138
|
+
allow: string;
|
|
139
|
+
allowfullscreen: string;
|
|
140
|
+
width: number;
|
|
141
|
+
height: number;
|
|
142
|
+
referrerpolicy: string;
|
|
143
|
+
loading: string;
|
|
144
|
+
}
|
|
145
|
+
interface EmbedAttrs extends TagAttrs {
|
|
146
|
+
src: string;
|
|
147
|
+
type: string;
|
|
148
|
+
width: number;
|
|
149
|
+
height: number;
|
|
150
|
+
}
|
|
151
|
+
interface ObjectAttrs extends TagAttrs {
|
|
152
|
+
data: string;
|
|
153
|
+
type: string;
|
|
154
|
+
name: string;
|
|
155
|
+
form: string;
|
|
156
|
+
width: number;
|
|
157
|
+
height: number;
|
|
158
|
+
}
|
|
159
|
+
interface VideoAttrs extends MediaTagAttrs {
|
|
160
|
+
poster: string;
|
|
161
|
+
playsinline: boolean;
|
|
162
|
+
width: number;
|
|
163
|
+
height: number;
|
|
164
|
+
}
|
|
165
|
+
interface TrackAttrs extends TagAttrs {
|
|
166
|
+
kind: string;
|
|
167
|
+
src: string;
|
|
168
|
+
srclang: string;
|
|
169
|
+
label: string;
|
|
170
|
+
defautl: boolean;
|
|
171
|
+
}
|
|
172
|
+
interface MapAttrs extends TagAttrs {
|
|
173
|
+
name: string;
|
|
174
|
+
}
|
|
175
|
+
interface AreaAttrs extends TagAttrs {
|
|
176
|
+
alt: string;
|
|
177
|
+
coords: string;
|
|
178
|
+
shape: string;
|
|
179
|
+
href: string;
|
|
180
|
+
target: string;
|
|
181
|
+
download: string;
|
|
182
|
+
ping: string;
|
|
183
|
+
rel: string;
|
|
184
|
+
referrerpolicy: string;
|
|
185
|
+
}
|
|
186
|
+
interface ColAttrs extends TagAttrs {
|
|
187
|
+
span: number;
|
|
188
|
+
}
|
|
189
|
+
interface TdAttrs extends TagAttrs {
|
|
190
|
+
colspan: number;
|
|
191
|
+
rowspan: number;
|
|
192
|
+
headers: string;
|
|
193
|
+
}
|
|
194
|
+
interface ThAttrs extends TdAttrs {
|
|
195
|
+
scope: string;
|
|
196
|
+
abbr: string;
|
|
197
|
+
}
|
|
198
|
+
interface FormAttrs extends TagAttrs {
|
|
199
|
+
"accept-charset": string;
|
|
200
|
+
action: string;
|
|
201
|
+
autocomplete: string;
|
|
202
|
+
enctype: string;
|
|
203
|
+
method: string;
|
|
204
|
+
name: string;
|
|
205
|
+
novalidate: string;
|
|
206
|
+
target: string;
|
|
207
|
+
rel: string;
|
|
208
|
+
}
|
|
209
|
+
interface LabelAttrs extends TagAttrs {
|
|
210
|
+
for: string;
|
|
211
|
+
}
|
|
212
|
+
interface InputAttrs extends TagAttrs {
|
|
213
|
+
accept: string;
|
|
214
|
+
alt: string;
|
|
215
|
+
autocomplete: boolean;
|
|
216
|
+
checked: boolean;
|
|
217
|
+
dirname: string;
|
|
218
|
+
disabled: boolean;
|
|
219
|
+
form: string;
|
|
220
|
+
formaction: string;
|
|
221
|
+
formenctype: string;
|
|
222
|
+
formmethod: string;
|
|
223
|
+
formnovalidate: string;
|
|
224
|
+
formtarget: string;
|
|
225
|
+
height: number;
|
|
226
|
+
list: string;
|
|
227
|
+
max: number;
|
|
228
|
+
maxlength: number;
|
|
229
|
+
min: number;
|
|
230
|
+
minlength: number;
|
|
231
|
+
multiple: boolean;
|
|
232
|
+
name: string;
|
|
233
|
+
pattern: string;
|
|
234
|
+
placeholder: string;
|
|
235
|
+
readonly: string;
|
|
236
|
+
required: string;
|
|
237
|
+
size: number;
|
|
238
|
+
src: string;
|
|
239
|
+
step: string;
|
|
240
|
+
type: string;
|
|
241
|
+
value: string;
|
|
242
|
+
width: number;
|
|
243
|
+
}
|
|
244
|
+
interface ButtonAttrs extends TagAttrs {
|
|
245
|
+
disabled: boolean;
|
|
246
|
+
form: string;
|
|
247
|
+
formaction: string;
|
|
248
|
+
formenctype: string;
|
|
249
|
+
formmethod: string;
|
|
250
|
+
formnovalidate: string;
|
|
251
|
+
formtarget: string;
|
|
252
|
+
name: string;
|
|
253
|
+
type: string;
|
|
254
|
+
value: string;
|
|
255
|
+
}
|
|
256
|
+
interface CanvasAttrs extends TagAttrs {
|
|
257
|
+
width: number;
|
|
258
|
+
height: number;
|
|
259
|
+
}
|
|
260
|
+
interface SelectAttrs extends TagAttrs {
|
|
261
|
+
autocomplete: boolean;
|
|
262
|
+
disabled: boolean;
|
|
263
|
+
form: string;
|
|
264
|
+
multiple: boolean;
|
|
265
|
+
name: string;
|
|
266
|
+
required: boolean;
|
|
267
|
+
size: number;
|
|
268
|
+
}
|
|
269
|
+
interface OptgroupAttrs extends TagAttrs {
|
|
270
|
+
disabled: boolean;
|
|
271
|
+
label: string;
|
|
272
|
+
}
|
|
273
|
+
interface OptionAttrs extends TagAttrs {
|
|
274
|
+
disabled: boolean;
|
|
275
|
+
label: string;
|
|
276
|
+
selected: boolean;
|
|
277
|
+
value: string;
|
|
278
|
+
}
|
|
279
|
+
interface TextareaAttrs extends TagAttrs {
|
|
280
|
+
autocomplete: boolean;
|
|
281
|
+
cols: number;
|
|
282
|
+
dirname: string;
|
|
283
|
+
disabled: boolean;
|
|
284
|
+
form: string;
|
|
285
|
+
maxlength: number;
|
|
286
|
+
minlength: number;
|
|
287
|
+
name: string;
|
|
288
|
+
placeholder: string;
|
|
289
|
+
readonly: boolean;
|
|
290
|
+
required: boolean;
|
|
291
|
+
rows: number;
|
|
292
|
+
wrap: string;
|
|
293
|
+
}
|
|
294
|
+
interface OutputAttrs extends TagAttrs {
|
|
295
|
+
for: string;
|
|
296
|
+
form: string;
|
|
297
|
+
name: string;
|
|
298
|
+
}
|
|
299
|
+
interface ProgressAttrs extends TagAttrs {
|
|
300
|
+
value: number;
|
|
301
|
+
max: number;
|
|
302
|
+
}
|
|
303
|
+
interface MeterAttrs extends TagAttrs {
|
|
304
|
+
value: number;
|
|
305
|
+
min: number;
|
|
306
|
+
max: number;
|
|
307
|
+
low: number;
|
|
308
|
+
high: number;
|
|
309
|
+
optimum: number;
|
|
310
|
+
}
|
|
311
|
+
interface FieldsetAttrs extends TagAttrs {
|
|
312
|
+
disabled: boolean;
|
|
313
|
+
form: string;
|
|
314
|
+
name: string;
|
|
315
|
+
}
|
|
316
|
+
interface DetailsAttrs extends TagAttrs {
|
|
317
|
+
open: boolean;
|
|
318
|
+
}
|
|
319
|
+
export interface HtmlTagMap {
|
|
320
|
+
a: Tag<AAttrs, TagEvents<HTMLAnchorElement>, AnchorProps>;
|
|
321
|
+
abbr: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
322
|
+
address: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
323
|
+
area: Tag<AreaAttrs, TagEvents<HTMLAreaElement>, AreaProps>;
|
|
324
|
+
article: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
325
|
+
aside: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
326
|
+
audio: Tag<MediaTagAttrs, MediaEvents<HTMLAudioElement>, MediaProps<HTMLAudioElement>>;
|
|
327
|
+
b: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
328
|
+
base: Tag<BaseAttrs, TagEvents<HTMLBaseElement>, BaseProps>;
|
|
329
|
+
bdi: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
330
|
+
bdo: Tag<BdoAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
331
|
+
blockquote: Tag<BlockQuoteAttrs, TagEvents<HTMLQuoteElement>, QuoteProps>;
|
|
332
|
+
body: Tag<TagAttrs, BodyEvents, TagProps<HTMLBodyElement>>;
|
|
333
|
+
br: Tag<TagAttrs, TagEvents<HTMLBRElement>, TagProps<HTMLBRElement>>;
|
|
334
|
+
button: Tag<ButtonAttrs, TagEvents<HTMLButtonElement>, ButtonProps>;
|
|
335
|
+
canvas: Tag<CanvasAttrs, TagEvents<HTMLCanvasElement>, CanvasProps>;
|
|
336
|
+
caption: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
337
|
+
cite: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
338
|
+
code: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
339
|
+
col: Tag<ColAttrs, TagEvents<HTMLTableColElement>, TableColProps>;
|
|
340
|
+
colgroup: Tag<ColAttrs, TagEvents<HTMLTableColElement>, TableColProps>;
|
|
341
|
+
data: Tag<DataAttr, TagEvents<HTMLDataElement>, DataProps>;
|
|
342
|
+
datalist: Tag<TagAttrs, TagEvents<HTMLDataListElement>, TagProps<HTMLDataListElement>>;
|
|
343
|
+
dd: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
344
|
+
del: Tag<TagAttrs, TagEvents<HTMLModElement>, ModProps<HTMLModElement>>;
|
|
345
|
+
details: Tag<DetailsAttrs, TagEvents<HTMLDetailsElement>, DetailsProps>;
|
|
346
|
+
dfn: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
347
|
+
dialog: Tag<TagAttrs, TagEvents<HTMLDialogElement>, TagProps<HTMLDialogElement>>;
|
|
348
|
+
dir: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
349
|
+
div: Tag<TagAttrs, TagEvents<HTMLDivElement>, TagProps<HTMLDivElement>>;
|
|
350
|
+
dl: Tag<TagAttrs, TagEvents<HTMLDListElement>, TagProps<HTMLDListElement>>;
|
|
351
|
+
dt: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
352
|
+
em: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
353
|
+
embed: Tag<EmbedAttrs, TagEvents<HTMLEmbedElement>, EmbedProps>;
|
|
354
|
+
fieldset: Tag<FieldsetAttrs, TagEvents<HTMLFieldSetElement>, FieldSetProps>;
|
|
355
|
+
figcaption: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
356
|
+
figure: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
357
|
+
font: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
358
|
+
footer: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
359
|
+
form: Tag<FormAttrs, TagEvents<HTMLFormElement>, FormProps>;
|
|
360
|
+
h1: Tag<TagAttrs, TagEvents<HTMLHeadingElement>, TagProps<HTMLHeadingElement>>;
|
|
361
|
+
h2: Tag<TagAttrs, TagEvents<HTMLHeadingElement>, TagProps<HTMLHeadingElement>>;
|
|
362
|
+
h3: Tag<TagAttrs, TagEvents<HTMLHeadingElement>, TagProps<HTMLHeadingElement>>;
|
|
363
|
+
h4: Tag<TagAttrs, TagEvents<HTMLHeadingElement>, TagProps<HTMLHeadingElement>>;
|
|
364
|
+
h5: Tag<TagAttrs, TagEvents<HTMLHeadingElement>, TagProps<HTMLHeadingElement>>;
|
|
365
|
+
h6: Tag<TagAttrs, TagEvents<HTMLHeadingElement>, TagProps<HTMLHeadingElement>>;
|
|
366
|
+
head: Tag<TagAttrs, TagEvents<HTMLHeadElement>, TagProps<HTMLHeadElement>>;
|
|
367
|
+
header: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
368
|
+
hgroup: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
369
|
+
hr: Tag<TagAttrs, TagEvents<HTMLHRElement>, TagProps<HTMLHRElement>>;
|
|
370
|
+
i: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
371
|
+
iframe: Tag<IframeAttrs, TagEvents<HTMLIFrameElement>, IFrameProps>;
|
|
372
|
+
img: Tag<ImgAttrs, TagEvents<HTMLImageElement>, ImageProps>;
|
|
373
|
+
input: Tag<InputAttrs, TagEvents<HTMLInputElement>, InputProps>;
|
|
374
|
+
ins: Tag<TagAttrs, TagEvents<HTMLModElement>, ModProps<HTMLModElement>>;
|
|
375
|
+
kbd: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
376
|
+
label: Tag<LabelAttrs, TagEvents<HTMLLabelElement>, LabelProps>;
|
|
377
|
+
legend: Tag<TagAttrs, TagEvents<HTMLLegendElement>, TagProps<HTMLLegendElement>>;
|
|
378
|
+
li: Tag<TagAttrs, TagEvents<HTMLLIElement>, LiProps>;
|
|
379
|
+
link: Tag<LinkAttrs, TagEvents<HTMLLinkElement>, LinkProps>;
|
|
380
|
+
main: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
381
|
+
map: Tag<MapAttrs, TagEvents<HTMLMapElement>, MapProps>;
|
|
382
|
+
mark: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
383
|
+
menu: Tag<TagAttrs, TagEvents<HTMLMenuElement>, TagProps<HTMLMenuElement>>;
|
|
384
|
+
meta: Tag<MetaAttrs, TagEvents<HTMLMetaElement>, TagProps<HTMLMetaElement>>;
|
|
385
|
+
meter: Tag<MeterAttrs, TagEvents<HTMLMeterElement>, MeterProps>;
|
|
386
|
+
nav: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
387
|
+
noscript: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
388
|
+
object: Tag<ObjectAttrs, TagEvents<HTMLObjectElement>, ObjectProps>;
|
|
389
|
+
ol: Tag<OlAttrs, TagEvents<HTMLOListElement>, OListProps>;
|
|
390
|
+
optgroup: Tag<OptgroupAttrs, TagEvents<HTMLOptGroupElement>, OptGroupProps>;
|
|
391
|
+
option: Tag<OptionAttrs, TagEvents<HTMLOptionElement>, OptionProps>;
|
|
392
|
+
output: Tag<OutputAttrs, TagEvents<HTMLOutputElement>, OutputProps>;
|
|
393
|
+
p: Tag<TagAttrs, TagEvents<HTMLParagraphElement>, TagProps<HTMLParagraphElement>>;
|
|
394
|
+
picture: Tag<TagAttrs, TagEvents<HTMLPictureElement>, TagProps<HTMLPictureElement>>;
|
|
395
|
+
pre: Tag<TagAttrs, TagEvents<HTMLPreElement>, TagProps<HTMLPreElement>>;
|
|
396
|
+
progress: Tag<ProgressAttrs, TagEvents<HTMLProgressElement>, ProgressProps>;
|
|
397
|
+
q: Tag<QAttrs, TagEvents<HTMLQuoteElement>, QuoteProps>;
|
|
398
|
+
rp: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
399
|
+
rt: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
400
|
+
ruby: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
401
|
+
s: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
402
|
+
samp: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
403
|
+
script: Tag<TagAttrs, TagEvents<HTMLScriptElement>, ScriptProps>;
|
|
404
|
+
section: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
405
|
+
select: Tag<SelectAttrs, TagEvents<HTMLSelectElement>, SelectProps>;
|
|
406
|
+
slot: Tag<TagAttrs, TagEvents<HTMLSlotElement>, SlotProps>;
|
|
407
|
+
small: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
408
|
+
source: Tag<SourceAttrs, TagEvents<HTMLSourceElement>, SourceProps>;
|
|
409
|
+
span: Tag<TagAttrs, TagEvents<HTMLSpanElement>, TagProps<HTMLSpanElement>>;
|
|
410
|
+
strong: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
411
|
+
style: Tag<StyleAttrs, TagEvents<HTMLStyleElement>, StyleProps>;
|
|
412
|
+
sub: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
413
|
+
summary: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
414
|
+
sup: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
415
|
+
table: Tag<TagAttrs, TagEvents<HTMLTableElement>, TableProps>;
|
|
416
|
+
tbody: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
417
|
+
td: Tag<TdAttrs, TagEvents<HTMLTableCellElement>, TableCellProps>;
|
|
418
|
+
template: Tag<TagAttrs, TagEvents<HTMLTemplateElement>, TagProps<HTMLTemplateElement>>;
|
|
419
|
+
textarea: Tag<TextareaAttrs, TagEvents<HTMLTextAreaElement>, TextAreaProps>;
|
|
420
|
+
tfoot: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
421
|
+
th: Tag<ThAttrs, TagEvents<HTMLTableCellElement>, TableCellProps>;
|
|
422
|
+
thead: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
423
|
+
time: Tag<TagAttrs, TagEvents<HTMLTimeElement>, TimeProps>;
|
|
424
|
+
title: Tag<TagAttrs, TagEvents<HTMLTitleElement>, TitleProps>;
|
|
425
|
+
tr: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
426
|
+
track: Tag<TrackAttrs, TagEvents<HTMLTrackElement>, TrackProps>;
|
|
427
|
+
u: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
428
|
+
ul: Tag<TagAttrs, TagEvents<HTMLUListElement>, TagProps<HTMLUListElement>>;
|
|
429
|
+
var: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
430
|
+
video: Tag<VideoAttrs, VideoEvents<HTMLVideoElement>, VideoProps>;
|
|
431
|
+
wbr: Tag<TagAttrs, TagEvents<HTMLElement>, TagProps<HTMLElement>>;
|
|
432
|
+
}
|
|
433
|
+
export interface TagEventsProps<T extends Element> {
|
|
434
|
+
onabort?: ((this: T, ev: UIEvent) => any) | null;
|
|
435
|
+
onanimationcancel?: ((this: T, ev: AnimationEvent) => any) | null;
|
|
436
|
+
onanimationend?: ((this: T, ev: AnimationEvent) => any) | null;
|
|
437
|
+
onanimationiteration?: ((this: T, ev: AnimationEvent) => any) | null;
|
|
438
|
+
onanimationstart?: ((this: T, ev: AnimationEvent) => any) | null;
|
|
439
|
+
onauxclick?: ((this: T, ev: MouseEvent) => any) | null;
|
|
440
|
+
onblur?: ((this: T, ev: FocusEvent) => any) | null;
|
|
441
|
+
oncanplay?: ((this: T, ev: Event) => any) | null;
|
|
442
|
+
oncanplaythrough?: ((this: T, ev: Event) => any) | null;
|
|
443
|
+
onchange?: ((this: T, ev: Event) => any) | null;
|
|
444
|
+
onclick?: ((this: T, ev: MouseEvent) => any) | null;
|
|
445
|
+
onclose?: ((this: T, ev: Event) => any) | null;
|
|
446
|
+
oncontextmenu?: ((this: T, ev: MouseEvent) => any) | null;
|
|
447
|
+
oncopy?: ((this: T, ev: ClipboardEvent) => any) | null;
|
|
448
|
+
oncut?: ((this: T, ev: ClipboardEvent) => any) | null;
|
|
449
|
+
oncuechange?: ((this: T, ev: Event) => any) | null;
|
|
450
|
+
ondblclick?: ((this: T, ev: MouseEvent) => any) | null;
|
|
451
|
+
ondrag?: ((this: T, ev: DragEvent) => any) | null;
|
|
452
|
+
ondragend?: ((this: T, ev: DragEvent) => any) | null;
|
|
453
|
+
ondragenter?: ((this: T, ev: DragEvent) => any) | null;
|
|
454
|
+
ondragleave?: ((this: T, ev: DragEvent) => any) | null;
|
|
455
|
+
ondragover?: ((this: T, ev: DragEvent) => any) | null;
|
|
456
|
+
ondragstart?: ((this: T, ev: DragEvent) => any) | null;
|
|
457
|
+
ondrop?: ((this: T, ev: DragEvent) => any) | null;
|
|
458
|
+
ondurationchange?: ((this: T, ev: Event) => any) | null;
|
|
459
|
+
onemptied?: ((this: T, ev: Event) => any) | null;
|
|
460
|
+
onended?: ((this: T, ev: Event) => any) | null;
|
|
461
|
+
onerror?: ((this: T, ev: Event | string, src?: string, line?: number, col?: number, err?: Error) => any) | null;
|
|
462
|
+
onfocus?: ((this: T, ev: FocusEvent) => any) | null;
|
|
463
|
+
onformdata?: ((this: T, ev: FormDataEvent) => any) | null;
|
|
464
|
+
onfullscreenchange?: ((this: T, ev: Event) => any) | null;
|
|
465
|
+
onfullscreenerror?: ((this: T, ev: Event) => any) | null;
|
|
466
|
+
ongotpointercapture?: ((this: T, ev: PointerEvent) => any) | null;
|
|
467
|
+
oninput?: ((this: T, ev: Event) => any) | null;
|
|
468
|
+
oninvalid?: ((this: T, ev: Event) => any) | null;
|
|
469
|
+
onkeydown?: ((this: T, ev: KeyboardEvent) => any) | null;
|
|
470
|
+
onkeypress?: ((this: T, ev: KeyboardEvent) => any) | null;
|
|
471
|
+
onkeyup?: ((this: T, ev: KeyboardEvent) => any) | null;
|
|
472
|
+
onload?: ((this: T, ev: Event) => any) | null;
|
|
473
|
+
onloadeddata?: ((this: T, ev: Event) => any) | null;
|
|
474
|
+
onloadedmetadata?: ((this: T, ev: Event) => any) | null;
|
|
475
|
+
onloadstart?: ((this: T, ev: Event) => any) | null;
|
|
476
|
+
onlostpointercapture?: ((this: T, ev: PointerEvent) => any) | null;
|
|
477
|
+
onmousedown?: ((this: T, ev: MouseEvent) => any) | null;
|
|
478
|
+
onmouseenter?: ((this: T, ev: MouseEvent) => any) | null;
|
|
479
|
+
onmouseleave?: ((this: T, ev: MouseEvent) => any) | null;
|
|
480
|
+
onmousemove?: ((this: T, ev: MouseEvent) => any) | null;
|
|
481
|
+
onmouseout?: ((this: T, ev: MouseEvent) => any) | null;
|
|
482
|
+
onmouseover?: ((this: T, ev: MouseEvent) => any) | null;
|
|
483
|
+
onmouseup?: ((this: T, ev: MouseEvent) => any) | null;
|
|
484
|
+
onpaste?: ((this: T, ev: ClipboardEvent) => any) | null;
|
|
485
|
+
onpause?: ((this: T, ev: Event) => any) | null;
|
|
486
|
+
onplay?: ((this: T, ev: Event) => any) | null;
|
|
487
|
+
onplaying?: ((this: T, ev: Event) => any) | null;
|
|
488
|
+
onpointercancel?: ((this: T, ev: PointerEvent) => any) | null;
|
|
489
|
+
onpointerdown?: ((this: T, ev: PointerEvent) => any) | null;
|
|
490
|
+
onpointerenter?: ((this: T, ev: PointerEvent) => any) | null;
|
|
491
|
+
onpointerleave?: ((this: T, ev: PointerEvent) => any) | null;
|
|
492
|
+
onpointermove?: ((this: T, ev: PointerEvent) => any) | null;
|
|
493
|
+
onpointerout?: ((this: T, ev: PointerEvent) => any) | null;
|
|
494
|
+
onpointerover?: ((this: T, ev: PointerEvent) => any) | null;
|
|
495
|
+
onpointerup?: ((this: T, ev: PointerEvent) => any) | null;
|
|
496
|
+
onprogress?: ((this: T, ev: ProgressEvent) => any) | null;
|
|
497
|
+
onratechange?: ((this: T, ev: Event) => any) | null;
|
|
498
|
+
onreset?: ((this: T, ev: Event) => any) | null;
|
|
499
|
+
onresize?: ((this: T, ev: UIEvent) => any) | null;
|
|
500
|
+
onscroll?: ((this: T, ev: Event) => any) | null;
|
|
501
|
+
onseeked?: ((this: T, ev: Event) => any) | null;
|
|
502
|
+
onseeking?: ((this: T, ev: Event) => any) | null;
|
|
503
|
+
onselect?: ((this: T, ev: Event) => any) | null;
|
|
504
|
+
onselectionchange?: ((this: T, ev: Event) => any) | null;
|
|
505
|
+
onselectstart?: ((this: T, ev: Event) => any) | null;
|
|
506
|
+
onstalled?: ((this: T, ev: Event) => any) | null;
|
|
507
|
+
onsubmit?: ((this: T, ev: SubmitEvent) => any) | null;
|
|
508
|
+
onsuspend?: ((this: T, ev: Event) => any) | null;
|
|
509
|
+
ontimeupdate?: ((this: T, ev: Event) => any) | null;
|
|
510
|
+
ontoggle?: ((this: T, ev: Event) => any) | null;
|
|
511
|
+
ontouchcancel?: ((this: T, ev: TouchEvent) => any) | null | undefined;
|
|
512
|
+
ontouchend?: ((this: T, ev: TouchEvent) => any) | null | undefined;
|
|
513
|
+
ontouchmove?: ((this: T, ev: TouchEvent) => any) | null | undefined;
|
|
514
|
+
ontouchstart?: ((this: T, ev: TouchEvent) => any) | null | undefined;
|
|
515
|
+
ontransitioncancel?: ((this: T, ev: TransitionEvent) => any) | null;
|
|
516
|
+
ontransitionend?: ((this: T, ev: TransitionEvent) => any) | null;
|
|
517
|
+
ontransitionrun?: ((this: T, ev: TransitionEvent) => any) | null;
|
|
518
|
+
ontransitionstart?: ((this: T, ev: TransitionEvent) => any) | null;
|
|
519
|
+
onvolumechange?: ((this: T, ev: Event) => any) | null;
|
|
520
|
+
onwaiting?: ((this: T, ev: Event) => any) | null;
|
|
521
|
+
onwheel?: ((this: T, ev: WheelEvent) => any) | null;
|
|
522
|
+
}
|
|
523
|
+
interface TagProps<T extends Element> extends TagEventsProps<T> {
|
|
524
|
+
autofocus?: boolean;
|
|
525
|
+
className?: string;
|
|
526
|
+
nonce?: string | undefined;
|
|
527
|
+
tabIndex?: number;
|
|
528
|
+
accessKey?: string;
|
|
529
|
+
autocapitalize?: string;
|
|
530
|
+
dir?: string;
|
|
531
|
+
draggable?: boolean;
|
|
532
|
+
hidden?: boolean;
|
|
533
|
+
innerText?: string;
|
|
534
|
+
lang?: string;
|
|
535
|
+
outerText?: string;
|
|
536
|
+
spellcheck?: boolean;
|
|
537
|
+
title?: string;
|
|
538
|
+
translate?: boolean;
|
|
539
|
+
}
|
|
540
|
+
interface AnchorProps extends TagProps<HTMLAnchorElement> {
|
|
541
|
+
download: string;
|
|
542
|
+
hreflang: string;
|
|
543
|
+
ping: string;
|
|
544
|
+
referrerPolicy: string;
|
|
545
|
+
rel: string;
|
|
546
|
+
target: string;
|
|
547
|
+
text: string;
|
|
548
|
+
type: string;
|
|
549
|
+
}
|
|
550
|
+
interface AreaProps extends TagProps<HTMLAreaElement> {
|
|
551
|
+
alt: string;
|
|
552
|
+
coords: string;
|
|
553
|
+
download: string;
|
|
554
|
+
ping: string;
|
|
555
|
+
referrerPolicy: string;
|
|
556
|
+
rel: string;
|
|
557
|
+
shape: string;
|
|
558
|
+
target: string;
|
|
559
|
+
}
|
|
560
|
+
interface MediaProps<T extends HTMLMediaElement> extends TagProps<T> {
|
|
561
|
+
autoplay?: boolean;
|
|
562
|
+
controls?: boolean;
|
|
563
|
+
crossOrigin?: string | null;
|
|
564
|
+
currentTime?: number;
|
|
565
|
+
defaultMuted?: boolean;
|
|
566
|
+
defaultPlaybackRate?: number;
|
|
567
|
+
disableRemotePlayback?: boolean;
|
|
568
|
+
loop?: boolean;
|
|
569
|
+
muted?: boolean;
|
|
570
|
+
onencrypted?: ((this: T, ev: MediaEncryptedEvent) => any) | null;
|
|
571
|
+
onwaitingforkey?: ((this: T, ev: Event) => any) | null;
|
|
572
|
+
playbackRate?: number;
|
|
573
|
+
preload?: "none" | "metadata" | "auto" | "";
|
|
574
|
+
src?: string;
|
|
575
|
+
srcObject?: MediaProvider | null;
|
|
576
|
+
volume?: number;
|
|
577
|
+
}
|
|
578
|
+
interface BaseProps extends TagProps<HTMLBaseElement> {
|
|
579
|
+
href: string;
|
|
580
|
+
target: string;
|
|
581
|
+
}
|
|
582
|
+
interface QuoteProps extends TagProps<HTMLQuoteElement> {
|
|
583
|
+
cite: string;
|
|
584
|
+
}
|
|
585
|
+
interface ButtonProps extends TagProps<HTMLButtonElement> {
|
|
586
|
+
disabled: boolean;
|
|
587
|
+
formAction: string;
|
|
588
|
+
formEnctype: string;
|
|
589
|
+
formMethod: string;
|
|
590
|
+
formNoValidate: boolean;
|
|
591
|
+
formTarget: string;
|
|
592
|
+
name: string;
|
|
593
|
+
type: string;
|
|
594
|
+
value: string;
|
|
595
|
+
}
|
|
596
|
+
interface CanvasProps extends TagProps<HTMLCanvasElement> {
|
|
597
|
+
height: number;
|
|
598
|
+
width: number;
|
|
599
|
+
}
|
|
600
|
+
interface TableColProps extends TagProps<HTMLTableColElement> {
|
|
601
|
+
span: number;
|
|
602
|
+
}
|
|
603
|
+
interface DataProps extends TagProps<HTMLDataElement> {
|
|
604
|
+
value: string;
|
|
605
|
+
}
|
|
606
|
+
interface ModProps<T extends HTMLModElement> extends TagProps<T> {
|
|
607
|
+
cite: string;
|
|
608
|
+
dateTime: string;
|
|
609
|
+
}
|
|
610
|
+
interface DetailsProps extends TagProps<HTMLDetailsElement> {
|
|
611
|
+
open: boolean;
|
|
612
|
+
}
|
|
613
|
+
interface EmbedProps extends TagProps<HTMLEmbedElement> {
|
|
614
|
+
height: string;
|
|
615
|
+
src: string;
|
|
616
|
+
type: string;
|
|
617
|
+
width: string;
|
|
618
|
+
}
|
|
619
|
+
interface FieldSetProps extends TagProps<HTMLFieldSetElement> {
|
|
620
|
+
disabled: boolean;
|
|
621
|
+
name: string;
|
|
622
|
+
}
|
|
623
|
+
interface FormProps extends TagProps<HTMLFormElement> {
|
|
624
|
+
acceptCharset: string;
|
|
625
|
+
action: string;
|
|
626
|
+
autocomplete: string;
|
|
627
|
+
encoding: string;
|
|
628
|
+
enctype: string;
|
|
629
|
+
method: string;
|
|
630
|
+
name: string;
|
|
631
|
+
noValidate: boolean;
|
|
632
|
+
target: string;
|
|
633
|
+
}
|
|
634
|
+
interface IFrameProps extends TagProps<HTMLIFrameElement> {
|
|
635
|
+
allow: string;
|
|
636
|
+
allowFullscreen: boolean;
|
|
637
|
+
height: string;
|
|
638
|
+
name: string;
|
|
639
|
+
referrerPolicy: ReferrerPolicy;
|
|
640
|
+
src: string;
|
|
641
|
+
srcdoc: string;
|
|
642
|
+
width: string;
|
|
643
|
+
}
|
|
644
|
+
interface ImageProps extends TagProps<HTMLImageElement> {
|
|
645
|
+
alt: string;
|
|
646
|
+
crossOrigin: string | null;
|
|
647
|
+
decoding: "async" | "sync" | "auto";
|
|
648
|
+
height: number;
|
|
649
|
+
isMap: boolean;
|
|
650
|
+
loading: string;
|
|
651
|
+
referrerPolicy: string;
|
|
652
|
+
sizes: string;
|
|
653
|
+
src: string;
|
|
654
|
+
srcset: string;
|
|
655
|
+
useMap: string;
|
|
656
|
+
width: number;
|
|
657
|
+
}
|
|
658
|
+
interface InputProps extends TagProps<HTMLInputElement> {
|
|
659
|
+
accept: string;
|
|
660
|
+
alt: string;
|
|
661
|
+
autocomplete: string;
|
|
662
|
+
capture: string;
|
|
663
|
+
checked: boolean;
|
|
664
|
+
defaultChecked: boolean;
|
|
665
|
+
defaultValue: string;
|
|
666
|
+
dirName: string;
|
|
667
|
+
disabled: boolean;
|
|
668
|
+
files: FileList | null;
|
|
669
|
+
formAction: string;
|
|
670
|
+
formEnctype: string;
|
|
671
|
+
formMethod: string;
|
|
672
|
+
formNoValidate: boolean;
|
|
673
|
+
formTarget: string;
|
|
674
|
+
height: number;
|
|
675
|
+
indeterminate: boolean;
|
|
676
|
+
max: string;
|
|
677
|
+
maxLength: number;
|
|
678
|
+
min: string;
|
|
679
|
+
minLength: number;
|
|
680
|
+
multiple: boolean;
|
|
681
|
+
name: string;
|
|
682
|
+
pattern: string;
|
|
683
|
+
placeholder: string;
|
|
684
|
+
readOnly: boolean;
|
|
685
|
+
required: boolean;
|
|
686
|
+
selectionDirection: "forward" | "backward" | "none" | null;
|
|
687
|
+
selectionEnd: number | null;
|
|
688
|
+
selectionStart: number | null;
|
|
689
|
+
size: number;
|
|
690
|
+
src: string;
|
|
691
|
+
step: string;
|
|
692
|
+
type: string;
|
|
693
|
+
value: string;
|
|
694
|
+
valueAsDate: Date | null;
|
|
695
|
+
valueAsNumber: number;
|
|
696
|
+
webkitdirectory: boolean;
|
|
697
|
+
width: number;
|
|
698
|
+
}
|
|
699
|
+
interface LabelProps extends TagProps<HTMLLabelElement> {
|
|
700
|
+
htmlFor: string;
|
|
701
|
+
}
|
|
702
|
+
interface LiProps extends TagProps<HTMLLIElement> {
|
|
703
|
+
value: number;
|
|
704
|
+
}
|
|
705
|
+
interface LinkProps extends TagProps<HTMLLinkElement> {
|
|
706
|
+
as: string;
|
|
707
|
+
crossOrigin: string | null;
|
|
708
|
+
disabled: boolean;
|
|
709
|
+
href: string;
|
|
710
|
+
hreflang: string;
|
|
711
|
+
imageSizes: string;
|
|
712
|
+
imageSrcset: string;
|
|
713
|
+
integrity: string;
|
|
714
|
+
media: string;
|
|
715
|
+
referrerPolicy: string;
|
|
716
|
+
rel: string;
|
|
717
|
+
type: string;
|
|
718
|
+
}
|
|
719
|
+
interface MapProps extends TagProps<HTMLMapElement> {
|
|
720
|
+
name: string;
|
|
721
|
+
}
|
|
722
|
+
interface MeterProps extends TagProps<HTMLMeterElement> {
|
|
723
|
+
high: number;
|
|
724
|
+
low: number;
|
|
725
|
+
max: number;
|
|
726
|
+
min: number;
|
|
727
|
+
optimum: number;
|
|
728
|
+
value: number;
|
|
729
|
+
}
|
|
730
|
+
interface ObjectProps extends TagProps<HTMLObjectElement> {
|
|
731
|
+
data: string;
|
|
732
|
+
height: string;
|
|
733
|
+
name: string;
|
|
734
|
+
type: string;
|
|
735
|
+
useMap: string;
|
|
736
|
+
width: string;
|
|
737
|
+
}
|
|
738
|
+
interface OListProps extends TagProps<HTMLOListElement> {
|
|
739
|
+
reversed: boolean;
|
|
740
|
+
start: number;
|
|
741
|
+
type: string;
|
|
742
|
+
}
|
|
743
|
+
interface OptGroupProps extends TagProps<HTMLOptGroupElement> {
|
|
744
|
+
disabled: boolean;
|
|
745
|
+
label: string;
|
|
746
|
+
}
|
|
747
|
+
interface OptionProps extends TagProps<HTMLOptionElement> {
|
|
748
|
+
defaultSelected: boolean;
|
|
749
|
+
disabled: boolean;
|
|
750
|
+
label: string;
|
|
751
|
+
selected: boolean;
|
|
752
|
+
text: string;
|
|
753
|
+
value: string;
|
|
754
|
+
}
|
|
755
|
+
interface OutputProps extends TagProps<HTMLOutputElement> {
|
|
756
|
+
defaultValue: string;
|
|
757
|
+
name: string;
|
|
758
|
+
value: string;
|
|
759
|
+
}
|
|
760
|
+
interface ProgressProps extends TagProps<HTMLProgressElement> {
|
|
761
|
+
max: number;
|
|
762
|
+
value: number;
|
|
763
|
+
}
|
|
764
|
+
interface ScriptProps extends TagProps<HTMLScriptElement> {
|
|
765
|
+
async: boolean;
|
|
766
|
+
crossOrigin: string | null;
|
|
767
|
+
defer: boolean;
|
|
768
|
+
integrity: string;
|
|
769
|
+
noModule: boolean;
|
|
770
|
+
referrerPolicy: string;
|
|
771
|
+
src: string;
|
|
772
|
+
text: string;
|
|
773
|
+
type: string;
|
|
774
|
+
}
|
|
775
|
+
interface SelectProps extends TagProps<HTMLSelectElement> {
|
|
776
|
+
autocomplete: string;
|
|
777
|
+
disabled: boolean;
|
|
778
|
+
length: number;
|
|
779
|
+
multiple: boolean;
|
|
780
|
+
name: string;
|
|
781
|
+
required: boolean;
|
|
782
|
+
selectedIndex: number;
|
|
783
|
+
size: number;
|
|
784
|
+
value: string;
|
|
785
|
+
}
|
|
786
|
+
interface SlotProps extends TagProps<HTMLSlotElement> {
|
|
787
|
+
name: string;
|
|
788
|
+
}
|
|
789
|
+
interface SourceProps extends TagProps<HTMLSourceElement> {
|
|
790
|
+
media: string;
|
|
791
|
+
sizes: string;
|
|
792
|
+
src: string;
|
|
793
|
+
srcset: string;
|
|
794
|
+
type: string;
|
|
795
|
+
}
|
|
796
|
+
interface StyleProps extends TagProps<HTMLStyleElement> {
|
|
797
|
+
media: string;
|
|
798
|
+
}
|
|
799
|
+
interface TableProps extends TagProps<HTMLTableElement> {
|
|
800
|
+
caption: HTMLTableCaptionElement | null;
|
|
801
|
+
tFoot: HTMLTableSectionElement | null;
|
|
802
|
+
tHead: HTMLTableSectionElement | null;
|
|
803
|
+
}
|
|
804
|
+
interface TableCellProps extends TagProps<HTMLTableCellElement> {
|
|
805
|
+
abbr: string;
|
|
806
|
+
colSpan: number;
|
|
807
|
+
headers: string;
|
|
808
|
+
rowSpan: number;
|
|
809
|
+
scope: string;
|
|
810
|
+
}
|
|
811
|
+
interface TextAreaProps extends TagProps<HTMLTextAreaElement> {
|
|
812
|
+
autocomplete: string;
|
|
813
|
+
cols: number;
|
|
814
|
+
defaultValue: string;
|
|
815
|
+
dirName: string;
|
|
816
|
+
disabled: boolean;
|
|
817
|
+
maxLength: number;
|
|
818
|
+
minLength: number;
|
|
819
|
+
name: string;
|
|
820
|
+
placeholder: string;
|
|
821
|
+
readOnly: boolean;
|
|
822
|
+
required: boolean;
|
|
823
|
+
rows: number;
|
|
824
|
+
selectionDirection: "forward" | "backward" | "none";
|
|
825
|
+
selectionEnd: number;
|
|
826
|
+
selectionStart: number;
|
|
827
|
+
value: string;
|
|
828
|
+
wrap: string;
|
|
829
|
+
}
|
|
830
|
+
interface TimeProps extends TagProps<HTMLTimeElement> {
|
|
831
|
+
dateTime: string;
|
|
832
|
+
}
|
|
833
|
+
interface TitleProps extends TagProps<HTMLTitleElement> {
|
|
834
|
+
text: string;
|
|
835
|
+
}
|
|
836
|
+
interface TrackProps extends TagProps<HTMLTrackElement> {
|
|
837
|
+
default: boolean;
|
|
838
|
+
kind: string;
|
|
839
|
+
label: string;
|
|
840
|
+
src: string;
|
|
841
|
+
srclang: string;
|
|
842
|
+
}
|
|
843
|
+
interface VideoProps extends MediaProps<HTMLVideoElement> {
|
|
844
|
+
disablePictureInPicture?: boolean;
|
|
845
|
+
height?: number;
|
|
846
|
+
onenterpictureinpicture?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
847
|
+
onleavepictureinpicture?: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
848
|
+
playsInline?: boolean;
|
|
849
|
+
poster?: string;
|
|
850
|
+
width?: number;
|
|
851
|
+
}
|
|
852
|
+
export {};
|