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