@mpen/jsxhtml 0.3.0 → 0.4.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/dist/classnames.d.ts +11 -0
- package/dist/custom/C.d.ts +6 -0
- package/dist/custom/Checkbox.d.ts +5 -0
- package/dist/custom/ColorInput.d.ts +5 -0
- package/dist/custom/DateInput.d.ts +5 -0
- package/dist/custom/DocType.d.ts +6 -0
- package/dist/custom/EmailInput.d.ts +5 -0
- package/dist/custom/Empty.d.ts +4 -0
- package/dist/custom/FileInput.d.ts +5 -0
- package/dist/custom/HtmlDocument.d.ts +5 -0
- package/dist/custom/NumberInput.d.ts +5 -0
- package/dist/custom/PasswordInput.d.ts +5 -0
- package/dist/custom/RadioButton.d.ts +5 -0
- package/dist/custom/RangeInput.d.ts +5 -0
- package/dist/custom/RawHtml.d.ts +6 -0
- package/dist/custom/SearchInput.d.ts +5 -0
- package/dist/custom/TelephoneInput.d.ts +5 -0
- package/dist/custom/TextInput.d.ts +5 -0
- package/dist/custom/TimeInput.d.ts +5 -0
- package/dist/custom/UrlInput.d.ts +5 -0
- package/dist/custom/WeekInput.d.ts +5 -0
- package/dist/custom/index.d.ts +20 -0
- package/dist/custom-components.d.ts +1 -23
- package/dist/htmlspec/IntrinsicElements.d.ts +240 -398
- package/dist/htmlspec/attributes/AriaAttributes.d.ts +11 -0
- package/dist/htmlspec/attributes/ElementAttributes.d.ts +28 -0
- package/dist/htmlspec/attributes/EventHandlers.d.ts +102 -0
- package/dist/htmlspec/attributes/GlobalAttributes.d.ts +11 -0
- package/dist/htmlspec/{GlobalAttributes.d.ts → attributes/StandardGlobalAttributes.d.ts} +26 -107
- package/dist/htmlspec/attributes/index.d.ts +7 -0
- package/dist/htmlspec/elements/a.d.ts +71 -0
- package/dist/htmlspec/elements/abbr.d.ts +4 -0
- package/dist/htmlspec/elements/address.d.ts +4 -0
- package/dist/htmlspec/elements/area.d.ts +66 -0
- package/dist/htmlspec/elements/article.d.ts +4 -0
- package/dist/htmlspec/elements/aside.d.ts +4 -0
- package/dist/htmlspec/elements/audio.d.ts +45 -0
- package/dist/htmlspec/elements/b.d.ts +4 -0
- package/dist/htmlspec/elements/base.d.ts +18 -0
- package/dist/htmlspec/elements/bdi.d.ts +4 -0
- package/dist/htmlspec/elements/bdo.d.ts +4 -0
- package/dist/htmlspec/elements/blockquote.d.ts +8 -0
- package/dist/htmlspec/elements/body.d.ts +92 -0
- package/dist/htmlspec/elements/br.d.ts +4 -0
- package/dist/htmlspec/elements/button.d.ts +103 -0
- package/dist/htmlspec/elements/canvas.d.ts +13 -0
- package/dist/htmlspec/elements/caption.d.ts +4 -0
- package/dist/htmlspec/elements/cite.d.ts +4 -0
- package/dist/htmlspec/elements/code.d.ts +4 -0
- package/dist/htmlspec/elements/col.d.ts +9 -0
- package/dist/htmlspec/elements/colgroup.d.ts +9 -0
- package/dist/htmlspec/elements/data.d.ts +9 -0
- package/dist/htmlspec/elements/datalist.d.ts +4 -0
- package/dist/htmlspec/elements/dd.d.ts +4 -0
- package/dist/htmlspec/elements/del.d.ts +12 -0
- package/dist/htmlspec/elements/details.d.ts +12 -0
- package/dist/htmlspec/elements/dfn.d.ts +4 -0
- package/dist/htmlspec/elements/dialog.d.ts +17 -0
- package/dist/htmlspec/elements/div.d.ts +4 -0
- package/dist/htmlspec/elements/dl.d.ts +4 -0
- package/dist/htmlspec/elements/dt.d.ts +4 -0
- package/dist/htmlspec/elements/element-types.d.ts +1 -0
- package/dist/htmlspec/elements/em.d.ts +4 -0
- package/dist/htmlspec/elements/embed.d.ts +21 -0
- package/dist/htmlspec/elements/fencedframe.d.ts +23 -0
- package/dist/htmlspec/elements/fieldset.d.ts +16 -0
- package/dist/htmlspec/elements/figcaption.d.ts +4 -0
- package/dist/htmlspec/elements/figure.d.ts +4 -0
- package/dist/htmlspec/elements/footer.d.ts +4 -0
- package/dist/htmlspec/elements/form.d.ts +61 -0
- package/dist/htmlspec/elements/h1.d.ts +4 -0
- package/dist/htmlspec/elements/h2.d.ts +4 -0
- package/dist/htmlspec/elements/h3.d.ts +4 -0
- package/dist/htmlspec/elements/h4.d.ts +4 -0
- package/dist/htmlspec/elements/h5.d.ts +4 -0
- package/dist/htmlspec/elements/h6.d.ts +4 -0
- package/dist/htmlspec/elements/head.d.ts +4 -0
- package/dist/htmlspec/elements/header.d.ts +4 -0
- package/dist/htmlspec/elements/hgroup.d.ts +4 -0
- package/dist/htmlspec/elements/hr.d.ts +4 -0
- package/dist/htmlspec/elements/html.d.ts +8 -0
- package/dist/htmlspec/elements/i.d.ts +4 -0
- package/dist/htmlspec/elements/iframe.d.ts +82 -0
- package/dist/htmlspec/elements/img.d.ts +90 -0
- package/dist/htmlspec/elements/index.d.ts +114 -0
- package/dist/htmlspec/elements/input.d.ts +189 -0
- package/dist/htmlspec/elements/ins.d.ts +12 -0
- package/dist/htmlspec/elements/kbd.d.ts +4 -0
- package/dist/htmlspec/elements/label.d.ts +8 -0
- package/dist/htmlspec/elements/legend.d.ts +4 -0
- package/dist/htmlspec/elements/li.d.ts +19 -0
- package/dist/htmlspec/elements/link.d.ts +77 -0
- package/dist/htmlspec/elements/main.d.ts +4 -0
- package/dist/htmlspec/elements/map.d.ts +8 -0
- package/dist/htmlspec/elements/mark.d.ts +4 -0
- package/dist/htmlspec/elements/menu.d.ts +4 -0
- package/dist/htmlspec/elements/meta.d.ts +24 -0
- package/dist/htmlspec/elements/meter.d.ts +29 -0
- package/dist/htmlspec/elements/nav.d.ts +4 -0
- package/dist/htmlspec/elements/noscript.d.ts +4 -0
- package/dist/htmlspec/elements/object.d.ts +29 -0
- package/dist/htmlspec/elements/ol.d.ts +24 -0
- package/dist/htmlspec/elements/optgroup.d.ts +12 -0
- package/dist/htmlspec/elements/option.d.ts +21 -0
- package/dist/htmlspec/elements/output.d.ts +16 -0
- package/dist/htmlspec/elements/p.d.ts +4 -0
- package/dist/htmlspec/elements/picture.d.ts +4 -0
- package/dist/htmlspec/elements/pre.d.ts +4 -0
- package/dist/htmlspec/elements/progress.d.ts +13 -0
- package/dist/htmlspec/elements/q.d.ts +8 -0
- package/dist/htmlspec/elements/rp.d.ts +4 -0
- package/dist/htmlspec/elements/rt.d.ts +4 -0
- package/dist/htmlspec/elements/ruby.d.ts +4 -0
- package/dist/htmlspec/elements/s.d.ts +4 -0
- package/dist/htmlspec/elements/samp.d.ts +4 -0
- package/dist/htmlspec/elements/script.d.ts +57 -0
- package/dist/htmlspec/elements/search.d.ts +4 -0
- package/dist/htmlspec/elements/section.d.ts +4 -0
- package/dist/htmlspec/elements/select.d.ts +37 -0
- package/dist/htmlspec/elements/selectedcontent.d.ts +7 -0
- package/dist/htmlspec/elements/slot.d.ts +8 -0
- package/dist/htmlspec/elements/small.d.ts +4 -0
- package/dist/htmlspec/elements/source.d.ts +33 -0
- package/dist/htmlspec/elements/span.d.ts +4 -0
- package/dist/htmlspec/elements/strong.d.ts +4 -0
- package/dist/htmlspec/elements/style.d.ts +21 -0
- package/dist/htmlspec/elements/sub.d.ts +4 -0
- package/dist/htmlspec/elements/summary.d.ts +4 -0
- package/dist/htmlspec/elements/sup.d.ts +4 -0
- package/dist/htmlspec/elements/table.d.ts +4 -0
- package/dist/htmlspec/elements/tbody.d.ts +4 -0
- package/dist/htmlspec/elements/td.d.ts +17 -0
- package/dist/htmlspec/elements/template.d.ts +29 -0
- package/dist/htmlspec/elements/textarea.d.ts +66 -0
- package/dist/htmlspec/elements/tfoot.d.ts +4 -0
- package/dist/htmlspec/elements/th.d.ts +31 -0
- package/dist/htmlspec/elements/thead.d.ts +4 -0
- package/dist/htmlspec/elements/time.d.ts +8 -0
- package/dist/htmlspec/elements/title.d.ts +4 -0
- package/dist/htmlspec/elements/tr.d.ts +4 -0
- package/dist/htmlspec/elements/track.d.ts +31 -0
- package/dist/htmlspec/elements/u.d.ts +4 -0
- package/dist/htmlspec/elements/ul.d.ts +12 -0
- package/dist/htmlspec/elements/var.d.ts +4 -0
- package/dist/htmlspec/elements/video.d.ts +66 -0
- package/dist/htmlspec/elements/wbr.d.ts +4 -0
- package/dist/index.cjs +142 -7
- package/dist/index.mjs +114 -9
- package/dist/internal/dev.d.ts +1 -0
- package/dist/internal/kitchen-sink-dev.d.ts +7 -0
- package/dist/internal/kitchen-sink.d.ts +2 -0
- package/dist/internal/type-assert.d.ts +39 -0
- package/dist/jsx-dev-runtime.cjs +1 -2
- package/dist/jsx-dev-runtime.mjs +2 -3
- package/dist/{jsx-runtime-cimCxEOU.js → jsx-runtime-BQPDXeiv.js} +27 -13
- package/dist/{jsx-runtime-Dh9PxNQe.js → jsx-runtime-DlHYwToA.js} +28 -14
- package/dist/jsx-runtime.cjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/jsx-types.d.ts +6 -26
- package/package.json +93 -86
- package/dist/htmlspec/AnchorElement.d.ts +0 -83
- package/dist/htmlspec/ButtonElement.d.ts +0 -55
- package/dist/htmlspec/InputAttributes.d.ts +0 -221
- package/dist/htmlspec/ScriptElement.d.ts +0 -38
- package/dist/htmlspec/StyleAttributes.d.ts +0 -19
- /package/dist/{dev.d.ts → classnames.test.d.ts} +0 -0
- /package/dist/{log.d.ts → internal/log.d.ts} +0 -0
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A union of all possible 'type' attribute values for the <input> element.
|
|
3
|
-
*/
|
|
4
|
-
export type InputType = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'datetime';
|
|
5
|
-
/**
|
|
6
|
-
* Type definition for the attributes of the HTML <input> element, excluding global attributes.
|
|
7
|
-
* The <input> element is used to create interactive controls for web-based forms to accept data from the user.
|
|
8
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
|
|
9
|
-
*/
|
|
10
|
-
export type InputAttributes = {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the types of files that the server accepts (that can be submitted through a file upload).
|
|
13
|
-
* Valid for the `file` input type only.
|
|
14
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#accept
|
|
15
|
-
*/
|
|
16
|
-
accept?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Provides alternative text for the image, displaying if the image `src` is missing or fails to load.
|
|
19
|
-
* Valid for the `image` input type only.
|
|
20
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#alt
|
|
21
|
-
*/
|
|
22
|
-
alt?: string;
|
|
23
|
-
/**
|
|
24
|
-
* A string that describes what, if any, type of autocomplete functionality the input should provide.
|
|
25
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocomplete
|
|
26
|
-
*/
|
|
27
|
-
autocomplete?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Defines which media (microphone, video, or camera) should be used to capture a new file for upload.
|
|
30
|
-
* Valid for the `file` input type only.
|
|
31
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#capture
|
|
32
|
-
*/
|
|
33
|
-
capture?: boolean | 'user' | 'environment';
|
|
34
|
-
/**
|
|
35
|
-
* Indicates whether a control is checked by default (when the page loads).
|
|
36
|
-
* Valid for `radio` and `checkbox` types.
|
|
37
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#checked
|
|
38
|
-
*/
|
|
39
|
-
checked?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Enables the submission of the directionality of the element, and specifies the name of the field that will contain this value.
|
|
42
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#dirname
|
|
43
|
-
*/
|
|
44
|
-
dirname?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Indicates that the user should not be able to interact with the input.
|
|
47
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled
|
|
48
|
-
*/
|
|
49
|
-
disabled?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* The ID of the `<form>` element with which the input is associated.
|
|
52
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#form
|
|
53
|
-
*/
|
|
54
|
-
form?: string;
|
|
55
|
-
/**
|
|
56
|
-
* The URL that processes the information submitted by the input. Overrides the `action` attribute of the parent form.
|
|
57
|
-
* Valid for `image` and `submit` types.
|
|
58
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction
|
|
59
|
-
*/
|
|
60
|
-
formaction?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Specifies the encoding of the form data when the form is submitted. Overrides the `enctype` of the parent form.
|
|
63
|
-
* Valid for `image` and `submit` types.
|
|
64
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formenctype
|
|
65
|
-
*/
|
|
66
|
-
formenctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
|
|
67
|
-
/**
|
|
68
|
-
* The HTTP method to use for form submission. Overrides the `method` of the parent form.
|
|
69
|
-
* Valid for `image` and `submit` types.
|
|
70
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formmethod
|
|
71
|
-
*/
|
|
72
|
-
formmethod?: 'get' | 'post';
|
|
73
|
-
/**
|
|
74
|
-
* If present, bypasses form control validation for form submission. Overrides the `novalidate` of the parent form.
|
|
75
|
-
* Valid for `image` and `submit` types.
|
|
76
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formnovalidate
|
|
77
|
-
*/
|
|
78
|
-
formnovalidate?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Specifies the browsing context for form submission. Overrides the `target` of the parent form.
|
|
81
|
-
* Valid for `image` and `submit` types.
|
|
82
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formtarget
|
|
83
|
-
*/
|
|
84
|
-
formtarget?: string;
|
|
85
|
-
/**
|
|
86
|
-
* The height of the image file to display for a graphical submit button.
|
|
87
|
-
* Valid for the `image` input type only.
|
|
88
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#height
|
|
89
|
-
*/
|
|
90
|
-
height?: string | number;
|
|
91
|
-
/**
|
|
92
|
-
* The ID of a `<datalist>` element located in the same document to provide a list of predefined values to suggest for this input.
|
|
93
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#list
|
|
94
|
-
*/
|
|
95
|
-
list?: string;
|
|
96
|
-
/**
|
|
97
|
-
* The greatest value in the range of permitted values.
|
|
98
|
-
* Valid for `date`, `month`, `week`, `time`, `datetime-local`, `number`, and `range`.
|
|
99
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
|
|
100
|
-
*/
|
|
101
|
-
max?: string | number;
|
|
102
|
-
/**
|
|
103
|
-
* The maximum string length (in UTF-16 code units) that the user can enter.
|
|
104
|
-
* Valid for `text`, `search`, `url`, `tel`, `email`, and `password`.
|
|
105
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
|
|
106
|
-
*/
|
|
107
|
-
maxlength?: number;
|
|
108
|
-
/**
|
|
109
|
-
* The most negative value in the range of permitted values.
|
|
110
|
-
* Valid for `date`, `month`, `week`, `time`, `datetime-local`, `number`, and `range`.
|
|
111
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
|
|
112
|
-
*/
|
|
113
|
-
min?: string | number;
|
|
114
|
-
/**
|
|
115
|
-
* The minimum string length (in UTF-16 code units) that the user can enter.
|
|
116
|
-
* Valid for `text`, `search`, `url`, `tel`, `email`, and `password`.
|
|
117
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
|
|
118
|
-
*/
|
|
119
|
-
minlength?: number;
|
|
120
|
-
/**
|
|
121
|
-
* If present, the user can enter multiple values.
|
|
122
|
-
* Valid for `email` and `file` types.
|
|
123
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple
|
|
124
|
-
*/
|
|
125
|
-
multiple?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* The name of the input control. This name is submitted along with the control's value when the form is submitted.
|
|
128
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
|
|
129
|
-
*/
|
|
130
|
-
name?: string;
|
|
131
|
-
/**
|
|
132
|
-
* A regular expression that the input's value must match for the value to pass constraint validation.
|
|
133
|
-
* Valid for `text`, `search`, `url`, `tel`, `email`, and `password`.
|
|
134
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern
|
|
135
|
-
*/
|
|
136
|
-
pattern?: string;
|
|
137
|
-
/**
|
|
138
|
-
* A brief hint to the user as to what kind of information is expected in the field.
|
|
139
|
-
* Valid for `text`, `search`, `url`, `tel`, `email`, `password`, and `number`.
|
|
140
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
141
|
-
*/
|
|
142
|
-
placeholder?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Designates an `<input type="button">` as a control for a popover element, taking the ID of the popover.
|
|
145
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#popovertarget
|
|
146
|
-
*/
|
|
147
|
-
popovertarget?: string;
|
|
148
|
-
/**
|
|
149
|
-
* Specifies the action ('show', 'hide', or 'toggle') that a popover control button should perform.
|
|
150
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#popovertargetaction
|
|
151
|
-
*/
|
|
152
|
-
popovertargetaction?: 'show' | 'hide' | 'toggle';
|
|
153
|
-
/**
|
|
154
|
-
* If present, indicates that the user should not be able to edit the value of the input.
|
|
155
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly
|
|
156
|
-
*/
|
|
157
|
-
readonly?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* If present, indicates that the user must specify a value for the input before the owning form can be submitted.
|
|
160
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#required
|
|
161
|
-
*/
|
|
162
|
-
required?: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* The visible size of the control, in characters for text/password, or pixels for others.
|
|
165
|
-
* Valid for `email`, `password`, `tel`, `url`, and `text`.
|
|
166
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#size
|
|
167
|
-
*/
|
|
168
|
-
size?: number;
|
|
169
|
-
/**
|
|
170
|
-
* The URL of the image file to display for the graphical submit button.
|
|
171
|
-
* Valid for the `image` input type only.
|
|
172
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#src
|
|
173
|
-
*/
|
|
174
|
-
src?: string;
|
|
175
|
-
/**
|
|
176
|
-
* A number that specifies the granularity that the value must adhere to, or the special value "any".
|
|
177
|
-
* Valid for `date`, `month`, `week`, `time`, `datetime-local`, `number`, and `range`.
|
|
178
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step
|
|
179
|
-
*/
|
|
180
|
-
step?: number | 'any';
|
|
181
|
-
/**
|
|
182
|
-
* The type of control to render. If omitted, the default is `text`.
|
|
183
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#type
|
|
184
|
-
*/
|
|
185
|
-
type?: InputType;
|
|
186
|
-
/**
|
|
187
|
-
* The input control's value. When specified in the HTML, this is the initial value.
|
|
188
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
|
|
189
|
-
*/
|
|
190
|
-
value?: string | number | readonly string[];
|
|
191
|
-
/**
|
|
192
|
-
* The width of the image file to display for the graphical submit button.
|
|
193
|
-
* Valid for the `image` input type only.
|
|
194
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#width
|
|
195
|
-
*/
|
|
196
|
-
width?: string | number;
|
|
197
|
-
/**
|
|
198
|
-
* If present, tells the user agent to process the input as a live search.
|
|
199
|
-
* @nonstandard
|
|
200
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#incremental
|
|
201
|
-
*/
|
|
202
|
-
incremental?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Defines the orientation of the range slider.
|
|
205
|
-
* @nonstandard This is a Firefox-only attribute.
|
|
206
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#orient
|
|
207
|
-
*/
|
|
208
|
-
orient?: 'horizontal' | 'vertical';
|
|
209
|
-
/**
|
|
210
|
-
* Overrides the maximum number of entries to be displayed in the dropdown menu of previous search queries.
|
|
211
|
-
* @nonstandard This is a Safari-only attribute.
|
|
212
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#results
|
|
213
|
-
*/
|
|
214
|
-
results?: number;
|
|
215
|
-
/**
|
|
216
|
-
* If present, indicates that only directories should be available to be selected by the user in the file picker interface.
|
|
217
|
-
* @nonstandard
|
|
218
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#webkitdirectory
|
|
219
|
-
*/
|
|
220
|
-
webkitdirectory?: boolean;
|
|
221
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { JsFrag } from '../template-strings';
|
|
2
|
-
/**
|
|
3
|
-
* All valid properties for a <script> HTML element.
|
|
4
|
-
*/
|
|
5
|
-
export type ScriptElementAttributes = {
|
|
6
|
-
/** Fetches script asynchronously if present. Only works with `src`. */
|
|
7
|
-
async?: boolean;
|
|
8
|
-
/** Specifies one or more URLs for Attribution Reporting. Can also be a boolean attribute. */
|
|
9
|
-
attributionsrc?: string | boolean;
|
|
10
|
-
/** Space-separated list of operations blocked until script is fetched, e.g., 'render'. */
|
|
11
|
-
blocking?: string;
|
|
12
|
-
/** Indicates the CORS setting for error reporting. */
|
|
13
|
-
crossorigin?: '' | 'anonymous' | 'use-credentials';
|
|
14
|
-
/** Defers script execution until after parsing. Only works with `src`. */
|
|
15
|
-
defer?: boolean;
|
|
16
|
-
/** Hint about the fetch priority: 'high', 'low', or 'auto' (default). */
|
|
17
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
18
|
-
/** Inline metadata for Subresource Integrity checking. Requires `src`. */
|
|
19
|
-
integrity?: string;
|
|
20
|
-
/** Indicates this script is not for module-supporting browsers (fallback). */
|
|
21
|
-
nomodule?: boolean;
|
|
22
|
-
/** A cryptographic nonce used for Content Security Policy validation. */
|
|
23
|
-
nonce?: string;
|
|
24
|
-
/** Referrer policy to apply when fetching the script. */
|
|
25
|
-
referrerpolicy?: '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
|
|
26
|
-
/** URL of the external script to load. */
|
|
27
|
-
src?: string;
|
|
28
|
-
/** Type of script: omitted or JS MIME type for classic scripts; 'module', 'importmap', etc. for others. */
|
|
29
|
-
type?: '' | 'module' | 'importmap' | 'speculationrules' | string;
|
|
30
|
-
/**
|
|
31
|
-
* JavaScript script content. Use the js`` tagged template literal.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* const world="World"
|
|
35
|
-
* const script = <script>{js`const hello=${world}`}</script>
|
|
36
|
-
*/
|
|
37
|
-
children?: JsFrag;
|
|
38
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CssFrag } from '../template-strings';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the attributes of a <style> HTML element.
|
|
4
|
-
*/
|
|
5
|
-
export type StyleHTMLAttributes = {
|
|
6
|
-
/** Space-separated list of blocking operations, e.g., "render" */
|
|
7
|
-
blocking?: string;
|
|
8
|
-
/** Media query determining when the styles apply, defaults to "all" */
|
|
9
|
-
media?: string;
|
|
10
|
-
/** Cryptographic nonce for CSP compliance */
|
|
11
|
-
nonce?: string;
|
|
12
|
-
/** Title of the style sheet set */
|
|
13
|
-
title?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Only allowed value is "text/css" or empty string.
|
|
16
|
-
*/
|
|
17
|
-
type?: '' | 'text/css';
|
|
18
|
-
children?: CssFrag;
|
|
19
|
-
};
|
|
File without changes
|
|
File without changes
|