jsx-dom-runtime
Advanced tools
Comparing version 0.41.0 to 0.42.0
347
index.d.ts
@@ -5,5 +5,2 @@ /// <reference lib="dom" /> | ||
type Booleanish = boolean | 'true' | 'false' | ||
type Numeric = number | `${number}` | ||
interface RefObject<T> { | ||
@@ -49,5 +46,5 @@ readonly current: T | ||
export function Extend(props: Record<string, (node: HTMLElement, value: any) => void>): undefined | ||
export function Extend(props: Record<string, (node: HTMLElement, value: any) => void>): void | ||
export function parseFromString(html: string): DocumentFragment | ||
export function Fragment(props: { children?: TChild | TChild[] }): DocumentFragment | ||
export function Fragment(children?: TChild | TChild[]): DocumentFragment | ||
export function Template(props: { children: string }): DocumentFragment | ||
@@ -195,3 +192,3 @@ | ||
/** 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. */ | ||
'aria-atomic'?: Booleanish | ||
'aria-atomic'?: boolean | 'true' | 'false' | ||
/** | ||
@@ -203,3 +200,3 @@ * 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 | ||
/** 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. */ | ||
'aria-busy'?: Booleanish | ||
'aria-busy'?: boolean | 'true' | 'false' | ||
/** | ||
@@ -209,3 +206,3 @@ * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. | ||
*/ | ||
'aria-checked'?: Booleanish | 'mixed' | ||
'aria-checked'?: boolean | 'true' | 'false' | 'mixed' | ||
/** | ||
@@ -215,3 +212,3 @@ * Defines the total number of columns in a table, grid, or treegrid. | ||
*/ | ||
'aria-colcount'?: Numeric | ||
'aria-colcount'?: number | `${number}` | ||
/** | ||
@@ -221,3 +218,3 @@ * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. | ||
*/ | ||
'aria-colindex'?: Numeric | ||
'aria-colindex'?: number | `${number}` | ||
/** | ||
@@ -227,3 +224,3 @@ * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. | ||
*/ | ||
'aria-colspan'?: Numeric | ||
'aria-colspan'?: number | `${number}` | ||
/** | ||
@@ -235,3 +232,3 @@ * Identifies the element (or elements) whose contents or presence are controlled by the current element. | ||
/** Indicates the element that represents the current item within a container or set of related elements. */ | ||
'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | ||
'aria-current'?: boolean | 'true' | 'false' | 'page' | 'step' | 'location' | 'date' | 'time' | ||
/** | ||
@@ -251,3 +248,3 @@ * Identifies the element (or elements) that describes the object. | ||
*/ | ||
'aria-disabled'?: Booleanish | ||
'aria-disabled'?: boolean | 'true' | 'false' | ||
/** | ||
@@ -264,3 +261,3 @@ * Indicates what functions can be performed when a dragged object is released on the drop target. | ||
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */ | ||
'aria-expanded'?: Booleanish | ||
'aria-expanded'?: boolean | 'true' | 'false' | ||
/** | ||
@@ -275,6 +272,6 @@ * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, | ||
*/ | ||
'aria-grabbed'?: Booleanish | ||
'aria-grabbed'?: boolean | 'true' | 'false' | ||
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */ | ||
'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | ||
'aria-haspopup'?: boolean | 'true' | 'false' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | ||
/** | ||
@@ -284,3 +281,3 @@ * Indicates whether the element is exposed to an accessibility API. | ||
*/ | ||
'aria-hidden'?: Booleanish | ||
'aria-hidden'?: boolean | 'true' | 'false' | ||
/** | ||
@@ -290,3 +287,3 @@ * Indicates the entered value does not conform to the format expected by the application. | ||
*/ | ||
'aria-invalid'?: Booleanish | 'grammar' | 'spelling' | ||
'aria-invalid'?: boolean | 'true' | 'false' | 'grammar' | 'spelling' | ||
/** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */ | ||
@@ -305,11 +302,11 @@ 'aria-keyshortcuts'?: string | ||
/** Defines the hierarchical level of an element within a structure. */ | ||
'aria-level'?: Numeric | ||
'aria-level'?: number | `${number}` | ||
/** 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. */ | ||
'aria-live'?: 'off' | 'assertive' | 'polite' | ||
/** Indicates whether an element is modal when displayed. */ | ||
'aria-modal'?: Booleanish | ||
'aria-modal'?: boolean | 'true' | 'false' | ||
/** Indicates whether a text box accepts multiple lines of input or only a single line. */ | ||
'aria-multiline'?: Booleanish | ||
'aria-multiline'?: boolean | 'true' | 'false' | ||
/** Indicates that the user may select more than one item from the current selectable descendants. */ | ||
'aria-multiselectable'?: Booleanish | ||
'aria-multiselectable'?: boolean | 'true' | 'false' | ||
/** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */ | ||
@@ -332,3 +329,3 @@ 'aria-orientation'?: 'horizontal' | 'vertical' | ||
*/ | ||
'aria-posinset'?: Numeric | ||
'aria-posinset'?: number | `${number}` | ||
/** | ||
@@ -338,3 +335,3 @@ * Indicates the current "pressed" state of toggle buttons. | ||
*/ | ||
'aria-pressed'?: Booleanish | 'mixed' | ||
'aria-pressed'?: boolean | 'true' | 'false' | 'mixed' | ||
/** | ||
@@ -344,3 +341,3 @@ * Indicates that the element is not editable, but is otherwise operable. | ||
*/ | ||
'aria-readonly'?: Booleanish | ||
'aria-readonly'?: boolean | 'true' | 'false' | ||
@@ -364,3 +361,3 @@ /** | ||
/** Indicates that user input is required on the element before a form may be submitted. */ | ||
'aria-required'?: Booleanish | ||
'aria-required'?: boolean | 'true' | 'false' | ||
/** Defines a human-readable, author-localized description for the role of an element. */ | ||
@@ -372,3 +369,3 @@ 'aria-roledescription'?: string | ||
*/ | ||
'aria-rowcount'?: Numeric | ||
'aria-rowcount'?: number | `${number}` | ||
/** | ||
@@ -378,3 +375,3 @@ * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. | ||
*/ | ||
'aria-rowindex'?: Numeric | ||
'aria-rowindex'?: number | `${number}` | ||
/** | ||
@@ -384,3 +381,3 @@ * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. | ||
*/ | ||
'aria-rowspan'?: Numeric | ||
'aria-rowspan'?: number | `${number}` | ||
/** | ||
@@ -390,3 +387,3 @@ * Indicates the current "selected" state of various widgets. | ||
*/ | ||
'aria-selected'?: Booleanish | ||
'aria-selected'?: boolean | 'true' | 'false' | ||
/** | ||
@@ -396,9 +393,9 @@ * 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. | ||
*/ | ||
'aria-setsize'?: Numeric | ||
'aria-setsize'?: number | `${number}` | ||
/** Indicates if items in a table or grid are sorted in ascending or descending order. */ | ||
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | ||
/** Defines the maximum allowed value for a range widget. */ | ||
'aria-valuemax'?: Numeric | ||
'aria-valuemax'?: number | `${number}` | ||
/** Defines the minimum allowed value for a range widget. */ | ||
'aria-valuemin'?: Numeric | ||
'aria-valuemin'?: number | `${number}` | ||
/** | ||
@@ -408,3 +405,3 @@ * Defines the current value for a range widget. | ||
*/ | ||
'aria-valuenow'?: Numeric | ||
'aria-valuenow'?: number | `${number}` | ||
/** Defines the human readable text alternative of aria-valuenow for a range widget. */ | ||
@@ -414,4 +411,24 @@ 'aria-valuetext'?: string | ||
// All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions | ||
type AriaRole = | ||
export interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> { | ||
innerHTML?: string | ||
accessKey?: string | ||
class?: string | ||
contentEditable?: boolean | 'true' | 'false' | 'inherit' | ||
contextMenu?: string | ||
dir?: 'ltr' | 'rtl' | 'auto' | ||
draggable?: boolean | 'true' | 'false' | ||
hidden?: boolean | 'hidden' | 'until-found' | '' | ||
id?: string | ||
inert?: boolean | 'inert' | '' | ||
lang?: string | ||
placeholder?: string | ||
slot?: string | ||
spellcheck?: 'true' | 'false' | ||
style?: string | CSSProperties | ||
tabIndex?: number | `${number}` | ||
title?: string; | ||
translate?: 'yes' | 'no' | ||
// Unknown | ||
radioGroup?: string // <command>, <menuitem> | ||
role?: // All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions | ||
| 'alert' | ||
@@ -487,26 +504,2 @@ | 'alertdialog' | ||
| 'none presentation' | ||
export interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> { | ||
innerHTML?: string | ||
accessKey?: string | ||
class?: string | ||
contentEditable?: Booleanish | 'inherit' | ||
contextMenu?: string | ||
dir?: 'ltr' | 'rtl' | 'auto' | ||
draggable?: Booleanish | ||
hidden?: boolean | 'hidden' | 'until-found' | '' | ||
id?: string | ||
inert?: boolean | 'inert' | '' | ||
lang?: string | ||
placeholder?: string | ||
slot?: string | ||
spellcheck?: 'true' | 'false' | ||
style?: string | CSSProperties | ||
tabIndex?: Numeric | ||
title?: string; | ||
translate?: 'yes' | 'no' | ||
// Unknown | ||
radioGroup?: string // <command>, <menuitem> | ||
// WAI-ARIA | ||
role?: AriaRole | ||
// RDFa Attributes | ||
@@ -530,3 +523,3 @@ about?: string | ||
itemRef?: string | ||
results?: Numeric | ||
results?: number | `${number}` | ||
security?: string | ||
@@ -563,7 +556,7 @@ unselectable?: 'on' | 'off' | ||
alphabetic?: number | string | ||
amplitude?: Numeric | ||
amplitude?: number | `${number}` | ||
/** @deprecated */ | ||
'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated' | ||
/** @deprecated */ | ||
ascent?: Numeric | ||
ascent?: number | `${number}` | ||
attributeName?: string | ||
@@ -573,3 +566,3 @@ /** @deprecated */ | ||
autoReverse?: number | string | ||
azimuth?: Numeric | ||
azimuth?: number | `${number}` | ||
baseFrequency?: number | string | ||
@@ -581,3 +574,3 @@ 'baseline-shift'?: SVGProperties['baselineShift'] | ||
begin?: number | string | ||
bias?: Numeric | ||
bias?: number | `${number}` | ||
by?: number | string | ||
@@ -604,3 +597,3 @@ calcMode?: 'discrete' | 'linear' | 'paced' | 'spline' | ||
descent?: number | string | ||
diffuseConstant?: Numeric | ||
diffuseConstant?: number | `${number}` | ||
direction?: 'ltr' | 'rtl' | ||
@@ -614,7 +607,7 @@ display?: SVGProperties['display'] | ||
edgeMode?: 'duplicate' | 'wrap' | 'none' | ||
elevation?: Numeric | ||
elevation?: number | `${number}` | ||
/** @deprecated */ | ||
'enable-background'?: number | string | ||
end?: number | string | ||
exponent?: Numeric | ||
exponent?: number | `${number}` | ||
externalResourcesRequired?: number | string | ||
@@ -656,21 +649,21 @@ fill?: SVGProperties['fill'] | ||
/** @deprecated */ | ||
hanging?: Numeric | ||
hanging?: number | `${number}` | ||
/** @deprecated */ | ||
'horiz-adv-x'?: Numeric | ||
'horiz-adv-x'?: number | `${number}` | ||
/** @deprecated */ | ||
'horiz-origin-x'?: Numeric | ||
'horiz-origin-x'?: number | `${number}` | ||
/** @deprecated */ | ||
'horiz-origin-y'?: Numeric | ||
'horiz-origin-y'?: number | `${number}` | ||
/** @deprecated */ | ||
ideographic?: Numeric | ||
ideographic?: number | `${number}` | ||
'image-rendering'?: SVGProperties['imageRendering'] | ||
in2?: string | ||
in?: string | ||
intercept?: Numeric | ||
k1?: Numeric | ||
k2?: Numeric | ||
k3?: Numeric | ||
k4?: Numeric | ||
intercept?: number | `${number}` | ||
k1?: number | `${number}` | ||
k2?: number | `${number}` | ||
k3?: number | `${number}` | ||
k4?: number | `${number}` | ||
/** @deprecated */ | ||
k?: Numeric | ||
k?: number | `${number}` | ||
kernelMatrix?: number | string | ||
@@ -688,3 +681,3 @@ /** @deprecated */ | ||
'lighting-color'?: SVGProperties['lightingColor'] | ||
limitingConeAngle?: Numeric | ||
limitingConeAngle?: number | `${number}` | ||
marker?: SVGProperties['marker'] | ||
@@ -702,3 +695,3 @@ 'marker-start'?: SVGProperties['markerStart'] | ||
/** @deprecated */ | ||
mathematical?: Numeric | ||
mathematical?: number | `${number}` | ||
max?: string | ||
@@ -710,3 +703,3 @@ min?: string | ||
name?: string | ||
numOctaves?: Numeric | ||
numOctaves?: number | `${number}` | ||
offset?: number | string | ||
@@ -721,4 +714,4 @@ opacity?: SVGProperties['opacity'] | ||
overflow?: SVGProperties['overflow'] | ||
'overline-position'?: Numeric | ||
'overline-thickness'?: Numeric | ||
'overline-position'?: number | `${number}` | ||
'overline-thickness'?: number | `${number}` | ||
'paint-order'?: SVGProperties['paintOrder'] | ||
@@ -728,3 +721,3 @@ /** @deprecated */ | ||
path?: string | ||
pathLength?: Numeric | ||
pathLength?: number | `${number}` | ||
patternContentUnits?: 'userSpaceOnUse' | 'objectBoundingBox' | ||
@@ -735,5 +728,5 @@ patternTransform?: string | ||
points?: string | ||
pointsAtX?: Numeric | ||
pointsAtY?: Numeric | ||
pointsAtZ?: Numeric | ||
pointsAtX?: number | `${number}` | ||
pointsAtY?: number | `${number}` | ||
pointsAtZ?: number | `${number}` | ||
preserveAlpha?: 'true' | 'false' | ||
@@ -747,3 +740,3 @@ preserveAspectRatio?: string | ||
renderingIntent?: number | string | ||
repeatCount?: Numeric | 'indefinite' | ||
repeatCount?: number | `${number}` | 'indefinite' | ||
repeatDur?: number | string | 'indefinite' | ||
@@ -755,14 +748,14 @@ requiredExtensions?: number | string | ||
result?: string | ||
rotate?: Numeric | 'auto' | 'auto-reverse' | ||
rotate?: number | `${number}` | 'auto' | 'auto-reverse' | ||
rx?: number | string | 'auto' | ||
ry?: number | string | 'auto' | ||
scale?: Numeric | ||
seed?: Numeric | ||
scale?: number | `${number}` | ||
seed?: number | `${number}` | ||
'shape-rendering'?: SVGProperties['shapeRendering'] | ||
side?: 'left' | 'right' | ||
/** @deprecated */ | ||
slope?: Numeric | ||
slope?: number | `${number}` | ||
spacing?: 'auto' | 'exact' | ||
specularConstant?: Numeric | ||
specularExponent?: Numeric | ||
specularConstant?: number | `${number}` | ||
specularExponent?: number | `${number}` | ||
speed?: number | string | ||
@@ -773,10 +766,10 @@ spreadMethod?: 'pad' | 'reflect' | 'repeat' | ||
/** @deprecated */ | ||
stemh?: Numeric | ||
stemh?: number | `${number}` | ||
/** @deprecated */ | ||
stemv?: Numeric | ||
stemv?: number | `${number}` | ||
stitchTiles?: 'noStitch' | 'stitch' | ||
'stop-color'?: SVGProperties['stopColor'] | ||
'stop-opacity'?: SVGProperties['stopOpacity'] | ||
'strikethrough-position'?: Numeric | ||
'strikethrough-thickness'?: Numeric | ||
'strikethrough-position'?: number | `${number}` | ||
'strikethrough-thickness'?: number | `${number}` | ||
/** @deprecated */ | ||
@@ -792,5 +785,5 @@ string?: number | string | ||
'stroke-width'?: SVGProperties['strokeWidth'] | ||
surfaceScale?: Numeric | ||
surfaceScale?: number | `${number}` | ||
systemLanguage?: string | ||
tabindex?: Numeric | ||
tabindex?: number | `${number}` | ||
tableValues?: number | string | ||
@@ -812,4 +805,4 @@ target?: string | '_self' | '_parent' | '_top' | '_blank' | ||
u2?: string | ||
'underline-position'?: Numeric | ||
'underline-thickness'?: Numeric | ||
'underline-position'?: number | `${number}` | ||
'underline-thickness'?: number | `${number}` | ||
unicode?: string | ||
@@ -820,11 +813,11 @@ 'unicode-bidi'?: SVGProperties['unicodeBidi'] | ||
/** @deprecated */ | ||
'units-per-em'?: Numeric | ||
'units-per-em'?: number | `${number}` | ||
/** @deprecated */ | ||
'v-alphabetic'?: Numeric | ||
'v-alphabetic'?: number | `${number}` | ||
/** @deprecated */ | ||
'v-hanging'?: Numeric | ||
'v-hanging'?: number | `${number}` | ||
/** @deprecated */ | ||
'v-ideographic'?: Numeric | ||
'v-ideographic'?: number | `${number}` | ||
/** @deprecated */ | ||
'v-mathematical'?: Numeric | ||
'v-mathematical'?: number | `${number}` | ||
values?: string | ||
@@ -835,7 +828,7 @@ 'vector-effect'?: SVGProperties['vectorEffect'] | ||
/** @deprecated */ | ||
'vert-adv-y'?: Numeric | ||
'vert-adv-y'?: number | `${number}` | ||
/** @deprecated */ | ||
'vert-origin-x'?: Numeric | ||
'vert-origin-x'?: number | `${number}` | ||
/** @deprecated */ | ||
'vert-origin-y'?: Numeric | ||
'vert-origin-y'?: number | `${number}` | ||
viewBox?: string | ||
@@ -846,3 +839,3 @@ /** @deprecated */ | ||
/** @deprecated */ | ||
widths?: Numeric | ||
widths?: number | `${number}` | ||
'word-spacing'?: SVGProperties['wordSpacing'] | ||
@@ -854,6 +847,8 @@ 'writing-mode'?: SVGProperties['writingMode'] | ||
/** @deprecated */ | ||
'x-height'?: Numeric | ||
'x-height'?: number | `${number}` | ||
xChannelSelector?: 'R' | 'G' | 'B' | 'A' | ||
yChannelSelector?: 'R' | 'G' | 'B' | 'A' | ||
/** @deprecated Not Supported */ | ||
'xlink:actuate'?: 'onLoad' | ||
/** @deprecated Not Supported */ | ||
'xlink:arcrole'?: string | ||
@@ -867,4 +862,2 @@ /** | ||
'xlink:show'?: 'new' | 'replace' | 'embed' | 'other' | 'none' | ||
/** @deprecated Not Supported */ | ||
'xlink:title'?: string | ||
/** | ||
@@ -874,6 +867,13 @@ * New content should use a `<title>` child element rather than a `xlink:title` attribute | ||
*/ | ||
'xlink:type'?: string | ||
'xlink:title'?: string | ||
/** @deprecated Not Supported */ | ||
'xlink:type'?: 'simple' | ||
/** @deprecated Not Supported */ | ||
'xlink:role'?: string | ||
/** @deprecated Not Supported */ | ||
'xml:base'?: string | ||
/** @deprecated Not Supported */ | ||
/** | ||
* Not Supported. There is also a `lang` attribute (without namespace) | ||
* @deprecated | ||
*/ | ||
'xml:lang'?: string | ||
@@ -889,3 +889,3 @@ /** | ||
y?: number | string | ||
z?: Numeric | ||
z?: number | `${number}` | ||
/** @deprecated */ | ||
@@ -897,31 +897,2 @@ zoomAndPan?: 'disable' | 'magnify' | ||
export type HTMLAttrinuteCORS = | ||
| 'anonymous' | ||
| 'use-credentials' | ||
| '' | ||
export type HTMLInputTypeAttribute = | ||
| 'button' | ||
| 'checkbox' | ||
| 'color' | ||
| 'date' | ||
| 'datetime-local' | ||
| 'email' | ||
| 'file' | ||
| 'hidden' | ||
| 'image' | ||
| 'month' | ||
| 'number' | ||
| 'password' | ||
| 'radio' | ||
| 'range' | ||
| 'reset' | ||
| 'search' | ||
| 'submit' | ||
| 'tel' | ||
| 'text' | ||
| 'time' | ||
| 'url' | ||
| 'week' | ||
interface AnchorHTMLAttributes extends HTMLAttributes<HTMLAnchorElement> { | ||
@@ -984,3 +955,3 @@ download?: any; | ||
interface ColHTMLAttributes extends HTMLAttributes<HTMLTableColElement> { | ||
span?: Numeric | ||
span?: number | `${number}` | ||
width?: number | string | ||
@@ -990,3 +961,3 @@ } | ||
interface ColgroupHTMLAttributes extends HTMLAttributes<HTMLTableColElement> { | ||
span?: Numeric | ||
span?: number | `${number}` | ||
} | ||
@@ -1060,5 +1031,5 @@ | ||
/** @deprecated */ | ||
marginHeight?: Numeric; | ||
marginHeight?: number | `${number}`; | ||
/** @deprecated */ | ||
marginWidth?: Numeric; | ||
marginWidth?: number | `${number}`; | ||
name?: string; | ||
@@ -1078,3 +1049,3 @@ referrerPolicy?: ReferrerPolicy; | ||
alt?: string; | ||
crossOrigin?: HTMLAttrinuteCORS; | ||
crossOrigin?: 'anonymous' | 'use-credentials' | ''; | ||
decoding?: 'async' | 'auto' | 'sync'; | ||
@@ -1104,3 +1075,3 @@ height?: number | string; | ||
checked?: boolean | 'checked' | ''; | ||
crossOrigin?: HTMLAttrinuteCORS; | ||
crossOrigin?: 'anonymous' | 'use-credentials' | ''; | ||
disabled?: boolean | 'disabled' | ''; | ||
@@ -1118,5 +1089,5 @@ dirName?: string; | ||
max?: number | string | ||
maxLength?: Numeric; | ||
maxLength?: number | `${number}`; | ||
min?: number | string | ||
minLength?: Numeric; | ||
minLength?: number | `${number}`; | ||
multiple?: boolean | 'multiple' | ''; | ||
@@ -1128,6 +1099,28 @@ name?: string; | ||
required?: boolean | 'required' | ''; | ||
size?: Numeric; | ||
size?: number | `${number}`; | ||
src?: string | ||
step?: Numeric | ||
type?: HTMLInputTypeAttribute; | ||
step?: number | `${number}` | ||
type?: | ||
| 'button' | ||
| 'checkbox' | ||
| 'color' | ||
| 'date' | ||
| 'datetime-local' | ||
| 'email' | ||
| 'file' | ||
| 'hidden' | ||
| 'image' | ||
| 'month' | ||
| 'number' | ||
| 'password' | ||
| 'radio' | ||
| 'range' | ||
| 'reset' | ||
| 'search' | ||
| 'submit' | ||
| 'tel' | ||
| 'text' | ||
| 'time' | ||
| 'url' | ||
| 'week'; | ||
value?: number | string; | ||
@@ -1143,3 +1136,3 @@ width?: number | string | ||
interface LiHTMLAttributes extends HTMLAttributes<HTMLLIElement> { | ||
value?: Numeric; | ||
value?: number | `${number}`; | ||
} | ||
@@ -1150,3 +1143,3 @@ | ||
as?: string; | ||
crossOrigin?: HTMLAttrinuteCORS; | ||
crossOrigin?: 'anonymous' | 'use-credentials' | ''; | ||
disabled?: boolean | 'disabled' | ''; | ||
@@ -1181,3 +1174,3 @@ href?: string | ||
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback' | ||
crossOrigin?: HTMLAttrinuteCORS; | ||
crossOrigin?: 'anonymous' | 'use-credentials' | ''; | ||
loop?: boolean | 'loop' | ''; | ||
@@ -1198,7 +1191,7 @@ mediaGroup?: string | ||
form?: string | ||
high?: Numeric; | ||
low?: Numeric; | ||
high?: number | `${number}`; | ||
low?: number | `${number}`; | ||
max?: number | string; | ||
min?: number | string; | ||
optimum?: Numeric; | ||
optimum?: number | `${number}`; | ||
value?: number | string; | ||
@@ -1225,3 +1218,3 @@ } | ||
reversed?: boolean | 'reversed' | ''; | ||
start?: Numeric; | ||
start?: number | `${number}`; | ||
type?: '1' | 'a' | 'A' | 'i' | 'I'; | ||
@@ -1255,4 +1248,4 @@ } | ||
interface ProgressHTMLAttributes extends HTMLAttributes<HTMLProgressElement> { | ||
max?: Numeric; | ||
value?: Numeric; | ||
max?: number | `${number}`; | ||
value?: number | `${number}`; | ||
} | ||
@@ -1264,3 +1257,3 @@ | ||
charset?: string; | ||
crossOrigin?: HTMLAttrinuteCORS; | ||
crossOrigin?: 'anonymous' | 'use-credentials' | ''; | ||
defer?: boolean | 'defer' | ''; | ||
@@ -1284,3 +1277,3 @@ integrity?: string | ||
required?: boolean | 'required' | ''; | ||
size?: Numeric; | ||
size?: number | `${number}`; | ||
value?: number | string; | ||
@@ -1322,8 +1315,8 @@ onchange?: ChangeEventHandler<HTMLSelectElement>; | ||
autofocus?: boolean | 'autofocus' | ''; | ||
cols?: Numeric; | ||
cols?: number | `${number}`; | ||
dirName?: string; | ||
disabled?: boolean | 'disabled' | ''; | ||
form?: string | ||
maxLength?: Numeric; | ||
minLength?: Numeric; | ||
maxLength?: number | `${number}`; | ||
minLength?: number | `${number}`; | ||
name?: string; | ||
@@ -1333,3 +1326,3 @@ placeholder?: string; | ||
required?: boolean | 'required' | ''; | ||
rows?: Numeric; | ||
rows?: number | `${number}`; | ||
value?: number | string; | ||
@@ -1342,5 +1335,5 @@ wrap?: 'hard' | 'soft' | 'off'; | ||
align?: 'left' | 'center' | 'right' | 'justify' | 'char' | ||
colSpan?: Numeric | ||
colSpan?: number | `${number}` | ||
headers?: string | ||
rowSpan?: Numeric | ||
rowSpan?: number | `${number}` | ||
scope?: string | ||
@@ -1355,5 +1348,5 @@ abbr?: string | ||
align?: 'left' | 'center' | 'right' | 'justify' | 'char' | ||
colSpan?: Numeric | ||
colSpan?: number | `${number}` | ||
headers?: string | ||
rowSpan?: Numeric | ||
rowSpan?: number | `${number}` | ||
scope?: string | ||
@@ -1360,0 +1353,0 @@ abbr?: string |
{ | ||
"name": "jsx-dom-runtime", | ||
"version": "0.41.0", | ||
"version": "0.42.0", | ||
"description": "A tiny in 500 bytes library to JSX syntax templates for DOM", | ||
@@ -54,3 +54,3 @@ "type": "module", | ||
"@babel/preset-typescript": "^7.21.5", | ||
"@evilmartians/lefthook": "^1.3.12", | ||
"@evilmartians/lefthook": "^1.3.13", | ||
"@jest/globals": "^29.5.0", | ||
@@ -57,0 +57,0 @@ "@rollup/plugin-babel": "^6.0.3", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74125
1898