sinwan 0.0.0 → 1.0.0
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/LICENSE +21 -0
- package/README.md +94 -1
- package/dist/cjs/index.development.js +2288 -0
- package/dist/cjs/index.development.js.map +35 -0
- package/dist/cjs/index.production.min.js +3 -0
- package/dist/cjs/index.production.min.js.map +35 -0
- package/dist/cjs/jsx/jsx-dev-runtime.development.js +124 -0
- package/dist/cjs/jsx/jsx-dev-runtime.development.js.map +10 -0
- package/dist/cjs/jsx/jsx-dev-runtime.production.min.js +3 -0
- package/dist/cjs/jsx/jsx-dev-runtime.production.min.js.map +10 -0
- package/dist/cjs/jsx/jsx-runtime.development.js +116 -0
- package/dist/cjs/jsx/jsx-runtime.development.js.map +10 -0
- package/dist/cjs/jsx/jsx-runtime.production.min.js +3 -0
- package/dist/cjs/jsx/jsx-runtime.production.min.js.map +10 -0
- package/dist/cjs/package.json +4 -0
- package/dist/cjs/renderer/index.development.js +1175 -0
- package/dist/cjs/renderer/index.development.js.map +24 -0
- package/dist/cjs/renderer/index.production.min.js +3 -0
- package/dist/cjs/renderer/index.production.min.js.map +24 -0
- package/dist/cjs/server/index.development.js +1265 -0
- package/dist/cjs/server/index.development.js.map +23 -0
- package/dist/cjs/server/index.production.min.js +3 -0
- package/dist/cjs/server/index.production.min.js.map +23 -0
- package/dist/component/control-flow.d.ts +18 -0
- package/dist/component/control-flow.d.ts.map +1 -0
- package/dist/component/create.d.ts +75 -0
- package/dist/component/create.d.ts.map +1 -0
- package/dist/component/index.d.ts +12 -0
- package/dist/component/index.d.ts.map +1 -0
- package/dist/component/instance.d.ts +84 -0
- package/dist/component/instance.d.ts.map +1 -0
- package/dist/component/lifecycle.d.ts +41 -0
- package/dist/component/lifecycle.d.ts.map +1 -0
- package/dist/component/provide-inject.d.ts +45 -0
- package/dist/component/provide-inject.d.ts.map +1 -0
- package/dist/escaper.d.ts +26 -0
- package/dist/escaper.d.ts.map +1 -0
- package/dist/esm/index.development.js +2201 -0
- package/dist/esm/index.development.js.map +35 -0
- package/dist/esm/index.production.min.js +4 -0
- package/dist/esm/index.production.min.js.map +35 -0
- package/dist/esm/jsx/jsx-dev-runtime.development.js +73 -0
- package/dist/esm/jsx/jsx-dev-runtime.development.js.map +10 -0
- package/dist/esm/jsx/jsx-dev-runtime.production.min.js +4 -0
- package/dist/esm/jsx/jsx-dev-runtime.production.min.js.map +10 -0
- package/dist/esm/jsx/jsx-runtime.development.js +77 -0
- package/dist/esm/jsx/jsx-runtime.development.js.map +10 -0
- package/dist/esm/jsx/jsx-runtime.production.min.js +4 -0
- package/dist/esm/jsx/jsx-runtime.production.min.js.map +10 -0
- package/dist/esm/package.json +4 -0
- package/dist/esm/renderer/index.development.js +1124 -0
- package/dist/esm/renderer/index.development.js.map +24 -0
- package/dist/esm/renderer/index.production.min.js +4 -0
- package/dist/esm/renderer/index.production.min.js.map +24 -0
- package/dist/esm/server/index.development.js +1214 -0
- package/dist/esm/server/index.development.js.map +23 -0
- package/dist/esm/server/index.production.min.js +4 -0
- package/dist/esm/server/index.production.min.js.map +23 -0
- package/dist/hydration/hydrate.d.ts +29 -0
- package/dist/hydration/hydrate.d.ts.map +1 -0
- package/dist/hydration/index.d.ts +7 -0
- package/dist/hydration/index.d.ts.map +1 -0
- package/dist/hydration/markers.d.ts +48 -0
- package/dist/hydration/markers.d.ts.map +1 -0
- package/dist/hydration/walk.d.ts +32 -0
- package/dist/hydration/walk.d.ts.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.mjs +4 -0
- package/dist/jsx/jsx-dev-runtime.d.ts +10 -0
- package/dist/jsx/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/jsx/jsx-runtime.d.ts +67 -0
- package/dist/jsx/jsx-runtime.d.ts.map +1 -0
- package/dist/jsx/jsx-types.d.ts +702 -0
- package/dist/jsx/jsx-types.d.ts.map +1 -0
- package/dist/jsx-dev-runtime.d.ts +1 -0
- package/dist/jsx-dev-runtime.js +7 -0
- package/dist/jsx-dev-runtime.mjs +4 -0
- package/dist/jsx-runtime.d.ts +1 -0
- package/dist/jsx-runtime.js +7 -0
- package/dist/jsx-runtime.mjs +4 -0
- package/dist/reactivity/batch.d.ts +27 -0
- package/dist/reactivity/batch.d.ts.map +1 -0
- package/dist/reactivity/computed.d.ts +41 -0
- package/dist/reactivity/computed.d.ts.map +1 -0
- package/dist/reactivity/effect.d.ts +79 -0
- package/dist/reactivity/effect.d.ts.map +1 -0
- package/dist/reactivity/index.d.ts +15 -0
- package/dist/reactivity/index.d.ts.map +1 -0
- package/dist/reactivity/scheduler.d.ts +35 -0
- package/dist/reactivity/scheduler.d.ts.map +1 -0
- package/dist/reactivity/signal.d.ts +36 -0
- package/dist/reactivity/signal.d.ts.map +1 -0
- package/dist/renderer/attributes.d.ts +8 -0
- package/dist/renderer/attributes.d.ts.map +1 -0
- package/dist/renderer/dom-ops.d.ts +30 -0
- package/dist/renderer/dom-ops.d.ts.map +1 -0
- package/dist/renderer/events.d.ts +21 -0
- package/dist/renderer/events.d.ts.map +1 -0
- package/dist/renderer/index.d.ts +12 -0
- package/dist/renderer/index.d.ts.map +1 -0
- package/dist/renderer/mount.d.ts +27 -0
- package/dist/renderer/mount.d.ts.map +1 -0
- package/dist/renderer/render-children.d.ts +19 -0
- package/dist/renderer/render-children.d.ts.map +1 -0
- package/dist/renderer/render-control-flow.d.ts +13 -0
- package/dist/renderer/render-control-flow.d.ts.map +1 -0
- package/dist/renderer/render-element.d.ts +13 -0
- package/dist/renderer/render-element.d.ts.map +1 -0
- package/dist/renderer/types.d.ts +65 -0
- package/dist/renderer/types.d.ts.map +1 -0
- package/dist/renderer/unmount.d.ts +20 -0
- package/dist/renderer/unmount.d.ts.map +1 -0
- package/dist/renderer.d.ts +1 -0
- package/dist/renderer.js +7 -0
- package/dist/renderer.mjs +4 -0
- package/dist/server/hydration-markers.d.ts +23 -0
- package/dist/server/hydration-markers.d.ts.map +1 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/renderer.d.ts +33 -0
- package/dist/server/renderer.d.ts.map +1 -0
- package/dist/server/stream.d.ts +20 -0
- package/dist/server/stream.d.ts.map +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +7 -0
- package/dist/server.mjs +4 -0
- package/dist/types.d.ts +48 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +116 -4
- package/bun.lock +0 -26
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,702 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SinwanJS View Module — JSX Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Strongly-typed HTML attribute interfaces for the JSX IntrinsicElements map.
|
|
5
|
+
* Supports both React-style (`className`) and native (`class`) attribute names,
|
|
6
|
+
* camelCase event handlers (`onClick`) AND lowercase variants, and reactive
|
|
7
|
+
* values (Signal / Computed) for any visual attribute.
|
|
8
|
+
*/
|
|
9
|
+
import type { SinwanNode, Reactive } from "../types.ts";
|
|
10
|
+
export type EventHandler<E = Event> = string | ((event: E) => void);
|
|
11
|
+
export type MouseEventHandler = EventHandler<MouseEvent>;
|
|
12
|
+
export type KeyboardEventHandler = EventHandler<KeyboardEvent>;
|
|
13
|
+
export type FocusEventHandler = EventHandler<FocusEvent>;
|
|
14
|
+
export type FormEventHandler = EventHandler<Event>;
|
|
15
|
+
export type ChangeEventHandler = EventHandler<Event>;
|
|
16
|
+
export type InputEventHandler = EventHandler<InputEvent>;
|
|
17
|
+
export type WheelEventHandler = EventHandler<WheelEvent>;
|
|
18
|
+
export type DragEventHandler = EventHandler<DragEvent>;
|
|
19
|
+
export type ClipboardEventHandler = EventHandler<ClipboardEvent>;
|
|
20
|
+
export type PointerEventHandler = EventHandler<PointerEvent>;
|
|
21
|
+
export type TouchEventHandler = EventHandler<TouchEvent>;
|
|
22
|
+
export type ClassValue = string | string[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
23
|
+
export type CSSProperties = Record<string, string | number | null | undefined> | string;
|
|
24
|
+
export interface HTMLAttributes {
|
|
25
|
+
id?: Reactive<string>;
|
|
26
|
+
key?: string | number;
|
|
27
|
+
ref?: ((el: Element | null) => void) | {
|
|
28
|
+
current: Element | null;
|
|
29
|
+
};
|
|
30
|
+
class?: Reactive<ClassValue>;
|
|
31
|
+
className?: Reactive<ClassValue>;
|
|
32
|
+
style?: Reactive<CSSProperties>;
|
|
33
|
+
title?: Reactive<string>;
|
|
34
|
+
lang?: string;
|
|
35
|
+
dir?: "ltr" | "rtl" | "auto";
|
|
36
|
+
hidden?: Reactive<boolean>;
|
|
37
|
+
tabindex?: number | string;
|
|
38
|
+
tabIndex?: number | string;
|
|
39
|
+
slot?: string;
|
|
40
|
+
role?: string;
|
|
41
|
+
contenteditable?: boolean | "true" | "false" | "plaintext-only";
|
|
42
|
+
contentEditable?: boolean | "true" | "false" | "plaintext-only";
|
|
43
|
+
draggable?: boolean | "true" | "false";
|
|
44
|
+
spellcheck?: boolean | "true" | "false";
|
|
45
|
+
translate?: "yes" | "no";
|
|
46
|
+
is?: string;
|
|
47
|
+
inputmode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
|
|
48
|
+
inputMode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
|
|
49
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
50
|
+
popover?: boolean | "auto" | "manual";
|
|
51
|
+
autofocus?: boolean;
|
|
52
|
+
autoFocus?: boolean;
|
|
53
|
+
nonce?: string;
|
|
54
|
+
dangerouslySetInnerHTML?: {
|
|
55
|
+
__html: string;
|
|
56
|
+
};
|
|
57
|
+
children?: SinwanNode;
|
|
58
|
+
"aria-activedescendant"?: string;
|
|
59
|
+
"aria-atomic"?: boolean | "true" | "false";
|
|
60
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both";
|
|
61
|
+
"aria-busy"?: boolean | "true" | "false";
|
|
62
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed";
|
|
63
|
+
"aria-colcount"?: number;
|
|
64
|
+
"aria-colindex"?: number;
|
|
65
|
+
"aria-colspan"?: number;
|
|
66
|
+
"aria-controls"?: string;
|
|
67
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time";
|
|
68
|
+
"aria-describedby"?: string;
|
|
69
|
+
"aria-details"?: string;
|
|
70
|
+
"aria-disabled"?: boolean | "true" | "false";
|
|
71
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup";
|
|
72
|
+
"aria-errormessage"?: string;
|
|
73
|
+
"aria-expanded"?: boolean | "true" | "false";
|
|
74
|
+
"aria-flowto"?: string;
|
|
75
|
+
"aria-grabbed"?: boolean | "true" | "false";
|
|
76
|
+
"aria-haspopup"?: boolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
77
|
+
"aria-hidden"?: boolean | "true" | "false";
|
|
78
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
79
|
+
"aria-keyshortcuts"?: string;
|
|
80
|
+
"aria-label"?: string;
|
|
81
|
+
"aria-labelledby"?: string;
|
|
82
|
+
"aria-level"?: number;
|
|
83
|
+
"aria-live"?: "off" | "assertive" | "polite";
|
|
84
|
+
"aria-modal"?: boolean | "true" | "false";
|
|
85
|
+
"aria-multiline"?: boolean | "true" | "false";
|
|
86
|
+
"aria-multiselectable"?: boolean | "true" | "false";
|
|
87
|
+
"aria-orientation"?: "horizontal" | "vertical";
|
|
88
|
+
"aria-owns"?: string;
|
|
89
|
+
"aria-placeholder"?: string;
|
|
90
|
+
"aria-posinset"?: number;
|
|
91
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
|
92
|
+
"aria-readonly"?: boolean | "true" | "false";
|
|
93
|
+
"aria-relevant"?: "additions" | "all" | "removals" | "text" | "additions text";
|
|
94
|
+
"aria-required"?: boolean | "true" | "false";
|
|
95
|
+
"aria-roledescription"?: string;
|
|
96
|
+
"aria-rowcount"?: number;
|
|
97
|
+
"aria-rowindex"?: number;
|
|
98
|
+
"aria-rowspan"?: number;
|
|
99
|
+
"aria-selected"?: boolean | "true" | "false";
|
|
100
|
+
"aria-setsize"?: number;
|
|
101
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other";
|
|
102
|
+
"aria-valuemax"?: number;
|
|
103
|
+
"aria-valuemin"?: number;
|
|
104
|
+
"aria-valuenow"?: number;
|
|
105
|
+
"aria-valuetext"?: string;
|
|
106
|
+
onClick?: MouseEventHandler;
|
|
107
|
+
onDblClick?: MouseEventHandler;
|
|
108
|
+
onMouseDown?: MouseEventHandler;
|
|
109
|
+
onMouseUp?: MouseEventHandler;
|
|
110
|
+
onMouseOver?: MouseEventHandler;
|
|
111
|
+
onMouseOut?: MouseEventHandler;
|
|
112
|
+
onMouseMove?: MouseEventHandler;
|
|
113
|
+
onMouseEnter?: MouseEventHandler;
|
|
114
|
+
onMouseLeave?: MouseEventHandler;
|
|
115
|
+
onContextMenu?: MouseEventHandler;
|
|
116
|
+
onKeyDown?: KeyboardEventHandler;
|
|
117
|
+
onKeyUp?: KeyboardEventHandler;
|
|
118
|
+
onKeyPress?: KeyboardEventHandler;
|
|
119
|
+
onFocus?: FocusEventHandler;
|
|
120
|
+
onBlur?: FocusEventHandler;
|
|
121
|
+
onFocusIn?: FocusEventHandler;
|
|
122
|
+
onFocusOut?: FocusEventHandler;
|
|
123
|
+
onChange?: ChangeEventHandler;
|
|
124
|
+
onInput?: InputEventHandler;
|
|
125
|
+
onSubmit?: FormEventHandler;
|
|
126
|
+
onReset?: FormEventHandler;
|
|
127
|
+
onInvalid?: FormEventHandler;
|
|
128
|
+
onScroll?: EventHandler;
|
|
129
|
+
onWheel?: WheelEventHandler;
|
|
130
|
+
onLoad?: EventHandler;
|
|
131
|
+
onError?: EventHandler;
|
|
132
|
+
onResize?: EventHandler;
|
|
133
|
+
onPointerDown?: PointerEventHandler;
|
|
134
|
+
onPointerUp?: PointerEventHandler;
|
|
135
|
+
onPointerMove?: PointerEventHandler;
|
|
136
|
+
onPointerEnter?: PointerEventHandler;
|
|
137
|
+
onPointerLeave?: PointerEventHandler;
|
|
138
|
+
onPointerCancel?: PointerEventHandler;
|
|
139
|
+
onTouchStart?: TouchEventHandler;
|
|
140
|
+
onTouchEnd?: TouchEventHandler;
|
|
141
|
+
onTouchMove?: TouchEventHandler;
|
|
142
|
+
onTouchCancel?: TouchEventHandler;
|
|
143
|
+
onDragStart?: DragEventHandler;
|
|
144
|
+
onDragEnd?: DragEventHandler;
|
|
145
|
+
onDragOver?: DragEventHandler;
|
|
146
|
+
onDragEnter?: DragEventHandler;
|
|
147
|
+
onDragLeave?: DragEventHandler;
|
|
148
|
+
onDrop?: DragEventHandler;
|
|
149
|
+
onCopy?: ClipboardEventHandler;
|
|
150
|
+
onCut?: ClipboardEventHandler;
|
|
151
|
+
onPaste?: ClipboardEventHandler;
|
|
152
|
+
onAnimationStart?: EventHandler<AnimationEvent>;
|
|
153
|
+
onAnimationEnd?: EventHandler<AnimationEvent>;
|
|
154
|
+
onTransitionEnd?: EventHandler<TransitionEvent>;
|
|
155
|
+
onclick?: MouseEventHandler;
|
|
156
|
+
ondblclick?: MouseEventHandler;
|
|
157
|
+
onmousedown?: MouseEventHandler;
|
|
158
|
+
onmouseup?: MouseEventHandler;
|
|
159
|
+
onmouseover?: MouseEventHandler;
|
|
160
|
+
onmouseout?: MouseEventHandler;
|
|
161
|
+
onmousemove?: MouseEventHandler;
|
|
162
|
+
onmouseenter?: MouseEventHandler;
|
|
163
|
+
onmouseleave?: MouseEventHandler;
|
|
164
|
+
onkeydown?: KeyboardEventHandler;
|
|
165
|
+
onkeyup?: KeyboardEventHandler;
|
|
166
|
+
onkeypress?: KeyboardEventHandler;
|
|
167
|
+
onfocus?: FocusEventHandler;
|
|
168
|
+
onblur?: FocusEventHandler;
|
|
169
|
+
onchange?: ChangeEventHandler;
|
|
170
|
+
oninput?: InputEventHandler;
|
|
171
|
+
onsubmit?: FormEventHandler;
|
|
172
|
+
onreset?: FormEventHandler;
|
|
173
|
+
onscroll?: EventHandler;
|
|
174
|
+
onwheel?: WheelEventHandler;
|
|
175
|
+
onload?: EventHandler;
|
|
176
|
+
onerror?: EventHandler;
|
|
177
|
+
onresize?: EventHandler;
|
|
178
|
+
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
179
|
+
}
|
|
180
|
+
export interface AnchorHTMLAttributes extends HTMLAttributes {
|
|
181
|
+
href?: Reactive<string>;
|
|
182
|
+
target?: "_self" | "_blank" | "_parent" | "_top" | string;
|
|
183
|
+
rel?: string;
|
|
184
|
+
download?: string | boolean;
|
|
185
|
+
hreflang?: string;
|
|
186
|
+
ping?: string;
|
|
187
|
+
referrerpolicy?: string;
|
|
188
|
+
referrerPolicy?: string;
|
|
189
|
+
type?: string;
|
|
190
|
+
}
|
|
191
|
+
export interface ImgHTMLAttributes extends HTMLAttributes {
|
|
192
|
+
src?: Reactive<string>;
|
|
193
|
+
alt?: Reactive<string>;
|
|
194
|
+
width?: Reactive<number | string>;
|
|
195
|
+
height?: Reactive<number | string>;
|
|
196
|
+
loading?: "eager" | "lazy";
|
|
197
|
+
decoding?: "sync" | "async" | "auto";
|
|
198
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
199
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
200
|
+
srcset?: string;
|
|
201
|
+
srcSet?: string;
|
|
202
|
+
sizes?: string;
|
|
203
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
204
|
+
usemap?: string;
|
|
205
|
+
ismap?: boolean;
|
|
206
|
+
}
|
|
207
|
+
export interface InputHTMLAttributes extends HTMLAttributes {
|
|
208
|
+
type?: string;
|
|
209
|
+
name?: string;
|
|
210
|
+
value?: Reactive<string | number | readonly string[]>;
|
|
211
|
+
checked?: Reactive<boolean>;
|
|
212
|
+
disabled?: Reactive<boolean>;
|
|
213
|
+
readonly?: Reactive<boolean>;
|
|
214
|
+
readOnly?: Reactive<boolean>;
|
|
215
|
+
required?: Reactive<boolean>;
|
|
216
|
+
placeholder?: Reactive<string>;
|
|
217
|
+
maxlength?: number | string;
|
|
218
|
+
maxLength?: number | string;
|
|
219
|
+
minlength?: number | string;
|
|
220
|
+
minLength?: number | string;
|
|
221
|
+
max?: number | string;
|
|
222
|
+
min?: number | string;
|
|
223
|
+
step?: number | string;
|
|
224
|
+
pattern?: string;
|
|
225
|
+
multiple?: boolean;
|
|
226
|
+
accept?: string;
|
|
227
|
+
autocomplete?: string;
|
|
228
|
+
autoComplete?: string;
|
|
229
|
+
list?: string;
|
|
230
|
+
size?: number | string;
|
|
231
|
+
src?: string;
|
|
232
|
+
alt?: string;
|
|
233
|
+
width?: number | string;
|
|
234
|
+
height?: number | string;
|
|
235
|
+
form?: string;
|
|
236
|
+
formaction?: string;
|
|
237
|
+
formAction?: string;
|
|
238
|
+
formmethod?: string;
|
|
239
|
+
formMethod?: string;
|
|
240
|
+
formnovalidate?: boolean;
|
|
241
|
+
formNoValidate?: boolean;
|
|
242
|
+
formtarget?: string;
|
|
243
|
+
formTarget?: string;
|
|
244
|
+
capture?: "user" | "environment" | string;
|
|
245
|
+
}
|
|
246
|
+
export interface TextareaHTMLAttributes extends HTMLAttributes {
|
|
247
|
+
name?: string;
|
|
248
|
+
value?: Reactive<string>;
|
|
249
|
+
disabled?: Reactive<boolean>;
|
|
250
|
+
readonly?: Reactive<boolean>;
|
|
251
|
+
readOnly?: Reactive<boolean>;
|
|
252
|
+
required?: Reactive<boolean>;
|
|
253
|
+
placeholder?: Reactive<string>;
|
|
254
|
+
rows?: number | string;
|
|
255
|
+
cols?: number | string;
|
|
256
|
+
maxlength?: number | string;
|
|
257
|
+
maxLength?: number | string;
|
|
258
|
+
minlength?: number | string;
|
|
259
|
+
minLength?: number | string;
|
|
260
|
+
wrap?: "hard" | "soft" | "off";
|
|
261
|
+
autocomplete?: string;
|
|
262
|
+
autoComplete?: string;
|
|
263
|
+
form?: string;
|
|
264
|
+
}
|
|
265
|
+
export interface SelectHTMLAttributes extends HTMLAttributes {
|
|
266
|
+
name?: string;
|
|
267
|
+
value?: Reactive<string | readonly string[]>;
|
|
268
|
+
disabled?: Reactive<boolean>;
|
|
269
|
+
required?: Reactive<boolean>;
|
|
270
|
+
multiple?: Reactive<boolean>;
|
|
271
|
+
size?: number | string;
|
|
272
|
+
form?: string;
|
|
273
|
+
autocomplete?: string;
|
|
274
|
+
autoComplete?: string;
|
|
275
|
+
}
|
|
276
|
+
export interface OptionHTMLAttributes extends HTMLAttributes {
|
|
277
|
+
value?: Reactive<string | number>;
|
|
278
|
+
disabled?: Reactive<boolean>;
|
|
279
|
+
selected?: Reactive<boolean>;
|
|
280
|
+
label?: string;
|
|
281
|
+
}
|
|
282
|
+
export interface FormHTMLAttributes extends HTMLAttributes {
|
|
283
|
+
action?: string;
|
|
284
|
+
method?: "get" | "post" | "dialog" | string;
|
|
285
|
+
enctype?: string;
|
|
286
|
+
encType?: string;
|
|
287
|
+
target?: string;
|
|
288
|
+
novalidate?: boolean;
|
|
289
|
+
noValidate?: boolean;
|
|
290
|
+
autocomplete?: "on" | "off" | string;
|
|
291
|
+
autoComplete?: "on" | "off" | string;
|
|
292
|
+
name?: string;
|
|
293
|
+
acceptCharset?: string;
|
|
294
|
+
"accept-charset"?: string;
|
|
295
|
+
}
|
|
296
|
+
export interface ButtonHTMLAttributes extends HTMLAttributes {
|
|
297
|
+
type?: "submit" | "reset" | "button";
|
|
298
|
+
name?: string;
|
|
299
|
+
value?: Reactive<string>;
|
|
300
|
+
disabled?: Reactive<boolean>;
|
|
301
|
+
form?: string;
|
|
302
|
+
formaction?: string;
|
|
303
|
+
formAction?: string;
|
|
304
|
+
formmethod?: string;
|
|
305
|
+
formMethod?: string;
|
|
306
|
+
formnovalidate?: boolean;
|
|
307
|
+
formNoValidate?: boolean;
|
|
308
|
+
formtarget?: string;
|
|
309
|
+
formTarget?: string;
|
|
310
|
+
popovertarget?: string;
|
|
311
|
+
popovertargetaction?: "hide" | "show" | "toggle";
|
|
312
|
+
}
|
|
313
|
+
export interface LabelHTMLAttributes extends HTMLAttributes {
|
|
314
|
+
for?: string;
|
|
315
|
+
htmlFor?: string;
|
|
316
|
+
form?: string;
|
|
317
|
+
}
|
|
318
|
+
export interface TableHTMLAttributes extends HTMLAttributes {
|
|
319
|
+
cellpadding?: number | string;
|
|
320
|
+
cellspacing?: number | string;
|
|
321
|
+
border?: number | string;
|
|
322
|
+
width?: number | string;
|
|
323
|
+
}
|
|
324
|
+
export interface TdHTMLAttributes extends HTMLAttributes {
|
|
325
|
+
colspan?: number | string;
|
|
326
|
+
colSpan?: number | string;
|
|
327
|
+
rowspan?: number | string;
|
|
328
|
+
rowSpan?: number | string;
|
|
329
|
+
headers?: string;
|
|
330
|
+
scope?: "row" | "col" | "rowgroup" | "colgroup";
|
|
331
|
+
}
|
|
332
|
+
export interface ThHTMLAttributes extends TdHTMLAttributes {
|
|
333
|
+
abbr?: string;
|
|
334
|
+
}
|
|
335
|
+
export interface MetaHTMLAttributes extends HTMLAttributes {
|
|
336
|
+
charset?: string;
|
|
337
|
+
content?: string;
|
|
338
|
+
"http-equiv"?: string;
|
|
339
|
+
httpEquiv?: string;
|
|
340
|
+
name?: string;
|
|
341
|
+
media?: string;
|
|
342
|
+
}
|
|
343
|
+
export interface LinkHTMLAttributes extends HTMLAttributes {
|
|
344
|
+
href?: string;
|
|
345
|
+
rel?: string;
|
|
346
|
+
type?: string;
|
|
347
|
+
media?: string;
|
|
348
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
349
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
350
|
+
integrity?: string;
|
|
351
|
+
as?: string;
|
|
352
|
+
sizes?: string;
|
|
353
|
+
hreflang?: string;
|
|
354
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
355
|
+
disabled?: boolean;
|
|
356
|
+
}
|
|
357
|
+
export interface ScriptHTMLAttributes extends HTMLAttributes {
|
|
358
|
+
src?: string;
|
|
359
|
+
type?: string;
|
|
360
|
+
async?: boolean;
|
|
361
|
+
defer?: boolean;
|
|
362
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
363
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
364
|
+
integrity?: string;
|
|
365
|
+
nomodule?: boolean;
|
|
366
|
+
noModule?: boolean;
|
|
367
|
+
nonce?: string;
|
|
368
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
369
|
+
}
|
|
370
|
+
export interface StyleHTMLAttributes extends HTMLAttributes {
|
|
371
|
+
media?: string;
|
|
372
|
+
nonce?: string;
|
|
373
|
+
type?: string;
|
|
374
|
+
}
|
|
375
|
+
export interface IframeHTMLAttributes extends HTMLAttributes {
|
|
376
|
+
src?: string;
|
|
377
|
+
srcdoc?: string;
|
|
378
|
+
name?: string;
|
|
379
|
+
width?: number | string;
|
|
380
|
+
height?: number | string;
|
|
381
|
+
sandbox?: string;
|
|
382
|
+
allow?: string;
|
|
383
|
+
allowfullscreen?: boolean;
|
|
384
|
+
loading?: "eager" | "lazy";
|
|
385
|
+
referrerpolicy?: string;
|
|
386
|
+
referrerPolicy?: string;
|
|
387
|
+
}
|
|
388
|
+
export interface VideoHTMLAttributes extends HTMLAttributes {
|
|
389
|
+
src?: string;
|
|
390
|
+
poster?: string;
|
|
391
|
+
width?: number | string;
|
|
392
|
+
height?: number | string;
|
|
393
|
+
autoplay?: boolean;
|
|
394
|
+
controls?: boolean;
|
|
395
|
+
loop?: boolean;
|
|
396
|
+
muted?: boolean;
|
|
397
|
+
playsinline?: boolean;
|
|
398
|
+
preload?: "none" | "metadata" | "auto" | "";
|
|
399
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
400
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
401
|
+
}
|
|
402
|
+
export interface AudioHTMLAttributes extends HTMLAttributes {
|
|
403
|
+
src?: string;
|
|
404
|
+
autoplay?: boolean;
|
|
405
|
+
controls?: boolean;
|
|
406
|
+
loop?: boolean;
|
|
407
|
+
muted?: boolean;
|
|
408
|
+
preload?: "none" | "metadata" | "auto" | "";
|
|
409
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
410
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
411
|
+
}
|
|
412
|
+
export interface SourceHTMLAttributes extends HTMLAttributes {
|
|
413
|
+
src?: string;
|
|
414
|
+
srcset?: string;
|
|
415
|
+
srcSet?: string;
|
|
416
|
+
sizes?: string;
|
|
417
|
+
type?: string;
|
|
418
|
+
media?: string;
|
|
419
|
+
width?: number | string;
|
|
420
|
+
height?: number | string;
|
|
421
|
+
}
|
|
422
|
+
export interface CanvasHTMLAttributes extends HTMLAttributes {
|
|
423
|
+
width?: number | string;
|
|
424
|
+
height?: number | string;
|
|
425
|
+
}
|
|
426
|
+
export interface DialogHTMLAttributes extends HTMLAttributes {
|
|
427
|
+
open?: boolean;
|
|
428
|
+
}
|
|
429
|
+
export interface DetailsHTMLAttributes extends HTMLAttributes {
|
|
430
|
+
open?: boolean;
|
|
431
|
+
name?: string;
|
|
432
|
+
}
|
|
433
|
+
export interface HtmlHTMLAttributes extends HTMLAttributes {
|
|
434
|
+
lang?: string;
|
|
435
|
+
xmlns?: string;
|
|
436
|
+
}
|
|
437
|
+
export interface ColHTMLAttributes extends HTMLAttributes {
|
|
438
|
+
span?: number | string;
|
|
439
|
+
width?: number | string;
|
|
440
|
+
}
|
|
441
|
+
export interface ColgroupHTMLAttributes extends HTMLAttributes {
|
|
442
|
+
span?: number | string;
|
|
443
|
+
}
|
|
444
|
+
export interface OutputHTMLAttributes extends HTMLAttributes {
|
|
445
|
+
for?: string;
|
|
446
|
+
htmlFor?: string;
|
|
447
|
+
form?: string;
|
|
448
|
+
name?: string;
|
|
449
|
+
}
|
|
450
|
+
export interface MeterHTMLAttributes extends HTMLAttributes {
|
|
451
|
+
value?: number | string;
|
|
452
|
+
min?: number | string;
|
|
453
|
+
max?: number | string;
|
|
454
|
+
low?: number | string;
|
|
455
|
+
high?: number | string;
|
|
456
|
+
optimum?: number | string;
|
|
457
|
+
form?: string;
|
|
458
|
+
}
|
|
459
|
+
export interface ProgressHTMLAttributes extends HTMLAttributes {
|
|
460
|
+
value?: number | string;
|
|
461
|
+
max?: number | string;
|
|
462
|
+
}
|
|
463
|
+
export interface TimeHTMLAttributes extends HTMLAttributes {
|
|
464
|
+
datetime?: string;
|
|
465
|
+
dateTime?: string;
|
|
466
|
+
}
|
|
467
|
+
export interface SvgHTMLAttributes extends HTMLAttributes {
|
|
468
|
+
viewBox?: string;
|
|
469
|
+
xmlns?: string;
|
|
470
|
+
fill?: string;
|
|
471
|
+
stroke?: string;
|
|
472
|
+
"stroke-width"?: number | string;
|
|
473
|
+
"stroke-linecap"?: string;
|
|
474
|
+
"stroke-linejoin"?: string;
|
|
475
|
+
width?: number | string;
|
|
476
|
+
height?: number | string;
|
|
477
|
+
d?: string;
|
|
478
|
+
cx?: number | string;
|
|
479
|
+
cy?: number | string;
|
|
480
|
+
r?: number | string;
|
|
481
|
+
x?: number | string;
|
|
482
|
+
y?: number | string;
|
|
483
|
+
x1?: number | string;
|
|
484
|
+
y1?: number | string;
|
|
485
|
+
x2?: number | string;
|
|
486
|
+
y2?: number | string;
|
|
487
|
+
rx?: number | string;
|
|
488
|
+
ry?: number | string;
|
|
489
|
+
transform?: string;
|
|
490
|
+
opacity?: number | string;
|
|
491
|
+
"clip-path"?: string;
|
|
492
|
+
points?: string;
|
|
493
|
+
[key: string]: unknown;
|
|
494
|
+
}
|
|
495
|
+
export interface SinwanIntrinsicElements {
|
|
496
|
+
html: HtmlHTMLAttributes;
|
|
497
|
+
head: HTMLAttributes;
|
|
498
|
+
body: HTMLAttributes;
|
|
499
|
+
title: HTMLAttributes;
|
|
500
|
+
base: HTMLAttributes & {
|
|
501
|
+
href?: string;
|
|
502
|
+
target?: string;
|
|
503
|
+
};
|
|
504
|
+
meta: MetaHTMLAttributes;
|
|
505
|
+
link: LinkHTMLAttributes;
|
|
506
|
+
style: StyleHTMLAttributes;
|
|
507
|
+
script: ScriptHTMLAttributes;
|
|
508
|
+
noscript: HTMLAttributes;
|
|
509
|
+
header: HTMLAttributes;
|
|
510
|
+
footer: HTMLAttributes;
|
|
511
|
+
main: HTMLAttributes;
|
|
512
|
+
nav: HTMLAttributes;
|
|
513
|
+
aside: HTMLAttributes;
|
|
514
|
+
section: HTMLAttributes;
|
|
515
|
+
article: HTMLAttributes;
|
|
516
|
+
address: HTMLAttributes;
|
|
517
|
+
hgroup: HTMLAttributes;
|
|
518
|
+
search: HTMLAttributes;
|
|
519
|
+
h1: HTMLAttributes;
|
|
520
|
+
h2: HTMLAttributes;
|
|
521
|
+
h3: HTMLAttributes;
|
|
522
|
+
h4: HTMLAttributes;
|
|
523
|
+
h5: HTMLAttributes;
|
|
524
|
+
h6: HTMLAttributes;
|
|
525
|
+
p: HTMLAttributes;
|
|
526
|
+
div: HTMLAttributes;
|
|
527
|
+
span: HTMLAttributes;
|
|
528
|
+
br: HTMLAttributes;
|
|
529
|
+
hr: HTMLAttributes;
|
|
530
|
+
pre: HTMLAttributes;
|
|
531
|
+
blockquote: HTMLAttributes & {
|
|
532
|
+
cite?: string;
|
|
533
|
+
};
|
|
534
|
+
ol: HTMLAttributes & {
|
|
535
|
+
start?: number;
|
|
536
|
+
reversed?: boolean;
|
|
537
|
+
type?: "1" | "a" | "A" | "i" | "I";
|
|
538
|
+
};
|
|
539
|
+
ul: HTMLAttributes;
|
|
540
|
+
li: HTMLAttributes & {
|
|
541
|
+
value?: number;
|
|
542
|
+
};
|
|
543
|
+
dl: HTMLAttributes;
|
|
544
|
+
dt: HTMLAttributes;
|
|
545
|
+
dd: HTMLAttributes;
|
|
546
|
+
figure: HTMLAttributes;
|
|
547
|
+
figcaption: HTMLAttributes;
|
|
548
|
+
a: AnchorHTMLAttributes;
|
|
549
|
+
em: HTMLAttributes;
|
|
550
|
+
strong: HTMLAttributes;
|
|
551
|
+
small: HTMLAttributes;
|
|
552
|
+
s: HTMLAttributes;
|
|
553
|
+
cite: HTMLAttributes;
|
|
554
|
+
q: HTMLAttributes & {
|
|
555
|
+
cite?: string;
|
|
556
|
+
};
|
|
557
|
+
dfn: HTMLAttributes;
|
|
558
|
+
abbr: HTMLAttributes;
|
|
559
|
+
ruby: HTMLAttributes;
|
|
560
|
+
rt: HTMLAttributes;
|
|
561
|
+
rp: HTMLAttributes;
|
|
562
|
+
code: HTMLAttributes;
|
|
563
|
+
var: HTMLAttributes;
|
|
564
|
+
samp: HTMLAttributes;
|
|
565
|
+
kbd: HTMLAttributes;
|
|
566
|
+
sub: HTMLAttributes;
|
|
567
|
+
sup: HTMLAttributes;
|
|
568
|
+
i: HTMLAttributes;
|
|
569
|
+
b: HTMLAttributes;
|
|
570
|
+
u: HTMLAttributes;
|
|
571
|
+
mark: HTMLAttributes;
|
|
572
|
+
bdi: HTMLAttributes;
|
|
573
|
+
bdo: HTMLAttributes & {
|
|
574
|
+
dir: "ltr" | "rtl";
|
|
575
|
+
};
|
|
576
|
+
wbr: HTMLAttributes;
|
|
577
|
+
form: FormHTMLAttributes;
|
|
578
|
+
input: InputHTMLAttributes;
|
|
579
|
+
textarea: TextareaHTMLAttributes;
|
|
580
|
+
select: SelectHTMLAttributes;
|
|
581
|
+
option: OptionHTMLAttributes;
|
|
582
|
+
optgroup: HTMLAttributes & {
|
|
583
|
+
disabled?: boolean;
|
|
584
|
+
label: string;
|
|
585
|
+
};
|
|
586
|
+
button: ButtonHTMLAttributes;
|
|
587
|
+
label: LabelHTMLAttributes;
|
|
588
|
+
fieldset: HTMLAttributes & {
|
|
589
|
+
disabled?: boolean;
|
|
590
|
+
form?: string;
|
|
591
|
+
name?: string;
|
|
592
|
+
};
|
|
593
|
+
legend: HTMLAttributes;
|
|
594
|
+
datalist: HTMLAttributes;
|
|
595
|
+
output: OutputHTMLAttributes;
|
|
596
|
+
progress: ProgressHTMLAttributes;
|
|
597
|
+
meter: MeterHTMLAttributes;
|
|
598
|
+
table: TableHTMLAttributes;
|
|
599
|
+
caption: HTMLAttributes;
|
|
600
|
+
thead: HTMLAttributes;
|
|
601
|
+
tbody: HTMLAttributes;
|
|
602
|
+
tfoot: HTMLAttributes;
|
|
603
|
+
tr: HTMLAttributes;
|
|
604
|
+
td: TdHTMLAttributes;
|
|
605
|
+
th: ThHTMLAttributes;
|
|
606
|
+
col: ColHTMLAttributes;
|
|
607
|
+
colgroup: ColgroupHTMLAttributes;
|
|
608
|
+
img: ImgHTMLAttributes;
|
|
609
|
+
picture: HTMLAttributes;
|
|
610
|
+
source: SourceHTMLAttributes;
|
|
611
|
+
video: VideoHTMLAttributes;
|
|
612
|
+
audio: AudioHTMLAttributes;
|
|
613
|
+
track: HTMLAttributes & {
|
|
614
|
+
src?: string;
|
|
615
|
+
kind?: string;
|
|
616
|
+
srclang?: string;
|
|
617
|
+
label?: string;
|
|
618
|
+
default?: boolean;
|
|
619
|
+
};
|
|
620
|
+
map: HTMLAttributes & {
|
|
621
|
+
name: string;
|
|
622
|
+
};
|
|
623
|
+
area: HTMLAttributes & {
|
|
624
|
+
href?: string;
|
|
625
|
+
alt?: string;
|
|
626
|
+
shape?: string;
|
|
627
|
+
coords?: string;
|
|
628
|
+
target?: string;
|
|
629
|
+
rel?: string;
|
|
630
|
+
};
|
|
631
|
+
canvas: CanvasHTMLAttributes;
|
|
632
|
+
iframe: IframeHTMLAttributes;
|
|
633
|
+
embed: HTMLAttributes & {
|
|
634
|
+
src?: string;
|
|
635
|
+
type?: string;
|
|
636
|
+
width?: number | string;
|
|
637
|
+
height?: number | string;
|
|
638
|
+
};
|
|
639
|
+
object: HTMLAttributes & {
|
|
640
|
+
data?: string;
|
|
641
|
+
type?: string;
|
|
642
|
+
width?: number | string;
|
|
643
|
+
height?: number | string;
|
|
644
|
+
name?: string;
|
|
645
|
+
form?: string;
|
|
646
|
+
};
|
|
647
|
+
param: HTMLAttributes & {
|
|
648
|
+
name?: string;
|
|
649
|
+
value?: string;
|
|
650
|
+
};
|
|
651
|
+
details: DetailsHTMLAttributes;
|
|
652
|
+
summary: HTMLAttributes;
|
|
653
|
+
dialog: DialogHTMLAttributes;
|
|
654
|
+
menu: HTMLAttributes;
|
|
655
|
+
template: HTMLAttributes;
|
|
656
|
+
slot: HTMLAttributes & {
|
|
657
|
+
name?: string;
|
|
658
|
+
};
|
|
659
|
+
time: TimeHTMLAttributes;
|
|
660
|
+
data: HTMLAttributes & {
|
|
661
|
+
value?: string;
|
|
662
|
+
};
|
|
663
|
+
del: HTMLAttributes & {
|
|
664
|
+
cite?: string;
|
|
665
|
+
datetime?: string;
|
|
666
|
+
};
|
|
667
|
+
ins: HTMLAttributes & {
|
|
668
|
+
cite?: string;
|
|
669
|
+
datetime?: string;
|
|
670
|
+
};
|
|
671
|
+
svg: SvgHTMLAttributes;
|
|
672
|
+
path: SvgHTMLAttributes;
|
|
673
|
+
circle: SvgHTMLAttributes;
|
|
674
|
+
rect: SvgHTMLAttributes;
|
|
675
|
+
line: SvgHTMLAttributes;
|
|
676
|
+
polyline: SvgHTMLAttributes;
|
|
677
|
+
polygon: SvgHTMLAttributes;
|
|
678
|
+
ellipse: SvgHTMLAttributes;
|
|
679
|
+
text: SvgHTMLAttributes;
|
|
680
|
+
tspan: SvgHTMLAttributes;
|
|
681
|
+
g: SvgHTMLAttributes;
|
|
682
|
+
defs: SvgHTMLAttributes;
|
|
683
|
+
use: SvgHTMLAttributes;
|
|
684
|
+
symbol: SvgHTMLAttributes;
|
|
685
|
+
clipPath: SvgHTMLAttributes;
|
|
686
|
+
mask: SvgHTMLAttributes;
|
|
687
|
+
image: SvgHTMLAttributes;
|
|
688
|
+
linearGradient: SvgHTMLAttributes;
|
|
689
|
+
radialGradient: SvgHTMLAttributes;
|
|
690
|
+
stop: SvgHTMLAttributes;
|
|
691
|
+
pattern: SvgHTMLAttributes;
|
|
692
|
+
foreignObject: SvgHTMLAttributes;
|
|
693
|
+
animate: SvgHTMLAttributes;
|
|
694
|
+
animateTransform: SvgHTMLAttributes;
|
|
695
|
+
filter: SvgHTMLAttributes;
|
|
696
|
+
feGaussianBlur: SvgHTMLAttributes;
|
|
697
|
+
feOffset: SvgHTMLAttributes;
|
|
698
|
+
feBlend: SvgHTMLAttributes;
|
|
699
|
+
feColorMatrix: SvgHTMLAttributes;
|
|
700
|
+
feComposite: SvgHTMLAttributes;
|
|
701
|
+
}
|
|
702
|
+
//# sourceMappingURL=jsx-types.d.ts.map
|