diff --git a/src/jsx.d.ts b/src/jsx.d.ts index 06600dbcff..4d4acfe693 100644 --- a/src/jsx.d.ts +++ b/src/jsx.d.ts @@ -124,11 +124,47 @@ export namespace JSXInternal { | 'inherit' | undefined >; + 'alignment-baseline'?: + | 'auto' + | 'baseline' + | 'before-edge' + | 'text-before-edge' + | 'middle' + | 'central' + | 'after-edge' + | 'text-after-edge' + | 'ideographic' + | 'alphabetic' + | 'hanging' + | 'mathematical' + | 'inherit' + | undefined + | SignalLike< + | 'auto' + | 'baseline' + | 'before-edge' + | 'text-before-edge' + | 'middle' + | 'central' + | 'after-edge' + | 'text-after-edge' + | 'ideographic' + | 'alphabetic' + | 'hanging' + | 'mathematical' + | 'inherit' + | undefined + >; allowReorder?: | 'no' | 'yes' | undefined | SignalLike<'no' | 'yes' | undefined>; + 'allow-reorder'?: + | 'no' + | 'yes' + | undefined + | SignalLike<'no' | 'yes' | undefined>; alphabetic?: | number | string @@ -139,6 +175,7 @@ export namespace JSXInternal { | string | undefined | SignalLike; + /** @deprecated See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/arabic-form */ arabicForm?: | 'initial' | 'medial' @@ -146,6 +183,14 @@ export namespace JSXInternal { | 'isolated' | undefined | SignalLike<'initial' | 'medial' | 'terminal' | 'isolated' | undefined>; + /** @deprecated See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/arabic-form */ + 'arabic-form'?: + | 'initial' + | 'medial' + | 'terminal' + | 'isolated' + | undefined + | SignalLike<'initial' | 'medial' | 'terminal' | 'isolated' | undefined>; ascent?: | number | string @@ -173,6 +218,11 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'baseline-shift'?: + | number + | string + | undefined + | SignalLike; baseProfile?: | number | string @@ -204,12 +254,18 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'cap-height'?: + | number + | string + | undefined + | SignalLike; clip?: | number | string | undefined | SignalLike; clipPath?: string | undefined | SignalLike; + 'clip-path'?: string | undefined | SignalLike; clipPathUnits?: | number | string @@ -220,11 +276,21 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'clip-rule'?: + | number + | string + | undefined + | SignalLike; colorInterpolation?: | number | string | undefined | SignalLike; + 'color-interpolation'?: + | number + | string + | undefined + | SignalLike; colorInterpolationFilters?: | 'auto' | 'sRGB' @@ -232,26 +298,53 @@ export namespace JSXInternal { | 'inherit' | undefined | SignalLike<'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined>; + 'color-interpolation-filters'?: + | 'auto' + | 'sRGB' + | 'linearRGB' + | 'inherit' + | undefined + | SignalLike<'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined>; colorProfile?: | number | string | undefined | SignalLike; + 'color-profile'?: + | number + | string + | undefined + | SignalLike; colorRendering?: | number | string | undefined | SignalLike; + 'color-rendering'?: + | number + | string + | undefined + | SignalLike; contentScriptType?: | number | string | undefined | SignalLike; + 'content-script-type'?: + | number + | string + | undefined + | SignalLike; contentStyleType?: | number | string | undefined | SignalLike; + 'content-style-type'?: + | number + | string + | undefined + | SignalLike; cursor?: | number | string @@ -295,6 +388,11 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'dominant-baseline'?: + | number + | string + | undefined + | SignalLike; dur?: number | string | undefined | SignalLike; dx?: number | string | undefined | SignalLike; dy?: number | string | undefined | SignalLike; @@ -313,6 +411,11 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'enable-background'?: + | number + | string + | undefined + | SignalLike; end?: number | string | undefined | SignalLike; exponent?: | number @@ -330,12 +433,23 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'fill-opacity'?: + | number + | string + | undefined + | SignalLike; fillRule?: | 'nonzero' | 'evenodd' | 'inherit' | undefined | SignalLike<'nonzero' | 'evenodd' | 'inherit' | undefined>; + 'fill-rule'?: + | 'nonzero' + | 'evenodd' + | 'inherit' + | undefined + | SignalLike<'nonzero' | 'evenodd' | 'inherit' | undefined>; filter?: string | undefined | SignalLike; filterRes?: | number @@ -352,47 +466,88 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'flood-color'?: + | number + | string + | undefined + | SignalLike; floodOpacity?: | number | string | undefined | SignalLike; + 'flood-opacity'?: + | number + | string + | undefined + | SignalLike; focusable?: | number | string | undefined | SignalLike; fontFamily?: string | undefined | SignalLike; + 'font-family'?: string | undefined | SignalLike; fontSize?: | number | string | undefined | SignalLike; + 'font-size'?: + | number + | string + | undefined + | SignalLike; fontSizeAdjust?: | number | string | undefined | SignalLike; + 'font-size-adjust'?: + | number + | string + | undefined + | SignalLike; fontStretch?: | number | string | undefined | SignalLike; + 'font-stretch'?: + | number + | string + | undefined + | SignalLike; fontStyle?: | number | string | undefined | SignalLike; + 'font-style'?: + | number + | string + | undefined + | SignalLike; fontVariant?: | number | string | undefined | SignalLike; + 'font-variant'?: + | number + | string + | undefined + | SignalLike; fontWeight?: | number | string | undefined | SignalLike; + 'font-weight'?: + | number + | string + | undefined + | SignalLike; format?: | number | string @@ -412,16 +567,31 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'glyph-name'?: + | number + | string + | undefined + | SignalLike; glyphOrientationHorizontal?: | number | string | undefined | SignalLike; + 'glyph-orientation-horizontal'?: + | number + | string + | undefined + | SignalLike; glyphOrientationVertical?: | number | string | undefined | SignalLike; + 'glyph-orientation-vertical'?: + | number + | string + | undefined + | SignalLike; glyphRef?: | number | string @@ -439,11 +609,21 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'horiz-adv-x'?: + | number + | string + | undefined + | SignalLike; horizOriginX?: | number | string | undefined | SignalLike; + 'horiz-origin-x'?: + | number + | string + | undefined + | SignalLike; ideographic?: | number | string @@ -454,6 +634,11 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'image-rendering'?: + | number + | string + | undefined + | SignalLike; in2?: number | string | undefined | SignalLike; in?: string | undefined | SignalLike; intercept?: @@ -506,11 +691,21 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'letter-spacing'?: + | number + | string + | undefined + | SignalLike; lightingColor?: | number | string | undefined | SignalLike; + 'lighting-color'?: + | number + | string + | undefined + | SignalLike; limitingConeAngle?: | number | string @@ -522,13 +717,16 @@ export namespace JSXInternal { | undefined | SignalLike; markerEnd?: string | undefined | SignalLike; + 'marker-end'?: string | undefined | SignalLike; markerHeight?: | number | string | undefined | SignalLike; markerMid?: string | undefined | SignalLike; + 'marker-mid'?: string | undefined | SignalLike; markerStart?: string | undefined | SignalLike; + 'marker-start'?: string | undefined | SignalLike; markerUnits?: | number | string @@ -610,21 +808,41 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'overline-position'?: + | number + | string + | undefined + | SignalLike; overlineThickness?: | number | string | undefined | SignalLike; + 'overline-thickness'?: + | number + | string + | undefined + | SignalLike; paintOrder?: | number | string | undefined | SignalLike; + 'paint-order'?: + | number + | string + | undefined + | SignalLike; panose1?: | number | string | undefined | SignalLike; + 'panose-1'?: + | number + | string + | undefined + | SignalLike; pathLength?: | number | string @@ -642,6 +860,11 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'pointer-events'?: + | number + | string + | undefined + | SignalLike; points?: string | undefined | SignalLike; pointsAtX?: | number @@ -690,16 +913,31 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'rendering-intent'?: + | number + | string + | undefined + | SignalLike; repeatCount?: | number | string | undefined | SignalLike; + 'repeat-count'?: + | number + | string + | undefined + | SignalLike; repeatDur?: | number | string | undefined | SignalLike; + 'repeat-dur'?: + | number + | string + | undefined + | SignalLike; requiredExtensions?: | number | string @@ -738,6 +976,11 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'shape-rendering'?: + | number + | string + | undefined + | SignalLike; slope?: | number | string @@ -790,21 +1033,37 @@ export namespace JSXInternal { | undefined | SignalLike; stopColor?: string | undefined | SignalLike; + 'stop-color'?: string | undefined | SignalLike; stopOpacity?: | number | string | undefined | SignalLike; + 'stop-opacity'?: + | number + | string + | undefined + | SignalLike; strikethroughPosition?: | number | string | undefined | SignalLike; + 'strikethrough-position'?: + | number + | string + | undefined + | SignalLike; strikethroughThickness?: | number | string | undefined | SignalLike; + 'strikethrough-thickness'?: + | number + | string + | undefined + | SignalLike; string?: | number | string @@ -816,11 +1075,21 @@ export namespace JSXInternal { | number | undefined | SignalLike; + 'stroke-dasharray'?: + | string + | number + | undefined + | SignalLike; strokeDashoffset?: | string | number | undefined | SignalLike; + 'stroke-dashoffset'?: + | string + | number + | undefined + | SignalLike; strokeLinecap?: | 'butt' | 'round' @@ -828,6 +1097,13 @@ export namespace JSXInternal { | 'inherit' | undefined | SignalLike<'butt' | 'round' | 'square' | 'inherit' | undefined>; + 'stroke-linecap'?: + | 'butt' + | 'round' + | 'square' + | 'inherit' + | undefined + | SignalLike<'butt' | 'round' | 'square' | 'inherit' | undefined>; strokeLinejoin?: | 'miter' | 'round' @@ -835,21 +1111,43 @@ export namespace JSXInternal { | 'inherit' | undefined | SignalLike<'miter' | 'round' | 'bevel' | 'inherit' | undefined>; + 'stroke-linejoin'?: + | 'miter' + | 'round' + | 'bevel' + | 'inherit' + | undefined + | SignalLike<'miter' | 'round' | 'bevel' | 'inherit' | undefined>; strokeMiterlimit?: | string | number | undefined | SignalLike; + 'stroke-miterlimit'?: + | string + | number + | undefined + | SignalLike; strokeOpacity?: | number | string | undefined | SignalLike; + 'stroke-opacity'?: + | number + | string + | undefined + | SignalLike; strokeWidth?: | number | string | undefined | SignalLike; + 'stroke-width'?: + | number + | string + | undefined + | SignalLike; surfaceScale?: | number | string @@ -876,11 +1174,17 @@ export namespace JSXInternal { | undefined | SignalLike; textAnchor?: string | undefined | SignalLike; + 'text-anchor'?: string | undefined | SignalLike; textDecoration?: | number | string | undefined | SignalLike; + 'text-decoration'?: + | number + | string + | undefined + | SignalLike; textLength?: | number | string @@ -900,11 +1204,21 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'underline-position'?: + | number + | string + | undefined + | SignalLike; underlineThickness?: | number | string | undefined | SignalLike; + 'underline-thickness'?: + | number + | string + | undefined + | SignalLike; unicode?: | number | string @@ -915,53 +1229,103 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'unicode-bidi'?: + | number + | string + | undefined + | SignalLike; unicodeRange?: | number | string | undefined | SignalLike; + 'unicode-range'?: + | number + | string + | undefined + | SignalLike; unitsPerEm?: | number | string | undefined | SignalLike; + 'units-per-em'?: + | number + | string + | undefined + | SignalLike; vAlphabetic?: | number | string | undefined | SignalLike; + 'v-alphabetic'?: + | number + | string + | undefined + | SignalLike; values?: string | undefined | SignalLike; vectorEffect?: | number | string | undefined | SignalLike; + 'vector-effect'?: + | number + | string + | undefined + | SignalLike; version?: string | undefined | SignalLike; vertAdvY?: | number | string | undefined | SignalLike; + 'vert-adv-y'?: + | number + | string + | undefined + | SignalLike; vertOriginX?: | number | string | undefined | SignalLike; + 'vert-origin-x'?: + | number + | string + | undefined + | SignalLike; vertOriginY?: | number | string | undefined | SignalLike; + 'vert-origin-y'?: + | number + | string + | undefined + | SignalLike; vHanging?: | number | string | undefined | SignalLike; + 'v-hanging'?: + | number + | string + | undefined + | SignalLike; vIdeographic?: | number | string | undefined | SignalLike; + 'v-ideographic'?: + | number + | string + | undefined + | SignalLike; viewBox?: string | undefined | SignalLike; viewTarget?: | number @@ -978,6 +1342,11 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'v-mathematical'?: + | number + | string + | undefined + | SignalLike; widths?: | number | string @@ -988,11 +1357,21 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'word-spacing'?: + | number + | string + | undefined + | SignalLike; writingMode?: | number | string | undefined | SignalLike; + 'writing-mode'?: + | number + | string + | undefined + | SignalLike; x1?: number | string | undefined | SignalLike; x2?: number | string | undefined | SignalLike; x?: number | string | undefined | SignalLike; @@ -1002,18 +1381,33 @@ export namespace JSXInternal { | string | undefined | SignalLike; + 'x-height'?: + | number + | string + | undefined + | SignalLike; xlinkActuate?: string | undefined | SignalLike; + 'xlink:actuate'?: SVGAttributes['xlinkActuate']; xlinkArcrole?: string | undefined | SignalLike; + 'xlink:arcrole'?: string | undefined | SignalLike; xlinkHref?: string | undefined | SignalLike; + 'xlink:href'?: string | undefined | SignalLike; xlinkRole?: string | undefined | SignalLike; + 'xlink:role'?: string | undefined | SignalLike; xlinkShow?: string | undefined | SignalLike; + 'xlink:show'?: string | undefined | SignalLike; xlinkTitle?: string | undefined | SignalLike; + 'xlink:title'?: string | undefined | SignalLike; xlinkType?: string | undefined | SignalLike; + 'xlink:type'?: string | undefined | SignalLike; xmlBase?: string | undefined | SignalLike; + 'xml:base'?: string | undefined | SignalLike; xmlLang?: string | undefined | SignalLike; + 'xml:lang'?: string | undefined | SignalLike; xmlns?: string | undefined | SignalLike; xmlnsXlink?: string | undefined | SignalLike; xmlSpace?: string | undefined | SignalLike; + 'xml:space'?: string | undefined | SignalLike; y1?: number | string | undefined | SignalLike; y2?: number | string | undefined | SignalLike; y?: number | string | undefined | SignalLike; @@ -1692,7 +2086,9 @@ export namespace JSXInternal { // Standard HTML Attributes accept?: string | undefined | SignalLike; acceptCharset?: string | undefined | SignalLike; + 'accept-charset'?: HTMLAttributes['acceptCharset']; accessKey?: string | undefined | SignalLike; + accesskey?: HTMLAttributes['accessKey']; action?: string | undefined | SignalLike; allow?: string | undefined | SignalLike; allowFullScreen?: boolean | undefined | SignalLike; @@ -1707,10 +2103,12 @@ export namespace JSXInternal { autofocus?: boolean | undefined | SignalLike; autoFocus?: boolean | undefined | SignalLike; autoPlay?: boolean | undefined | SignalLike; + autoplay?: boolean | undefined | SignalLike; capture?: boolean | string | undefined | SignalLike; cellPadding?: number | string | undefined | SignalLike; cellSpacing?: number | string | undefined | SignalLike; charSet?: string | undefined | SignalLike; + charset?: string | undefined | SignalLike; challenge?: string | undefined | SignalLike; checked?: boolean | undefined | SignalLike; cite?: string | undefined | SignalLike; @@ -1718,15 +2116,22 @@ export namespace JSXInternal { className?: string | undefined | SignalLike; cols?: number | undefined | SignalLike; colSpan?: number | undefined | SignalLike; + colspan?: number | undefined | SignalLike; content?: string | undefined | SignalLike; contentEditable?: boolean | undefined | SignalLike; + contenteditable?: boolean | undefined | SignalLike; + /** @deprecated See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contextmenu */ contextMenu?: string | undefined | SignalLike; + /** @deprecated See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contextmenu */ + contextmenu?: string | undefined | SignalLike; controls?: boolean | undefined | SignalLike; controlsList?: string | undefined | SignalLike; coords?: string | undefined | SignalLike; crossOrigin?: string | undefined | SignalLike; + crossorigin?: string | undefined | SignalLike; data?: string | undefined | SignalLike; dateTime?: string | undefined | SignalLike; + datetime?: string | undefined | SignalLike; default?: boolean | undefined | SignalLike; defaultChecked?: boolean | undefined | SignalLike; defaultValue?: string | undefined | SignalLike; @@ -1751,6 +2156,7 @@ export namespace JSXInternal { | SignalLike<'sync' | 'async' | 'auto' | undefined>; draggable?: boolean | undefined | SignalLike; encType?: string | undefined | SignalLike; + enctype?: string | undefined | SignalLike; enterkeyhint?: | 'enter' | 'done' @@ -1773,15 +2179,25 @@ export namespace JSXInternal { for?: string | undefined | SignalLike; form?: string | undefined | SignalLike; formAction?: string | undefined | SignalLike; + formaction?: string | undefined | SignalLike; formEncType?: string | undefined | SignalLike; + formenctype?: string | undefined | SignalLike; formMethod?: string | undefined | SignalLike; + formmethod?: string | undefined | SignalLike; formNoValidate?: boolean | undefined | SignalLike; + formnovalidate?: boolean | undefined | SignalLike; formTarget?: string | undefined | SignalLike; + formtarget?: string | undefined | SignalLike; frameBorder?: | number | string | undefined | SignalLike; + frameborder?: + | number + | string + | undefined + | SignalLike; headers?: string | undefined | SignalLike; height?: | number @@ -1797,13 +2213,16 @@ export namespace JSXInternal { high?: number | undefined | SignalLike; href?: string | undefined | SignalLike; hrefLang?: string | undefined | SignalLike; + hreflang?: string | undefined | SignalLike; htmlFor?: string | undefined | SignalLike; httpEquiv?: string | undefined | SignalLike; + 'http-equiv'?: string | undefined | SignalLike; icon?: string | undefined | SignalLike; id?: string | undefined | SignalLike; indeterminate?: boolean | undefined | SignalLike; inert?: boolean | undefined | SignalLike; inputMode?: string | undefined | SignalLike; + inputmode?: string | undefined | SignalLike; integrity?: string | undefined | SignalLike; is?: string | undefined | SignalLike; keyParams?: string | undefined | SignalLike; @@ -1824,17 +2243,20 @@ export namespace JSXInternal { marginWidth?: number | undefined | SignalLike; max?: number | string | undefined | SignalLike; maxLength?: number | undefined | SignalLike; + maxlength?: number | undefined | SignalLike; media?: string | undefined | SignalLike; mediaGroup?: string | undefined | SignalLike; method?: string | undefined | SignalLike; min?: number | string | undefined | SignalLike; minLength?: number | undefined | SignalLike; + minlength?: number | undefined | SignalLike; multiple?: boolean | undefined | SignalLike; muted?: boolean | undefined | SignalLike; name?: string | undefined | SignalLike; nomodule?: boolean | undefined | SignalLike; nonce?: string | undefined | SignalLike; noValidate?: boolean | undefined | SignalLike; + novalidate?: boolean | undefined | SignalLike; open?: boolean | undefined | SignalLike; optimum?: number | undefined | SignalLike; part?: string | undefined | SignalLike; @@ -1842,6 +2264,7 @@ export namespace JSXInternal { ping?: string | undefined | SignalLike; placeholder?: string | undefined | SignalLike; playsInline?: boolean | undefined | SignalLike; + playsinline?: boolean | undefined | SignalLike; poster?: string | undefined | SignalLike; preload?: string | undefined | SignalLike; radioGroup?: string | undefined | SignalLike; @@ -1874,6 +2297,7 @@ export namespace JSXInternal { role?: AriaRole | undefined | SignalLike; rows?: number | undefined | SignalLike; rowSpan?: number | undefined | SignalLike; + rowspan?: number | undefined | SignalLike; sandbox?: string | undefined | SignalLike; scope?: string | undefined | SignalLike; scoped?: boolean | undefined | SignalLike; @@ -1888,10 +2312,12 @@ export namespace JSXInternal { spellcheck?: boolean | undefined | SignalLike; spellCheck?: boolean | undefined | SignalLike; src?: string | undefined | SignalLike; + srcSet?: string | undefined | SignalLike; srcset?: string | undefined | SignalLike; srcDoc?: string | undefined | SignalLike; + srcdoc?: string | undefined | SignalLike; srcLang?: string | undefined | SignalLike; - srcSet?: string | undefined | SignalLike; + srclang?: string | undefined | SignalLike; start?: number | undefined | SignalLike; step?: | number @@ -1905,10 +2331,12 @@ export namespace JSXInternal { | SignalLike; summary?: string | undefined | SignalLike; tabIndex?: number | undefined | SignalLike; + tabindex?: number | undefined | SignalLike; target?: string | undefined | SignalLike; title?: string | undefined | SignalLike; type?: string | undefined | SignalLike; useMap?: string | undefined | SignalLike; + usemap?: string | undefined | SignalLike; value?: | string | string[] @@ -1982,10 +2410,15 @@ export namespace JSXInternal { // Microdata Attributes itemProp?: string | undefined | SignalLike; + itemprop?: string | undefined | SignalLike; itemScope?: boolean | undefined | SignalLike; + itemscope?: boolean | undefined | SignalLike; itemType?: string | undefined | SignalLike; + itemtype?: string | undefined | SignalLike; itemID?: string | undefined | SignalLike; + itemid?: string | undefined | SignalLike; itemRef?: string | undefined | SignalLike; + itemref?: string | undefined | SignalLike; } export type DetailedHTMLProps<