@atom.io/spa 0.0.0-stage → 0.0.1
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 +373 -0
- package/README.md +401 -2
- package/README.mdx +150 -0
- package/dist/astro-application.d.ts +15 -0
- package/dist/astro-application.d.ts.map +1 -0
- package/dist/astro-application.js +62 -0
- package/dist/astro-application.js.map +1 -0
- package/dist/astro-client.d.ts +9 -0
- package/dist/astro-client.d.ts.map +1 -0
- package/dist/astro-client.js +98 -0
- package/dist/astro-client.js.map +1 -0
- package/dist/astro-context-OdlexHR4.js +79 -0
- package/dist/astro-context-OdlexHR4.js.map +1 -0
- package/dist/astro-middleware.d.ts +4 -0
- package/dist/astro-middleware.d.ts.map +1 -0
- package/dist/astro-middleware.js +49 -0
- package/dist/astro-middleware.js.map +1 -0
- package/dist/astro-request-DRKvDjsO.js +70 -0
- package/dist/astro-request-DRKvDjsO.js.map +1 -0
- package/dist/astro-server.d.ts +4 -0
- package/dist/astro-server.d.ts.map +1 -0
- package/dist/astro-server.js +30 -0
- package/dist/astro-server.js.map +1 -0
- package/dist/astro-shared-BT45auwR.js +29 -0
- package/dist/astro-shared-BT45auwR.js.map +1 -0
- package/dist/astro-shared-DkZaqX7L.d.ts +31 -0
- package/dist/astro-shared-DkZaqX7L.d.ts.map +1 -0
- package/dist/astro.d.ts +6 -0
- package/dist/astro.d.ts.map +1 -0
- package/dist/astro.js +26 -0
- package/dist/astro.js.map +1 -0
- package/dist/client.min.d.ts +1 -0
- package/dist/client.min.js +1 -0
- package/dist/core-BhiA9fFi.d.ts +44 -0
- package/dist/core-BhiA9fFi.d.ts.map +1 -0
- package/dist/core-Dvqm7w2y.js +231 -0
- package/dist/core-Dvqm7w2y.js.map +1 -0
- package/dist/development/astro-application.js +62 -0
- package/dist/development/astro-application.js.map +1 -0
- package/dist/development/astro-client.js +98 -0
- package/dist/development/astro-client.js.map +1 -0
- package/dist/development/astro-context-OdlexHR4.js +79 -0
- package/dist/development/astro-context-OdlexHR4.js.map +1 -0
- package/dist/development/astro-middleware.js +49 -0
- package/dist/development/astro-middleware.js.map +1 -0
- package/dist/development/astro-request-DRKvDjsO.js +70 -0
- package/dist/development/astro-request-DRKvDjsO.js.map +1 -0
- package/dist/development/astro-server.js +30 -0
- package/dist/development/astro-server.js.map +1 -0
- package/dist/development/astro-shared-BT45auwR.js +29 -0
- package/dist/development/astro-shared-BT45auwR.js.map +1 -0
- package/dist/development/astro.js +26 -0
- package/dist/development/astro.js.map +1 -0
- package/dist/development/core-DB3sQz4h.js +234 -0
- package/dist/development/core-DB3sQz4h.js.map +1 -0
- package/dist/development/dom-D9cY6l1R.js +194 -0
- package/dist/development/dom-D9cY6l1R.js.map +1 -0
- package/dist/development/index.js +40 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/jsx-runtime.js +25 -0
- package/dist/development/jsx-runtime.js.map +1 -0
- package/dist/development/server.js +87 -0
- package/dist/development/server.js.map +1 -0
- package/dist/development/vite-CQchIQ_-.js +126 -0
- package/dist/development/vite-CQchIQ_-.js.map +1 -0
- package/dist/development/vite.js +1 -0
- package/dist/dom-BR9o9wZW.js +188 -0
- package/dist/dom-BR9o9wZW.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx-runtime-BzGV18VO.d.ts +965 -0
- package/dist/jsx-runtime-BzGV18VO.d.ts.map +1 -0
- package/dist/jsx-runtime.d.ts +2 -0
- package/dist/jsx-runtime.js +25 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +87 -0
- package/dist/server.js.map +1 -0
- package/dist/size.json +30 -0
- package/dist/vite-CQchIQ_-.js +126 -0
- package/dist/vite-CQchIQ_-.js.map +1 -0
- package/dist/vite.d.ts +6 -0
- package/dist/vite.d.ts.map +1 -0
- package/dist/vite.js +1 -0
- package/package.json +129 -3
- package/src/astro-application.ts +71 -0
- package/src/astro-client.ts +136 -0
- package/src/astro-context.ts +102 -0
- package/src/astro-middleware.ts +48 -0
- package/src/astro-request.ts +79 -0
- package/src/astro-server.ts +43 -0
- package/src/astro-shared.ts +78 -0
- package/src/astro.ts +47 -0
- package/src/compiler.ts +190 -0
- package/src/core.ts +385 -0
- package/src/dom.ts +385 -0
- package/src/env.d.ts +1 -0
- package/src/index.ts +24 -0
- package/src/jsx-runtime.ts +63 -0
- package/src/jsx-types.d.ts +909 -0
- package/src/server.ts +155 -0
- package/src/use-loadable.ts +67 -0
- package/src/vite.ts +48 -0
|
@@ -0,0 +1,965 @@
|
|
|
1
|
+
import { n as Child, o as VNode, r as Component } from "./core-BhiA9fFi.js";
|
|
2
|
+
/** Native events retain their target; only currentTarget is the attached element. */
|
|
3
|
+
type TargetedEvent<E extends Element, T extends Event = Event> = Omit<T, `currentTarget`> & {
|
|
4
|
+
readonly currentTarget: E;
|
|
5
|
+
};
|
|
6
|
+
type EventHandler<E extends Element, T extends Event = Event> = (event: TargetedEvent<E, T>) => void;
|
|
7
|
+
type Ref<E extends Element> = (element: E | null) => void;
|
|
8
|
+
type Attributes<T> = { [K in keyof T]?: T[K] | null | undefined; };
|
|
9
|
+
// DOM event names are lowercase; JSX convention capitalizes each word.
|
|
10
|
+
interface EventNames {
|
|
11
|
+
afterprint: `AfterPrint`;
|
|
12
|
+
beforeprint: `BeforePrint`;
|
|
13
|
+
beforeunload: `BeforeUnload`;
|
|
14
|
+
hashchange: `HashChange`;
|
|
15
|
+
languagechange: `LanguageChange`;
|
|
16
|
+
messageerror: `MessageError`;
|
|
17
|
+
pagehide: `PageHide`;
|
|
18
|
+
pagereveal: `PageReveal`;
|
|
19
|
+
pageshow: `PageShow`;
|
|
20
|
+
pageswap: `PageSwap`;
|
|
21
|
+
popstate: `PopState`;
|
|
22
|
+
rejectionhandled: `RejectionHandled`;
|
|
23
|
+
unhandledrejection: `UnhandledRejection`;
|
|
24
|
+
animationcancel: `AnimationCancel`;
|
|
25
|
+
animationend: `AnimationEnd`;
|
|
26
|
+
animationiteration: `AnimationIteration`;
|
|
27
|
+
animationstart: `AnimationStart`;
|
|
28
|
+
auxclick: `AuxClick`;
|
|
29
|
+
beforeinput: `BeforeInput`;
|
|
30
|
+
beforematch: `BeforeMatch`;
|
|
31
|
+
beforetoggle: `BeforeToggle`;
|
|
32
|
+
canplay: `CanPlay`;
|
|
33
|
+
canplaythrough: `CanPlayThrough`;
|
|
34
|
+
compositionend: `CompositionEnd`;
|
|
35
|
+
compositionstart: `CompositionStart`;
|
|
36
|
+
compositionupdate: `CompositionUpdate`;
|
|
37
|
+
cuechange: `CueChange`;
|
|
38
|
+
formdata: `FormData`;
|
|
39
|
+
waitingforkey: `WaitingForKey`;
|
|
40
|
+
enterpictureinpicture: `EnterPictureInPicture`;
|
|
41
|
+
leavepictureinpicture: `LeavePictureInPicture`;
|
|
42
|
+
contextlost: `ContextLost`;
|
|
43
|
+
contextmenu: `ContextMenu`;
|
|
44
|
+
contextrestored: `ContextRestored`;
|
|
45
|
+
dblclick: `DoubleClick` | `DblClick`;
|
|
46
|
+
dragend: `DragEnd`;
|
|
47
|
+
dragenter: `DragEnter`;
|
|
48
|
+
dragexit: `DragExit`;
|
|
49
|
+
dragleave: `DragLeave`;
|
|
50
|
+
dragover: `DragOver`;
|
|
51
|
+
dragstart: `DragStart`;
|
|
52
|
+
durationchange: `DurationChange`;
|
|
53
|
+
focusin: `FocusIn`;
|
|
54
|
+
focusout: `FocusOut`;
|
|
55
|
+
fullscreenchange: `FullscreenChange`;
|
|
56
|
+
fullscreenerror: `FullscreenError`;
|
|
57
|
+
gotpointercapture: `GotPointerCapture`;
|
|
58
|
+
keydown: `KeyDown`;
|
|
59
|
+
keypress: `KeyPress`;
|
|
60
|
+
keyup: `KeyUp`;
|
|
61
|
+
loadeddata: `LoadedData`;
|
|
62
|
+
loadedmetadata: `LoadedMetadata`;
|
|
63
|
+
loadstart: `LoadStart`;
|
|
64
|
+
lostpointercapture: `LostPointerCapture`;
|
|
65
|
+
mousedown: `MouseDown`;
|
|
66
|
+
mouseenter: `MouseEnter`;
|
|
67
|
+
mouseleave: `MouseLeave`;
|
|
68
|
+
mousemove: `MouseMove`;
|
|
69
|
+
mouseout: `MouseOut`;
|
|
70
|
+
mouseover: `MouseOver`;
|
|
71
|
+
mouseup: `MouseUp`;
|
|
72
|
+
pointercancel: `PointerCancel`;
|
|
73
|
+
pointerdown: `PointerDown`;
|
|
74
|
+
pointerenter: `PointerEnter`;
|
|
75
|
+
pointerleave: `PointerLeave`;
|
|
76
|
+
pointermove: `PointerMove`;
|
|
77
|
+
pointerout: `PointerOut`;
|
|
78
|
+
pointerover: `PointerOver`;
|
|
79
|
+
pointerrawupdate: `PointerRawUpdate`;
|
|
80
|
+
pointerup: `PointerUp`;
|
|
81
|
+
ratechange: `RateChange`;
|
|
82
|
+
scrollend: `ScrollEnd`;
|
|
83
|
+
securitypolicyviolation: `SecurityPolicyViolation`;
|
|
84
|
+
selectionchange: `SelectionChange`;
|
|
85
|
+
selectstart: `SelectStart`;
|
|
86
|
+
slotchange: `SlotChange`;
|
|
87
|
+
timeupdate: `TimeUpdate`;
|
|
88
|
+
touchcancel: `TouchCancel`;
|
|
89
|
+
touchend: `TouchEnd`;
|
|
90
|
+
touchmove: `TouchMove`;
|
|
91
|
+
touchstart: `TouchStart`;
|
|
92
|
+
transitioncancel: `TransitionCancel`;
|
|
93
|
+
transitionend: `TransitionEnd`;
|
|
94
|
+
transitionrun: `TransitionRun`;
|
|
95
|
+
transitionstart: `TransitionStart`;
|
|
96
|
+
volumechange: `VolumeChange`;
|
|
97
|
+
webkitanimationend: `WebkitAnimationEnd`;
|
|
98
|
+
webkitanimationiteration: `WebkitAnimationIteration`;
|
|
99
|
+
webkitanimationstart: `WebkitAnimationStart`;
|
|
100
|
+
webkittransitionend: `WebkitTransitionEnd`;
|
|
101
|
+
}
|
|
102
|
+
type EventName<K extends string> = K | Capitalize<K> | (K extends keyof EventNames ? EventNames[K] : never);
|
|
103
|
+
type ElementEvents<E extends Element> = E extends HTMLVideoElement ? HTMLVideoElementEventMap : E extends HTMLMediaElement ? HTMLMediaElementEventMap : E extends HTMLBodyElement ? HTMLBodyElementEventMap : E extends HTMLFrameSetElement ? HTMLFrameSetElementEventMap : E extends SVGSVGElement ? SVGSVGElementEventMap : E extends SVGElement ? SVGElementEventMap : HTMLElementEventMap;
|
|
104
|
+
type EventAttributes<E extends Element> = { [K in keyof ElementEvents<E> & string as `on${EventName<K>}${`` | `Capture`}`]?: EventHandler<E, Extract<ElementEvents<E>[K], Event>> | null | undefined; };
|
|
105
|
+
type Booleanish = boolean | `true` | `false`;
|
|
106
|
+
type AriaAttributes = Attributes<{
|
|
107
|
+
[`aria-activedescendant`]: string;
|
|
108
|
+
[`aria-atomic`]: Booleanish;
|
|
109
|
+
[`aria-autocomplete`]: `none` | `inline` | `list` | `both`;
|
|
110
|
+
[`aria-braillelabel`]: string;
|
|
111
|
+
[`aria-brailleroledescription`]: string;
|
|
112
|
+
[`aria-busy`]: Booleanish;
|
|
113
|
+
[`aria-checked`]: Booleanish | `mixed`;
|
|
114
|
+
[`aria-colcount`]: number;
|
|
115
|
+
[`aria-colindex`]: number;
|
|
116
|
+
[`aria-colindextext`]: string;
|
|
117
|
+
[`aria-colspan`]: number;
|
|
118
|
+
[`aria-controls`]: string;
|
|
119
|
+
[`aria-current`]: Booleanish | `page` | `step` | `location` | `date` | `time`;
|
|
120
|
+
[`aria-describedby`]: string;
|
|
121
|
+
[`aria-description`]: string;
|
|
122
|
+
[`aria-details`]: string;
|
|
123
|
+
[`aria-disabled`]: Booleanish;
|
|
124
|
+
[`aria-dropeffect`]: `none` | `copy` | `execute` | `link` | `move` | `popup`;
|
|
125
|
+
[`aria-errormessage`]: string;
|
|
126
|
+
[`aria-expanded`]: Booleanish;
|
|
127
|
+
[`aria-flowto`]: string;
|
|
128
|
+
[`aria-grabbed`]: Booleanish;
|
|
129
|
+
[`aria-haspopup`]: Booleanish | `menu` | `listbox` | `tree` | `grid` | `dialog`;
|
|
130
|
+
[`aria-hidden`]: Booleanish;
|
|
131
|
+
[`aria-invalid`]: Booleanish | `grammar` | `spelling`;
|
|
132
|
+
[`aria-keyshortcuts`]: string;
|
|
133
|
+
[`aria-label`]: string;
|
|
134
|
+
[`aria-labelledby`]: string;
|
|
135
|
+
[`aria-level`]: number;
|
|
136
|
+
[`aria-live`]: `off` | `assertive` | `polite`;
|
|
137
|
+
[`aria-modal`]: Booleanish;
|
|
138
|
+
[`aria-multiline`]: Booleanish;
|
|
139
|
+
[`aria-multiselectable`]: Booleanish;
|
|
140
|
+
[`aria-orientation`]: `horizontal` | `vertical`;
|
|
141
|
+
[`aria-owns`]: string;
|
|
142
|
+
[`aria-placeholder`]: string;
|
|
143
|
+
[`aria-posinset`]: number;
|
|
144
|
+
[`aria-pressed`]: Booleanish | `mixed`;
|
|
145
|
+
[`aria-readonly`]: Booleanish;
|
|
146
|
+
[`aria-relevant`]: `additions` | `additions removals` | `additions text` | `all` | `removals` | `removals additions` | `removals text` | `text` | `text additions` | `text removals`;
|
|
147
|
+
[`aria-required`]: Booleanish;
|
|
148
|
+
[`aria-roledescription`]: string;
|
|
149
|
+
[`aria-rowcount`]: number;
|
|
150
|
+
[`aria-rowindex`]: number;
|
|
151
|
+
[`aria-rowindextext`]: string;
|
|
152
|
+
[`aria-rowspan`]: number;
|
|
153
|
+
[`aria-selected`]: Booleanish;
|
|
154
|
+
[`aria-setsize`]: number;
|
|
155
|
+
[`aria-sort`]: `none` | `ascending` | `descending` | `other`;
|
|
156
|
+
[`aria-valuemax`]: number;
|
|
157
|
+
[`aria-valuemin`]: number;
|
|
158
|
+
[`aria-valuenow`]: number;
|
|
159
|
+
[`aria-valuetext`]: string;
|
|
160
|
+
}>;
|
|
161
|
+
type DOMAttributes<E extends Element> = EventAttributes<E> & AriaAttributes & Attributes<{
|
|
162
|
+
children: Child;
|
|
163
|
+
key: string | number;
|
|
164
|
+
ref: Ref<E>;
|
|
165
|
+
id: string;
|
|
166
|
+
class: string;
|
|
167
|
+
className: string;
|
|
168
|
+
style: string;
|
|
169
|
+
role: string;
|
|
170
|
+
slot: string;
|
|
171
|
+
tabIndex: number;
|
|
172
|
+
tabindex: number;
|
|
173
|
+
}> & { [K in `data-${string}`]?: string | number | boolean | null | undefined; };
|
|
174
|
+
// HTML attribute names are case-insensitive. Support reflected property names
|
|
175
|
+
// as well as their lowercase markup spellings, without exposing DOM methods.
|
|
176
|
+
type HTMLAliases<T> = Attributes<T> & { [K in keyof T as K extends string ? Lowercase<K> : never]?: T[K] | null | undefined; };
|
|
177
|
+
type HTMLAttributes<E extends HTMLElement = HTMLElement> = DOMAttributes<E> & HTMLAliases<{
|
|
178
|
+
accessKey: string;
|
|
179
|
+
autoCapitalize: `off` | `none` | `on` | `sentences` | `words` | `characters`;
|
|
180
|
+
autoCorrect: `on` | `off`;
|
|
181
|
+
autoFocus: boolean;
|
|
182
|
+
contentEditable: `true` | `false` | `plaintext-only` | `inherit`;
|
|
183
|
+
dir: `auto` | `ltr` | `rtl`;
|
|
184
|
+
draggable: boolean;
|
|
185
|
+
enterKeyHint: `enter` | `done` | `go` | `next` | `previous` | `search` | `send`;
|
|
186
|
+
exportparts: string;
|
|
187
|
+
hidden: boolean | `hidden` | `until-found`;
|
|
188
|
+
inert: boolean;
|
|
189
|
+
inputMode: `none` | `text` | `tel` | `url` | `email` | `numeric` | `decimal` | `search`;
|
|
190
|
+
is: string;
|
|
191
|
+
itemID: string;
|
|
192
|
+
itemProp: string;
|
|
193
|
+
itemRef: string;
|
|
194
|
+
itemScope: boolean;
|
|
195
|
+
itemType: string;
|
|
196
|
+
lang: string;
|
|
197
|
+
nonce: string;
|
|
198
|
+
part: string;
|
|
199
|
+
popover: `auto` | `hint` | `manual`;
|
|
200
|
+
spellcheck: boolean;
|
|
201
|
+
title: string;
|
|
202
|
+
translate: `yes` | `no`;
|
|
203
|
+
virtualKeyboardPolicy: `auto` | `manual`;
|
|
204
|
+
writingSuggestions: `true` | `false`;
|
|
205
|
+
// RDFa
|
|
206
|
+
about: string;
|
|
207
|
+
datatype: string;
|
|
208
|
+
inlist: string;
|
|
209
|
+
prefix: string;
|
|
210
|
+
property: string;
|
|
211
|
+
resource: string;
|
|
212
|
+
typeof: string;
|
|
213
|
+
vocab: string;
|
|
214
|
+
}>;
|
|
215
|
+
type NumberOrString = number | string;
|
|
216
|
+
type ReferrerPolicy = `` | `no-referrer` | `no-referrer-when-downgrade` | `origin` | `origin-when-cross-origin` | `same-origin` | `strict-origin` | `strict-origin-when-cross-origin` | `unsafe-url`;
|
|
217
|
+
type CrossOrigin = `` | `anonymous` | `use-credentials`;
|
|
218
|
+
type FormOverrides = {
|
|
219
|
+
form: string;
|
|
220
|
+
formAction: string;
|
|
221
|
+
formEncType: string;
|
|
222
|
+
formMethod: string;
|
|
223
|
+
formNoValidate: boolean;
|
|
224
|
+
formTarget: string;
|
|
225
|
+
};
|
|
226
|
+
type MediaAttributes = {
|
|
227
|
+
autoPlay: boolean;
|
|
228
|
+
controls: boolean;
|
|
229
|
+
controlsList: string;
|
|
230
|
+
crossOrigin: CrossOrigin;
|
|
231
|
+
disableRemotePlayback: boolean;
|
|
232
|
+
loop: boolean;
|
|
233
|
+
muted: boolean;
|
|
234
|
+
preload: `` | `none` | `metadata` | `auto`;
|
|
235
|
+
src: string;
|
|
236
|
+
};
|
|
237
|
+
type LinkAttributes = {
|
|
238
|
+
download: string | boolean;
|
|
239
|
+
href: string;
|
|
240
|
+
hrefLang: string;
|
|
241
|
+
ping: string;
|
|
242
|
+
referrerPolicy: ReferrerPolicy;
|
|
243
|
+
rel: string;
|
|
244
|
+
target: string;
|
|
245
|
+
type: string;
|
|
246
|
+
};
|
|
247
|
+
type CellAttributes = {
|
|
248
|
+
abbr: string;
|
|
249
|
+
colSpan: number;
|
|
250
|
+
headers: string;
|
|
251
|
+
rowSpan: number;
|
|
252
|
+
scope: `row` | `col` | `rowgroup` | `colgroup`;
|
|
253
|
+
};
|
|
254
|
+
/** Attributes specific to each HTML tag, in addition to global attributes. */
|
|
255
|
+
interface HTMLTagAttributes {
|
|
256
|
+
a: LinkAttributes;
|
|
257
|
+
area: LinkAttributes & {
|
|
258
|
+
alt: string;
|
|
259
|
+
coords: string;
|
|
260
|
+
shape: `default` | `rect` | `circle` | `poly`;
|
|
261
|
+
};
|
|
262
|
+
audio: MediaAttributes;
|
|
263
|
+
base: {
|
|
264
|
+
href: string;
|
|
265
|
+
target: string;
|
|
266
|
+
};
|
|
267
|
+
blockquote: {
|
|
268
|
+
cite: string;
|
|
269
|
+
};
|
|
270
|
+
button: FormOverrides & {
|
|
271
|
+
disabled: boolean;
|
|
272
|
+
name: string;
|
|
273
|
+
type: `button` | `submit` | `reset`;
|
|
274
|
+
value: NumberOrString;
|
|
275
|
+
popoverTarget: string;
|
|
276
|
+
popoverTargetAction: `hide` | `show` | `toggle`;
|
|
277
|
+
command: string;
|
|
278
|
+
commandFor: string;
|
|
279
|
+
};
|
|
280
|
+
canvas: {
|
|
281
|
+
height: NumberOrString;
|
|
282
|
+
width: NumberOrString;
|
|
283
|
+
};
|
|
284
|
+
col: {
|
|
285
|
+
span: number;
|
|
286
|
+
};
|
|
287
|
+
colgroup: {
|
|
288
|
+
span: number;
|
|
289
|
+
};
|
|
290
|
+
data: {
|
|
291
|
+
value: NumberOrString;
|
|
292
|
+
};
|
|
293
|
+
del: {
|
|
294
|
+
cite: string;
|
|
295
|
+
dateTime: string;
|
|
296
|
+
};
|
|
297
|
+
details: {
|
|
298
|
+
name: string;
|
|
299
|
+
open: boolean;
|
|
300
|
+
};
|
|
301
|
+
dialog: {
|
|
302
|
+
open: boolean;
|
|
303
|
+
closedBy: `any` | `closerequest` | `none`;
|
|
304
|
+
};
|
|
305
|
+
embed: {
|
|
306
|
+
height: NumberOrString;
|
|
307
|
+
src: string;
|
|
308
|
+
type: string;
|
|
309
|
+
width: NumberOrString;
|
|
310
|
+
};
|
|
311
|
+
fieldset: {
|
|
312
|
+
disabled: boolean;
|
|
313
|
+
form: string;
|
|
314
|
+
name: string;
|
|
315
|
+
};
|
|
316
|
+
form: {
|
|
317
|
+
acceptCharset: string;
|
|
318
|
+
[`accept-charset`]: string;
|
|
319
|
+
action: string;
|
|
320
|
+
autoComplete: `on` | `off`;
|
|
321
|
+
encType: string;
|
|
322
|
+
method: string;
|
|
323
|
+
name: string;
|
|
324
|
+
noValidate: boolean;
|
|
325
|
+
rel: string;
|
|
326
|
+
target: string;
|
|
327
|
+
};
|
|
328
|
+
html: {
|
|
329
|
+
xmlns: string;
|
|
330
|
+
};
|
|
331
|
+
iframe: {
|
|
332
|
+
allow: string;
|
|
333
|
+
allowFullScreen: boolean;
|
|
334
|
+
credentialless: boolean;
|
|
335
|
+
height: NumberOrString;
|
|
336
|
+
loading: `eager` | `lazy`;
|
|
337
|
+
name: string;
|
|
338
|
+
referrerPolicy: ReferrerPolicy;
|
|
339
|
+
sandbox: string;
|
|
340
|
+
src: string;
|
|
341
|
+
srcDoc: string;
|
|
342
|
+
width: NumberOrString;
|
|
343
|
+
};
|
|
344
|
+
img: {
|
|
345
|
+
alt: string;
|
|
346
|
+
crossOrigin: CrossOrigin;
|
|
347
|
+
decoding: `async` | `sync` | `auto`;
|
|
348
|
+
fetchPriority: `high` | `low` | `auto`;
|
|
349
|
+
height: NumberOrString;
|
|
350
|
+
isMap: boolean;
|
|
351
|
+
loading: `eager` | `lazy`;
|
|
352
|
+
referrerPolicy: ReferrerPolicy;
|
|
353
|
+
sizes: string;
|
|
354
|
+
src: string;
|
|
355
|
+
srcSet: string;
|
|
356
|
+
useMap: string;
|
|
357
|
+
width: NumberOrString;
|
|
358
|
+
};
|
|
359
|
+
input: FormOverrides & {
|
|
360
|
+
accept: string;
|
|
361
|
+
alt: string;
|
|
362
|
+
autoComplete: string;
|
|
363
|
+
capture: boolean | `user` | `environment`;
|
|
364
|
+
checked: boolean;
|
|
365
|
+
defaultChecked: boolean;
|
|
366
|
+
defaultValue: NumberOrString;
|
|
367
|
+
dirName: string;
|
|
368
|
+
disabled: boolean;
|
|
369
|
+
height: NumberOrString;
|
|
370
|
+
list: string;
|
|
371
|
+
max: NumberOrString;
|
|
372
|
+
maxLength: number;
|
|
373
|
+
min: NumberOrString;
|
|
374
|
+
minLength: number;
|
|
375
|
+
multiple: boolean;
|
|
376
|
+
name: string;
|
|
377
|
+
pattern: string;
|
|
378
|
+
placeholder: string;
|
|
379
|
+
popoverTarget: string;
|
|
380
|
+
popoverTargetAction: `hide` | `show` | `toggle`;
|
|
381
|
+
readOnly: boolean;
|
|
382
|
+
required: boolean;
|
|
383
|
+
size: number;
|
|
384
|
+
src: string;
|
|
385
|
+
step: NumberOrString;
|
|
386
|
+
type: string;
|
|
387
|
+
value: NumberOrString;
|
|
388
|
+
width: NumberOrString;
|
|
389
|
+
};
|
|
390
|
+
ins: {
|
|
391
|
+
cite: string;
|
|
392
|
+
dateTime: string;
|
|
393
|
+
};
|
|
394
|
+
label: {
|
|
395
|
+
for: string;
|
|
396
|
+
htmlFor: string;
|
|
397
|
+
form: string;
|
|
398
|
+
};
|
|
399
|
+
li: {
|
|
400
|
+
value: number;
|
|
401
|
+
};
|
|
402
|
+
link: {
|
|
403
|
+
as: string;
|
|
404
|
+
blocking: string;
|
|
405
|
+
crossOrigin: CrossOrigin;
|
|
406
|
+
disabled: boolean;
|
|
407
|
+
fetchPriority: `high` | `low` | `auto`;
|
|
408
|
+
href: string;
|
|
409
|
+
hrefLang: string;
|
|
410
|
+
imageSizes: string;
|
|
411
|
+
imageSrcSet: string;
|
|
412
|
+
integrity: string;
|
|
413
|
+
media: string;
|
|
414
|
+
referrerPolicy: ReferrerPolicy;
|
|
415
|
+
rel: string;
|
|
416
|
+
sizes: string;
|
|
417
|
+
type: string;
|
|
418
|
+
};
|
|
419
|
+
map: {
|
|
420
|
+
name: string;
|
|
421
|
+
};
|
|
422
|
+
meta: {
|
|
423
|
+
charSet: string;
|
|
424
|
+
content: string;
|
|
425
|
+
httpEquiv: string;
|
|
426
|
+
[`http-equiv`]: string;
|
|
427
|
+
media: string;
|
|
428
|
+
name: string;
|
|
429
|
+
};
|
|
430
|
+
meter: {
|
|
431
|
+
high: number;
|
|
432
|
+
low: number;
|
|
433
|
+
max: number;
|
|
434
|
+
min: number;
|
|
435
|
+
optimum: number;
|
|
436
|
+
value: number;
|
|
437
|
+
};
|
|
438
|
+
object: {
|
|
439
|
+
data: string;
|
|
440
|
+
form: string;
|
|
441
|
+
height: NumberOrString;
|
|
442
|
+
name: string;
|
|
443
|
+
type: string;
|
|
444
|
+
useMap: string;
|
|
445
|
+
width: NumberOrString;
|
|
446
|
+
};
|
|
447
|
+
ol: {
|
|
448
|
+
reversed: boolean;
|
|
449
|
+
start: number;
|
|
450
|
+
type: `1` | `a` | `A` | `i` | `I`;
|
|
451
|
+
};
|
|
452
|
+
optgroup: {
|
|
453
|
+
disabled: boolean;
|
|
454
|
+
label: string;
|
|
455
|
+
};
|
|
456
|
+
option: {
|
|
457
|
+
disabled: boolean;
|
|
458
|
+
label: string;
|
|
459
|
+
selected: boolean;
|
|
460
|
+
value: NumberOrString;
|
|
461
|
+
};
|
|
462
|
+
output: {
|
|
463
|
+
for: string;
|
|
464
|
+
htmlFor: string;
|
|
465
|
+
form: string;
|
|
466
|
+
name: string;
|
|
467
|
+
};
|
|
468
|
+
progress: {
|
|
469
|
+
max: number;
|
|
470
|
+
value: number;
|
|
471
|
+
};
|
|
472
|
+
q: {
|
|
473
|
+
cite: string;
|
|
474
|
+
};
|
|
475
|
+
script: {
|
|
476
|
+
async: boolean;
|
|
477
|
+
blocking: string;
|
|
478
|
+
charSet: string;
|
|
479
|
+
crossOrigin: CrossOrigin;
|
|
480
|
+
defer: boolean;
|
|
481
|
+
fetchPriority: `high` | `low` | `auto`;
|
|
482
|
+
integrity: string;
|
|
483
|
+
noModule: boolean;
|
|
484
|
+
referrerPolicy: ReferrerPolicy;
|
|
485
|
+
src: string;
|
|
486
|
+
type: string;
|
|
487
|
+
};
|
|
488
|
+
select: {
|
|
489
|
+
autoComplete: string;
|
|
490
|
+
disabled: boolean;
|
|
491
|
+
form: string;
|
|
492
|
+
multiple: boolean;
|
|
493
|
+
name: string;
|
|
494
|
+
required: boolean;
|
|
495
|
+
size: number;
|
|
496
|
+
value: NumberOrString;
|
|
497
|
+
};
|
|
498
|
+
slot: {
|
|
499
|
+
name: string;
|
|
500
|
+
};
|
|
501
|
+
source: {
|
|
502
|
+
height: NumberOrString;
|
|
503
|
+
media: string;
|
|
504
|
+
sizes: string;
|
|
505
|
+
src: string;
|
|
506
|
+
srcSet: string;
|
|
507
|
+
type: string;
|
|
508
|
+
width: NumberOrString;
|
|
509
|
+
};
|
|
510
|
+
style: {
|
|
511
|
+
blocking: string;
|
|
512
|
+
media: string;
|
|
513
|
+
title: string;
|
|
514
|
+
type: string;
|
|
515
|
+
};
|
|
516
|
+
table: {
|
|
517
|
+
cellPadding: NumberOrString;
|
|
518
|
+
cellSpacing: NumberOrString;
|
|
519
|
+
};
|
|
520
|
+
td: CellAttributes;
|
|
521
|
+
template: {
|
|
522
|
+
shadowRootClonable: boolean;
|
|
523
|
+
shadowRootDelegatesFocus: boolean;
|
|
524
|
+
shadowRootMode: `open` | `closed`;
|
|
525
|
+
shadowRootSerializable: boolean;
|
|
526
|
+
};
|
|
527
|
+
textarea: {
|
|
528
|
+
autoComplete: string;
|
|
529
|
+
cols: number;
|
|
530
|
+
defaultValue: string;
|
|
531
|
+
dirName: string;
|
|
532
|
+
disabled: boolean;
|
|
533
|
+
form: string;
|
|
534
|
+
maxLength: number;
|
|
535
|
+
minLength: number;
|
|
536
|
+
name: string;
|
|
537
|
+
placeholder: string;
|
|
538
|
+
readOnly: boolean;
|
|
539
|
+
required: boolean;
|
|
540
|
+
rows: number;
|
|
541
|
+
value: string;
|
|
542
|
+
wrap: `hard` | `soft` | `off`;
|
|
543
|
+
};
|
|
544
|
+
th: CellAttributes;
|
|
545
|
+
time: {
|
|
546
|
+
dateTime: string;
|
|
547
|
+
};
|
|
548
|
+
track: {
|
|
549
|
+
default: boolean;
|
|
550
|
+
kind: `subtitles` | `captions` | `descriptions` | `chapters` | `metadata`;
|
|
551
|
+
label: string;
|
|
552
|
+
src: string;
|
|
553
|
+
srcLang: string;
|
|
554
|
+
};
|
|
555
|
+
video: MediaAttributes & {
|
|
556
|
+
disablePictureInPicture: boolean;
|
|
557
|
+
height: NumberOrString;
|
|
558
|
+
playsInline: boolean;
|
|
559
|
+
poster: string;
|
|
560
|
+
width: NumberOrString;
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
type HTMLIntrinsicElements = { [Tag in keyof HTMLElementTagNameMap]: HTMLAttributes<HTMLElementTagNameMap[Tag]> & (Tag extends keyof HTMLTagAttributes ? HTMLAliases<HTMLTagAttributes[Tag]> : {}); };
|
|
564
|
+
/** SVG uses literal attribute names: e.g. stroke-width, not strokeWidth. */
|
|
565
|
+
type SVGAttributes<E extends SVGElement = SVGElement> = DOMAttributes<E> & Attributes<{
|
|
566
|
+
lang: string;
|
|
567
|
+
[`xml:lang`]: string;
|
|
568
|
+
[`xml:space`]: `default` | `preserve`;
|
|
569
|
+
xmlns: string;
|
|
570
|
+
[`xmlns:xlink`]: string;
|
|
571
|
+
[`alignment-baseline`]: string;
|
|
572
|
+
[`baseline-shift`]: NumberOrString;
|
|
573
|
+
clip: string;
|
|
574
|
+
[`clip-path`]: string;
|
|
575
|
+
[`clip-rule`]: `nonzero` | `evenodd` | `inherit`;
|
|
576
|
+
color: string;
|
|
577
|
+
[`color-interpolation`]: string;
|
|
578
|
+
[`color-interpolation-filters`]: string;
|
|
579
|
+
[`color-rendering`]: string;
|
|
580
|
+
cursor: string;
|
|
581
|
+
direction: `ltr` | `rtl` | `inherit`;
|
|
582
|
+
display: string;
|
|
583
|
+
[`dominant-baseline`]: string;
|
|
584
|
+
fill: string;
|
|
585
|
+
[`fill-opacity`]: NumberOrString;
|
|
586
|
+
[`fill-rule`]: `nonzero` | `evenodd` | `inherit`;
|
|
587
|
+
filter: string;
|
|
588
|
+
[`flood-color`]: string;
|
|
589
|
+
[`flood-opacity`]: NumberOrString;
|
|
590
|
+
[`font-family`]: string;
|
|
591
|
+
[`font-size`]: NumberOrString;
|
|
592
|
+
[`font-size-adjust`]: NumberOrString;
|
|
593
|
+
[`font-stretch`]: string;
|
|
594
|
+
[`font-style`]: string;
|
|
595
|
+
[`font-variant`]: string;
|
|
596
|
+
[`font-weight`]: NumberOrString;
|
|
597
|
+
[`image-rendering`]: string;
|
|
598
|
+
[`letter-spacing`]: NumberOrString;
|
|
599
|
+
[`lighting-color`]: string;
|
|
600
|
+
[`marker-end`]: string;
|
|
601
|
+
[`marker-mid`]: string;
|
|
602
|
+
[`marker-start`]: string;
|
|
603
|
+
mask: string;
|
|
604
|
+
opacity: NumberOrString;
|
|
605
|
+
overflow: string;
|
|
606
|
+
[`paint-order`]: string;
|
|
607
|
+
[`pointer-events`]: string;
|
|
608
|
+
[`shape-rendering`]: string;
|
|
609
|
+
[`stop-color`]: string;
|
|
610
|
+
[`stop-opacity`]: NumberOrString;
|
|
611
|
+
stroke: string;
|
|
612
|
+
[`stroke-dasharray`]: NumberOrString;
|
|
613
|
+
[`stroke-dashoffset`]: NumberOrString;
|
|
614
|
+
[`stroke-linecap`]: `butt` | `round` | `square` | `inherit`;
|
|
615
|
+
[`stroke-linejoin`]: `miter` | `round` | `bevel` | `inherit`;
|
|
616
|
+
[`stroke-miterlimit`]: NumberOrString;
|
|
617
|
+
[`stroke-opacity`]: NumberOrString;
|
|
618
|
+
[`stroke-width`]: NumberOrString;
|
|
619
|
+
[`text-anchor`]: `start` | `middle` | `end` | `inherit`;
|
|
620
|
+
[`text-decoration`]: string;
|
|
621
|
+
[`text-rendering`]: string;
|
|
622
|
+
transform: string;
|
|
623
|
+
[`transform-origin`]: string;
|
|
624
|
+
[`unicode-bidi`]: string;
|
|
625
|
+
[`vector-effect`]: string;
|
|
626
|
+
visibility: string;
|
|
627
|
+
[`word-spacing`]: NumberOrString;
|
|
628
|
+
[`writing-mode`]: string;
|
|
629
|
+
}>;
|
|
630
|
+
type SVGBox = {
|
|
631
|
+
x: NumberOrString;
|
|
632
|
+
y: NumberOrString;
|
|
633
|
+
width: NumberOrString;
|
|
634
|
+
height: NumberOrString;
|
|
635
|
+
};
|
|
636
|
+
type SVGViewBox = {
|
|
637
|
+
viewBox: string;
|
|
638
|
+
preserveAspectRatio: string;
|
|
639
|
+
};
|
|
640
|
+
type SVGLink = {
|
|
641
|
+
href: string;
|
|
642
|
+
[`xlink:href`]: string;
|
|
643
|
+
};
|
|
644
|
+
type SVGFilterPrimitive = SVGBox & {
|
|
645
|
+
result: string;
|
|
646
|
+
};
|
|
647
|
+
type SVGAnimation = SVGLink & {
|
|
648
|
+
attributeName: string;
|
|
649
|
+
attributeType: string;
|
|
650
|
+
begin: NumberOrString;
|
|
651
|
+
dur: NumberOrString;
|
|
652
|
+
end: NumberOrString;
|
|
653
|
+
min: NumberOrString;
|
|
654
|
+
max: NumberOrString;
|
|
655
|
+
restart: string;
|
|
656
|
+
repeatCount: NumberOrString;
|
|
657
|
+
repeatDur: NumberOrString;
|
|
658
|
+
calcMode: string;
|
|
659
|
+
values: string;
|
|
660
|
+
keyTimes: string;
|
|
661
|
+
keySplines: string;
|
|
662
|
+
from: NumberOrString;
|
|
663
|
+
to: NumberOrString;
|
|
664
|
+
by: NumberOrString;
|
|
665
|
+
additive: string;
|
|
666
|
+
accumulate: string;
|
|
667
|
+
};
|
|
668
|
+
type SVGText = {
|
|
669
|
+
x: NumberOrString;
|
|
670
|
+
y: NumberOrString;
|
|
671
|
+
dx: NumberOrString;
|
|
672
|
+
dy: NumberOrString;
|
|
673
|
+
rotate: NumberOrString;
|
|
674
|
+
textLength: NumberOrString;
|
|
675
|
+
lengthAdjust: `spacing` | `spacingAndGlyphs`;
|
|
676
|
+
};
|
|
677
|
+
interface SVGTagAttributes {
|
|
678
|
+
a: SVGLink & {
|
|
679
|
+
target: string;
|
|
680
|
+
download: string;
|
|
681
|
+
rel: string;
|
|
682
|
+
hreflang: string;
|
|
683
|
+
type: string;
|
|
684
|
+
};
|
|
685
|
+
animate: SVGAnimation;
|
|
686
|
+
animateMotion: SVGAnimation & {
|
|
687
|
+
path: string;
|
|
688
|
+
keyPoints: string;
|
|
689
|
+
rotate: NumberOrString;
|
|
690
|
+
origin: string;
|
|
691
|
+
};
|
|
692
|
+
animateTransform: SVGAnimation & {
|
|
693
|
+
type: `translate` | `scale` | `rotate` | `skewX` | `skewY`;
|
|
694
|
+
};
|
|
695
|
+
circle: {
|
|
696
|
+
cx: NumberOrString;
|
|
697
|
+
cy: NumberOrString;
|
|
698
|
+
r: NumberOrString;
|
|
699
|
+
pathLength: number;
|
|
700
|
+
};
|
|
701
|
+
clipPath: {
|
|
702
|
+
clipPathUnits: `userSpaceOnUse` | `objectBoundingBox`;
|
|
703
|
+
};
|
|
704
|
+
ellipse: {
|
|
705
|
+
cx: NumberOrString;
|
|
706
|
+
cy: NumberOrString;
|
|
707
|
+
rx: NumberOrString;
|
|
708
|
+
ry: NumberOrString;
|
|
709
|
+
pathLength: number;
|
|
710
|
+
};
|
|
711
|
+
feBlend: SVGFilterPrimitive & {
|
|
712
|
+
in: string;
|
|
713
|
+
in2: string;
|
|
714
|
+
mode: string;
|
|
715
|
+
};
|
|
716
|
+
feColorMatrix: SVGFilterPrimitive & {
|
|
717
|
+
in: string;
|
|
718
|
+
type: string;
|
|
719
|
+
values: string;
|
|
720
|
+
};
|
|
721
|
+
feComponentTransfer: SVGFilterPrimitive & {
|
|
722
|
+
in: string;
|
|
723
|
+
};
|
|
724
|
+
feComposite: SVGFilterPrimitive & {
|
|
725
|
+
in: string;
|
|
726
|
+
in2: string;
|
|
727
|
+
operator: string;
|
|
728
|
+
k1: number;
|
|
729
|
+
k2: number;
|
|
730
|
+
k3: number;
|
|
731
|
+
k4: number;
|
|
732
|
+
};
|
|
733
|
+
feConvolveMatrix: SVGFilterPrimitive & {
|
|
734
|
+
in: string;
|
|
735
|
+
order: NumberOrString;
|
|
736
|
+
kernelMatrix: string;
|
|
737
|
+
divisor: number;
|
|
738
|
+
bias: number;
|
|
739
|
+
targetX: number;
|
|
740
|
+
targetY: number;
|
|
741
|
+
edgeMode: string;
|
|
742
|
+
preserveAlpha: Booleanish;
|
|
743
|
+
};
|
|
744
|
+
feDiffuseLighting: SVGFilterPrimitive & {
|
|
745
|
+
in: string;
|
|
746
|
+
surfaceScale: number;
|
|
747
|
+
diffuseConstant: number;
|
|
748
|
+
kernelUnitLength: NumberOrString;
|
|
749
|
+
};
|
|
750
|
+
feDisplacementMap: SVGFilterPrimitive & {
|
|
751
|
+
in: string;
|
|
752
|
+
in2: string;
|
|
753
|
+
scale: number;
|
|
754
|
+
xChannelSelector: string;
|
|
755
|
+
yChannelSelector: string;
|
|
756
|
+
};
|
|
757
|
+
feDistantLight: {
|
|
758
|
+
azimuth: number;
|
|
759
|
+
elevation: number;
|
|
760
|
+
};
|
|
761
|
+
feDropShadow: SVGFilterPrimitive & {
|
|
762
|
+
dx: NumberOrString;
|
|
763
|
+
dy: NumberOrString;
|
|
764
|
+
stdDeviation: NumberOrString;
|
|
765
|
+
};
|
|
766
|
+
feFlood: SVGFilterPrimitive;
|
|
767
|
+
feFuncA: {
|
|
768
|
+
type: string;
|
|
769
|
+
tableValues: string;
|
|
770
|
+
slope: number;
|
|
771
|
+
intercept: number;
|
|
772
|
+
amplitude: number;
|
|
773
|
+
exponent: number;
|
|
774
|
+
offset: number;
|
|
775
|
+
};
|
|
776
|
+
feFuncB: SVGTagAttributes[`feFuncA`];
|
|
777
|
+
feFuncG: SVGTagAttributes[`feFuncA`];
|
|
778
|
+
feFuncR: SVGTagAttributes[`feFuncA`];
|
|
779
|
+
feGaussianBlur: SVGFilterPrimitive & {
|
|
780
|
+
in: string;
|
|
781
|
+
stdDeviation: NumberOrString;
|
|
782
|
+
edgeMode: string;
|
|
783
|
+
};
|
|
784
|
+
feImage: SVGFilterPrimitive & SVGLink & {
|
|
785
|
+
preserveAspectRatio: string;
|
|
786
|
+
crossOrigin: CrossOrigin;
|
|
787
|
+
};
|
|
788
|
+
feMerge: SVGFilterPrimitive;
|
|
789
|
+
feMergeNode: {
|
|
790
|
+
in: string;
|
|
791
|
+
};
|
|
792
|
+
feMorphology: SVGFilterPrimitive & {
|
|
793
|
+
in: string;
|
|
794
|
+
operator: `erode` | `dilate`;
|
|
795
|
+
radius: NumberOrString;
|
|
796
|
+
};
|
|
797
|
+
feOffset: SVGFilterPrimitive & {
|
|
798
|
+
in: string;
|
|
799
|
+
dx: NumberOrString;
|
|
800
|
+
dy: NumberOrString;
|
|
801
|
+
};
|
|
802
|
+
fePointLight: {
|
|
803
|
+
x: number;
|
|
804
|
+
y: number;
|
|
805
|
+
z: number;
|
|
806
|
+
};
|
|
807
|
+
feSpecularLighting: SVGFilterPrimitive & {
|
|
808
|
+
in: string;
|
|
809
|
+
surfaceScale: number;
|
|
810
|
+
specularConstant: number;
|
|
811
|
+
specularExponent: number;
|
|
812
|
+
kernelUnitLength: NumberOrString;
|
|
813
|
+
};
|
|
814
|
+
feSpotLight: {
|
|
815
|
+
x: number;
|
|
816
|
+
y: number;
|
|
817
|
+
z: number;
|
|
818
|
+
pointsAtX: number;
|
|
819
|
+
pointsAtY: number;
|
|
820
|
+
pointsAtZ: number;
|
|
821
|
+
specularExponent: number;
|
|
822
|
+
limitingConeAngle: number;
|
|
823
|
+
};
|
|
824
|
+
feTile: SVGFilterPrimitive & {
|
|
825
|
+
in: string;
|
|
826
|
+
};
|
|
827
|
+
feTurbulence: SVGFilterPrimitive & {
|
|
828
|
+
baseFrequency: NumberOrString;
|
|
829
|
+
numOctaves: number;
|
|
830
|
+
seed: number;
|
|
831
|
+
stitchTiles: string;
|
|
832
|
+
type: string;
|
|
833
|
+
};
|
|
834
|
+
filter: SVGBox & {
|
|
835
|
+
filterUnits: string;
|
|
836
|
+
primitiveUnits: string;
|
|
837
|
+
};
|
|
838
|
+
foreignObject: SVGBox;
|
|
839
|
+
image: SVGBox & SVGLink & {
|
|
840
|
+
preserveAspectRatio: string;
|
|
841
|
+
crossOrigin: CrossOrigin;
|
|
842
|
+
decoding: `async` | `sync` | `auto`;
|
|
843
|
+
};
|
|
844
|
+
line: {
|
|
845
|
+
x1: NumberOrString;
|
|
846
|
+
y1: NumberOrString;
|
|
847
|
+
x2: NumberOrString;
|
|
848
|
+
y2: NumberOrString;
|
|
849
|
+
pathLength: number;
|
|
850
|
+
};
|
|
851
|
+
linearGradient: SVGLink & {
|
|
852
|
+
x1: NumberOrString;
|
|
853
|
+
y1: NumberOrString;
|
|
854
|
+
x2: NumberOrString;
|
|
855
|
+
y2: NumberOrString;
|
|
856
|
+
gradientUnits: string;
|
|
857
|
+
gradientTransform: string;
|
|
858
|
+
spreadMethod: string;
|
|
859
|
+
};
|
|
860
|
+
marker: SVGViewBox & {
|
|
861
|
+
refX: NumberOrString;
|
|
862
|
+
refY: NumberOrString;
|
|
863
|
+
markerWidth: NumberOrString;
|
|
864
|
+
markerHeight: NumberOrString;
|
|
865
|
+
markerUnits: string;
|
|
866
|
+
orient: NumberOrString;
|
|
867
|
+
};
|
|
868
|
+
mask: SVGBox & {
|
|
869
|
+
maskUnits: string;
|
|
870
|
+
maskContentUnits: string;
|
|
871
|
+
};
|
|
872
|
+
mpath: SVGLink;
|
|
873
|
+
path: {
|
|
874
|
+
d: string;
|
|
875
|
+
pathLength: number;
|
|
876
|
+
};
|
|
877
|
+
pattern: SVGBox & SVGViewBox & SVGLink & {
|
|
878
|
+
patternUnits: string;
|
|
879
|
+
patternContentUnits: string;
|
|
880
|
+
patternTransform: string;
|
|
881
|
+
};
|
|
882
|
+
polygon: {
|
|
883
|
+
points: string;
|
|
884
|
+
pathLength: number;
|
|
885
|
+
};
|
|
886
|
+
polyline: SVGTagAttributes[`polygon`];
|
|
887
|
+
radialGradient: SVGLink & {
|
|
888
|
+
cx: NumberOrString;
|
|
889
|
+
cy: NumberOrString;
|
|
890
|
+
r: NumberOrString;
|
|
891
|
+
fx: NumberOrString;
|
|
892
|
+
fy: NumberOrString;
|
|
893
|
+
fr: NumberOrString;
|
|
894
|
+
gradientUnits: string;
|
|
895
|
+
gradientTransform: string;
|
|
896
|
+
spreadMethod: string;
|
|
897
|
+
};
|
|
898
|
+
rect: SVGBox & {
|
|
899
|
+
rx: NumberOrString;
|
|
900
|
+
ry: NumberOrString;
|
|
901
|
+
pathLength: number;
|
|
902
|
+
};
|
|
903
|
+
script: SVGLink & {
|
|
904
|
+
type: string;
|
|
905
|
+
crossOrigin: CrossOrigin;
|
|
906
|
+
};
|
|
907
|
+
set: SVGAnimation;
|
|
908
|
+
stop: {
|
|
909
|
+
offset: NumberOrString;
|
|
910
|
+
};
|
|
911
|
+
style: {
|
|
912
|
+
type: string;
|
|
913
|
+
media: string;
|
|
914
|
+
title: string;
|
|
915
|
+
};
|
|
916
|
+
svg: SVGBox & SVGViewBox & {
|
|
917
|
+
version: string;
|
|
918
|
+
};
|
|
919
|
+
symbol: SVGBox & SVGViewBox & {
|
|
920
|
+
refX: NumberOrString;
|
|
921
|
+
refY: NumberOrString;
|
|
922
|
+
};
|
|
923
|
+
text: SVGText;
|
|
924
|
+
textPath: SVGLink & {
|
|
925
|
+
startOffset: NumberOrString;
|
|
926
|
+
method: string;
|
|
927
|
+
spacing: string;
|
|
928
|
+
side: string;
|
|
929
|
+
textLength: NumberOrString;
|
|
930
|
+
lengthAdjust: string;
|
|
931
|
+
};
|
|
932
|
+
tspan: SVGText;
|
|
933
|
+
use: SVGBox & SVGLink;
|
|
934
|
+
view: SVGViewBox & {
|
|
935
|
+
viewTarget: string;
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
type SVGIntrinsicElements = { [Tag in keyof SVGElementTagNameMap]: SVGAttributes<SVGElementTagNameMap[Tag]> & (Tag extends keyof SVGTagAttributes ? Attributes<SVGTagAttributes[Tag]> : {}); };
|
|
939
|
+
// JSX cannot infer namespace from parents. Shared names (a, script, style,
|
|
940
|
+
// title) use HTML types; unambiguous SVG tags retain their concrete SVG type.
|
|
941
|
+
type NativeElements = HTMLIntrinsicElements & Omit<SVGIntrinsicElements, keyof HTMLIntrinsicElements>;
|
|
942
|
+
declare const Fragment: (props: {
|
|
943
|
+
children?: Child;
|
|
944
|
+
}) => Child;
|
|
945
|
+
declare function jsx(type: VNode[`type`], props: VNode[`props`] | null, key?: unknown): VNode;
|
|
946
|
+
declare const jsxs: typeof jsx;
|
|
947
|
+
declare const jsxDEV: typeof jsx;
|
|
948
|
+
/** Preserve lazy props and spread precedence, including keys added by later updates. */
|
|
949
|
+
declare function merge(...sources: (Record<string, any> | (() => Record<string, any>))[]): Record<string, any>;
|
|
950
|
+
declare namespace JSX {
|
|
951
|
+
type Element = VNode;
|
|
952
|
+
type ElementType = keyof IntrinsicElements | Component;
|
|
953
|
+
interface ElementChildrenAttribute {
|
|
954
|
+
children: {};
|
|
955
|
+
}
|
|
956
|
+
interface IntrinsicAttributes {
|
|
957
|
+
key?: string | number;
|
|
958
|
+
}
|
|
959
|
+
/** Augment this interface to declare attributes for registered custom elements. */
|
|
960
|
+
interface IntrinsicElements extends NativeElements {
|
|
961
|
+
[tag: `${string}-${string}`]: HTMLAttributes<HTMLElement>;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
export { jsxs as a, DOMAttributes as c, HTMLAttributes as d, Ref as f, jsxDEV as i, EventAttributes as l, TargetedEvent as m, JSX as n, merge as o, SVGAttributes as p, jsx as r, AriaAttributes as s, Fragment as t, EventHandler as u };
|
|
965
|
+
//# sourceMappingURL=jsx-runtime-BzGV18VO.d.ts.map
|