@snupo/jmc 1.1.0 → 1.3.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/src/jsx.ts CHANGED
@@ -1,1390 +1,1386 @@
1
- /* eslint-disable @typescript-eslint/no-empty-interface */
2
- /* eslint-disable @typescript-eslint/ban-types */
3
- // This code is based on react definition in DefinitelyTyped published under the MIT license.
4
- // Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
5
- // Path in the repository: types/react/v15/index.d.ts
6
- //
7
- // Copyrights of original definition are:
8
- // Asana <https://asana.com>
9
- // AssureSign <http://www.assuresign.com>
10
- // Microsoft <https://microsoft.com>
11
- // John Reilly <https://github.com/johnnyreilly/>
12
- // Benoit Benezech <https://github.com/bbenezech>
13
- // Patricio Zavolinsky <https://github.com/pzavolinsky>
14
- // Digiguru <https://github.com/digiguru>
15
- // Eric Anderson <https://github.com/ericanderson>
16
- // Albert Kurniawan <https://github.com/morcerf>
17
- // Tanguy Krotoff <https://github.com/tkrotoff>
18
- // Dovydas Navickas <https://github.com/DovydasNavickas>
19
- // Stéphane Goetz <https://github.com/onigoetz>
20
-
21
- interface EventHandler<E extends Event> {
22
- (event: E): void
23
- }
24
-
25
- export interface AdditionalElementAttributes {
26
- mounted?: (n: Node) => void
27
- update?: (n: Node, uc: any) => void
28
- const?: boolean
29
- model?: any
30
- }
31
-
32
- /**
33
- * Used to represent DOM API's where users can either pass
34
- * true or false as a boolean or as its equivalent strings.
35
- */
36
- type Booleanish = boolean | "true" | "false";
37
-
38
- /**
39
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin MDN}
40
- */
41
- type CrossOrigin = "anonymous" | "use-credentials" | "" | undefined;
42
-
43
- // All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
44
- interface AriaAttributes {
45
- /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
46
- "aria-activedescendant"?: string | undefined;
47
- /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
48
- "aria-atomic"?: Booleanish | undefined;
49
- /**
50
- * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
51
- * presented if they are made.
52
- */
53
- "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
54
- /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
55
- /**
56
- * Defines a string value that labels the current element, which is intended to be converted into Braille.
57
- * @see aria-label.
58
- */
59
- "aria-braillelabel"?: string | undefined;
60
- /**
61
- * Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
62
- * @see aria-roledescription.
63
- */
64
- "aria-brailleroledescription"?: string | undefined;
65
- "aria-busy"?: Booleanish | undefined;
66
- /**
67
- * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
68
- * @see aria-pressed @see aria-selected.
69
- */
70
- "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
71
- /**
72
- * Defines the total number of columns in a table, grid, or treegrid.
73
- * @see aria-colindex.
74
- */
75
- "aria-colcount"?: number | undefined;
76
- /**
77
- * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
78
- * @see aria-colcount @see aria-colspan.
79
- */
80
- "aria-colindex"?: number | undefined;
81
- /**
82
- * Defines a human readable text alternative of aria-colindex.
83
- * @see aria-rowindextext.
84
- */
85
- "aria-colindextext"?: string | undefined;
86
- /**
87
- * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
88
- * @see aria-colindex @see aria-rowspan.
89
- */
90
- "aria-colspan"?: number | undefined;
91
- /**
92
- * Identifies the element (or elements) whose contents or presence are controlled by the current element.
93
- * @see aria-owns.
94
- */
95
- "aria-controls"?: string | undefined;
96
- /** Indicates the element that represents the current item within a container or set of related elements. */
97
- "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
98
- /**
99
- * Identifies the element (or elements) that describes the object.
100
- * @see aria-labelledby
101
- */
102
- "aria-describedby"?: string | undefined;
103
- /**
104
- * Defines a string value that describes or annotates the current element.
105
- * @see related aria-describedby.
106
- */
107
- "aria-description"?: string | undefined;
108
- /**
109
- * Identifies the element that provides a detailed, extended description for the object.
110
- * @see aria-describedby.
111
- */
112
- "aria-details"?: string | undefined;
113
- /**
114
- * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
115
- * @see aria-hidden @see aria-readonly.
116
- */
117
- "aria-disabled"?: Booleanish | undefined;
118
- /**
119
- * Indicates what functions can be performed when a dragged object is released on the drop target.
120
- * @deprecated in ARIA 1.1
121
- */
122
- "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
123
- /**
124
- * Identifies the element that provides an error message for the object.
125
- * @see aria-invalid @see aria-describedby.
126
- */
127
- "aria-errormessage"?: string | undefined;
128
- /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
129
- "aria-expanded"?: Booleanish | undefined;
130
- /**
131
- * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
132
- * allows assistive technology to override the general default of reading in document source order.
133
- */
134
- "aria-flowto"?: string | undefined;
135
- /**
136
- * Indicates an element's "grabbed" state in a drag-and-drop operation.
137
- * @deprecated in ARIA 1.1
138
- */
139
- "aria-grabbed"?: Booleanish | undefined;
140
- /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
141
- "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
142
- /**
143
- * Indicates whether the element is exposed to an accessibility API.
144
- * @see aria-disabled.
145
- */
146
- "aria-hidden"?: Booleanish | undefined;
147
- /**
148
- * Indicates the entered value does not conform to the format expected by the application.
149
- * @see aria-errormessage.
150
- */
151
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
152
- /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
153
- "aria-keyshortcuts"?: string | undefined;
154
- /**
155
- * Defines a string value that labels the current element.
156
- * @see aria-labelledby.
157
- */
158
- "aria-label"?: string | undefined;
159
- /**
160
- * Identifies the element (or elements) that labels the current element.
161
- * @see aria-describedby.
162
- */
163
- "aria-labelledby"?: string | undefined;
164
- /** Defines the hierarchical level of an element within a structure. */
165
- "aria-level"?: number | undefined;
166
- /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
167
- "aria-live"?: "off" | "assertive" | "polite" | undefined;
168
- /** Indicates whether an element is modal when displayed. */
169
- "aria-modal"?: Booleanish | undefined;
170
- /** Indicates whether a text box accepts multiple lines of input or only a single line. */
171
- "aria-multiline"?: Booleanish | undefined;
172
- /** Indicates that the user may select more than one item from the current selectable descendants. */
173
- "aria-multiselectable"?: Booleanish | undefined;
174
- /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
175
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
176
- /**
177
- * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
178
- * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
179
- * @see aria-controls.
180
- */
181
- "aria-owns"?: string | undefined;
182
- /**
183
- * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
184
- * A hint could be a sample value or a brief description of the expected format.
185
- */
186
- "aria-placeholder"?: string | undefined;
187
- /**
188
- * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
189
- * @see aria-setsize.
190
- */
191
- "aria-posinset"?: number | undefined;
192
- /**
193
- * Indicates the current "pressed" state of toggle buttons.
194
- * @see aria-checked @see aria-selected.
195
- */
196
- "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
197
- /**
198
- * Indicates that the element is not editable, but is otherwise operable.
199
- * @see aria-disabled.
200
- */
201
- "aria-readonly"?: Booleanish | undefined;
202
- /**
203
- * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
204
- * @see aria-atomic.
205
- */
206
- "aria-relevant"?:
207
- | "additions"
208
- | "additions removals"
209
- | "additions text"
210
- | "all"
211
- | "removals"
212
- | "removals additions"
213
- | "removals text"
214
- | "text"
215
- | "text additions"
216
- | "text removals"
217
- | undefined;
218
- /** Indicates that user input is required on the element before a form may be submitted. */
219
- "aria-required"?: Booleanish | undefined;
220
- /** Defines a human-readable, author-localized description for the role of an element. */
221
- "aria-roledescription"?: string | undefined;
222
- /**
223
- * Defines the total number of rows in a table, grid, or treegrid.
224
- * @see aria-rowindex.
225
- */
226
- "aria-rowcount"?: number | undefined;
227
- /**
228
- * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
229
- * @see aria-rowcount @see aria-rowspan.
230
- */
231
- "aria-rowindex"?: number | undefined;
232
- /**
233
- * Defines a human readable text alternative of aria-rowindex.
234
- * @see aria-colindextext.
235
- */
236
- "aria-rowindextext"?: string | undefined;
237
- /**
238
- * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
239
- * @see aria-rowindex @see aria-colspan.
240
- */
241
- "aria-rowspan"?: number | undefined;
242
- /**
243
- * Indicates the current "selected" state of various widgets.
244
- * @see aria-checked @see aria-pressed.
245
- */
246
- "aria-selected"?: Booleanish | undefined;
247
- /**
248
- * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
249
- * @see aria-posinset.
250
- */
251
- "aria-setsize"?: number | undefined;
252
- /** Indicates if items in a table or grid are sorted in ascending or descending order. */
253
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
254
- /** Defines the maximum allowed value for a range widget. */
255
- "aria-valuemax"?: number | undefined;
256
- /** Defines the minimum allowed value for a range widget. */
257
- "aria-valuemin"?: number | undefined;
258
- /**
259
- * Defines the current value for a range widget.
260
- * @see aria-valuetext.
261
- */
262
- "aria-valuenow"?: number | undefined;
263
- /** Defines the human readable text alternative of aria-valuenow for a range widget. */
264
- "aria-valuetext"?: string | undefined;
265
- }
266
-
267
- // All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions
268
- type AriaRole =
269
- | "alert"
270
- | "alertdialog"
271
- | "application"
272
- | "article"
273
- | "banner"
274
- | "button"
275
- | "cell"
276
- | "checkbox"
277
- | "columnheader"
278
- | "combobox"
279
- | "complementary"
280
- | "contentinfo"
281
- | "definition"
282
- | "dialog"
283
- | "directory"
284
- | "document"
285
- | "feed"
286
- | "figure"
287
- | "form"
288
- | "grid"
289
- | "gridcell"
290
- | "group"
291
- | "heading"
292
- | "img"
293
- | "link"
294
- | "list"
295
- | "listbox"
296
- | "listitem"
297
- | "log"
298
- | "main"
299
- | "marquee"
300
- | "math"
301
- | "menu"
302
- | "menubar"
303
- | "menuitem"
304
- | "menuitemcheckbox"
305
- | "menuitemradio"
306
- | "navigation"
307
- | "none"
308
- | "note"
309
- | "option"
310
- | "presentation"
311
- | "progressbar"
312
- | "radio"
313
- | "radiogroup"
314
- | "region"
315
- | "row"
316
- | "rowgroup"
317
- | "rowheader"
318
- | "scrollbar"
319
- | "search"
320
- | "searchbox"
321
- | "separator"
322
- | "slider"
323
- | "spinbutton"
324
- | "status"
325
- | "switch"
326
- | "tab"
327
- | "table"
328
- | "tablist"
329
- | "tabpanel"
330
- | "term"
331
- | "textbox"
332
- | "timer"
333
- | "toolbar"
334
- | "tooltip"
335
- | "tree"
336
- | "treegrid"
337
- | "treeitem"
338
- | (string & {});
339
-
340
- // this list is "complete" in that it contains every SVG attribute
341
- // that React supports, but the types can be improved.
342
- // Full list here: https://facebook.github.io/react/docs/dom-elements.html
343
- //
344
- // The three broad type categories are (in order of restrictiveness):
345
- // - "number | string"
346
- // - "string"
347
- // - union of string literals
348
- interface SVGAttributes<T> extends AriaAttributes, HTMLAttributes {
349
- // React-specific Attributes
350
- suppressHydrationWarning?: boolean | undefined;
351
-
352
- // Attributes which also defined in HTMLAttributes
353
- // See comment in SVGDOMPropertyConfig.js
354
- className?: string | undefined;
355
- color?: string | undefined;
356
- height?: number | string | undefined;
357
- id?: string | undefined;
358
- lang?: string | undefined;
359
- max?: number | string | undefined;
360
- media?: string | undefined;
361
- method?: string | undefined;
362
- min?: number | string | undefined;
363
- name?: string | undefined;
364
- nonce?: string | undefined;
365
- part?: string | undefined;
366
- slot?: string | undefined;
367
- style?: any | undefined; // react @types has CSSProperties here
368
- target?: string | undefined;
369
- type?: string | undefined;
370
- width?: number | string | undefined;
371
-
372
- // Other HTML properties supported by SVG elements in browsers
373
- role?: AriaRole | undefined;
374
- tabIndex?: number | undefined;
375
- crossOrigin?: CrossOrigin;
376
-
377
- // SVG Specific attributes
378
- accentHeight?: number | string | undefined;
379
- accumulate?: "none" | "sum" | undefined;
380
- additive?: "replace" | "sum" | undefined;
381
- alignmentBaseline?:
382
- | "auto"
383
- | "baseline"
384
- | "before-edge"
385
- | "text-before-edge"
386
- | "middle"
387
- | "central"
388
- | "after-edge"
389
- | "text-after-edge"
390
- | "ideographic"
391
- | "alphabetic"
392
- | "hanging"
393
- | "mathematical"
394
- | "inherit"
395
- | undefined;
396
- allowReorder?: "no" | "yes" | undefined;
397
- alphabetic?: number | string | undefined;
398
- amplitude?: number | string | undefined;
399
- arabicForm?: "initial" | "medial" | "terminal" | "isolated" | undefined;
400
- ascent?: number | string | undefined;
401
- attributeName?: string | undefined;
402
- attributeType?: string | undefined;
403
- autoReverse?: Booleanish | undefined;
404
- azimuth?: number | string | undefined;
405
- baseFrequency?: number | string | undefined;
406
- baselineShift?: number | string | undefined;
407
- baseProfile?: number | string | undefined;
408
- bbox?: number | string | undefined;
409
- begin?: number | string | undefined;
410
- bias?: number | string | undefined;
411
- by?: number | string | undefined;
412
- calcMode?: number | string | undefined;
413
- capHeight?: number | string | undefined;
414
- clip?: number | string | undefined;
415
- clipPath?: string | undefined;
416
- clipPathUnits?: number | string | undefined;
417
- clipRule?: number | string | undefined;
418
- colorInterpolation?: number | string | undefined;
419
- colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit" | undefined;
420
- colorProfile?: number | string | undefined;
421
- colorRendering?: number | string | undefined;
422
- contentScriptType?: number | string | undefined;
423
- contentStyleType?: number | string | undefined;
424
- cursor?: number | string | undefined;
425
- cx?: number | string | undefined;
426
- cy?: number | string | undefined;
427
- d?: string | undefined;
428
- decelerate?: number | string | undefined;
429
- descent?: number | string | undefined;
430
- diffuseConstant?: number | string | undefined;
431
- direction?: number | string | undefined;
432
- display?: number | string | undefined;
433
- divisor?: number | string | undefined;
434
- dominantBaseline?:
435
- | "auto"
436
- | "use-script"
437
- | "no-change"
438
- | "reset-size"
439
- | "ideographic"
440
- | "alphabetic"
441
- | "hanging"
442
- | "mathematical"
443
- | "central"
444
- | "middle"
445
- | "text-after-edge"
446
- | "text-before-edge"
447
- | "inherit"
448
- | undefined;
449
- dur?: number | string | undefined;
450
- dx?: number | string | undefined;
451
- dy?: number | string | undefined;
452
- edgeMode?: number | string | undefined;
453
- elevation?: number | string | undefined;
454
- enableBackground?: number | string | undefined;
455
- end?: number | string | undefined;
456
- exponent?: number | string | undefined;
457
- externalResourcesRequired?: Booleanish | undefined;
458
- fill?: string | undefined;
459
- fillOpacity?: number | string | undefined;
460
- fillRule?: "nonzero" | "evenodd" | "inherit" | undefined;
461
- filter?: string | undefined;
462
- filterRes?: number | string | undefined;
463
- filterUnits?: number | string | undefined;
464
- floodColor?: number | string | undefined;
465
- floodOpacity?: number | string | undefined;
466
- focusable?: Booleanish | "auto" | undefined;
467
- fontFamily?: string | undefined;
468
- fontSize?: number | string | undefined;
469
- fontSizeAdjust?: number | string | undefined;
470
- fontStretch?: number | string | undefined;
471
- fontStyle?: number | string | undefined;
472
- fontVariant?: number | string | undefined;
473
- fontWeight?: number | string | undefined;
474
- format?: number | string | undefined;
475
- fr?: number | string | undefined;
476
- from?: number | string | undefined;
477
- fx?: number | string | undefined;
478
- fy?: number | string | undefined;
479
- g1?: number | string | undefined;
480
- g2?: number | string | undefined;
481
- glyphName?: number | string | undefined;
482
- glyphOrientationHorizontal?: number | string | undefined;
483
- glyphOrientationVertical?: number | string | undefined;
484
- glyphRef?: number | string | undefined;
485
- gradientTransform?: string | undefined;
486
- gradientUnits?: string | undefined;
487
- hanging?: number | string | undefined;
488
- horizAdvX?: number | string | undefined;
489
- horizOriginX?: number | string | undefined;
490
- href?: string | undefined;
491
- ideographic?: number | string | undefined;
492
- imageRendering?: number | string | undefined;
493
- in2?: number | string | undefined;
494
- in?: string | undefined;
495
- intercept?: number | string | undefined;
496
- k1?: number | string | undefined;
497
- k2?: number | string | undefined;
498
- k3?: number | string | undefined;
499
- k4?: number | string | undefined;
500
- k?: number | string | undefined;
501
- kernelMatrix?: number | string | undefined;
502
- kernelUnitLength?: number | string | undefined;
503
- kerning?: number | string | undefined;
504
- keyPoints?: number | string | undefined;
505
- keySplines?: number | string | undefined;
506
- keyTimes?: number | string | undefined;
507
- lengthAdjust?: number | string | undefined;
508
- letterSpacing?: number | string | undefined;
509
- lightingColor?: number | string | undefined;
510
- limitingConeAngle?: number | string | undefined;
511
- local?: number | string | undefined;
512
- markerEnd?: string | undefined;
513
- markerHeight?: number | string | undefined;
514
- markerMid?: string | undefined;
515
- markerStart?: string | undefined;
516
- markerUnits?: number | string | undefined;
517
- markerWidth?: number | string | undefined;
518
- mask?: string | undefined;
519
- maskContentUnits?: number | string | undefined;
520
- maskUnits?: number | string | undefined;
521
- mathematical?: number | string | undefined;
522
- mode?: number | string | undefined;
523
- numOctaves?: number | string | undefined;
524
- offset?: number | string | undefined;
525
- opacity?: number | string | undefined;
526
- operator?: number | string | undefined;
527
- order?: number | string | undefined;
528
- orient?: number | string | undefined;
529
- orientation?: number | string | undefined;
530
- origin?: number | string | undefined;
531
- overflow?: number | string | undefined;
532
- overlinePosition?: number | string | undefined;
533
- overlineThickness?: number | string | undefined;
534
- paintOrder?: number | string | undefined;
535
- panose1?: number | string | undefined;
536
- path?: string | undefined;
537
- pathLength?: number | string | undefined;
538
- patternContentUnits?: string | undefined;
539
- patternTransform?: number | string | undefined;
540
- patternUnits?: string | undefined;
541
- pointerEvents?: number | string | undefined;
542
- points?: string | undefined;
543
- pointsAtX?: number | string | undefined;
544
- pointsAtY?: number | string | undefined;
545
- pointsAtZ?: number | string | undefined;
546
- preserveAlpha?: Booleanish | undefined;
547
- preserveAspectRatio?: string | undefined;
548
- primitiveUnits?: number | string | undefined;
549
- r?: number | string | undefined;
550
- radius?: number | string | undefined;
551
- refX?: number | string | undefined;
552
- refY?: number | string | undefined;
553
- renderingIntent?: number | string | undefined;
554
- repeatCount?: number | string | undefined;
555
- repeatDur?: number | string | undefined;
556
- requiredExtensions?: number | string | undefined;
557
- requiredFeatures?: number | string | undefined;
558
- restart?: number | string | undefined;
559
- result?: string | undefined;
560
- rotate?: number | string | undefined;
561
- rx?: number | string | undefined;
562
- ry?: number | string | undefined;
563
- scale?: number | string | undefined;
564
- seed?: number | string | undefined;
565
- shapeRendering?: number | string | undefined;
566
- slope?: number | string | undefined;
567
- spacing?: number | string | undefined;
568
- specularConstant?: number | string | undefined;
569
- specularExponent?: number | string | undefined;
570
- speed?: number | string | undefined;
571
- spreadMethod?: string | undefined;
572
- startOffset?: number | string | undefined;
573
- stdDeviation?: number | string | undefined;
574
- stemh?: number | string | undefined;
575
- stemv?: number | string | undefined;
576
- stitchTiles?: number | string | undefined;
577
- stopColor?: string | undefined;
578
- stopOpacity?: number | string | undefined;
579
- strikethroughPosition?: number | string | undefined;
580
- strikethroughThickness?: number | string | undefined;
581
- string?: number | string | undefined;
582
- stroke?: string | undefined;
583
- strokeDasharray?: string | number | undefined;
584
- strokeDashoffset?: string | number | undefined;
585
- strokeLinecap?: "butt" | "round" | "square" | "inherit" | undefined;
586
- strokeLinejoin?: "miter" | "round" | "bevel" | "inherit" | undefined;
587
- strokeMiterlimit?: number | string | undefined;
588
- strokeOpacity?: number | string | undefined;
589
- strokeWidth?: number | string | undefined;
590
- surfaceScale?: number | string | undefined;
591
- systemLanguage?: number | string | undefined;
592
- tableValues?: number | string | undefined;
593
- targetX?: number | string | undefined;
594
- targetY?: number | string | undefined;
595
- textAnchor?: "start" | "middle" | "end" | "inherit" | undefined;
596
- textDecoration?: number | string | undefined;
597
- textLength?: number | string | undefined;
598
- textRendering?: number | string | undefined;
599
- to?: number | string | undefined;
600
- transform?: string | undefined;
601
- u1?: number | string | undefined;
602
- u2?: number | string | undefined;
603
- underlinePosition?: number | string | undefined;
604
- underlineThickness?: number | string | undefined;
605
- unicode?: number | string | undefined;
606
- unicodeBidi?: number | string | undefined;
607
- unicodeRange?: number | string | undefined;
608
- unitsPerEm?: number | string | undefined;
609
- vAlphabetic?: number | string | undefined;
610
- values?: string | undefined;
611
- vectorEffect?: number | string | undefined;
612
- version?: string | undefined;
613
- vertAdvY?: number | string | undefined;
614
- vertOriginX?: number | string | undefined;
615
- vertOriginY?: number | string | undefined;
616
- vHanging?: number | string | undefined;
617
- vIdeographic?: number | string | undefined;
618
- viewBox?: string | undefined;
619
- viewTarget?: number | string | undefined;
620
- visibility?: number | string | undefined;
621
- vMathematical?: number | string | undefined;
622
- widths?: number | string | undefined;
623
- wordSpacing?: number | string | undefined;
624
- writingMode?: number | string | undefined;
625
- x1?: number | string | undefined;
626
- x2?: number | string | undefined;
627
- x?: number | string | undefined;
628
- xChannelSelector?: string | undefined;
629
- xHeight?: number | string | undefined;
630
- xlinkActuate?: string | undefined;
631
- xlinkArcrole?: string | undefined;
632
- xlinkHref?: string | undefined;
633
- xlinkRole?: string | undefined;
634
- xlinkShow?: string | undefined;
635
- xlinkTitle?: string | undefined;
636
- xlinkType?: string | undefined;
637
- xmlBase?: string | undefined;
638
- xmlLang?: string | undefined;
639
- xmlns?: string | undefined;
640
- xmlnsXlink?: string | undefined;
641
- xmlSpace?: string | undefined;
642
- y1?: number | string | undefined;
643
- y2?: number | string | undefined;
644
- y?: number | string | undefined;
645
- yChannelSelector?: string | undefined;
646
- z?: number | string | undefined;
647
- zoomAndPan?: string | undefined;
648
- }
649
-
650
-
651
- type SVGProps<T extends SVGElement> = SVGAttributes<T>
652
-
653
- /** the elements jmc knows. JSX reads them through jsx.JSX.IntrinsicElements, see h.ts */
654
- export interface JmcIntrinsicElements extends IntrinsicElementAttributes {
655
- label: LabelHTMLAttributes & {
656
- for?: string
657
- }
658
-
659
- svg: SVGProps<SVGSVGElement> & { class?: string | undefined, xmlns: "http://www.w3.org/2000/svg" }
660
- path: SVGProps<SVGPathElement> & { class?: string | undefined }
661
- textPath: SVGProps<SVGTextPathElement> & { class?: string | undefined, style?: string | undefined }
662
- tspan: SVGProps<SVGTSpanElement> & { class?: string | undefined }
663
- circle: SVGProps<SVGCircleElement> & { class?: string | undefined }
664
- rect: SVGProps<SVGRectElement> & { class?: string | undefined }
665
- line: SVGProps<SVGLineElement> & { class?: string | undefined }
666
- text: SVGProps<SVGTextElement> & { class?: string | undefined, style?: string | undefined }
667
- g: SVGProps<SVGGElement> & { class?: string | undefined }
668
- foreignObject: SVGProps<SVGForeignObjectElement> & { class?: string | undefined }
669
- }
670
-
671
- // 1. Define the Thunk transformer for a single type
672
- type WithThunk<T> = T extends undefined
673
- ? undefined
674
- : T | (() => T | undefined)
675
-
676
- // 2. Map across all keys of the existing interface
677
- export type HTMLAttributes = {
678
- [K in keyof HTMLAttributesBase]?: WithThunk<NonNullable<HTMLAttributesBase[K]>>
679
- }
680
-
681
- export interface HTMLAttributesBase extends AdditionalElementAttributes {
682
- class?: string
683
- style?: string
684
- accesskey?: string
685
- contenteditable?: boolean
686
- contextmenu?: string
687
- dir?: string
688
- disabled?: boolean
689
- draggable?: boolean
690
- hidden?: boolean
691
- id?: string
692
- lang?: string
693
- spellcheck?: boolean
694
- tabindex?: number
695
- title?: string
696
- role?: string
697
-
698
- // clipboard events
699
- onCopy?: ClipboardEvent
700
- onCut?: ClipboardEvent
701
- onPaste?: ClipboardEvent
702
-
703
- // composition events
704
- onCompositionend?: CompositionEvent
705
- onCompositionstart?: CompositionEvent
706
- onCompositionupdate?: CompositionEvent
707
-
708
- // drag drop events
709
- ondrag?: EventHandler<DragEvent>
710
- ondragend?: EventHandler<DragEvent>
711
- ondragenter?: EventHandler<DragEvent>
712
- ondragexit?: EventHandler<DragEvent>
713
- ondragleave?: EventHandler<DragEvent>
714
- ondragover?: EventHandler<DragEvent>
715
- ondragstart?: EventHandler<DragEvent>
716
- ondrop?: EventHandler<DragEvent>
717
-
718
- // focus events
719
- onfocus?: (ev: FocusEvent) => void
720
- onfocusout?: (ev: FocusEvent) => void
721
- onblur?: (ev: FocusEvent) => void
722
-
723
- // form events
724
- onchange?: EventHandler<Event>
725
- oninput?: EventHandler<Event>
726
- onreset?: EventHandler<Event>
727
- onsubmit?: EventHandler<Event>
728
- oninvalid?: EventHandler<Event>
729
-
730
- // image events
731
- onload?: EventHandler<Event>
732
- onerror?: EventHandler<Event>
733
-
734
- // keyboard events
735
- onkeydown?: EventHandler<KeyboardEvent>
736
- onkeypress?: EventHandler<KeyboardEvent>
737
- onkeyup?: EventHandler<KeyboardEvent>
738
-
739
- // mouse events
740
- onclick?: EventHandler<MouseEvent>
741
- oncontextmenu?: EventHandler<MouseEvent>
742
- ondblclick?: EventHandler<MouseEvent>
743
- onmousedown?: EventHandler<MouseEvent>
744
- onmouseenter?: EventHandler<MouseEvent>
745
- onmouseleave?: EventHandler<MouseEvent>
746
- onmousemove?: EventHandler<MouseEvent>
747
- onmouseout?: EventHandler<MouseEvent>
748
- onmouseover?: EventHandler<MouseEvent>
749
- onmouseup?: EventHandler<MouseEvent>
750
-
751
- // media events
752
- onAbort?: EventHandler<Event>
753
- onCanplay?: EventHandler<Event>
754
- onCanplaythrough?: EventHandler<Event>
755
- onDurationchange?: EventHandler<Event>
756
- onEmptied?: EventHandler<Event>
757
- onEncrypted?: EventHandler<Event>
758
- onEnded?: EventHandler<Event>
759
- onLoadeddata?: EventHandler<Event>
760
- onLoadedmetadata?: EventHandler<Event>
761
- onLoadstart?: EventHandler<Event>
762
- onPause?: EventHandler<Event>
763
- onPlay?: EventHandler<Event>
764
- onPlaying?: EventHandler<Event>
765
- onProgress?: EventHandler<Event>
766
- onRatechange?: EventHandler<Event>
767
- onSeeked?: EventHandler<Event>
768
- onSeeking?: EventHandler<Event>
769
- onStalled?: EventHandler<Event>
770
- onSuspend?: EventHandler<Event>
771
- onTimeupdate?: EventHandler<Event>
772
- onVolumechange?: EventHandler<Event>
773
- onWaiting?: EventHandler<Event>
774
-
775
- // selection events
776
- onSelect?: EventHandler<Event>
777
-
778
- // UI events
779
- onScroll?: UIEvent
780
-
781
- // touch events
782
- onTouchcancel?: TouchEvent
783
- onTouchend?: TouchEvent
784
- onTouchmove?: TouchEvent
785
- onTouchstart?: TouchEvent
786
-
787
- // wheel events
788
- onWheel?: WheelEvent
789
-
790
- // animation events
791
- onAnimationstart?: AnimationEvent
792
- onAnimationend?: AnimationEvent
793
- onAnimationiteration?: AnimationEvent
794
-
795
- // transition events
796
- onTransitionend?: TransitionEvent
797
- onTransitionstart?: TransitionEvent
798
- }
799
-
800
- export interface AnchorHTMLAttributes extends HTMLAttributes {
801
- download?: any
802
- href?: string
803
- hreflang?: string
804
- media?: string
805
- rel?: string
806
- target?: string
807
- }
808
-
809
- export interface AreaHTMLAttributes extends HTMLAttributes {
810
- alt?: string
811
- coord?: string
812
- download?: any
813
- href?: string
814
- hreflang?: string
815
- media?: string
816
- rel?: string
817
- shape?: string
818
- target?: string
819
- }
820
-
821
- export interface AudioHTMLAttributes extends MediaHTMLAttributes { }
822
-
823
- export interface BaseHTMLAttributes extends HTMLAttributes {
824
- href?: string
825
- target?: string
826
- }
827
-
828
- export interface BlockquoteHTMLAttributes extends HTMLAttributes {
829
- cite?: string
830
- }
831
-
832
- export interface ButtonHTMLAttributes extends HTMLAttributes {
833
- autofocus?: boolean
834
- disabled?: boolean
835
- form?: string
836
- formaction?: string
837
- formenctype?: string
838
- formmethod?: string
839
- formnovalidate?: boolean
840
- formtarget?: string
841
- name?: string
842
- type?: string
843
- value?: string | string[] | number
844
- }
845
-
846
- export interface CanvasHTMLAttributes extends HTMLAttributes {
847
- height?: number | string
848
- width?: number | string
849
- }
850
-
851
- export interface ColHTMLAttributes extends HTMLAttributes {
852
- span?: number
853
- }
854
-
855
- export interface ColgroupHTMLAttributes extends ColHTMLAttributes { }
856
-
857
- export interface DetailsHTMLAttributes extends HTMLAttributes {
858
- open?: boolean
859
- }
860
-
861
- export interface DelHTMLAttributes extends HTMLAttributes {
862
- cite?: string
863
- datetime?: string
864
- }
865
-
866
- export interface EmbedHTMLAttributes extends HTMLAttributes {
867
- height?: number | string
868
- src?: string
869
- type?: string
870
- width?: number | string
871
- }
872
-
873
- export interface FieldsetHTMLAttributes extends HTMLAttributes {
874
- disabled?: boolean
875
- form?: string
876
- name?: string
877
- }
878
-
879
- export interface FormHTMLAttributes extends HTMLAttributes {
880
- acceptcharset?: string
881
- action?: string
882
- autocomplete?: string
883
- enctype?: string
884
- method?: string
885
- name?: string
886
- novalidate?: boolean
887
- target?: string
888
- }
889
-
890
- export interface HtmlHTMLAttributes extends HTMLAttributes {
891
- manifest?: string
892
- }
893
-
894
- export interface IframeHTMLAttributes extends HTMLAttributes {
895
- allowfullscreen?: boolean
896
- allowtransparency?: boolean
897
- frameborder?: number | string
898
- height?: number | string
899
- marginheight?: number
900
- marginwidth?: number
901
- name?: string
902
- sandbox?: string
903
- scrolling?: string
904
- seamless?: boolean
905
- src?: string
906
- srcdoc?: string
907
- width?: number | string
908
- }
909
-
910
- export interface ImgHTMLAttributes extends HTMLAttributes {
911
- alt?: string
912
- height?: number | string
913
- sizes?: string
914
- src?: string
915
- srcset?: string
916
- usemap?: string
917
- width?: number | string
918
- }
919
-
920
- export interface InsHTMLAttributes extends HTMLAttributes {
921
- cite?: string
922
- datetime?: string
923
- }
924
-
925
- export interface InputHTMLAttributes extends HTMLAttributes {
926
- accept?: string
927
- alt?: string
928
- autocomplete?: string
929
- autofocus?: boolean
930
- capture?: boolean // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
931
- checked?: boolean
932
- crossorigin?: string
933
- disabled?: boolean
934
- form?: string
935
- formaction?: string
936
- formenctype?: string
937
- formmethod?: string
938
- formnovalidate?: boolean
939
- formtarget?: string
940
- height?: number | string
941
- list?: string
942
- max?: number | string
943
- maxlength?: number
944
- min?: number | string
945
- minlength?: number
946
- multiple?: boolean
947
- name?: string
948
- pattern?: string
949
- placeholder?: string
950
- readonly?: boolean
951
- required?: boolean
952
- size?: number
953
- src?: string
954
- step?: number | string
955
- type?: string
956
- value?: string | string[] | number
957
- width?: number | string
958
- }
959
-
960
- export interface KeygenHTMLAttributes extends HTMLAttributes {
961
- autofocus?: boolean
962
- challenge?: string
963
- disabled?: boolean
964
- form?: string
965
- keytype?: string
966
- keyparams?: string
967
- name?: string
968
- }
969
-
970
- export interface LabelHTMLAttributes extends HTMLAttributes {
971
- form?: string
972
- for?: string
973
- }
974
-
975
- export interface LiHTMLAttributes extends HTMLAttributes {
976
- value?: string | string[] | number
977
- }
978
-
979
- export interface LinkHTMLAttributes extends HTMLAttributes {
980
- href?: string
981
- hreflang?: string
982
- integrity?: string
983
- media?: string
984
- rel?: string
985
- sizes?: string
986
- type?: string
987
- }
988
-
989
- export interface MapHTMLAttributes extends HTMLAttributes {
990
- name?: string
991
- }
992
-
993
- export interface MenuHTMLAttributes extends HTMLAttributes {
994
- type?: string
995
- }
996
-
997
- export interface MediaHTMLAttributes extends HTMLAttributes {
998
- autoplay?: boolean
999
- controls?: boolean
1000
- crossorigin?: string
1001
- loop?: boolean
1002
- mediagroup?: string
1003
- muted?: boolean
1004
- preload?: string
1005
- src?: string
1006
- }
1007
-
1008
- export interface MetaHTMLAttributes extends HTMLAttributes {
1009
- charset?: string
1010
- content?: string
1011
- httpequiv?: string
1012
- name?: string
1013
- }
1014
-
1015
- export interface MeterHTMLAttributes extends HTMLAttributes {
1016
- form?: string
1017
- high?: number
1018
- low?: number
1019
- max?: number | string
1020
- min?: number | string
1021
- optimum?: number
1022
- value?: string | string[] | number
1023
- }
1024
-
1025
- export interface QuoteHTMLAttributes extends HTMLAttributes {
1026
- cite?: string
1027
- }
1028
-
1029
- export interface ObjectHTMLAttributes extends HTMLAttributes {
1030
- classid?: string
1031
- data?: string
1032
- form?: string
1033
- height?: number | string
1034
- name?: string
1035
- type?: string
1036
- usemap?: string
1037
- width?: number | string
1038
- wmode?: string
1039
- }
1040
-
1041
- export interface OlHTMLAttributes extends HTMLAttributes {
1042
- reversed?: boolean
1043
- start?: number
1044
- }
1045
-
1046
- export interface OptgroupHTMLAttributes extends HTMLAttributes {
1047
- disabled?: boolean
1048
- label?: string
1049
- }
1050
-
1051
- export interface OptionHTMLAttributes extends HTMLAttributes {
1052
- disabled?: boolean
1053
- label?: string
1054
- selected?: boolean
1055
- value?: string | string[] | number
1056
- }
1057
-
1058
- export interface OutputHTMLAttributes extends HTMLAttributes {
1059
- form?: string
1060
- htmlfor?: string
1061
- name?: string
1062
- }
1063
-
1064
- export interface ParamHTMLAttributes extends HTMLAttributes {
1065
- name?: string
1066
- value?: string | string[] | number
1067
- }
1068
-
1069
- export interface ProgressHTMLAttributes extends HTMLAttributes {
1070
- max?: number | string
1071
- value?: string | string[] | number
1072
- }
1073
-
1074
- export interface ScriptHTMLAttributes extends HTMLAttributes {
1075
- async?: boolean
1076
- charset?: string
1077
- crossorigin?: string
1078
- defer?: boolean
1079
- integrity?: string
1080
- nonce?: string
1081
- src?: string
1082
- type?: string
1083
- }
1084
-
1085
- export interface SelectHTMLAttributes extends HTMLAttributes {
1086
- autofocus?: boolean
1087
- disabled?: boolean
1088
- form?: string
1089
- multiple?: boolean
1090
- name?: string
1091
- required?: boolean
1092
- size?: number
1093
- value?: string | string[] | number
1094
- }
1095
-
1096
- export interface SourceHTMLAttributes extends HTMLAttributes {
1097
- media?: string
1098
- sizes?: string
1099
- src?: string
1100
- srcset?: string
1101
- type?: string
1102
- }
1103
-
1104
- export interface StyleHTMLAttributes extends HTMLAttributes {
1105
- media?: string
1106
- nonce?: string
1107
- scoped?: boolean
1108
- type?: string
1109
- }
1110
-
1111
- export interface TableHTMLAttributes extends HTMLAttributes {
1112
- cellpadding?: number | string
1113
- cellspacing?: number | string
1114
- summary?: string
1115
- }
1116
-
1117
- export interface TextareaHTMLAttributes extends HTMLAttributes {
1118
- autocomplete?: string
1119
- autofocus?: boolean
1120
- cols?: number
1121
- dirname?: string
1122
- disabled?: boolean
1123
- form?: string
1124
- maxlength?: number
1125
- minlength?: number
1126
- name?: string
1127
- placeholder?: string
1128
- readonly?: boolean
1129
- required?: boolean
1130
- rows?: number
1131
- value?: string | string[] | number
1132
- wrap?: string
1133
- }
1134
-
1135
- export interface TdHTMLAttributes extends HTMLAttributes {
1136
- colspan?: number
1137
- headers?: string
1138
- rowspan?: number
1139
- }
1140
-
1141
- export interface ThHTMLAttributes extends HTMLAttributes {
1142
- colspan?: number
1143
- headers?: string
1144
- rowspan?: number
1145
- scope?: string
1146
- }
1147
-
1148
- export interface TimeHTMLAttributes extends HTMLAttributes {
1149
- datetime?: string
1150
- }
1151
-
1152
- export interface TrackHTMLAttributes extends HTMLAttributes {
1153
- default?: boolean
1154
- kind?: string
1155
- label?: string
1156
- src?: string
1157
- srclang?: string
1158
- }
1159
-
1160
- export interface VideoHTMLAttributes extends MediaHTMLAttributes {
1161
- height?: number | string
1162
- playsinline?: boolean
1163
- poster?: string
1164
- width?: number | string
1165
- }
1166
-
1167
- export interface AllHTMLAttributes extends HTMLAttributes {
1168
- accept?: string
1169
- acceptcharset?: string
1170
- action?: boolean
1171
- allowfullscreen?: boolean
1172
- allowtransparency?: boolean
1173
- alt?: string
1174
- async?: boolean
1175
- autocomplete?: string
1176
- autofocus?: boolean
1177
- autoplay?: boolean
1178
- capture?: boolean // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
1179
- cellpadding?: number | string
1180
- cellspacing?: number | string
1181
- challenge?: string
1182
- charset?: string
1183
- checked?: boolean
1184
- cite?: string
1185
- classid?: string
1186
- cols?: number
1187
- colspan?: number
1188
- content?: string
1189
- controls?: boolean
1190
- coord?: string
1191
- crossorigin?: string
1192
- data?: string
1193
- datetime?: string
1194
- default?: boolean
1195
- defer?: boolean
1196
- dirname?: string
1197
- disabled?: boolean
1198
- download?: any
1199
- enctype?: string
1200
- form?: string
1201
- formaction?: string
1202
- formenctype?: string
1203
- formmethod?: string
1204
- formnovalidate?: boolean
1205
- formtarget?: string
1206
- frameborder?: number | string
1207
- headers?: string
1208
- height?: number | string
1209
- high?: number
1210
- href?: string
1211
- hreflang?: string
1212
- htmlfor?: string
1213
- httpequiv?: string
1214
- integrity?: string
1215
- keyparams?: string
1216
- keytype?: string
1217
- kind?: string
1218
- label?: string
1219
- list?: string
1220
- loop?: boolean
1221
- low?: number
1222
- manifest?: string
1223
- marginheight?: number
1224
- marginwidth?: number
1225
- max?: number | string
1226
- maxlength?: number
1227
- media?: string
1228
- mediagroup?: string
1229
- method?: string
1230
- min?: number | string
1231
- minlength?: number
1232
- multiple?: boolean
1233
- muted?: boolean
1234
- name?: string
1235
- nonce?: string
1236
- novalidate?: boolean
1237
- open?: boolean
1238
- optimum?: number
1239
- pattern?: string
1240
- placeholder?: string
1241
- playsinline?: boolean
1242
- poster?: string
1243
- preload?: string
1244
- readonly?: boolean
1245
- rel?: string
1246
- required?: boolean
1247
- reversed?: boolean
1248
- rows?: number
1249
- rowspan?: number
1250
- sandbox?: string
1251
- scope?: string
1252
- scoped?: boolean
1253
- scrolling?: string
1254
- seamless?: boolean
1255
- selected?: boolean
1256
- shape?: string
1257
- size?: number
1258
- sizes?: string
1259
- span?: number
1260
- src?: string
1261
- srcdoc?: string
1262
- srclang?: string
1263
- srcset?: string
1264
- start?: number
1265
- step?: number | string
1266
- summary?: string
1267
- target?: string
1268
- type?: string
1269
- usemap?: string
1270
- value?: string | string[] | number
1271
- width?: number | string
1272
- wmode?: string
1273
- wrap?: string
1274
- }
1275
-
1276
- export interface IntrinsicElementAttributes {
1277
- a: AnchorHTMLAttributes
1278
- abbr: HTMLAttributes
1279
- address: HTMLAttributes
1280
- area: AreaHTMLAttributes
1281
- article: HTMLAttributes
1282
- aside: HTMLAttributes
1283
- audio: AudioHTMLAttributes
1284
- b: HTMLAttributes
1285
- base: BaseHTMLAttributes
1286
- bdi: HTMLAttributes
1287
- bdo: HTMLAttributes
1288
- big: HTMLAttributes
1289
- blockquote: BlockquoteHTMLAttributes
1290
- body: HTMLAttributes
1291
- br: HTMLAttributes
1292
- button: ButtonHTMLAttributes
1293
- canvas: CanvasHTMLAttributes
1294
- caption: HTMLAttributes
1295
- cite: HTMLAttributes
1296
- code: HTMLAttributes
1297
- col: ColHTMLAttributes
1298
- colgroup: ColgroupHTMLAttributes
1299
- data: HTMLAttributes
1300
- datalist: HTMLAttributes
1301
- dd: HTMLAttributes
1302
- del: DelHTMLAttributes
1303
- details: DetailsHTMLAttributes
1304
- dfn: HTMLAttributes
1305
- dialog: HTMLAttributes
1306
- div: HTMLAttributes
1307
- dl: HTMLAttributes
1308
- dt: HTMLAttributes
1309
- em: HTMLAttributes
1310
- embed: EmbedHTMLAttributes
1311
- fieldset: FieldsetHTMLAttributes
1312
- figcaption: HTMLAttributes
1313
- figure: HTMLAttributes
1314
- footer: HTMLAttributes
1315
- form: FormHTMLAttributes
1316
- h1: HTMLAttributes
1317
- h2: HTMLAttributes
1318
- h3: HTMLAttributes
1319
- h4: HTMLAttributes
1320
- h5: HTMLAttributes
1321
- h6: HTMLAttributes
1322
- head: HTMLAttributes
1323
- header: HTMLAttributes
1324
- hgroup: HTMLAttributes
1325
- hr: HTMLAttributes
1326
- html: HtmlHTMLAttributes
1327
- i: HTMLAttributes
1328
- iframe: IframeHTMLAttributes
1329
- img: ImgHTMLAttributes
1330
- input: InputHTMLAttributes
1331
- ins: InsHTMLAttributes
1332
- kbd: HTMLAttributes
1333
- keygen: KeygenHTMLAttributes
1334
- label: LabelHTMLAttributes
1335
- legend: HTMLAttributes
1336
- li: LiHTMLAttributes
1337
- link: LinkHTMLAttributes
1338
- main: HTMLAttributes
1339
- map: MapHTMLAttributes
1340
- mark: HTMLAttributes
1341
- menu: MenuHTMLAttributes
1342
- menuitem: HTMLAttributes
1343
- meta: MetaHTMLAttributes
1344
- meter: MeterHTMLAttributes
1345
- nav: HTMLAttributes
1346
- noscript: HTMLAttributes
1347
- object: ObjectHTMLAttributes
1348
- ol: OlHTMLAttributes
1349
- optgroup: OptgroupHTMLAttributes
1350
- option: OptionHTMLAttributes
1351
- output: OutputHTMLAttributes
1352
- p: HTMLAttributes
1353
- param: ParamHTMLAttributes
1354
- picture: HTMLAttributes
1355
- pre: HTMLAttributes
1356
- progress: ProgressHTMLAttributes
1357
- q: QuoteHTMLAttributes
1358
- rp: HTMLAttributes
1359
- rt: HTMLAttributes
1360
- ruby: HTMLAttributes
1361
- s: HTMLAttributes
1362
- samp: HTMLAttributes
1363
- script: ScriptHTMLAttributes
1364
- section: HTMLAttributes
1365
- select: SelectHTMLAttributes
1366
- small: HTMLAttributes
1367
- source: SourceHTMLAttributes
1368
- span: HTMLAttributes
1369
- strong: HTMLAttributes
1370
- style: StyleHTMLAttributes
1371
- sub: HTMLAttributes
1372
- summary: HTMLAttributes
1373
- sup: HTMLAttributes
1374
- table: TableHTMLAttributes
1375
- tbody: HTMLAttributes
1376
- td: TdHTMLAttributes
1377
- textarea: TextareaHTMLAttributes
1378
- tfoot: HTMLAttributes
1379
- th: ThHTMLAttributes
1380
- thead: HTMLAttributes
1381
- time: TimeHTMLAttributes
1382
- title: HTMLAttributes
1383
- tr: HTMLAttributes
1384
- track: TrackHTMLAttributes
1385
- u: HTMLAttributes
1386
- ul: HTMLAttributes
1387
- var: HTMLAttributes
1388
- video: VideoHTMLAttributes
1389
- wbr: HTMLAttributes
1390
- }
1
+ import type { Thunk } from './base.js'
2
+ /* eslint-disable @typescript-eslint/no-empty-interface */
3
+ /* eslint-disable @typescript-eslint/ban-types */
4
+ // This code is based on react definition in DefinitelyTyped published under the MIT license.
5
+ // Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
6
+ // Path in the repository: types/react/v15/index.d.ts
7
+ //
8
+ // Copyrights of original definition are:
9
+ // Asana <https://asana.com>
10
+ // AssureSign <http://www.assuresign.com>
11
+ // Microsoft <https://microsoft.com>
12
+ // John Reilly <https://github.com/johnnyreilly/>
13
+ // Benoit Benezech <https://github.com/bbenezech>
14
+ // Patricio Zavolinsky <https://github.com/pzavolinsky>
15
+ // Digiguru <https://github.com/digiguru>
16
+ // Eric Anderson <https://github.com/ericanderson>
17
+ // Albert Kurniawan <https://github.com/morcerf>
18
+ // Tanguy Krotoff <https://github.com/tkrotoff>
19
+ // Dovydas Navickas <https://github.com/DovydasNavickas>
20
+ // Stéphane Goetz <https://github.com/onigoetz>
21
+
22
+ interface EventHandler<E extends Event> {
23
+ (event: E): void
24
+ }
25
+
26
+ export interface AdditionalElementAttributes {
27
+ mounted?: (n: Node) => void
28
+ update?: (n: Node, uc: any) => void
29
+ const?: boolean
30
+ model?: any
31
+ }
32
+
33
+ /**
34
+ * Used to represent DOM API's where users can either pass
35
+ * true or false as a boolean or as its equivalent strings.
36
+ */
37
+ type Booleanish = boolean | "true" | "false";
38
+
39
+ /**
40
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin MDN}
41
+ */
42
+ type CrossOrigin = "anonymous" | "use-credentials" | "" | undefined;
43
+
44
+ // All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
45
+ interface AriaAttributes {
46
+ /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
47
+ "aria-activedescendant"?: string | undefined;
48
+ /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
49
+ "aria-atomic"?: Booleanish | undefined;
50
+ /**
51
+ * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
52
+ * presented if they are made.
53
+ */
54
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
55
+ /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
56
+ /**
57
+ * Defines a string value that labels the current element, which is intended to be converted into Braille.
58
+ * @see aria-label.
59
+ */
60
+ "aria-braillelabel"?: string | undefined;
61
+ /**
62
+ * Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
63
+ * @see aria-roledescription.
64
+ */
65
+ "aria-brailleroledescription"?: string | undefined;
66
+ "aria-busy"?: Booleanish | undefined;
67
+ /**
68
+ * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
69
+ * @see aria-pressed @see aria-selected.
70
+ */
71
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
72
+ /**
73
+ * Defines the total number of columns in a table, grid, or treegrid.
74
+ * @see aria-colindex.
75
+ */
76
+ "aria-colcount"?: number | undefined;
77
+ /**
78
+ * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
79
+ * @see aria-colcount @see aria-colspan.
80
+ */
81
+ "aria-colindex"?: number | undefined;
82
+ /**
83
+ * Defines a human readable text alternative of aria-colindex.
84
+ * @see aria-rowindextext.
85
+ */
86
+ "aria-colindextext"?: string | undefined;
87
+ /**
88
+ * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
89
+ * @see aria-colindex @see aria-rowspan.
90
+ */
91
+ "aria-colspan"?: number | undefined;
92
+ /**
93
+ * Identifies the element (or elements) whose contents or presence are controlled by the current element.
94
+ * @see aria-owns.
95
+ */
96
+ "aria-controls"?: string | undefined;
97
+ /** Indicates the element that represents the current item within a container or set of related elements. */
98
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
99
+ /**
100
+ * Identifies the element (or elements) that describes the object.
101
+ * @see aria-labelledby
102
+ */
103
+ "aria-describedby"?: string | undefined;
104
+ /**
105
+ * Defines a string value that describes or annotates the current element.
106
+ * @see related aria-describedby.
107
+ */
108
+ "aria-description"?: string | undefined;
109
+ /**
110
+ * Identifies the element that provides a detailed, extended description for the object.
111
+ * @see aria-describedby.
112
+ */
113
+ "aria-details"?: string | undefined;
114
+ /**
115
+ * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
116
+ * @see aria-hidden @see aria-readonly.
117
+ */
118
+ "aria-disabled"?: Booleanish | undefined;
119
+ /**
120
+ * Indicates what functions can be performed when a dragged object is released on the drop target.
121
+ * @deprecated in ARIA 1.1
122
+ */
123
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
124
+ /**
125
+ * Identifies the element that provides an error message for the object.
126
+ * @see aria-invalid @see aria-describedby.
127
+ */
128
+ "aria-errormessage"?: string | undefined;
129
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
130
+ "aria-expanded"?: Booleanish | undefined;
131
+ /**
132
+ * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
133
+ * allows assistive technology to override the general default of reading in document source order.
134
+ */
135
+ "aria-flowto"?: string | undefined;
136
+ /**
137
+ * Indicates an element's "grabbed" state in a drag-and-drop operation.
138
+ * @deprecated in ARIA 1.1
139
+ */
140
+ "aria-grabbed"?: Booleanish | undefined;
141
+ /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
142
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
143
+ /**
144
+ * Indicates whether the element is exposed to an accessibility API.
145
+ * @see aria-disabled.
146
+ */
147
+ "aria-hidden"?: Booleanish | undefined;
148
+ /**
149
+ * Indicates the entered value does not conform to the format expected by the application.
150
+ * @see aria-errormessage.
151
+ */
152
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
153
+ /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
154
+ "aria-keyshortcuts"?: string | undefined;
155
+ /**
156
+ * Defines a string value that labels the current element.
157
+ * @see aria-labelledby.
158
+ */
159
+ "aria-label"?: string | undefined;
160
+ /**
161
+ * Identifies the element (or elements) that labels the current element.
162
+ * @see aria-describedby.
163
+ */
164
+ "aria-labelledby"?: string | undefined;
165
+ /** Defines the hierarchical level of an element within a structure. */
166
+ "aria-level"?: number | undefined;
167
+ /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
168
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
169
+ /** Indicates whether an element is modal when displayed. */
170
+ "aria-modal"?: Booleanish | undefined;
171
+ /** Indicates whether a text box accepts multiple lines of input or only a single line. */
172
+ "aria-multiline"?: Booleanish | undefined;
173
+ /** Indicates that the user may select more than one item from the current selectable descendants. */
174
+ "aria-multiselectable"?: Booleanish | undefined;
175
+ /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
176
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
177
+ /**
178
+ * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
179
+ * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
180
+ * @see aria-controls.
181
+ */
182
+ "aria-owns"?: string | undefined;
183
+ /**
184
+ * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
185
+ * A hint could be a sample value or a brief description of the expected format.
186
+ */
187
+ "aria-placeholder"?: string | undefined;
188
+ /**
189
+ * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
190
+ * @see aria-setsize.
191
+ */
192
+ "aria-posinset"?: number | undefined;
193
+ /**
194
+ * Indicates the current "pressed" state of toggle buttons.
195
+ * @see aria-checked @see aria-selected.
196
+ */
197
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
198
+ /**
199
+ * Indicates that the element is not editable, but is otherwise operable.
200
+ * @see aria-disabled.
201
+ */
202
+ "aria-readonly"?: Booleanish | undefined;
203
+ /**
204
+ * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
205
+ * @see aria-atomic.
206
+ */
207
+ "aria-relevant"?:
208
+ | "additions"
209
+ | "additions removals"
210
+ | "additions text"
211
+ | "all"
212
+ | "removals"
213
+ | "removals additions"
214
+ | "removals text"
215
+ | "text"
216
+ | "text additions"
217
+ | "text removals"
218
+ | undefined;
219
+ /** Indicates that user input is required on the element before a form may be submitted. */
220
+ "aria-required"?: Booleanish | undefined;
221
+ /** Defines a human-readable, author-localized description for the role of an element. */
222
+ "aria-roledescription"?: string | undefined;
223
+ /**
224
+ * Defines the total number of rows in a table, grid, or treegrid.
225
+ * @see aria-rowindex.
226
+ */
227
+ "aria-rowcount"?: number | undefined;
228
+ /**
229
+ * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
230
+ * @see aria-rowcount @see aria-rowspan.
231
+ */
232
+ "aria-rowindex"?: number | undefined;
233
+ /**
234
+ * Defines a human readable text alternative of aria-rowindex.
235
+ * @see aria-colindextext.
236
+ */
237
+ "aria-rowindextext"?: string | undefined;
238
+ /**
239
+ * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
240
+ * @see aria-rowindex @see aria-colspan.
241
+ */
242
+ "aria-rowspan"?: number | undefined;
243
+ /**
244
+ * Indicates the current "selected" state of various widgets.
245
+ * @see aria-checked @see aria-pressed.
246
+ */
247
+ "aria-selected"?: Booleanish | undefined;
248
+ /**
249
+ * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
250
+ * @see aria-posinset.
251
+ */
252
+ "aria-setsize"?: number | undefined;
253
+ /** Indicates if items in a table or grid are sorted in ascending or descending order. */
254
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
255
+ /** Defines the maximum allowed value for a range widget. */
256
+ "aria-valuemax"?: number | undefined;
257
+ /** Defines the minimum allowed value for a range widget. */
258
+ "aria-valuemin"?: number | undefined;
259
+ /**
260
+ * Defines the current value for a range widget.
261
+ * @see aria-valuetext.
262
+ */
263
+ "aria-valuenow"?: number | undefined;
264
+ /** Defines the human readable text alternative of aria-valuenow for a range widget. */
265
+ "aria-valuetext"?: string | undefined;
266
+ }
267
+
268
+ // All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions
269
+ type AriaRole =
270
+ | "alert"
271
+ | "alertdialog"
272
+ | "application"
273
+ | "article"
274
+ | "banner"
275
+ | "button"
276
+ | "cell"
277
+ | "checkbox"
278
+ | "columnheader"
279
+ | "combobox"
280
+ | "complementary"
281
+ | "contentinfo"
282
+ | "definition"
283
+ | "dialog"
284
+ | "directory"
285
+ | "document"
286
+ | "feed"
287
+ | "figure"
288
+ | "form"
289
+ | "grid"
290
+ | "gridcell"
291
+ | "group"
292
+ | "heading"
293
+ | "img"
294
+ | "link"
295
+ | "list"
296
+ | "listbox"
297
+ | "listitem"
298
+ | "log"
299
+ | "main"
300
+ | "marquee"
301
+ | "math"
302
+ | "menu"
303
+ | "menubar"
304
+ | "menuitem"
305
+ | "menuitemcheckbox"
306
+ | "menuitemradio"
307
+ | "navigation"
308
+ | "none"
309
+ | "note"
310
+ | "option"
311
+ | "presentation"
312
+ | "progressbar"
313
+ | "radio"
314
+ | "radiogroup"
315
+ | "region"
316
+ | "row"
317
+ | "rowgroup"
318
+ | "rowheader"
319
+ | "scrollbar"
320
+ | "search"
321
+ | "searchbox"
322
+ | "separator"
323
+ | "slider"
324
+ | "spinbutton"
325
+ | "status"
326
+ | "switch"
327
+ | "tab"
328
+ | "table"
329
+ | "tablist"
330
+ | "tabpanel"
331
+ | "term"
332
+ | "textbox"
333
+ | "timer"
334
+ | "toolbar"
335
+ | "tooltip"
336
+ | "tree"
337
+ | "treegrid"
338
+ | "treeitem"
339
+ | (string & {});
340
+
341
+ // this list is "complete" in that it contains every SVG attribute
342
+ // that React supports, but the types can be improved.
343
+ // Full list here: https://facebook.github.io/react/docs/dom-elements.html
344
+ //
345
+ // The three broad type categories are (in order of restrictiveness):
346
+ // - "number | string"
347
+ // - "string"
348
+ // - union of string literals
349
+ interface SVGAttributesBase<T> extends AriaAttributes, HTMLAttributesBase {
350
+ // React-specific Attributes
351
+ suppressHydrationWarning?: boolean | undefined;
352
+
353
+ // Attributes which also defined in HTMLAttributes
354
+ // See comment in SVGDOMPropertyConfig.js
355
+ className?: string | undefined;
356
+ color?: string | undefined;
357
+ height?: number | string | undefined;
358
+ id?: string | undefined;
359
+ lang?: string | undefined;
360
+ max?: number | string | undefined;
361
+ media?: string | undefined;
362
+ method?: string | undefined;
363
+ min?: number | string | undefined;
364
+ name?: string | undefined;
365
+ nonce?: string | undefined;
366
+ part?: string | undefined;
367
+ slot?: string | undefined;
368
+ style?: any | undefined; // react @types has CSSProperties here
369
+ target?: string | undefined;
370
+ type?: string | undefined;
371
+ width?: number | string | undefined;
372
+
373
+ // Other HTML properties supported by SVG elements in browsers
374
+ role?: AriaRole | undefined;
375
+ tabIndex?: number | undefined;
376
+ crossOrigin?: CrossOrigin;
377
+
378
+ // SVG Specific attributes
379
+ accentHeight?: number | string | undefined;
380
+ accumulate?: "none" | "sum" | undefined;
381
+ additive?: "replace" | "sum" | undefined;
382
+ alignmentBaseline?:
383
+ | "auto"
384
+ | "baseline"
385
+ | "before-edge"
386
+ | "text-before-edge"
387
+ | "middle"
388
+ | "central"
389
+ | "after-edge"
390
+ | "text-after-edge"
391
+ | "ideographic"
392
+ | "alphabetic"
393
+ | "hanging"
394
+ | "mathematical"
395
+ | "inherit"
396
+ | undefined;
397
+ allowReorder?: "no" | "yes" | undefined;
398
+ alphabetic?: number | string | undefined;
399
+ amplitude?: number | string | undefined;
400
+ arabicForm?: "initial" | "medial" | "terminal" | "isolated" | undefined;
401
+ ascent?: number | string | undefined;
402
+ attributeName?: string | undefined;
403
+ attributeType?: string | undefined;
404
+ autoReverse?: Booleanish | undefined;
405
+ azimuth?: number | string | undefined;
406
+ baseFrequency?: number | string | undefined;
407
+ baselineShift?: number | string | undefined;
408
+ baseProfile?: number | string | undefined;
409
+ bbox?: number | string | undefined;
410
+ begin?: number | string | undefined;
411
+ bias?: number | string | undefined;
412
+ by?: number | string | undefined;
413
+ calcMode?: number | string | undefined;
414
+ capHeight?: number | string | undefined;
415
+ clip?: number | string | undefined;
416
+ clipPath?: string | undefined;
417
+ clipPathUnits?: number | string | undefined;
418
+ clipRule?: number | string | undefined;
419
+ colorInterpolation?: number | string | undefined;
420
+ colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit" | undefined;
421
+ colorProfile?: number | string | undefined;
422
+ colorRendering?: number | string | undefined;
423
+ contentScriptType?: number | string | undefined;
424
+ contentStyleType?: number | string | undefined;
425
+ cursor?: number | string | undefined;
426
+ cx?: number | string | undefined;
427
+ cy?: number | string | undefined;
428
+ d?: string | undefined;
429
+ decelerate?: number | string | undefined;
430
+ descent?: number | string | undefined;
431
+ diffuseConstant?: number | string | undefined;
432
+ direction?: number | string | undefined;
433
+ display?: number | string | undefined;
434
+ divisor?: number | string | undefined;
435
+ dominantBaseline?:
436
+ | "auto"
437
+ | "use-script"
438
+ | "no-change"
439
+ | "reset-size"
440
+ | "ideographic"
441
+ | "alphabetic"
442
+ | "hanging"
443
+ | "mathematical"
444
+ | "central"
445
+ | "middle"
446
+ | "text-after-edge"
447
+ | "text-before-edge"
448
+ | "inherit"
449
+ | undefined;
450
+ dur?: number | string | undefined;
451
+ dx?: number | string | undefined;
452
+ dy?: number | string | undefined;
453
+ edgeMode?: number | string | undefined;
454
+ elevation?: number | string | undefined;
455
+ enableBackground?: number | string | undefined;
456
+ end?: number | string | undefined;
457
+ exponent?: number | string | undefined;
458
+ externalResourcesRequired?: Booleanish | undefined;
459
+ fill?: string | undefined;
460
+ fillOpacity?: number | string | undefined;
461
+ fillRule?: "nonzero" | "evenodd" | "inherit" | undefined;
462
+ filter?: string | undefined;
463
+ filterRes?: number | string | undefined;
464
+ filterUnits?: number | string | undefined;
465
+ floodColor?: number | string | undefined;
466
+ floodOpacity?: number | string | undefined;
467
+ focusable?: Booleanish | "auto" | undefined;
468
+ fontFamily?: string | undefined;
469
+ fontSize?: number | string | undefined;
470
+ fontSizeAdjust?: number | string | undefined;
471
+ fontStretch?: number | string | undefined;
472
+ fontStyle?: number | string | undefined;
473
+ fontVariant?: number | string | undefined;
474
+ fontWeight?: number | string | undefined;
475
+ format?: number | string | undefined;
476
+ fr?: number | string | undefined;
477
+ from?: number | string | undefined;
478
+ fx?: number | string | undefined;
479
+ fy?: number | string | undefined;
480
+ g1?: number | string | undefined;
481
+ g2?: number | string | undefined;
482
+ glyphName?: number | string | undefined;
483
+ glyphOrientationHorizontal?: number | string | undefined;
484
+ glyphOrientationVertical?: number | string | undefined;
485
+ glyphRef?: number | string | undefined;
486
+ gradientTransform?: string | undefined;
487
+ gradientUnits?: string | undefined;
488
+ hanging?: number | string | undefined;
489
+ horizAdvX?: number | string | undefined;
490
+ horizOriginX?: number | string | undefined;
491
+ href?: string | undefined;
492
+ ideographic?: number | string | undefined;
493
+ imageRendering?: number | string | undefined;
494
+ in2?: number | string | undefined;
495
+ in?: string | undefined;
496
+ intercept?: number | string | undefined;
497
+ k1?: number | string | undefined;
498
+ k2?: number | string | undefined;
499
+ k3?: number | string | undefined;
500
+ k4?: number | string | undefined;
501
+ k?: number | string | undefined;
502
+ kernelMatrix?: number | string | undefined;
503
+ kernelUnitLength?: number | string | undefined;
504
+ kerning?: number | string | undefined;
505
+ keyPoints?: number | string | undefined;
506
+ keySplines?: number | string | undefined;
507
+ keyTimes?: number | string | undefined;
508
+ lengthAdjust?: number | string | undefined;
509
+ letterSpacing?: number | string | undefined;
510
+ lightingColor?: number | string | undefined;
511
+ limitingConeAngle?: number | string | undefined;
512
+ local?: number | string | undefined;
513
+ markerEnd?: string | undefined;
514
+ markerHeight?: number | string | undefined;
515
+ markerMid?: string | undefined;
516
+ markerStart?: string | undefined;
517
+ markerUnits?: number | string | undefined;
518
+ markerWidth?: number | string | undefined;
519
+ mask?: string | undefined;
520
+ maskContentUnits?: number | string | undefined;
521
+ maskUnits?: number | string | undefined;
522
+ mathematical?: number | string | undefined;
523
+ mode?: number | string | undefined;
524
+ numOctaves?: number | string | undefined;
525
+ offset?: number | string | undefined;
526
+ opacity?: number | string | undefined;
527
+ operator?: number | string | undefined;
528
+ order?: number | string | undefined;
529
+ orient?: number | string | undefined;
530
+ orientation?: number | string | undefined;
531
+ origin?: number | string | undefined;
532
+ overflow?: number | string | undefined;
533
+ overlinePosition?: number | string | undefined;
534
+ overlineThickness?: number | string | undefined;
535
+ paintOrder?: number | string | undefined;
536
+ panose1?: number | string | undefined;
537
+ path?: string | undefined;
538
+ pathLength?: number | string | undefined;
539
+ patternContentUnits?: string | undefined;
540
+ patternTransform?: number | string | undefined;
541
+ patternUnits?: string | undefined;
542
+ pointerEvents?: number | string | undefined;
543
+ points?: string | undefined;
544
+ pointsAtX?: number | string | undefined;
545
+ pointsAtY?: number | string | undefined;
546
+ pointsAtZ?: number | string | undefined;
547
+ preserveAlpha?: Booleanish | undefined;
548
+ preserveAspectRatio?: string | undefined;
549
+ primitiveUnits?: number | string | undefined;
550
+ r?: number | string | undefined;
551
+ radius?: number | string | undefined;
552
+ refX?: number | string | undefined;
553
+ refY?: number | string | undefined;
554
+ renderingIntent?: number | string | undefined;
555
+ repeatCount?: number | string | undefined;
556
+ repeatDur?: number | string | undefined;
557
+ requiredExtensions?: number | string | undefined;
558
+ requiredFeatures?: number | string | undefined;
559
+ restart?: number | string | undefined;
560
+ result?: string | undefined;
561
+ rotate?: number | string | undefined;
562
+ rx?: number | string | undefined;
563
+ ry?: number | string | undefined;
564
+ scale?: number | string | undefined;
565
+ seed?: number | string | undefined;
566
+ shapeRendering?: number | string | undefined;
567
+ slope?: number | string | undefined;
568
+ spacing?: number | string | undefined;
569
+ specularConstant?: number | string | undefined;
570
+ specularExponent?: number | string | undefined;
571
+ speed?: number | string | undefined;
572
+ spreadMethod?: string | undefined;
573
+ startOffset?: number | string | undefined;
574
+ stdDeviation?: number | string | undefined;
575
+ stemh?: number | string | undefined;
576
+ stemv?: number | string | undefined;
577
+ stitchTiles?: number | string | undefined;
578
+ stopColor?: string | undefined;
579
+ stopOpacity?: number | string | undefined;
580
+ strikethroughPosition?: number | string | undefined;
581
+ strikethroughThickness?: number | string | undefined;
582
+ string?: number | string | undefined;
583
+ stroke?: string | undefined;
584
+ strokeDasharray?: string | number | undefined;
585
+ strokeDashoffset?: string | number | undefined;
586
+ strokeLinecap?: "butt" | "round" | "square" | "inherit" | undefined;
587
+ strokeLinejoin?: "miter" | "round" | "bevel" | "inherit" | undefined;
588
+ strokeMiterlimit?: number | string | undefined;
589
+ strokeOpacity?: number | string | undefined;
590
+ strokeWidth?: number | string | undefined;
591
+ surfaceScale?: number | string | undefined;
592
+ systemLanguage?: number | string | undefined;
593
+ tableValues?: number | string | undefined;
594
+ targetX?: number | string | undefined;
595
+ targetY?: number | string | undefined;
596
+ textAnchor?: "start" | "middle" | "end" | "inherit" | undefined;
597
+ textDecoration?: number | string | undefined;
598
+ textLength?: number | string | undefined;
599
+ textRendering?: number | string | undefined;
600
+ to?: number | string | undefined;
601
+ transform?: string | undefined;
602
+ u1?: number | string | undefined;
603
+ u2?: number | string | undefined;
604
+ underlinePosition?: number | string | undefined;
605
+ underlineThickness?: number | string | undefined;
606
+ unicode?: number | string | undefined;
607
+ unicodeBidi?: number | string | undefined;
608
+ unicodeRange?: number | string | undefined;
609
+ unitsPerEm?: number | string | undefined;
610
+ vAlphabetic?: number | string | undefined;
611
+ values?: string | undefined;
612
+ vectorEffect?: number | string | undefined;
613
+ version?: string | undefined;
614
+ vertAdvY?: number | string | undefined;
615
+ vertOriginX?: number | string | undefined;
616
+ vertOriginY?: number | string | undefined;
617
+ vHanging?: number | string | undefined;
618
+ vIdeographic?: number | string | undefined;
619
+ viewBox?: string | undefined;
620
+ viewTarget?: number | string | undefined;
621
+ visibility?: number | string | undefined;
622
+ vMathematical?: number | string | undefined;
623
+ widths?: number | string | undefined;
624
+ wordSpacing?: number | string | undefined;
625
+ writingMode?: number | string | undefined;
626
+ x1?: number | string | undefined;
627
+ x2?: number | string | undefined;
628
+ x?: number | string | undefined;
629
+ xChannelSelector?: string | undefined;
630
+ xHeight?: number | string | undefined;
631
+ xlinkActuate?: string | undefined;
632
+ xlinkArcrole?: string | undefined;
633
+ xlinkHref?: string | undefined;
634
+ xlinkRole?: string | undefined;
635
+ xlinkShow?: string | undefined;
636
+ xlinkTitle?: string | undefined;
637
+ xlinkType?: string | undefined;
638
+ xmlBase?: string | undefined;
639
+ xmlLang?: string | undefined;
640
+ xmlns?: string | undefined;
641
+ xmlnsXlink?: string | undefined;
642
+ xmlSpace?: string | undefined;
643
+ y1?: number | string | undefined;
644
+ y2?: number | string | undefined;
645
+ y?: number | string | undefined;
646
+ yChannelSelector?: string | undefined;
647
+ z?: number | string | undefined;
648
+ zoomAndPan?: string | undefined;
649
+ }
650
+
651
+
652
+ type SVGProps<T extends SVGElement> = Thunked<SVGAttributesBase<T>>
653
+
654
+ /** the elements jmc knows. JSX reads them through jsx.JSX.IntrinsicElements, see h.ts */
655
+ export interface JmcIntrinsicElements extends IntrinsicElementAttributes {
656
+ label: LabelHTMLAttributes & {
657
+ for?: string
658
+ }
659
+
660
+ svg: SVGProps<SVGSVGElement> & { xmlns: "http://www.w3.org/2000/svg" }
661
+ path: SVGProps<SVGPathElement>
662
+ textPath: SVGProps<SVGTextPathElement>
663
+ tspan: SVGProps<SVGTSpanElement>
664
+ circle: SVGProps<SVGCircleElement>
665
+ rect: SVGProps<SVGRectElement>
666
+ line: SVGProps<SVGLineElement>
667
+ text: SVGProps<SVGTextElement>
668
+ g: SVGProps<SVGGElement>
669
+ foreignObject: SVGProps<SVGForeignObjectElement>
670
+ }
671
+
672
+ /** each prop accepts its value or lazy(() => value) */
673
+ type Thunked<T> = { [K in keyof T]?: T[K] | Thunk<T[K]> }
674
+
675
+ export type HTMLAttributes = Thunked<HTMLAttributesBase>
676
+
677
+ export interface HTMLAttributesBase extends AdditionalElementAttributes {
678
+ class?: string
679
+ style?: string
680
+ accesskey?: string
681
+ contenteditable?: boolean
682
+ contextmenu?: string
683
+ dir?: string
684
+ disabled?: boolean
685
+ draggable?: boolean
686
+ hidden?: boolean
687
+ id?: string
688
+ lang?: string
689
+ spellcheck?: boolean
690
+ tabindex?: number
691
+ title?: string
692
+ role?: string
693
+
694
+ // clipboard events
695
+ oncopy?: EventHandler<ClipboardEvent>
696
+ oncut?: EventHandler<ClipboardEvent>
697
+ onpaste?: EventHandler<ClipboardEvent>
698
+
699
+ // composition events
700
+ oncompositionend?: EventHandler<CompositionEvent>
701
+ oncompositionstart?: EventHandler<CompositionEvent>
702
+ oncompositionupdate?: EventHandler<CompositionEvent>
703
+
704
+ // drag drop events
705
+ ondrag?: EventHandler<DragEvent>
706
+ ondragend?: EventHandler<DragEvent>
707
+ ondragenter?: EventHandler<DragEvent>
708
+ ondragexit?: EventHandler<DragEvent>
709
+ ondragleave?: EventHandler<DragEvent>
710
+ ondragover?: EventHandler<DragEvent>
711
+ ondragstart?: EventHandler<DragEvent>
712
+ ondrop?: EventHandler<DragEvent>
713
+
714
+ // focus events
715
+ onfocus?: (ev: FocusEvent) => void
716
+ onfocusout?: (ev: FocusEvent) => void
717
+ onblur?: (ev: FocusEvent) => void
718
+
719
+ // form events
720
+ onchange?: EventHandler<Event>
721
+ oninput?: EventHandler<Event>
722
+ onreset?: EventHandler<Event>
723
+ onsubmit?: EventHandler<Event>
724
+ oninvalid?: EventHandler<Event>
725
+
726
+ // image events
727
+ onload?: EventHandler<Event>
728
+ onerror?: EventHandler<Event>
729
+
730
+ // keyboard events
731
+ onkeydown?: EventHandler<KeyboardEvent>
732
+ onkeypress?: EventHandler<KeyboardEvent>
733
+ onkeyup?: EventHandler<KeyboardEvent>
734
+
735
+ // mouse events
736
+ onclick?: EventHandler<MouseEvent>
737
+ oncontextmenu?: EventHandler<MouseEvent>
738
+ ondblclick?: EventHandler<MouseEvent>
739
+ onmousedown?: EventHandler<MouseEvent>
740
+ onmouseenter?: EventHandler<MouseEvent>
741
+ onmouseleave?: EventHandler<MouseEvent>
742
+ onmousemove?: EventHandler<MouseEvent>
743
+ onmouseout?: EventHandler<MouseEvent>
744
+ onmouseover?: EventHandler<MouseEvent>
745
+ onmouseup?: EventHandler<MouseEvent>
746
+
747
+ // media events
748
+ onabort?: EventHandler<Event>
749
+ oncanplay?: EventHandler<Event>
750
+ oncanplaythrough?: EventHandler<Event>
751
+ ondurationchange?: EventHandler<Event>
752
+ onemptied?: EventHandler<Event>
753
+ onencrypted?: EventHandler<Event>
754
+ onended?: EventHandler<Event>
755
+ onloadeddata?: EventHandler<Event>
756
+ onloadedmetadata?: EventHandler<Event>
757
+ onloadstart?: EventHandler<Event>
758
+ onpause?: EventHandler<Event>
759
+ onplay?: EventHandler<Event>
760
+ onplaying?: EventHandler<Event>
761
+ onprogress?: EventHandler<Event>
762
+ onratechange?: EventHandler<Event>
763
+ onseeked?: EventHandler<Event>
764
+ onseeking?: EventHandler<Event>
765
+ onstalled?: EventHandler<Event>
766
+ onsuspend?: EventHandler<Event>
767
+ ontimeupdate?: EventHandler<Event>
768
+ onvolumechange?: EventHandler<Event>
769
+ onwaiting?: EventHandler<Event>
770
+
771
+ // selection events
772
+ onselect?: EventHandler<Event>
773
+
774
+ // UI events
775
+ onscroll?: EventHandler<UIEvent>
776
+
777
+ // touch events
778
+ ontouchcancel?: EventHandler<TouchEvent>
779
+ ontouchend?: EventHandler<TouchEvent>
780
+ ontouchmove?: EventHandler<TouchEvent>
781
+ ontouchstart?: EventHandler<TouchEvent>
782
+
783
+ // wheel events
784
+ onwheel?: EventHandler<WheelEvent>
785
+
786
+ // animation events
787
+ onanimationstart?: EventHandler<AnimationEvent>
788
+ onanimationend?: EventHandler<AnimationEvent>
789
+ onanimationiteration?: EventHandler<AnimationEvent>
790
+
791
+ // transition events
792
+ ontransitionend?: EventHandler<TransitionEvent>
793
+ ontransitionstart?: EventHandler<TransitionEvent>
794
+ }
795
+
796
+ export interface AnchorHTMLAttributes extends HTMLAttributes {
797
+ download?: any
798
+ href?: string
799
+ hreflang?: string
800
+ media?: string
801
+ rel?: string
802
+ target?: string
803
+ }
804
+
805
+ export interface AreaHTMLAttributes extends HTMLAttributes {
806
+ alt?: string
807
+ coord?: string
808
+ download?: any
809
+ href?: string
810
+ hreflang?: string
811
+ media?: string
812
+ rel?: string
813
+ shape?: string
814
+ target?: string
815
+ }
816
+
817
+ export interface AudioHTMLAttributes extends MediaHTMLAttributes { }
818
+
819
+ export interface BaseHTMLAttributes extends HTMLAttributes {
820
+ href?: string
821
+ target?: string
822
+ }
823
+
824
+ export interface BlockquoteHTMLAttributes extends HTMLAttributes {
825
+ cite?: string
826
+ }
827
+
828
+ export interface ButtonHTMLAttributes extends HTMLAttributes {
829
+ autofocus?: boolean
830
+ disabled?: boolean
831
+ form?: string
832
+ formaction?: string
833
+ formenctype?: string
834
+ formmethod?: string
835
+ formnovalidate?: boolean
836
+ formtarget?: string
837
+ name?: string
838
+ type?: string
839
+ value?: string | string[] | number
840
+ }
841
+
842
+ export interface CanvasHTMLAttributes extends HTMLAttributes {
843
+ height?: number | string
844
+ width?: number | string
845
+ }
846
+
847
+ export interface ColHTMLAttributes extends HTMLAttributes {
848
+ span?: number
849
+ }
850
+
851
+ export interface ColgroupHTMLAttributes extends ColHTMLAttributes { }
852
+
853
+ export interface DetailsHTMLAttributes extends HTMLAttributes {
854
+ open?: boolean
855
+ }
856
+
857
+ export interface DelHTMLAttributes extends HTMLAttributes {
858
+ cite?: string
859
+ datetime?: string
860
+ }
861
+
862
+ export interface EmbedHTMLAttributes extends HTMLAttributes {
863
+ height?: number | string
864
+ src?: string
865
+ type?: string
866
+ width?: number | string
867
+ }
868
+
869
+ export interface FieldsetHTMLAttributes extends HTMLAttributes {
870
+ disabled?: boolean
871
+ form?: string
872
+ name?: string
873
+ }
874
+
875
+ export interface FormHTMLAttributes extends HTMLAttributes {
876
+ acceptcharset?: string
877
+ action?: string
878
+ autocomplete?: string
879
+ enctype?: string
880
+ method?: string
881
+ name?: string
882
+ novalidate?: boolean
883
+ target?: string
884
+ }
885
+
886
+ export interface HtmlHTMLAttributes extends HTMLAttributes {
887
+ manifest?: string
888
+ }
889
+
890
+ export interface IframeHTMLAttributes extends HTMLAttributes {
891
+ allowfullscreen?: boolean
892
+ allowtransparency?: boolean
893
+ frameborder?: number | string
894
+ height?: number | string
895
+ marginheight?: number
896
+ marginwidth?: number
897
+ name?: string
898
+ sandbox?: string
899
+ scrolling?: string
900
+ seamless?: boolean
901
+ src?: string
902
+ srcdoc?: string
903
+ width?: number | string
904
+ }
905
+
906
+ export interface ImgHTMLAttributes extends HTMLAttributes {
907
+ alt?: string
908
+ height?: number | string
909
+ sizes?: string
910
+ src?: string
911
+ srcset?: string
912
+ usemap?: string
913
+ width?: number | string
914
+ }
915
+
916
+ export interface InsHTMLAttributes extends HTMLAttributes {
917
+ cite?: string
918
+ datetime?: string
919
+ }
920
+
921
+ export interface InputHTMLAttributes extends HTMLAttributes {
922
+ accept?: string
923
+ alt?: string
924
+ autocomplete?: string
925
+ autofocus?: boolean
926
+ capture?: boolean // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
927
+ checked?: boolean
928
+ crossorigin?: string
929
+ disabled?: boolean
930
+ form?: string
931
+ formaction?: string
932
+ formenctype?: string
933
+ formmethod?: string
934
+ formnovalidate?: boolean
935
+ formtarget?: string
936
+ height?: number | string
937
+ list?: string
938
+ max?: number | string
939
+ maxlength?: number
940
+ min?: number | string
941
+ minlength?: number
942
+ multiple?: boolean
943
+ name?: string
944
+ pattern?: string
945
+ placeholder?: string
946
+ readonly?: boolean
947
+ required?: boolean
948
+ size?: number
949
+ src?: string
950
+ step?: number | string
951
+ type?: string
952
+ value?: string | string[] | number
953
+ width?: number | string
954
+ }
955
+
956
+ export interface KeygenHTMLAttributes extends HTMLAttributes {
957
+ autofocus?: boolean
958
+ challenge?: string
959
+ disabled?: boolean
960
+ form?: string
961
+ keytype?: string
962
+ keyparams?: string
963
+ name?: string
964
+ }
965
+
966
+ export interface LabelHTMLAttributes extends HTMLAttributes {
967
+ form?: string
968
+ for?: string
969
+ }
970
+
971
+ export interface LiHTMLAttributes extends HTMLAttributes {
972
+ value?: string | string[] | number
973
+ }
974
+
975
+ export interface LinkHTMLAttributes extends HTMLAttributes {
976
+ href?: string
977
+ hreflang?: string
978
+ integrity?: string
979
+ media?: string
980
+ rel?: string
981
+ sizes?: string
982
+ type?: string
983
+ }
984
+
985
+ export interface MapHTMLAttributes extends HTMLAttributes {
986
+ name?: string
987
+ }
988
+
989
+ export interface MenuHTMLAttributes extends HTMLAttributes {
990
+ type?: string
991
+ }
992
+
993
+ export interface MediaHTMLAttributes extends HTMLAttributes {
994
+ autoplay?: boolean
995
+ controls?: boolean
996
+ crossorigin?: string
997
+ loop?: boolean
998
+ mediagroup?: string
999
+ muted?: boolean
1000
+ preload?: string
1001
+ src?: string
1002
+ }
1003
+
1004
+ export interface MetaHTMLAttributes extends HTMLAttributes {
1005
+ charset?: string
1006
+ content?: string
1007
+ httpequiv?: string
1008
+ name?: string
1009
+ }
1010
+
1011
+ export interface MeterHTMLAttributes extends HTMLAttributes {
1012
+ form?: string
1013
+ high?: number
1014
+ low?: number
1015
+ max?: number | string
1016
+ min?: number | string
1017
+ optimum?: number
1018
+ value?: string | string[] | number
1019
+ }
1020
+
1021
+ export interface QuoteHTMLAttributes extends HTMLAttributes {
1022
+ cite?: string
1023
+ }
1024
+
1025
+ export interface ObjectHTMLAttributes extends HTMLAttributes {
1026
+ classid?: string
1027
+ data?: string
1028
+ form?: string
1029
+ height?: number | string
1030
+ name?: string
1031
+ type?: string
1032
+ usemap?: string
1033
+ width?: number | string
1034
+ wmode?: string
1035
+ }
1036
+
1037
+ export interface OlHTMLAttributes extends HTMLAttributes {
1038
+ reversed?: boolean
1039
+ start?: number
1040
+ }
1041
+
1042
+ export interface OptgroupHTMLAttributes extends HTMLAttributes {
1043
+ disabled?: boolean
1044
+ label?: string
1045
+ }
1046
+
1047
+ export interface OptionHTMLAttributes extends HTMLAttributes {
1048
+ disabled?: boolean
1049
+ label?: string
1050
+ selected?: boolean
1051
+ value?: string | string[] | number
1052
+ }
1053
+
1054
+ export interface OutputHTMLAttributes extends HTMLAttributes {
1055
+ form?: string
1056
+ htmlfor?: string
1057
+ name?: string
1058
+ }
1059
+
1060
+ export interface ParamHTMLAttributes extends HTMLAttributes {
1061
+ name?: string
1062
+ value?: string | string[] | number
1063
+ }
1064
+
1065
+ export interface ProgressHTMLAttributes extends HTMLAttributes {
1066
+ max?: number | string
1067
+ value?: string | string[] | number
1068
+ }
1069
+
1070
+ export interface ScriptHTMLAttributes extends HTMLAttributes {
1071
+ async?: boolean
1072
+ charset?: string
1073
+ crossorigin?: string
1074
+ defer?: boolean
1075
+ integrity?: string
1076
+ nonce?: string
1077
+ src?: string
1078
+ type?: string
1079
+ }
1080
+
1081
+ export interface SelectHTMLAttributes extends HTMLAttributes {
1082
+ autofocus?: boolean
1083
+ disabled?: boolean
1084
+ form?: string
1085
+ multiple?: boolean
1086
+ name?: string
1087
+ required?: boolean
1088
+ size?: number
1089
+ value?: string | string[] | number
1090
+ }
1091
+
1092
+ export interface SourceHTMLAttributes extends HTMLAttributes {
1093
+ media?: string
1094
+ sizes?: string
1095
+ src?: string
1096
+ srcset?: string
1097
+ type?: string
1098
+ }
1099
+
1100
+ export interface StyleHTMLAttributes extends HTMLAttributes {
1101
+ media?: string
1102
+ nonce?: string
1103
+ scoped?: boolean
1104
+ type?: string
1105
+ }
1106
+
1107
+ export interface TableHTMLAttributes extends HTMLAttributes {
1108
+ cellpadding?: number | string
1109
+ cellspacing?: number | string
1110
+ summary?: string
1111
+ }
1112
+
1113
+ export interface TextareaHTMLAttributes extends HTMLAttributes {
1114
+ autocomplete?: string
1115
+ autofocus?: boolean
1116
+ cols?: number
1117
+ dirname?: string
1118
+ disabled?: boolean
1119
+ form?: string
1120
+ maxlength?: number
1121
+ minlength?: number
1122
+ name?: string
1123
+ placeholder?: string
1124
+ readonly?: boolean
1125
+ required?: boolean
1126
+ rows?: number
1127
+ value?: string | string[] | number
1128
+ wrap?: string
1129
+ }
1130
+
1131
+ export interface TdHTMLAttributes extends HTMLAttributes {
1132
+ colspan?: number
1133
+ headers?: string
1134
+ rowspan?: number
1135
+ }
1136
+
1137
+ export interface ThHTMLAttributes extends HTMLAttributes {
1138
+ colspan?: number
1139
+ headers?: string
1140
+ rowspan?: number
1141
+ scope?: string
1142
+ }
1143
+
1144
+ export interface TimeHTMLAttributes extends HTMLAttributes {
1145
+ datetime?: string
1146
+ }
1147
+
1148
+ export interface TrackHTMLAttributes extends HTMLAttributes {
1149
+ default?: boolean
1150
+ kind?: string
1151
+ label?: string
1152
+ src?: string
1153
+ srclang?: string
1154
+ }
1155
+
1156
+ export interface VideoHTMLAttributes extends MediaHTMLAttributes {
1157
+ height?: number | string
1158
+ playsinline?: boolean
1159
+ poster?: string
1160
+ width?: number | string
1161
+ }
1162
+
1163
+ export interface AllHTMLAttributes extends HTMLAttributes {
1164
+ accept?: string
1165
+ acceptcharset?: string
1166
+ action?: boolean
1167
+ allowfullscreen?: boolean
1168
+ allowtransparency?: boolean
1169
+ alt?: string
1170
+ async?: boolean
1171
+ autocomplete?: string
1172
+ autofocus?: boolean
1173
+ autoplay?: boolean
1174
+ capture?: boolean // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
1175
+ cellpadding?: number | string
1176
+ cellspacing?: number | string
1177
+ challenge?: string
1178
+ charset?: string
1179
+ checked?: boolean
1180
+ cite?: string
1181
+ classid?: string
1182
+ cols?: number
1183
+ colspan?: number
1184
+ content?: string
1185
+ controls?: boolean
1186
+ coord?: string
1187
+ crossorigin?: string
1188
+ data?: string
1189
+ datetime?: string
1190
+ default?: boolean
1191
+ defer?: boolean
1192
+ dirname?: string
1193
+ disabled?: boolean
1194
+ download?: any
1195
+ enctype?: string
1196
+ form?: string
1197
+ formaction?: string
1198
+ formenctype?: string
1199
+ formmethod?: string
1200
+ formnovalidate?: boolean
1201
+ formtarget?: string
1202
+ frameborder?: number | string
1203
+ headers?: string
1204
+ height?: number | string
1205
+ high?: number
1206
+ href?: string
1207
+ hreflang?: string
1208
+ htmlfor?: string
1209
+ httpequiv?: string
1210
+ integrity?: string
1211
+ keyparams?: string
1212
+ keytype?: string
1213
+ kind?: string
1214
+ label?: string
1215
+ list?: string
1216
+ loop?: boolean
1217
+ low?: number
1218
+ manifest?: string
1219
+ marginheight?: number
1220
+ marginwidth?: number
1221
+ max?: number | string
1222
+ maxlength?: number
1223
+ media?: string
1224
+ mediagroup?: string
1225
+ method?: string
1226
+ min?: number | string
1227
+ minlength?: number
1228
+ multiple?: boolean
1229
+ muted?: boolean
1230
+ name?: string
1231
+ nonce?: string
1232
+ novalidate?: boolean
1233
+ open?: boolean
1234
+ optimum?: number
1235
+ pattern?: string
1236
+ placeholder?: string
1237
+ playsinline?: boolean
1238
+ poster?: string
1239
+ preload?: string
1240
+ readonly?: boolean
1241
+ rel?: string
1242
+ required?: boolean
1243
+ reversed?: boolean
1244
+ rows?: number
1245
+ rowspan?: number
1246
+ sandbox?: string
1247
+ scope?: string
1248
+ scoped?: boolean
1249
+ scrolling?: string
1250
+ seamless?: boolean
1251
+ selected?: boolean
1252
+ shape?: string
1253
+ size?: number
1254
+ sizes?: string
1255
+ span?: number
1256
+ src?: string
1257
+ srcdoc?: string
1258
+ srclang?: string
1259
+ srcset?: string
1260
+ start?: number
1261
+ step?: number | string
1262
+ summary?: string
1263
+ target?: string
1264
+ type?: string
1265
+ usemap?: string
1266
+ value?: string | string[] | number
1267
+ width?: number | string
1268
+ wmode?: string
1269
+ wrap?: string
1270
+ }
1271
+
1272
+ export interface IntrinsicElementAttributes {
1273
+ a: AnchorHTMLAttributes
1274
+ abbr: HTMLAttributes
1275
+ address: HTMLAttributes
1276
+ area: AreaHTMLAttributes
1277
+ article: HTMLAttributes
1278
+ aside: HTMLAttributes
1279
+ audio: AudioHTMLAttributes
1280
+ b: HTMLAttributes
1281
+ base: BaseHTMLAttributes
1282
+ bdi: HTMLAttributes
1283
+ bdo: HTMLAttributes
1284
+ big: HTMLAttributes
1285
+ blockquote: BlockquoteHTMLAttributes
1286
+ body: HTMLAttributes
1287
+ br: HTMLAttributes
1288
+ button: ButtonHTMLAttributes
1289
+ canvas: CanvasHTMLAttributes
1290
+ caption: HTMLAttributes
1291
+ cite: HTMLAttributes
1292
+ code: HTMLAttributes
1293
+ col: ColHTMLAttributes
1294
+ colgroup: ColgroupHTMLAttributes
1295
+ data: HTMLAttributes
1296
+ datalist: HTMLAttributes
1297
+ dd: HTMLAttributes
1298
+ del: DelHTMLAttributes
1299
+ details: DetailsHTMLAttributes
1300
+ dfn: HTMLAttributes
1301
+ dialog: HTMLAttributes
1302
+ div: HTMLAttributes
1303
+ dl: HTMLAttributes
1304
+ dt: HTMLAttributes
1305
+ em: HTMLAttributes
1306
+ embed: EmbedHTMLAttributes
1307
+ fieldset: FieldsetHTMLAttributes
1308
+ figcaption: HTMLAttributes
1309
+ figure: HTMLAttributes
1310
+ footer: HTMLAttributes
1311
+ form: FormHTMLAttributes
1312
+ h1: HTMLAttributes
1313
+ h2: HTMLAttributes
1314
+ h3: HTMLAttributes
1315
+ h4: HTMLAttributes
1316
+ h5: HTMLAttributes
1317
+ h6: HTMLAttributes
1318
+ head: HTMLAttributes
1319
+ header: HTMLAttributes
1320
+ hgroup: HTMLAttributes
1321
+ hr: HTMLAttributes
1322
+ html: HtmlHTMLAttributes
1323
+ i: HTMLAttributes
1324
+ iframe: IframeHTMLAttributes
1325
+ img: ImgHTMLAttributes
1326
+ input: InputHTMLAttributes
1327
+ ins: InsHTMLAttributes
1328
+ kbd: HTMLAttributes
1329
+ keygen: KeygenHTMLAttributes
1330
+ label: LabelHTMLAttributes
1331
+ legend: HTMLAttributes
1332
+ li: LiHTMLAttributes
1333
+ link: LinkHTMLAttributes
1334
+ main: HTMLAttributes
1335
+ map: MapHTMLAttributes
1336
+ mark: HTMLAttributes
1337
+ menu: MenuHTMLAttributes
1338
+ menuitem: HTMLAttributes
1339
+ meta: MetaHTMLAttributes
1340
+ meter: MeterHTMLAttributes
1341
+ nav: HTMLAttributes
1342
+ noscript: HTMLAttributes
1343
+ object: ObjectHTMLAttributes
1344
+ ol: OlHTMLAttributes
1345
+ optgroup: OptgroupHTMLAttributes
1346
+ option: OptionHTMLAttributes
1347
+ output: OutputHTMLAttributes
1348
+ p: HTMLAttributes
1349
+ param: ParamHTMLAttributes
1350
+ picture: HTMLAttributes
1351
+ pre: HTMLAttributes
1352
+ progress: ProgressHTMLAttributes
1353
+ q: QuoteHTMLAttributes
1354
+ rp: HTMLAttributes
1355
+ rt: HTMLAttributes
1356
+ ruby: HTMLAttributes
1357
+ s: HTMLAttributes
1358
+ samp: HTMLAttributes
1359
+ script: ScriptHTMLAttributes
1360
+ section: HTMLAttributes
1361
+ select: SelectHTMLAttributes
1362
+ small: HTMLAttributes
1363
+ source: SourceHTMLAttributes
1364
+ span: HTMLAttributes
1365
+ strong: HTMLAttributes
1366
+ style: StyleHTMLAttributes
1367
+ sub: HTMLAttributes
1368
+ summary: HTMLAttributes
1369
+ sup: HTMLAttributes
1370
+ table: TableHTMLAttributes
1371
+ tbody: HTMLAttributes
1372
+ td: TdHTMLAttributes
1373
+ textarea: TextareaHTMLAttributes
1374
+ tfoot: HTMLAttributes
1375
+ th: ThHTMLAttributes
1376
+ thead: HTMLAttributes
1377
+ time: TimeHTMLAttributes
1378
+ title: HTMLAttributes
1379
+ tr: HTMLAttributes
1380
+ track: TrackHTMLAttributes
1381
+ u: HTMLAttributes
1382
+ ul: HTMLAttributes
1383
+ var: HTMLAttributes
1384
+ video: VideoHTMLAttributes
1385
+ wbr: HTMLAttributes
1386
+ }