sinwan 0.0.0 → 0.1.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 +67 -1
- package/dist/cjs/index.development.js +1625 -0
- package/dist/cjs/index.development.js.map +32 -0
- package/dist/cjs/index.production.min.js +3 -0
- package/dist/cjs/index.production.min.js.map +32 -0
- package/dist/cjs/jsx/jsx-dev-runtime.development.js +134 -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 +126 -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/server/index.development.js +929 -0
- package/dist/cjs/server/index.development.js.map +22 -0
- package/dist/cjs/server/index.production.min.js +3 -0
- package/dist/cjs/server/index.production.min.js.map +22 -0
- package/dist/component/create.d.ts +75 -0
- package/dist/component/create.d.ts.map +1 -0
- package/dist/component/index.d.ts +10 -0
- package/dist/component/index.d.ts.map +1 -0
- package/dist/component/instance.d.ts +78 -0
- package/dist/component/instance.d.ts.map +1 -0
- package/dist/component/lifecycle.d.ts +40 -0
- package/dist/component/lifecycle.d.ts.map +1 -0
- package/dist/component/provide-inject.d.ts +39 -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 +1560 -0
- package/dist/esm/index.development.js.map +32 -0
- package/dist/esm/index.production.min.js +4 -0
- package/dist/esm/index.production.min.js.map +32 -0
- package/dist/esm/jsx/jsx-dev-runtime.development.js +83 -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 +87 -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/server/index.development.js +878 -0
- package/dist/esm/server/index.development.js.map +22 -0
- package/dist/esm/server/index.production.min.js +4 -0
- package/dist/esm/server/index.production.min.js.map +22 -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 +54 -0
- package/dist/jsx/jsx-runtime.d.ts.map +1 -0
- package/dist/jsx/jsx-types.d.ts +637 -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 +27 -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 +30 -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-element.d.ts +13 -0
- package/dist/renderer/render-element.d.ts.map +1 -0
- package/dist/renderer/types.d.ts +63 -0
- package/dist/renderer/types.d.ts.map +1 -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 +12 -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 +42 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +102 -4
- package/bun.lock +0 -26
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SinwanJS View Module — JSX Dev Runtime
|
|
3
|
+
*
|
|
4
|
+
* Development entry point for `"jsx": "react-jsxdev"`.
|
|
5
|
+
* TypeScript auto-imports from `<jsxImportSource>/jsx-dev-runtime`.
|
|
6
|
+
* Provides jsxDEV with source location info for better error messages.
|
|
7
|
+
*/
|
|
8
|
+
export { jsxDEV, Fragment } from "./jsx-runtime.ts";
|
|
9
|
+
export type { JSX } from "./jsx-runtime.ts";
|
|
10
|
+
//# sourceMappingURL=jsx-dev-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx/jsx-dev-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SinwanJS View Module — JSX Runtime
|
|
3
|
+
*
|
|
4
|
+
* JSX factory that returns SinwanElement structures for the view renderer.
|
|
5
|
+
* Imported automatically when using JSX syntax.
|
|
6
|
+
*/
|
|
7
|
+
import type { SinwanElement } from "../types.ts";
|
|
8
|
+
import type { SinwanIntrinsicElements } from "./jsx-types";
|
|
9
|
+
export declare const Fragment: unique symbol;
|
|
10
|
+
/**
|
|
11
|
+
* A string that has been marked as safe HTML (already escaped).
|
|
12
|
+
* Used for raw HTML injection with explicit trust marking.
|
|
13
|
+
*/
|
|
14
|
+
export declare class HtmlEscapedString extends String {
|
|
15
|
+
readonly value: string;
|
|
16
|
+
constructor(value: string);
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|
|
19
|
+
export declare const raw: (str: string) => HtmlEscapedString;
|
|
20
|
+
/**
|
|
21
|
+
* JSX factory — called for elements with 0 or 1 child.
|
|
22
|
+
* TypeScript auto-imports this in production mode (`react-jsx`).
|
|
23
|
+
*/
|
|
24
|
+
export declare function jsx(type: any, props: any, key?: any): SinwanElement;
|
|
25
|
+
/**
|
|
26
|
+
* JSX static factory — called for elements with 2+ children.
|
|
27
|
+
* `props.children` is **already an array**, so we skip normalizeChildren.
|
|
28
|
+
*/
|
|
29
|
+
export declare function jsxs(type: any, props: any, key?: any): SinwanElement;
|
|
30
|
+
/**
|
|
31
|
+
* Source location metadata attached by the compiler in dev mode.
|
|
32
|
+
*/
|
|
33
|
+
export interface JSXSource {
|
|
34
|
+
fileName: string;
|
|
35
|
+
lineNumber: number;
|
|
36
|
+
columnNumber: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* JSX dev factory — called in dev mode (`react-jsxdev`).
|
|
40
|
+
* Receives extra source/debug info for better error messages.
|
|
41
|
+
*/
|
|
42
|
+
export declare function jsxDEV(type: any, props: any, key: any, isStaticChildren: boolean, source?: JSXSource, self?: unknown): SinwanElement;
|
|
43
|
+
export declare namespace JSX {
|
|
44
|
+
type Element = SinwanElement | Promise<SinwanElement>;
|
|
45
|
+
interface IntrinsicAttributes {
|
|
46
|
+
key?: string | number;
|
|
47
|
+
}
|
|
48
|
+
interface ElementChildrenAttribute {
|
|
49
|
+
children: {};
|
|
50
|
+
}
|
|
51
|
+
interface IntrinsicElements extends SinwanIntrinsicElements {
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=jsx-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx/jsx-runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,aAAa,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,eAAO,MAAM,QAAQ,eAAqB,CAAC;AAE3C;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,MAAM;aACf,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;IAGhC,QAAQ;CAGlB;AAED,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,sBAA+B,CAAC;AAuE/D;;;GAGG;AACH,wBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,aAAa,CAEnE;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,aAAa,CAUpE;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,GAAG,EACV,GAAG,EAAE,GAAG,EACR,gBAAgB,EAAE,OAAO,EACzB,MAAM,CAAC,EAAE,SAAS,EAClB,IAAI,CAAC,EAAE,OAAO,GACb,aAAa,CAef;AAED,yBAAiB,GAAG,CAAC;IACnB,KAAY,OAAO,GAAG,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC7D,UAAiB,mBAAmB;QAClC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB;IACD,UAAiB,wBAAwB;QACvC,QAAQ,EAAE,EAAE,CAAC;KACd;IACD,UAAiB,iBAAkB,SAAQ,uBAAuB;KAAG;CACtE"}
|
|
@@ -0,0 +1,637 @@
|
|
|
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
|
+
*/
|
|
7
|
+
import type { SinwanNode } from "../types.ts";
|
|
8
|
+
type EventHandler<E = Event> = string | ((event: E) => void);
|
|
9
|
+
type CSSProperties = Record<string, string | number> | string;
|
|
10
|
+
export interface HTMLAttributes {
|
|
11
|
+
id?: string;
|
|
12
|
+
key?: string | number;
|
|
13
|
+
class?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
title?: string;
|
|
17
|
+
lang?: string;
|
|
18
|
+
dir?: "ltr" | "rtl" | "auto";
|
|
19
|
+
hidden?: boolean;
|
|
20
|
+
tabindex?: number | string;
|
|
21
|
+
tabIndex?: number | string;
|
|
22
|
+
slot?: string;
|
|
23
|
+
role?: string;
|
|
24
|
+
contenteditable?: boolean | "true" | "false" | "plaintext-only";
|
|
25
|
+
contentEditable?: boolean | "true" | "false" | "plaintext-only";
|
|
26
|
+
draggable?: boolean | "true" | "false";
|
|
27
|
+
spellcheck?: boolean | "true" | "false";
|
|
28
|
+
translate?: "yes" | "no";
|
|
29
|
+
is?: string;
|
|
30
|
+
inputmode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
|
|
31
|
+
inputMode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
|
|
32
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
33
|
+
popover?: boolean | "auto" | "manual";
|
|
34
|
+
autofocus?: boolean;
|
|
35
|
+
autoFocus?: boolean;
|
|
36
|
+
nonce?: string;
|
|
37
|
+
dangerouslySetInnerHTML?: {
|
|
38
|
+
__html: string;
|
|
39
|
+
};
|
|
40
|
+
children?: SinwanNode;
|
|
41
|
+
"aria-activedescendant"?: string;
|
|
42
|
+
"aria-atomic"?: boolean | "true" | "false";
|
|
43
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both";
|
|
44
|
+
"aria-busy"?: boolean | "true" | "false";
|
|
45
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed";
|
|
46
|
+
"aria-colcount"?: number;
|
|
47
|
+
"aria-colindex"?: number;
|
|
48
|
+
"aria-colspan"?: number;
|
|
49
|
+
"aria-controls"?: string;
|
|
50
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time";
|
|
51
|
+
"aria-describedby"?: string;
|
|
52
|
+
"aria-details"?: string;
|
|
53
|
+
"aria-disabled"?: boolean | "true" | "false";
|
|
54
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup";
|
|
55
|
+
"aria-errormessage"?: string;
|
|
56
|
+
"aria-expanded"?: boolean | "true" | "false";
|
|
57
|
+
"aria-flowto"?: string;
|
|
58
|
+
"aria-grabbed"?: boolean | "true" | "false";
|
|
59
|
+
"aria-haspopup"?: boolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
60
|
+
"aria-hidden"?: boolean | "true" | "false";
|
|
61
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
62
|
+
"aria-keyshortcuts"?: string;
|
|
63
|
+
"aria-label"?: string;
|
|
64
|
+
"aria-labelledby"?: string;
|
|
65
|
+
"aria-level"?: number;
|
|
66
|
+
"aria-live"?: "off" | "assertive" | "polite";
|
|
67
|
+
"aria-modal"?: boolean | "true" | "false";
|
|
68
|
+
"aria-multiline"?: boolean | "true" | "false";
|
|
69
|
+
"aria-multiselectable"?: boolean | "true" | "false";
|
|
70
|
+
"aria-orientation"?: "horizontal" | "vertical";
|
|
71
|
+
"aria-owns"?: string;
|
|
72
|
+
"aria-placeholder"?: string;
|
|
73
|
+
"aria-posinset"?: number;
|
|
74
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
|
75
|
+
"aria-readonly"?: boolean | "true" | "false";
|
|
76
|
+
"aria-relevant"?: "additions" | "all" | "removals" | "text" | "additions text";
|
|
77
|
+
"aria-required"?: boolean | "true" | "false";
|
|
78
|
+
"aria-roledescription"?: string;
|
|
79
|
+
"aria-rowcount"?: number;
|
|
80
|
+
"aria-rowindex"?: number;
|
|
81
|
+
"aria-rowspan"?: number;
|
|
82
|
+
"aria-selected"?: boolean | "true" | "false";
|
|
83
|
+
"aria-setsize"?: number;
|
|
84
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other";
|
|
85
|
+
"aria-valuemax"?: number;
|
|
86
|
+
"aria-valuemin"?: number;
|
|
87
|
+
"aria-valuenow"?: number;
|
|
88
|
+
"aria-valuetext"?: string;
|
|
89
|
+
onclick?: EventHandler;
|
|
90
|
+
ondblclick?: EventHandler;
|
|
91
|
+
onmousedown?: EventHandler;
|
|
92
|
+
onmouseup?: EventHandler;
|
|
93
|
+
onmouseover?: EventHandler;
|
|
94
|
+
onmouseout?: EventHandler;
|
|
95
|
+
onmousemove?: EventHandler;
|
|
96
|
+
onmouseenter?: EventHandler;
|
|
97
|
+
onmouseleave?: EventHandler;
|
|
98
|
+
onkeydown?: EventHandler;
|
|
99
|
+
onkeyup?: EventHandler;
|
|
100
|
+
onkeypress?: EventHandler;
|
|
101
|
+
onfocus?: EventHandler;
|
|
102
|
+
onblur?: EventHandler;
|
|
103
|
+
onchange?: EventHandler;
|
|
104
|
+
oninput?: EventHandler;
|
|
105
|
+
onsubmit?: EventHandler;
|
|
106
|
+
onreset?: EventHandler;
|
|
107
|
+
onscroll?: EventHandler;
|
|
108
|
+
onwheel?: EventHandler;
|
|
109
|
+
onload?: EventHandler;
|
|
110
|
+
onerror?: EventHandler;
|
|
111
|
+
onresize?: EventHandler;
|
|
112
|
+
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
113
|
+
}
|
|
114
|
+
export interface AnchorHTMLAttributes extends HTMLAttributes {
|
|
115
|
+
href?: string;
|
|
116
|
+
target?: "_self" | "_blank" | "_parent" | "_top" | string;
|
|
117
|
+
rel?: string;
|
|
118
|
+
download?: string | boolean;
|
|
119
|
+
hreflang?: string;
|
|
120
|
+
ping?: string;
|
|
121
|
+
referrerpolicy?: string;
|
|
122
|
+
referrerPolicy?: string;
|
|
123
|
+
type?: string;
|
|
124
|
+
}
|
|
125
|
+
export interface ImgHTMLAttributes extends HTMLAttributes {
|
|
126
|
+
src?: string;
|
|
127
|
+
alt?: string;
|
|
128
|
+
width?: number | string;
|
|
129
|
+
height?: number | string;
|
|
130
|
+
loading?: "eager" | "lazy";
|
|
131
|
+
decoding?: "sync" | "async" | "auto";
|
|
132
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
133
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
134
|
+
srcset?: string;
|
|
135
|
+
srcSet?: string;
|
|
136
|
+
sizes?: string;
|
|
137
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
138
|
+
usemap?: string;
|
|
139
|
+
ismap?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export interface InputHTMLAttributes extends HTMLAttributes {
|
|
142
|
+
type?: string;
|
|
143
|
+
name?: string;
|
|
144
|
+
value?: string | number | readonly string[];
|
|
145
|
+
checked?: boolean;
|
|
146
|
+
disabled?: boolean;
|
|
147
|
+
readonly?: boolean;
|
|
148
|
+
readOnly?: boolean;
|
|
149
|
+
required?: boolean;
|
|
150
|
+
placeholder?: string;
|
|
151
|
+
maxlength?: number | string;
|
|
152
|
+
maxLength?: number | string;
|
|
153
|
+
minlength?: number | string;
|
|
154
|
+
minLength?: number | string;
|
|
155
|
+
max?: number | string;
|
|
156
|
+
min?: number | string;
|
|
157
|
+
step?: number | string;
|
|
158
|
+
pattern?: string;
|
|
159
|
+
multiple?: boolean;
|
|
160
|
+
accept?: string;
|
|
161
|
+
autocomplete?: string;
|
|
162
|
+
autoComplete?: string;
|
|
163
|
+
list?: string;
|
|
164
|
+
size?: number | string;
|
|
165
|
+
src?: string;
|
|
166
|
+
alt?: string;
|
|
167
|
+
width?: number | string;
|
|
168
|
+
height?: number | string;
|
|
169
|
+
form?: string;
|
|
170
|
+
formaction?: string;
|
|
171
|
+
formAction?: string;
|
|
172
|
+
formmethod?: string;
|
|
173
|
+
formMethod?: string;
|
|
174
|
+
formnovalidate?: boolean;
|
|
175
|
+
formNoValidate?: boolean;
|
|
176
|
+
formtarget?: string;
|
|
177
|
+
formTarget?: string;
|
|
178
|
+
capture?: "user" | "environment" | string;
|
|
179
|
+
}
|
|
180
|
+
export interface TextareaHTMLAttributes extends HTMLAttributes {
|
|
181
|
+
name?: string;
|
|
182
|
+
value?: string;
|
|
183
|
+
disabled?: boolean;
|
|
184
|
+
readonly?: boolean;
|
|
185
|
+
readOnly?: boolean;
|
|
186
|
+
required?: boolean;
|
|
187
|
+
placeholder?: string;
|
|
188
|
+
rows?: number | string;
|
|
189
|
+
cols?: number | string;
|
|
190
|
+
maxlength?: number | string;
|
|
191
|
+
maxLength?: number | string;
|
|
192
|
+
minlength?: number | string;
|
|
193
|
+
minLength?: number | string;
|
|
194
|
+
wrap?: "hard" | "soft" | "off";
|
|
195
|
+
autocomplete?: string;
|
|
196
|
+
autoComplete?: string;
|
|
197
|
+
form?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface SelectHTMLAttributes extends HTMLAttributes {
|
|
200
|
+
name?: string;
|
|
201
|
+
value?: string | readonly string[];
|
|
202
|
+
disabled?: boolean;
|
|
203
|
+
required?: boolean;
|
|
204
|
+
multiple?: boolean;
|
|
205
|
+
size?: number | string;
|
|
206
|
+
form?: string;
|
|
207
|
+
autocomplete?: string;
|
|
208
|
+
autoComplete?: string;
|
|
209
|
+
}
|
|
210
|
+
export interface OptionHTMLAttributes extends HTMLAttributes {
|
|
211
|
+
value?: string | number;
|
|
212
|
+
disabled?: boolean;
|
|
213
|
+
selected?: boolean;
|
|
214
|
+
label?: string;
|
|
215
|
+
}
|
|
216
|
+
export interface FormHTMLAttributes extends HTMLAttributes {
|
|
217
|
+
action?: string;
|
|
218
|
+
method?: "get" | "post" | "dialog" | string;
|
|
219
|
+
enctype?: string;
|
|
220
|
+
encType?: string;
|
|
221
|
+
target?: string;
|
|
222
|
+
novalidate?: boolean;
|
|
223
|
+
noValidate?: boolean;
|
|
224
|
+
autocomplete?: "on" | "off" | string;
|
|
225
|
+
autoComplete?: "on" | "off" | string;
|
|
226
|
+
name?: string;
|
|
227
|
+
acceptCharset?: string;
|
|
228
|
+
"accept-charset"?: string;
|
|
229
|
+
}
|
|
230
|
+
export interface ButtonHTMLAttributes extends HTMLAttributes {
|
|
231
|
+
type?: "submit" | "reset" | "button";
|
|
232
|
+
name?: string;
|
|
233
|
+
value?: string;
|
|
234
|
+
disabled?: boolean;
|
|
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
|
+
popovertarget?: string;
|
|
245
|
+
popovertargetaction?: "hide" | "show" | "toggle";
|
|
246
|
+
}
|
|
247
|
+
export interface LabelHTMLAttributes extends HTMLAttributes {
|
|
248
|
+
for?: string;
|
|
249
|
+
htmlFor?: string;
|
|
250
|
+
form?: string;
|
|
251
|
+
}
|
|
252
|
+
export interface TableHTMLAttributes extends HTMLAttributes {
|
|
253
|
+
cellpadding?: number | string;
|
|
254
|
+
cellspacing?: number | string;
|
|
255
|
+
border?: number | string;
|
|
256
|
+
width?: number | string;
|
|
257
|
+
}
|
|
258
|
+
export interface TdHTMLAttributes extends HTMLAttributes {
|
|
259
|
+
colspan?: number | string;
|
|
260
|
+
colSpan?: number | string;
|
|
261
|
+
rowspan?: number | string;
|
|
262
|
+
rowSpan?: number | string;
|
|
263
|
+
headers?: string;
|
|
264
|
+
scope?: "row" | "col" | "rowgroup" | "colgroup";
|
|
265
|
+
}
|
|
266
|
+
export interface ThHTMLAttributes extends TdHTMLAttributes {
|
|
267
|
+
abbr?: string;
|
|
268
|
+
}
|
|
269
|
+
export interface MetaHTMLAttributes extends HTMLAttributes {
|
|
270
|
+
charset?: string;
|
|
271
|
+
content?: string;
|
|
272
|
+
"http-equiv"?: string;
|
|
273
|
+
httpEquiv?: string;
|
|
274
|
+
name?: string;
|
|
275
|
+
media?: string;
|
|
276
|
+
}
|
|
277
|
+
export interface LinkHTMLAttributes extends HTMLAttributes {
|
|
278
|
+
href?: string;
|
|
279
|
+
rel?: string;
|
|
280
|
+
type?: string;
|
|
281
|
+
media?: string;
|
|
282
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
283
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
284
|
+
integrity?: string;
|
|
285
|
+
as?: string;
|
|
286
|
+
sizes?: string;
|
|
287
|
+
hreflang?: string;
|
|
288
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
289
|
+
disabled?: boolean;
|
|
290
|
+
}
|
|
291
|
+
export interface ScriptHTMLAttributes extends HTMLAttributes {
|
|
292
|
+
src?: string;
|
|
293
|
+
type?: string;
|
|
294
|
+
async?: boolean;
|
|
295
|
+
defer?: boolean;
|
|
296
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
297
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
298
|
+
integrity?: string;
|
|
299
|
+
nomodule?: boolean;
|
|
300
|
+
noModule?: boolean;
|
|
301
|
+
nonce?: string;
|
|
302
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
303
|
+
}
|
|
304
|
+
export interface StyleHTMLAttributes extends HTMLAttributes {
|
|
305
|
+
media?: string;
|
|
306
|
+
nonce?: string;
|
|
307
|
+
type?: string;
|
|
308
|
+
}
|
|
309
|
+
export interface IframeHTMLAttributes extends HTMLAttributes {
|
|
310
|
+
src?: string;
|
|
311
|
+
srcdoc?: string;
|
|
312
|
+
name?: string;
|
|
313
|
+
width?: number | string;
|
|
314
|
+
height?: number | string;
|
|
315
|
+
sandbox?: string;
|
|
316
|
+
allow?: string;
|
|
317
|
+
allowfullscreen?: boolean;
|
|
318
|
+
loading?: "eager" | "lazy";
|
|
319
|
+
referrerpolicy?: string;
|
|
320
|
+
referrerPolicy?: string;
|
|
321
|
+
}
|
|
322
|
+
export interface VideoHTMLAttributes extends HTMLAttributes {
|
|
323
|
+
src?: string;
|
|
324
|
+
poster?: string;
|
|
325
|
+
width?: number | string;
|
|
326
|
+
height?: number | string;
|
|
327
|
+
autoplay?: boolean;
|
|
328
|
+
controls?: boolean;
|
|
329
|
+
loop?: boolean;
|
|
330
|
+
muted?: boolean;
|
|
331
|
+
playsinline?: boolean;
|
|
332
|
+
preload?: "none" | "metadata" | "auto" | "";
|
|
333
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
334
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
335
|
+
}
|
|
336
|
+
export interface AudioHTMLAttributes extends HTMLAttributes {
|
|
337
|
+
src?: string;
|
|
338
|
+
autoplay?: boolean;
|
|
339
|
+
controls?: boolean;
|
|
340
|
+
loop?: boolean;
|
|
341
|
+
muted?: boolean;
|
|
342
|
+
preload?: "none" | "metadata" | "auto" | "";
|
|
343
|
+
crossorigin?: "" | "anonymous" | "use-credentials";
|
|
344
|
+
crossOrigin?: "" | "anonymous" | "use-credentials";
|
|
345
|
+
}
|
|
346
|
+
export interface SourceHTMLAttributes extends HTMLAttributes {
|
|
347
|
+
src?: string;
|
|
348
|
+
srcset?: string;
|
|
349
|
+
srcSet?: string;
|
|
350
|
+
sizes?: string;
|
|
351
|
+
type?: string;
|
|
352
|
+
media?: string;
|
|
353
|
+
width?: number | string;
|
|
354
|
+
height?: number | string;
|
|
355
|
+
}
|
|
356
|
+
export interface CanvasHTMLAttributes extends HTMLAttributes {
|
|
357
|
+
width?: number | string;
|
|
358
|
+
height?: number | string;
|
|
359
|
+
}
|
|
360
|
+
export interface DialogHTMLAttributes extends HTMLAttributes {
|
|
361
|
+
open?: boolean;
|
|
362
|
+
}
|
|
363
|
+
export interface DetailsHTMLAttributes extends HTMLAttributes {
|
|
364
|
+
open?: boolean;
|
|
365
|
+
name?: string;
|
|
366
|
+
}
|
|
367
|
+
export interface HtmlHTMLAttributes extends HTMLAttributes {
|
|
368
|
+
lang?: string;
|
|
369
|
+
xmlns?: string;
|
|
370
|
+
}
|
|
371
|
+
export interface ColHTMLAttributes extends HTMLAttributes {
|
|
372
|
+
span?: number | string;
|
|
373
|
+
width?: number | string;
|
|
374
|
+
}
|
|
375
|
+
export interface ColgroupHTMLAttributes extends HTMLAttributes {
|
|
376
|
+
span?: number | string;
|
|
377
|
+
}
|
|
378
|
+
export interface OutputHTMLAttributes extends HTMLAttributes {
|
|
379
|
+
for?: string;
|
|
380
|
+
htmlFor?: string;
|
|
381
|
+
form?: string;
|
|
382
|
+
name?: string;
|
|
383
|
+
}
|
|
384
|
+
export interface MeterHTMLAttributes extends HTMLAttributes {
|
|
385
|
+
value?: number | string;
|
|
386
|
+
min?: number | string;
|
|
387
|
+
max?: number | string;
|
|
388
|
+
low?: number | string;
|
|
389
|
+
high?: number | string;
|
|
390
|
+
optimum?: number | string;
|
|
391
|
+
form?: string;
|
|
392
|
+
}
|
|
393
|
+
export interface ProgressHTMLAttributes extends HTMLAttributes {
|
|
394
|
+
value?: number | string;
|
|
395
|
+
max?: number | string;
|
|
396
|
+
}
|
|
397
|
+
export interface TimeHTMLAttributes extends HTMLAttributes {
|
|
398
|
+
datetime?: string;
|
|
399
|
+
dateTime?: string;
|
|
400
|
+
}
|
|
401
|
+
export interface SvgHTMLAttributes extends HTMLAttributes {
|
|
402
|
+
viewBox?: string;
|
|
403
|
+
xmlns?: string;
|
|
404
|
+
fill?: string;
|
|
405
|
+
stroke?: string;
|
|
406
|
+
"stroke-width"?: number | string;
|
|
407
|
+
"stroke-linecap"?: string;
|
|
408
|
+
"stroke-linejoin"?: string;
|
|
409
|
+
width?: number | string;
|
|
410
|
+
height?: number | string;
|
|
411
|
+
d?: string;
|
|
412
|
+
cx?: number | string;
|
|
413
|
+
cy?: number | string;
|
|
414
|
+
r?: number | string;
|
|
415
|
+
x?: number | string;
|
|
416
|
+
y?: number | string;
|
|
417
|
+
x1?: number | string;
|
|
418
|
+
y1?: number | string;
|
|
419
|
+
x2?: number | string;
|
|
420
|
+
y2?: number | string;
|
|
421
|
+
rx?: number | string;
|
|
422
|
+
ry?: number | string;
|
|
423
|
+
transform?: string;
|
|
424
|
+
opacity?: number | string;
|
|
425
|
+
"clip-path"?: string;
|
|
426
|
+
points?: string;
|
|
427
|
+
[key: string]: unknown;
|
|
428
|
+
}
|
|
429
|
+
export interface SinwanIntrinsicElements {
|
|
430
|
+
html: HtmlHTMLAttributes;
|
|
431
|
+
head: HTMLAttributes;
|
|
432
|
+
body: HTMLAttributes;
|
|
433
|
+
title: HTMLAttributes;
|
|
434
|
+
base: HTMLAttributes & {
|
|
435
|
+
href?: string;
|
|
436
|
+
target?: string;
|
|
437
|
+
};
|
|
438
|
+
meta: MetaHTMLAttributes;
|
|
439
|
+
link: LinkHTMLAttributes;
|
|
440
|
+
style: StyleHTMLAttributes;
|
|
441
|
+
script: ScriptHTMLAttributes;
|
|
442
|
+
noscript: HTMLAttributes;
|
|
443
|
+
header: HTMLAttributes;
|
|
444
|
+
footer: HTMLAttributes;
|
|
445
|
+
main: HTMLAttributes;
|
|
446
|
+
nav: HTMLAttributes;
|
|
447
|
+
aside: HTMLAttributes;
|
|
448
|
+
section: HTMLAttributes;
|
|
449
|
+
article: HTMLAttributes;
|
|
450
|
+
address: HTMLAttributes;
|
|
451
|
+
hgroup: HTMLAttributes;
|
|
452
|
+
search: HTMLAttributes;
|
|
453
|
+
h1: HTMLAttributes;
|
|
454
|
+
h2: HTMLAttributes;
|
|
455
|
+
h3: HTMLAttributes;
|
|
456
|
+
h4: HTMLAttributes;
|
|
457
|
+
h5: HTMLAttributes;
|
|
458
|
+
h6: HTMLAttributes;
|
|
459
|
+
p: HTMLAttributes;
|
|
460
|
+
div: HTMLAttributes;
|
|
461
|
+
span: HTMLAttributes;
|
|
462
|
+
br: HTMLAttributes;
|
|
463
|
+
hr: HTMLAttributes;
|
|
464
|
+
pre: HTMLAttributes;
|
|
465
|
+
blockquote: HTMLAttributes & {
|
|
466
|
+
cite?: string;
|
|
467
|
+
};
|
|
468
|
+
ol: HTMLAttributes & {
|
|
469
|
+
start?: number;
|
|
470
|
+
reversed?: boolean;
|
|
471
|
+
type?: "1" | "a" | "A" | "i" | "I";
|
|
472
|
+
};
|
|
473
|
+
ul: HTMLAttributes;
|
|
474
|
+
li: HTMLAttributes & {
|
|
475
|
+
value?: number;
|
|
476
|
+
};
|
|
477
|
+
dl: HTMLAttributes;
|
|
478
|
+
dt: HTMLAttributes;
|
|
479
|
+
dd: HTMLAttributes;
|
|
480
|
+
figure: HTMLAttributes;
|
|
481
|
+
figcaption: HTMLAttributes;
|
|
482
|
+
a: AnchorHTMLAttributes;
|
|
483
|
+
em: HTMLAttributes;
|
|
484
|
+
strong: HTMLAttributes;
|
|
485
|
+
small: HTMLAttributes;
|
|
486
|
+
s: HTMLAttributes;
|
|
487
|
+
cite: HTMLAttributes;
|
|
488
|
+
q: HTMLAttributes & {
|
|
489
|
+
cite?: string;
|
|
490
|
+
};
|
|
491
|
+
dfn: HTMLAttributes;
|
|
492
|
+
abbr: HTMLAttributes;
|
|
493
|
+
ruby: HTMLAttributes;
|
|
494
|
+
rt: HTMLAttributes;
|
|
495
|
+
rp: HTMLAttributes;
|
|
496
|
+
code: HTMLAttributes;
|
|
497
|
+
var: HTMLAttributes;
|
|
498
|
+
samp: HTMLAttributes;
|
|
499
|
+
kbd: HTMLAttributes;
|
|
500
|
+
sub: HTMLAttributes;
|
|
501
|
+
sup: HTMLAttributes;
|
|
502
|
+
i: HTMLAttributes;
|
|
503
|
+
b: HTMLAttributes;
|
|
504
|
+
u: HTMLAttributes;
|
|
505
|
+
mark: HTMLAttributes;
|
|
506
|
+
bdi: HTMLAttributes;
|
|
507
|
+
bdo: HTMLAttributes & {
|
|
508
|
+
dir: "ltr" | "rtl";
|
|
509
|
+
};
|
|
510
|
+
wbr: HTMLAttributes;
|
|
511
|
+
form: FormHTMLAttributes;
|
|
512
|
+
input: InputHTMLAttributes;
|
|
513
|
+
textarea: TextareaHTMLAttributes;
|
|
514
|
+
select: SelectHTMLAttributes;
|
|
515
|
+
option: OptionHTMLAttributes;
|
|
516
|
+
optgroup: HTMLAttributes & {
|
|
517
|
+
disabled?: boolean;
|
|
518
|
+
label: string;
|
|
519
|
+
};
|
|
520
|
+
button: ButtonHTMLAttributes;
|
|
521
|
+
label: LabelHTMLAttributes;
|
|
522
|
+
fieldset: HTMLAttributes & {
|
|
523
|
+
disabled?: boolean;
|
|
524
|
+
form?: string;
|
|
525
|
+
name?: string;
|
|
526
|
+
};
|
|
527
|
+
legend: HTMLAttributes;
|
|
528
|
+
datalist: HTMLAttributes;
|
|
529
|
+
output: OutputHTMLAttributes;
|
|
530
|
+
progress: ProgressHTMLAttributes;
|
|
531
|
+
meter: MeterHTMLAttributes;
|
|
532
|
+
table: TableHTMLAttributes;
|
|
533
|
+
caption: HTMLAttributes;
|
|
534
|
+
thead: HTMLAttributes;
|
|
535
|
+
tbody: HTMLAttributes;
|
|
536
|
+
tfoot: HTMLAttributes;
|
|
537
|
+
tr: HTMLAttributes;
|
|
538
|
+
td: TdHTMLAttributes;
|
|
539
|
+
th: ThHTMLAttributes;
|
|
540
|
+
col: ColHTMLAttributes;
|
|
541
|
+
colgroup: ColgroupHTMLAttributes;
|
|
542
|
+
img: ImgHTMLAttributes;
|
|
543
|
+
picture: HTMLAttributes;
|
|
544
|
+
source: SourceHTMLAttributes;
|
|
545
|
+
video: VideoHTMLAttributes;
|
|
546
|
+
audio: AudioHTMLAttributes;
|
|
547
|
+
track: HTMLAttributes & {
|
|
548
|
+
src?: string;
|
|
549
|
+
kind?: string;
|
|
550
|
+
srclang?: string;
|
|
551
|
+
label?: string;
|
|
552
|
+
default?: boolean;
|
|
553
|
+
};
|
|
554
|
+
map: HTMLAttributes & {
|
|
555
|
+
name: string;
|
|
556
|
+
};
|
|
557
|
+
area: HTMLAttributes & {
|
|
558
|
+
href?: string;
|
|
559
|
+
alt?: string;
|
|
560
|
+
shape?: string;
|
|
561
|
+
coords?: string;
|
|
562
|
+
target?: string;
|
|
563
|
+
rel?: string;
|
|
564
|
+
};
|
|
565
|
+
canvas: CanvasHTMLAttributes;
|
|
566
|
+
iframe: IframeHTMLAttributes;
|
|
567
|
+
embed: HTMLAttributes & {
|
|
568
|
+
src?: string;
|
|
569
|
+
type?: string;
|
|
570
|
+
width?: number | string;
|
|
571
|
+
height?: number | string;
|
|
572
|
+
};
|
|
573
|
+
object: HTMLAttributes & {
|
|
574
|
+
data?: string;
|
|
575
|
+
type?: string;
|
|
576
|
+
width?: number | string;
|
|
577
|
+
height?: number | string;
|
|
578
|
+
name?: string;
|
|
579
|
+
form?: string;
|
|
580
|
+
};
|
|
581
|
+
param: HTMLAttributes & {
|
|
582
|
+
name?: string;
|
|
583
|
+
value?: string;
|
|
584
|
+
};
|
|
585
|
+
details: DetailsHTMLAttributes;
|
|
586
|
+
summary: HTMLAttributes;
|
|
587
|
+
dialog: DialogHTMLAttributes;
|
|
588
|
+
menu: HTMLAttributes;
|
|
589
|
+
template: HTMLAttributes;
|
|
590
|
+
slot: HTMLAttributes & {
|
|
591
|
+
name?: string;
|
|
592
|
+
};
|
|
593
|
+
time: TimeHTMLAttributes;
|
|
594
|
+
data: HTMLAttributes & {
|
|
595
|
+
value?: string;
|
|
596
|
+
};
|
|
597
|
+
del: HTMLAttributes & {
|
|
598
|
+
cite?: string;
|
|
599
|
+
datetime?: string;
|
|
600
|
+
};
|
|
601
|
+
ins: HTMLAttributes & {
|
|
602
|
+
cite?: string;
|
|
603
|
+
datetime?: string;
|
|
604
|
+
};
|
|
605
|
+
svg: SvgHTMLAttributes;
|
|
606
|
+
path: SvgHTMLAttributes;
|
|
607
|
+
circle: SvgHTMLAttributes;
|
|
608
|
+
rect: SvgHTMLAttributes;
|
|
609
|
+
line: SvgHTMLAttributes;
|
|
610
|
+
polyline: SvgHTMLAttributes;
|
|
611
|
+
polygon: SvgHTMLAttributes;
|
|
612
|
+
ellipse: SvgHTMLAttributes;
|
|
613
|
+
text: SvgHTMLAttributes;
|
|
614
|
+
tspan: SvgHTMLAttributes;
|
|
615
|
+
g: SvgHTMLAttributes;
|
|
616
|
+
defs: SvgHTMLAttributes;
|
|
617
|
+
use: SvgHTMLAttributes;
|
|
618
|
+
symbol: SvgHTMLAttributes;
|
|
619
|
+
clipPath: SvgHTMLAttributes;
|
|
620
|
+
mask: SvgHTMLAttributes;
|
|
621
|
+
image: SvgHTMLAttributes;
|
|
622
|
+
linearGradient: SvgHTMLAttributes;
|
|
623
|
+
radialGradient: SvgHTMLAttributes;
|
|
624
|
+
stop: SvgHTMLAttributes;
|
|
625
|
+
pattern: SvgHTMLAttributes;
|
|
626
|
+
foreignObject: SvgHTMLAttributes;
|
|
627
|
+
animate: SvgHTMLAttributes;
|
|
628
|
+
animateTransform: SvgHTMLAttributes;
|
|
629
|
+
filter: SvgHTMLAttributes;
|
|
630
|
+
feGaussianBlur: SvgHTMLAttributes;
|
|
631
|
+
feOffset: SvgHTMLAttributes;
|
|
632
|
+
feBlend: SvgHTMLAttributes;
|
|
633
|
+
feColorMatrix: SvgHTMLAttributes;
|
|
634
|
+
feComposite: SvgHTMLAttributes;
|
|
635
|
+
}
|
|
636
|
+
export {};
|
|
637
|
+
//# sourceMappingURL=jsx-types.d.ts.map
|