ilha 0.14.2 → 0.14.4
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/README.md +3 -1
- package/dist/define.d.ts +2 -2
- package/dist/define.js +4 -4
- package/dist/index.d.ts +18 -13
- package/dist/index.js +34 -34
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/jsx-dev-runtime.js +1 -1
- package/dist/jsx-runtime.d.ts +5 -5
- package/dist/jsx-runtime.js +1 -1
- package/dist/mount-hD-OyLIo.js +1519 -0
- package/dist/types-DQVTD0ts.d.ts +41 -0
- package/dist/vnode-DHBqDHtZ.d.ts +585 -0
- package/dist/vnode-DP76Gn-b.js +89 -0
- package/package.json +3 -2
- package/dist/mount-CCMOkDSb.js +0 -1661
- package/dist/types-Cie0Ihl6.d.ts +0 -32
- package/dist/vnode-DHN2EFHi.js +0 -37
- package/dist/vnode-DyFwtMVw.d.ts +0 -20
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import "effect/Scope";
|
|
2
|
+
import { AtomRegistry } from "effect/unstable/reactivity/AtomRegistry";
|
|
3
|
+
import { Effect, Stream } from "effect";
|
|
4
|
+
import { Atom } from "effect/unstable/reactivity";
|
|
5
|
+
//#region src/types.d.ts
|
|
6
|
+
type JsonText = string | number | bigint | boolean | null | undefined;
|
|
7
|
+
/** Runtime prop bag values painted onto elements / passed to components. */
|
|
8
|
+
type PropValue = JsonText | PropBag | StyleObject | EventHandler | AtomHandle<JsonText> | readonly PropValue[];
|
|
9
|
+
type StyleObject = Readonly<Record<string, string | number | null | undefined>>;
|
|
10
|
+
type EventHandler = (event: Event) => void;
|
|
11
|
+
/** Indexed bag — interface so PropValue can recurse without a circular type alias. */
|
|
12
|
+
interface PropBag {
|
|
13
|
+
readonly [key: string]: PropValue | undefined;
|
|
14
|
+
}
|
|
15
|
+
type View = VNode | JsonText | AtomHandle<unknown> | Stream.Stream<View, unknown, unknown> | GeneratorFn | Component | View[] | Iterable<View>;
|
|
16
|
+
declare const Fragment: unique symbol;
|
|
17
|
+
type Fragment = typeof Fragment;
|
|
18
|
+
type ComponentFn = (props: PropBag) => View | Promise<View | undefined> | undefined;
|
|
19
|
+
interface VNode {
|
|
20
|
+
readonly $$ilha: 1;
|
|
21
|
+
readonly type: string | Fragment | ComponentFn;
|
|
22
|
+
readonly props: PropBag;
|
|
23
|
+
readonly children: View[];
|
|
24
|
+
readonly key?: string | number;
|
|
25
|
+
}
|
|
26
|
+
type GeneratorFn = () => Generator<Yielded, View | undefined, View>;
|
|
27
|
+
type Yielded = View | Instruction<unknown> | Effect.Effect<unknown, unknown, unknown>;
|
|
28
|
+
interface Instruction<A, E = Error> extends Iterable<Instruction<A, E>, A>, PromiseLike<A> {
|
|
29
|
+
readonly $$ilhaOp: 1;
|
|
30
|
+
readonly effect: Effect.Effect<A, E, AtomRegistry>;
|
|
31
|
+
}
|
|
32
|
+
type Component = (() => View | undefined | Promise<View | undefined>) | GeneratorFn;
|
|
33
|
+
interface AtomHandle<A> {
|
|
34
|
+
readonly $$atom: 1;
|
|
35
|
+
readonly atom: Atom.Atom<A>;
|
|
36
|
+
(): A;
|
|
37
|
+
set: (next: A) => void;
|
|
38
|
+
update: (f: (current: A) => A) => void;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Instruction as a, View as c, Fragment as i, Yielded as l, Component as n, PropBag as o, ComponentFn as r, VNode as s, AtomHandle as t };
|
|
@@ -0,0 +1,585 @@
|
|
|
1
|
+
import { c as View, i as Fragment, o as PropBag, r as ComponentFn, s as VNode, t as AtomHandle } from "./types-DQVTD0ts.js";
|
|
2
|
+
//#region src/jsx-types.d.ts
|
|
3
|
+
declare namespace JSX {
|
|
4
|
+
export type Element = View;
|
|
5
|
+
export type ElementType = string | ((props: PropBag) => View | Promise<View | undefined> | Generator<View, View | undefined, View>);
|
|
6
|
+
export interface ElementChildrenAttribute {
|
|
7
|
+
children: View;
|
|
8
|
+
}
|
|
9
|
+
/** Scalar attribute value (booleans become presence/absence). */
|
|
10
|
+
type Attr = string | number | boolean | null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Values that can bind through `value` / `checked` / `selected`.
|
|
13
|
+
* AtomHandle is invariant in T (via `set`), so constituents of a union T
|
|
14
|
+
* are listed explicitly — e.g. AtomHandle of string for value={string|number}.
|
|
15
|
+
*/
|
|
16
|
+
type Bindable<T> = T | AtomHandle<T> | (string extends T ? AtomHandle<string> : never) | (number extends T ? AtomHandle<number> : never) | (boolean extends T ? AtomHandle<boolean> : never);
|
|
17
|
+
type StyleValue = string | Readonly<Record<string, string | number | null | undefined>> | null | undefined;
|
|
18
|
+
type Targeted<Target extends globalThis.EventTarget, E extends globalThis.Event> = Omit<E, "currentTarget"> & {
|
|
19
|
+
readonly currentTarget: Target;
|
|
20
|
+
};
|
|
21
|
+
type Handler<Target extends globalThis.EventTarget, E extends globalThis.Event> = {
|
|
22
|
+
bivarianceHack: (event: Targeted<Target, E>) => void;
|
|
23
|
+
}["bivarianceHack"];
|
|
24
|
+
/** Lowercase DOM event props Ilha binds at runtime. */
|
|
25
|
+
interface EventProps<Target extends globalThis.EventTarget> {
|
|
26
|
+
onclick?: Handler<Target, globalThis.MouseEvent>;
|
|
27
|
+
ondblclick?: Handler<Target, globalThis.MouseEvent>;
|
|
28
|
+
onmousedown?: Handler<Target, globalThis.MouseEvent>;
|
|
29
|
+
onmouseup?: Handler<Target, globalThis.MouseEvent>;
|
|
30
|
+
onmouseenter?: Handler<Target, globalThis.MouseEvent>;
|
|
31
|
+
onmouseleave?: Handler<Target, globalThis.MouseEvent>;
|
|
32
|
+
onmousemove?: Handler<Target, globalThis.MouseEvent>;
|
|
33
|
+
onmouseover?: Handler<Target, globalThis.MouseEvent>;
|
|
34
|
+
onmouseout?: Handler<Target, globalThis.MouseEvent>;
|
|
35
|
+
oncontextmenu?: Handler<Target, globalThis.MouseEvent>;
|
|
36
|
+
onpointerdown?: Handler<Target, globalThis.PointerEvent>;
|
|
37
|
+
onpointerup?: Handler<Target, globalThis.PointerEvent>;
|
|
38
|
+
onpointermove?: Handler<Target, globalThis.PointerEvent>;
|
|
39
|
+
onpointerenter?: Handler<Target, globalThis.PointerEvent>;
|
|
40
|
+
onpointerleave?: Handler<Target, globalThis.PointerEvent>;
|
|
41
|
+
onpointercancel?: Handler<Target, globalThis.PointerEvent>;
|
|
42
|
+
ontouchstart?: Handler<Target, globalThis.TouchEvent>;
|
|
43
|
+
ontouchend?: Handler<Target, globalThis.TouchEvent>;
|
|
44
|
+
ontouchmove?: Handler<Target, globalThis.TouchEvent>;
|
|
45
|
+
ontouchcancel?: Handler<Target, globalThis.TouchEvent>;
|
|
46
|
+
onkeydown?: Handler<Target, globalThis.KeyboardEvent>;
|
|
47
|
+
onkeyup?: Handler<Target, globalThis.KeyboardEvent>;
|
|
48
|
+
onkeypress?: Handler<Target, globalThis.KeyboardEvent>;
|
|
49
|
+
onfocus?: Handler<Target, globalThis.FocusEvent>;
|
|
50
|
+
onblur?: Handler<Target, globalThis.FocusEvent>;
|
|
51
|
+
onfocusin?: Handler<Target, globalThis.FocusEvent>;
|
|
52
|
+
onfocusout?: Handler<Target, globalThis.FocusEvent>;
|
|
53
|
+
oninput?: Handler<Target, globalThis.Event>;
|
|
54
|
+
onchange?: Handler<Target, globalThis.Event>;
|
|
55
|
+
onsubmit?: Handler<Target, globalThis.SubmitEvent>;
|
|
56
|
+
onreset?: Handler<Target, globalThis.Event>;
|
|
57
|
+
oninvalid?: Handler<Target, globalThis.Event>;
|
|
58
|
+
onscroll?: Handler<Target, globalThis.Event>;
|
|
59
|
+
onwheel?: Handler<Target, globalThis.WheelEvent>;
|
|
60
|
+
oncopy?: Handler<Target, globalThis.ClipboardEvent>;
|
|
61
|
+
oncut?: Handler<Target, globalThis.ClipboardEvent>;
|
|
62
|
+
onpaste?: Handler<Target, globalThis.ClipboardEvent>;
|
|
63
|
+
ondrag?: Handler<Target, globalThis.DragEvent>;
|
|
64
|
+
ondragend?: Handler<Target, globalThis.DragEvent>;
|
|
65
|
+
ondragenter?: Handler<Target, globalThis.DragEvent>;
|
|
66
|
+
ondragleave?: Handler<Target, globalThis.DragEvent>;
|
|
67
|
+
ondragover?: Handler<Target, globalThis.DragEvent>;
|
|
68
|
+
ondragstart?: Handler<Target, globalThis.DragEvent>;
|
|
69
|
+
ondrop?: Handler<Target, globalThis.DragEvent>;
|
|
70
|
+
onanimationstart?: Handler<Target, globalThis.AnimationEvent>;
|
|
71
|
+
onanimationend?: Handler<Target, globalThis.AnimationEvent>;
|
|
72
|
+
onanimationiteration?: Handler<Target, globalThis.AnimationEvent>;
|
|
73
|
+
ontransitionend?: Handler<Target, globalThis.TransitionEvent>;
|
|
74
|
+
onload?: Handler<Target, globalThis.Event>;
|
|
75
|
+
onerror?: Handler<Target, globalThis.Event>;
|
|
76
|
+
}
|
|
77
|
+
type AriaProps = Partial<Record<`aria-${string}`, Attr>>;
|
|
78
|
+
type DataProps = Partial<Record<`data-${string}`, Attr>>;
|
|
79
|
+
/** Shared HTML attributes. Prefer `class` / `for`; `className` / `htmlFor` also work. */
|
|
80
|
+
type HTMLAttributes<Target extends globalThis.EventTarget = globalThis.HTMLElement> = EventProps<Target> & AriaProps & DataProps & {
|
|
81
|
+
children?: View;
|
|
82
|
+
key?: string | number;
|
|
83
|
+
ref?: (el: (Target & globalThis.Element) | null) => void;
|
|
84
|
+
class?: Attr;
|
|
85
|
+
className?: Attr;
|
|
86
|
+
id?: Attr;
|
|
87
|
+
style?: StyleValue;
|
|
88
|
+
title?: Attr;
|
|
89
|
+
lang?: Attr;
|
|
90
|
+
dir?: Attr;
|
|
91
|
+
hidden?: Attr;
|
|
92
|
+
tabindex?: number | string | null | undefined;
|
|
93
|
+
role?: Attr;
|
|
94
|
+
slot?: Attr;
|
|
95
|
+
part?: Attr;
|
|
96
|
+
accesskey?: Attr;
|
|
97
|
+
contenteditable?: Attr;
|
|
98
|
+
draggable?: Attr;
|
|
99
|
+
spellcheck?: Attr;
|
|
100
|
+
translate?: Attr;
|
|
101
|
+
inert?: Attr;
|
|
102
|
+
popover?: Attr;
|
|
103
|
+
autofocus?: Attr;
|
|
104
|
+
};
|
|
105
|
+
type AnchorHTMLAttributes = HTMLAttributes<HTMLAnchorElement> & {
|
|
106
|
+
href?: Attr;
|
|
107
|
+
target?: Attr;
|
|
108
|
+
rel?: Attr;
|
|
109
|
+
download?: Attr;
|
|
110
|
+
hreflang?: Attr;
|
|
111
|
+
ping?: Attr;
|
|
112
|
+
referrerpolicy?: Attr;
|
|
113
|
+
type?: Attr;
|
|
114
|
+
};
|
|
115
|
+
type AreaHTMLAttributes = HTMLAttributes<HTMLAreaElement> & {
|
|
116
|
+
alt?: Attr;
|
|
117
|
+
coords?: Attr;
|
|
118
|
+
href?: Attr;
|
|
119
|
+
hreflang?: Attr;
|
|
120
|
+
shape?: Attr;
|
|
121
|
+
target?: Attr;
|
|
122
|
+
download?: Attr;
|
|
123
|
+
rel?: Attr;
|
|
124
|
+
referrerpolicy?: Attr;
|
|
125
|
+
};
|
|
126
|
+
type BaseHTMLAttributes = HTMLAttributes<HTMLBaseElement> & {
|
|
127
|
+
href?: Attr;
|
|
128
|
+
target?: Attr;
|
|
129
|
+
};
|
|
130
|
+
type BodyHTMLAttributes = HTMLAttributes<HTMLBodyElement>;
|
|
131
|
+
type ButtonHTMLAttributes = HTMLAttributes<HTMLButtonElement> & {
|
|
132
|
+
type?: "button" | "submit" | "reset" | string;
|
|
133
|
+
value?: Bindable<string | number>;
|
|
134
|
+
name?: Attr;
|
|
135
|
+
disabled?: Attr;
|
|
136
|
+
form?: Attr;
|
|
137
|
+
formaction?: Attr;
|
|
138
|
+
formenctype?: Attr;
|
|
139
|
+
formmethod?: Attr;
|
|
140
|
+
formnovalidate?: Attr;
|
|
141
|
+
formtarget?: Attr;
|
|
142
|
+
};
|
|
143
|
+
type CanvasHTMLAttributes = HTMLAttributes<HTMLCanvasElement> & {
|
|
144
|
+
width?: number | string;
|
|
145
|
+
height?: number | string;
|
|
146
|
+
};
|
|
147
|
+
type DetailsHTMLAttributes = HTMLAttributes<HTMLDetailsElement> & {
|
|
148
|
+
open?: Attr;
|
|
149
|
+
};
|
|
150
|
+
type DialogHTMLAttributes = HTMLAttributes<HTMLDialogElement> & {
|
|
151
|
+
open?: Attr;
|
|
152
|
+
};
|
|
153
|
+
type EmbedHTMLAttributes = HTMLAttributes<HTMLEmbedElement> & {
|
|
154
|
+
src?: Attr;
|
|
155
|
+
type?: Attr;
|
|
156
|
+
width?: number | string;
|
|
157
|
+
height?: number | string;
|
|
158
|
+
};
|
|
159
|
+
type FieldsetHTMLAttributes = HTMLAttributes<HTMLFieldSetElement> & {
|
|
160
|
+
disabled?: Attr;
|
|
161
|
+
form?: Attr;
|
|
162
|
+
name?: Attr;
|
|
163
|
+
};
|
|
164
|
+
type FormHTMLAttributes = HTMLAttributes<HTMLFormElement> & {
|
|
165
|
+
action?: Attr;
|
|
166
|
+
method?: Attr;
|
|
167
|
+
enctype?: Attr;
|
|
168
|
+
target?: Attr;
|
|
169
|
+
novalidate?: Attr;
|
|
170
|
+
autocomplete?: Attr;
|
|
171
|
+
name?: Attr;
|
|
172
|
+
rel?: Attr;
|
|
173
|
+
};
|
|
174
|
+
type HtmlHTMLAttributes = HTMLAttributes<HTMLHtmlElement> & {
|
|
175
|
+
xmlns?: Attr;
|
|
176
|
+
};
|
|
177
|
+
type IframeHTMLAttributes = HTMLAttributes<HTMLIFrameElement> & {
|
|
178
|
+
src?: Attr;
|
|
179
|
+
srcdoc?: Attr;
|
|
180
|
+
name?: Attr;
|
|
181
|
+
width?: number | string;
|
|
182
|
+
height?: number | string;
|
|
183
|
+
allow?: Attr;
|
|
184
|
+
allowfullscreen?: Attr;
|
|
185
|
+
loading?: "eager" | "lazy" | string;
|
|
186
|
+
referrerpolicy?: Attr;
|
|
187
|
+
sandbox?: Attr;
|
|
188
|
+
};
|
|
189
|
+
type ImgHTMLAttributes = HTMLAttributes<HTMLImageElement> & {
|
|
190
|
+
alt?: Attr;
|
|
191
|
+
src?: Attr;
|
|
192
|
+
srcset?: Attr;
|
|
193
|
+
sizes?: Attr;
|
|
194
|
+
width?: number | string;
|
|
195
|
+
height?: number | string;
|
|
196
|
+
loading?: "eager" | "lazy" | string;
|
|
197
|
+
decoding?: "async" | "auto" | "sync" | string;
|
|
198
|
+
crossorigin?: Attr;
|
|
199
|
+
referrerpolicy?: Attr;
|
|
200
|
+
usemap?: Attr;
|
|
201
|
+
};
|
|
202
|
+
type InputHTMLAttributes = HTMLAttributes<HTMLInputElement> & {
|
|
203
|
+
type?: string;
|
|
204
|
+
name?: Attr;
|
|
205
|
+
value?: Bindable<string | number>;
|
|
206
|
+
checked?: Bindable<boolean>;
|
|
207
|
+
defaultValue?: string | number;
|
|
208
|
+
defaultChecked?: boolean;
|
|
209
|
+
placeholder?: Attr;
|
|
210
|
+
required?: Attr;
|
|
211
|
+
disabled?: Attr;
|
|
212
|
+
readOnly?: Attr;
|
|
213
|
+
readonly?: Attr;
|
|
214
|
+
multiple?: Attr;
|
|
215
|
+
min?: number | string;
|
|
216
|
+
max?: number | string;
|
|
217
|
+
minlength?: number | string;
|
|
218
|
+
maxlength?: number | string;
|
|
219
|
+
step?: number | string;
|
|
220
|
+
pattern?: Attr;
|
|
221
|
+
list?: Attr;
|
|
222
|
+
size?: number | string;
|
|
223
|
+
accept?: Attr;
|
|
224
|
+
autocomplete?: Attr;
|
|
225
|
+
capture?: Attr;
|
|
226
|
+
form?: Attr;
|
|
227
|
+
formaction?: Attr;
|
|
228
|
+
formenctype?: Attr;
|
|
229
|
+
formmethod?: Attr;
|
|
230
|
+
formnovalidate?: Attr;
|
|
231
|
+
formtarget?: Attr;
|
|
232
|
+
};
|
|
233
|
+
type LabelHTMLAttributes = HTMLAttributes<HTMLLabelElement> & {
|
|
234
|
+
for?: Attr;
|
|
235
|
+
htmlFor?: Attr;
|
|
236
|
+
form?: Attr;
|
|
237
|
+
};
|
|
238
|
+
type LiHTMLAttributes = HTMLAttributes<HTMLLIElement> & {
|
|
239
|
+
value?: number | string;
|
|
240
|
+
};
|
|
241
|
+
type LinkHTMLAttributes = HTMLAttributes<HTMLLinkElement> & {
|
|
242
|
+
href?: Attr;
|
|
243
|
+
rel?: Attr;
|
|
244
|
+
type?: Attr;
|
|
245
|
+
as?: Attr;
|
|
246
|
+
media?: Attr;
|
|
247
|
+
sizes?: Attr;
|
|
248
|
+
crossorigin?: Attr;
|
|
249
|
+
integrity?: Attr;
|
|
250
|
+
referrerpolicy?: Attr;
|
|
251
|
+
imagesrcset?: Attr;
|
|
252
|
+
imagesizes?: Attr;
|
|
253
|
+
disabled?: Attr;
|
|
254
|
+
};
|
|
255
|
+
type MapHTMLAttributes = HTMLAttributes<HTMLMapElement> & {
|
|
256
|
+
name?: Attr;
|
|
257
|
+
};
|
|
258
|
+
type MetaHTMLAttributes = HTMLAttributes<HTMLMetaElement> & {
|
|
259
|
+
charset?: Attr;
|
|
260
|
+
content?: Attr;
|
|
261
|
+
httpEquiv?: Attr;
|
|
262
|
+
"http-equiv"?: Attr;
|
|
263
|
+
name?: Attr;
|
|
264
|
+
media?: Attr;
|
|
265
|
+
};
|
|
266
|
+
type MeterHTMLAttributes = HTMLAttributes<HTMLMeterElement> & {
|
|
267
|
+
value?: number | string;
|
|
268
|
+
min?: number | string;
|
|
269
|
+
max?: number | string;
|
|
270
|
+
low?: number | string;
|
|
271
|
+
high?: number | string;
|
|
272
|
+
optimum?: number | string;
|
|
273
|
+
};
|
|
274
|
+
type ObjectHTMLAttributes = HTMLAttributes<HTMLObjectElement> & {
|
|
275
|
+
data?: Attr;
|
|
276
|
+
type?: Attr;
|
|
277
|
+
name?: Attr;
|
|
278
|
+
width?: number | string;
|
|
279
|
+
height?: number | string;
|
|
280
|
+
form?: Attr;
|
|
281
|
+
};
|
|
282
|
+
type OlHTMLAttributes = HTMLAttributes<HTMLOListElement> & {
|
|
283
|
+
reversed?: Attr;
|
|
284
|
+
start?: number | string;
|
|
285
|
+
type?: Attr;
|
|
286
|
+
};
|
|
287
|
+
type OptgroupHTMLAttributes = HTMLAttributes<HTMLOptGroupElement> & {
|
|
288
|
+
disabled?: Attr;
|
|
289
|
+
label?: Attr;
|
|
290
|
+
};
|
|
291
|
+
type OptionHTMLAttributes = HTMLAttributes<HTMLOptionElement> & {
|
|
292
|
+
disabled?: Attr;
|
|
293
|
+
label?: Attr;
|
|
294
|
+
selected?: Bindable<boolean>;
|
|
295
|
+
value?: string | number;
|
|
296
|
+
};
|
|
297
|
+
type OutputHTMLAttributes = HTMLAttributes<HTMLOutputElement> & {
|
|
298
|
+
for?: Attr;
|
|
299
|
+
htmlFor?: Attr;
|
|
300
|
+
form?: Attr;
|
|
301
|
+
name?: Attr;
|
|
302
|
+
};
|
|
303
|
+
type ProgressHTMLAttributes = HTMLAttributes<HTMLProgressElement> & {
|
|
304
|
+
value?: number | string;
|
|
305
|
+
max?: number | string;
|
|
306
|
+
};
|
|
307
|
+
type QuoteHTMLAttributes = HTMLAttributes<HTMLQuoteElement> & {
|
|
308
|
+
cite?: Attr;
|
|
309
|
+
};
|
|
310
|
+
type ScriptHTMLAttributes = HTMLAttributes<HTMLScriptElement> & {
|
|
311
|
+
src?: Attr;
|
|
312
|
+
type?: Attr;
|
|
313
|
+
async?: Attr;
|
|
314
|
+
defer?: Attr;
|
|
315
|
+
crossorigin?: Attr;
|
|
316
|
+
integrity?: Attr;
|
|
317
|
+
nomodule?: Attr;
|
|
318
|
+
referrerpolicy?: Attr;
|
|
319
|
+
};
|
|
320
|
+
type SelectHTMLAttributes = HTMLAttributes<HTMLSelectElement> & {
|
|
321
|
+
name?: Attr;
|
|
322
|
+
value?: Bindable<string | number>;
|
|
323
|
+
required?: Attr;
|
|
324
|
+
disabled?: Attr;
|
|
325
|
+
multiple?: Attr;
|
|
326
|
+
size?: number | string;
|
|
327
|
+
autocomplete?: Attr;
|
|
328
|
+
form?: Attr;
|
|
329
|
+
};
|
|
330
|
+
type SourceHTMLAttributes = HTMLAttributes<HTMLSourceElement> & {
|
|
331
|
+
src?: Attr;
|
|
332
|
+
srcset?: Attr;
|
|
333
|
+
sizes?: Attr;
|
|
334
|
+
media?: Attr;
|
|
335
|
+
type?: Attr;
|
|
336
|
+
width?: number | string;
|
|
337
|
+
height?: number | string;
|
|
338
|
+
};
|
|
339
|
+
type StyleHTMLAttributes = HTMLAttributes<HTMLStyleElement> & {
|
|
340
|
+
media?: Attr;
|
|
341
|
+
type?: Attr;
|
|
342
|
+
blocked?: Attr;
|
|
343
|
+
};
|
|
344
|
+
type TableHTMLAttributes = HTMLAttributes<HTMLTableElement> & {
|
|
345
|
+
width?: number | string;
|
|
346
|
+
};
|
|
347
|
+
type TdHTMLAttributes = HTMLAttributes<HTMLTableCellElement> & {
|
|
348
|
+
colspan?: number | string;
|
|
349
|
+
rowspan?: number | string;
|
|
350
|
+
headers?: Attr;
|
|
351
|
+
};
|
|
352
|
+
type TextareaHTMLAttributes = HTMLAttributes<HTMLTextAreaElement> & {
|
|
353
|
+
name?: Attr;
|
|
354
|
+
value?: Bindable<string>;
|
|
355
|
+
placeholder?: Attr;
|
|
356
|
+
required?: Attr;
|
|
357
|
+
disabled?: Attr;
|
|
358
|
+
readOnly?: Attr;
|
|
359
|
+
readonly?: Attr;
|
|
360
|
+
rows?: number | string;
|
|
361
|
+
cols?: number | string;
|
|
362
|
+
maxlength?: number | string;
|
|
363
|
+
minlength?: number | string;
|
|
364
|
+
wrap?: Attr;
|
|
365
|
+
autocomplete?: Attr;
|
|
366
|
+
form?: Attr;
|
|
367
|
+
};
|
|
368
|
+
type ThHTMLAttributes = HTMLAttributes<HTMLTableCellElement> & {
|
|
369
|
+
colspan?: number | string;
|
|
370
|
+
rowspan?: number | string;
|
|
371
|
+
headers?: Attr;
|
|
372
|
+
scope?: Attr;
|
|
373
|
+
abbr?: Attr;
|
|
374
|
+
};
|
|
375
|
+
type TimeHTMLAttributes = HTMLAttributes<HTMLTimeElement> & {
|
|
376
|
+
datetime?: Attr;
|
|
377
|
+
};
|
|
378
|
+
type TrackHTMLAttributes = HTMLAttributes<HTMLTrackElement> & {
|
|
379
|
+
src?: Attr;
|
|
380
|
+
kind?: Attr;
|
|
381
|
+
label?: Attr;
|
|
382
|
+
srclang?: Attr;
|
|
383
|
+
default?: Attr;
|
|
384
|
+
};
|
|
385
|
+
type VideoHTMLAttributes = HTMLAttributes<HTMLVideoElement> & {
|
|
386
|
+
src?: Attr;
|
|
387
|
+
poster?: Attr;
|
|
388
|
+
width?: number | string;
|
|
389
|
+
height?: number | string;
|
|
390
|
+
autoplay?: Attr;
|
|
391
|
+
controls?: Attr;
|
|
392
|
+
loop?: Attr;
|
|
393
|
+
muted?: Attr;
|
|
394
|
+
playsinline?: Attr;
|
|
395
|
+
preload?: Attr;
|
|
396
|
+
crossorigin?: Attr;
|
|
397
|
+
};
|
|
398
|
+
type AudioHTMLAttributes = HTMLAttributes<HTMLAudioElement> & {
|
|
399
|
+
src?: Attr;
|
|
400
|
+
autoplay?: Attr;
|
|
401
|
+
controls?: Attr;
|
|
402
|
+
loop?: Attr;
|
|
403
|
+
muted?: Attr;
|
|
404
|
+
preload?: Attr;
|
|
405
|
+
crossorigin?: Attr;
|
|
406
|
+
};
|
|
407
|
+
type SVGAttributes = HTMLAttributes<SVGElement> & {
|
|
408
|
+
viewBox?: Attr;
|
|
409
|
+
xmlns?: Attr;
|
|
410
|
+
fill?: Attr;
|
|
411
|
+
stroke?: Attr;
|
|
412
|
+
width?: number | string;
|
|
413
|
+
height?: number | string;
|
|
414
|
+
d?: Attr;
|
|
415
|
+
cx?: number | string;
|
|
416
|
+
cy?: number | string;
|
|
417
|
+
r?: number | string;
|
|
418
|
+
x?: number | string;
|
|
419
|
+
y?: number | string;
|
|
420
|
+
x1?: number | string;
|
|
421
|
+
y1?: number | string;
|
|
422
|
+
x2?: number | string;
|
|
423
|
+
y2?: number | string;
|
|
424
|
+
points?: Attr;
|
|
425
|
+
transform?: Attr;
|
|
426
|
+
opacity?: number | string;
|
|
427
|
+
"stroke-width"?: number | string;
|
|
428
|
+
"stroke-linecap"?: Attr;
|
|
429
|
+
"stroke-linejoin"?: Attr;
|
|
430
|
+
"fill-rule"?: Attr;
|
|
431
|
+
"clip-rule"?: Attr;
|
|
432
|
+
};
|
|
433
|
+
export interface IntrinsicElements {
|
|
434
|
+
html: HtmlHTMLAttributes;
|
|
435
|
+
head: HTMLAttributes<HTMLHeadElement>;
|
|
436
|
+
body: BodyHTMLAttributes;
|
|
437
|
+
title: HTMLAttributes<HTMLTitleElement>;
|
|
438
|
+
meta: MetaHTMLAttributes;
|
|
439
|
+
link: LinkHTMLAttributes;
|
|
440
|
+
style: StyleHTMLAttributes;
|
|
441
|
+
script: ScriptHTMLAttributes;
|
|
442
|
+
noscript: HTMLAttributes<globalThis.HTMLElement>;
|
|
443
|
+
base: BaseHTMLAttributes;
|
|
444
|
+
div: HTMLAttributes<HTMLDivElement>;
|
|
445
|
+
span: HTMLAttributes<HTMLSpanElement>;
|
|
446
|
+
p: HTMLAttributes<HTMLParagraphElement>;
|
|
447
|
+
a: AnchorHTMLAttributes;
|
|
448
|
+
area: AreaHTMLAttributes;
|
|
449
|
+
article: HTMLAttributes<globalThis.HTMLElement>;
|
|
450
|
+
aside: HTMLAttributes<globalThis.HTMLElement>;
|
|
451
|
+
header: HTMLAttributes<globalThis.HTMLElement>;
|
|
452
|
+
footer: HTMLAttributes<globalThis.HTMLElement>;
|
|
453
|
+
main: HTMLAttributes<globalThis.HTMLElement>;
|
|
454
|
+
nav: HTMLAttributes<globalThis.HTMLElement>;
|
|
455
|
+
section: HTMLAttributes<globalThis.HTMLElement>;
|
|
456
|
+
address: HTMLAttributes<globalThis.HTMLElement>;
|
|
457
|
+
search: HTMLAttributes<globalThis.HTMLElement>;
|
|
458
|
+
h1: HTMLAttributes<HTMLHeadingElement>;
|
|
459
|
+
h2: HTMLAttributes<HTMLHeadingElement>;
|
|
460
|
+
h3: HTMLAttributes<HTMLHeadingElement>;
|
|
461
|
+
h4: HTMLAttributes<HTMLHeadingElement>;
|
|
462
|
+
h5: HTMLAttributes<HTMLHeadingElement>;
|
|
463
|
+
h6: HTMLAttributes<HTMLHeadingElement>;
|
|
464
|
+
hgroup: HTMLAttributes<globalThis.HTMLElement>;
|
|
465
|
+
blockquote: QuoteHTMLAttributes;
|
|
466
|
+
q: QuoteHTMLAttributes;
|
|
467
|
+
cite: HTMLAttributes<globalThis.HTMLElement>;
|
|
468
|
+
code: HTMLAttributes<globalThis.HTMLElement>;
|
|
469
|
+
pre: HTMLAttributes<HTMLPreElement>;
|
|
470
|
+
kbd: HTMLAttributes<globalThis.HTMLElement>;
|
|
471
|
+
samp: HTMLAttributes<globalThis.HTMLElement>;
|
|
472
|
+
var: HTMLAttributes<globalThis.HTMLElement>;
|
|
473
|
+
mark: HTMLAttributes<globalThis.HTMLElement>;
|
|
474
|
+
small: HTMLAttributes<globalThis.HTMLElement>;
|
|
475
|
+
strong: HTMLAttributes<globalThis.HTMLElement>;
|
|
476
|
+
em: HTMLAttributes<globalThis.HTMLElement>;
|
|
477
|
+
b: HTMLAttributes<globalThis.HTMLElement>;
|
|
478
|
+
i: HTMLAttributes<globalThis.HTMLElement>;
|
|
479
|
+
u: HTMLAttributes<globalThis.HTMLElement>;
|
|
480
|
+
s: HTMLAttributes<globalThis.HTMLElement>;
|
|
481
|
+
sub: HTMLAttributes<globalThis.HTMLElement>;
|
|
482
|
+
sup: HTMLAttributes<globalThis.HTMLElement>;
|
|
483
|
+
abbr: HTMLAttributes<globalThis.HTMLElement> & {
|
|
484
|
+
title?: Attr;
|
|
485
|
+
};
|
|
486
|
+
dfn: HTMLAttributes<globalThis.HTMLElement>;
|
|
487
|
+
time: TimeHTMLAttributes;
|
|
488
|
+
data: HTMLAttributes<HTMLDataElement> & {
|
|
489
|
+
value?: string | number;
|
|
490
|
+
};
|
|
491
|
+
br: HTMLAttributes<HTMLBRElement>;
|
|
492
|
+
wbr: HTMLAttributes<globalThis.HTMLElement>;
|
|
493
|
+
hr: HTMLAttributes<HTMLHRElement>;
|
|
494
|
+
ul: HTMLAttributes<HTMLUListElement>;
|
|
495
|
+
ol: OlHTMLAttributes;
|
|
496
|
+
li: LiHTMLAttributes;
|
|
497
|
+
dl: HTMLAttributes<HTMLDListElement>;
|
|
498
|
+
dt: HTMLAttributes<globalThis.HTMLElement>;
|
|
499
|
+
dd: HTMLAttributes<globalThis.HTMLElement>;
|
|
500
|
+
menu: HTMLAttributes<HTMLMenuElement>;
|
|
501
|
+
table: TableHTMLAttributes;
|
|
502
|
+
caption: HTMLAttributes<HTMLTableCaptionElement>;
|
|
503
|
+
thead: HTMLAttributes<HTMLTableSectionElement>;
|
|
504
|
+
tbody: HTMLAttributes<HTMLTableSectionElement>;
|
|
505
|
+
tfoot: HTMLAttributes<HTMLTableSectionElement>;
|
|
506
|
+
tr: HTMLAttributes<HTMLTableRowElement>;
|
|
507
|
+
th: ThHTMLAttributes;
|
|
508
|
+
td: TdHTMLAttributes;
|
|
509
|
+
col: HTMLAttributes<HTMLTableColElement> & {
|
|
510
|
+
span?: number | string;
|
|
511
|
+
};
|
|
512
|
+
colgroup: HTMLAttributes<HTMLTableColElement> & {
|
|
513
|
+
span?: number | string;
|
|
514
|
+
};
|
|
515
|
+
form: FormHTMLAttributes;
|
|
516
|
+
label: LabelHTMLAttributes;
|
|
517
|
+
input: InputHTMLAttributes;
|
|
518
|
+
button: ButtonHTMLAttributes;
|
|
519
|
+
select: SelectHTMLAttributes;
|
|
520
|
+
option: OptionHTMLAttributes;
|
|
521
|
+
optgroup: OptgroupHTMLAttributes;
|
|
522
|
+
textarea: TextareaHTMLAttributes;
|
|
523
|
+
fieldset: FieldsetHTMLAttributes;
|
|
524
|
+
legend: HTMLAttributes<HTMLLegendElement>;
|
|
525
|
+
datalist: HTMLAttributes<HTMLDataListElement>;
|
|
526
|
+
output: OutputHTMLAttributes;
|
|
527
|
+
progress: ProgressHTMLAttributes;
|
|
528
|
+
meter: MeterHTMLAttributes;
|
|
529
|
+
img: ImgHTMLAttributes;
|
|
530
|
+
picture: HTMLAttributes<HTMLPictureElement>;
|
|
531
|
+
source: SourceHTMLAttributes;
|
|
532
|
+
video: VideoHTMLAttributes;
|
|
533
|
+
audio: AudioHTMLAttributes;
|
|
534
|
+
track: TrackHTMLAttributes;
|
|
535
|
+
map: MapHTMLAttributes;
|
|
536
|
+
canvas: CanvasHTMLAttributes;
|
|
537
|
+
figure: HTMLAttributes<globalThis.HTMLElement>;
|
|
538
|
+
figcaption: HTMLAttributes<globalThis.HTMLElement>;
|
|
539
|
+
iframe: IframeHTMLAttributes;
|
|
540
|
+
embed: EmbedHTMLAttributes;
|
|
541
|
+
object: ObjectHTMLAttributes;
|
|
542
|
+
param: HTMLAttributes<HTMLParamElement> & {
|
|
543
|
+
name?: Attr;
|
|
544
|
+
value?: Attr;
|
|
545
|
+
};
|
|
546
|
+
details: DetailsHTMLAttributes;
|
|
547
|
+
summary: HTMLAttributes<globalThis.HTMLElement>;
|
|
548
|
+
dialog: DialogHTMLAttributes;
|
|
549
|
+
slot: HTMLAttributes<HTMLSlotElement> & {
|
|
550
|
+
name?: Attr;
|
|
551
|
+
};
|
|
552
|
+
template: HTMLAttributes<HTMLTemplateElement>;
|
|
553
|
+
svg: SVGAttributes;
|
|
554
|
+
path: SVGAttributes;
|
|
555
|
+
circle: SVGAttributes;
|
|
556
|
+
ellipse: SVGAttributes;
|
|
557
|
+
rect: SVGAttributes;
|
|
558
|
+
line: SVGAttributes;
|
|
559
|
+
polyline: SVGAttributes;
|
|
560
|
+
polygon: SVGAttributes;
|
|
561
|
+
g: SVGAttributes;
|
|
562
|
+
defs: SVGAttributes;
|
|
563
|
+
use: SVGAttributes & {
|
|
564
|
+
href?: Attr;
|
|
565
|
+
};
|
|
566
|
+
symbol: SVGAttributes;
|
|
567
|
+
text: SVGAttributes;
|
|
568
|
+
tspan: SVGAttributes;
|
|
569
|
+
clipPath: SVGAttributes;
|
|
570
|
+
mask: SVGAttributes;
|
|
571
|
+
linearGradient: SVGAttributes;
|
|
572
|
+
radialGradient: SVGAttributes;
|
|
573
|
+
stop: SVGAttributes & {
|
|
574
|
+
offset?: Attr;
|
|
575
|
+
"stop-color"?: Attr;
|
|
576
|
+
"stop-opacity"?: Attr;
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
export {};
|
|
580
|
+
}
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region src/vnode.d.ts
|
|
583
|
+
declare const h: (type: string | Fragment | ComponentFn, props: PropBag | null | undefined, ...rest: View[]) => VNode;
|
|
584
|
+
//#endregion
|
|
585
|
+
export { JSX as n, h as t };
|