@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.
Files changed (167) hide show
  1. package/dist/classnames.d.ts +11 -0
  2. package/dist/custom/C.d.ts +6 -0
  3. package/dist/custom/Checkbox.d.ts +5 -0
  4. package/dist/custom/ColorInput.d.ts +5 -0
  5. package/dist/custom/DateInput.d.ts +5 -0
  6. package/dist/custom/DocType.d.ts +6 -0
  7. package/dist/custom/EmailInput.d.ts +5 -0
  8. package/dist/custom/Empty.d.ts +4 -0
  9. package/dist/custom/FileInput.d.ts +5 -0
  10. package/dist/custom/HtmlDocument.d.ts +5 -0
  11. package/dist/custom/NumberInput.d.ts +5 -0
  12. package/dist/custom/PasswordInput.d.ts +5 -0
  13. package/dist/custom/RadioButton.d.ts +5 -0
  14. package/dist/custom/RangeInput.d.ts +5 -0
  15. package/dist/custom/RawHtml.d.ts +6 -0
  16. package/dist/custom/SearchInput.d.ts +5 -0
  17. package/dist/custom/TelephoneInput.d.ts +5 -0
  18. package/dist/custom/TextInput.d.ts +5 -0
  19. package/dist/custom/TimeInput.d.ts +5 -0
  20. package/dist/custom/UrlInput.d.ts +5 -0
  21. package/dist/custom/WeekInput.d.ts +5 -0
  22. package/dist/custom/index.d.ts +20 -0
  23. package/dist/custom-components.d.ts +1 -23
  24. package/dist/htmlspec/IntrinsicElements.d.ts +240 -398
  25. package/dist/htmlspec/attributes/AriaAttributes.d.ts +11 -0
  26. package/dist/htmlspec/attributes/ElementAttributes.d.ts +28 -0
  27. package/dist/htmlspec/attributes/EventHandlers.d.ts +102 -0
  28. package/dist/htmlspec/attributes/GlobalAttributes.d.ts +11 -0
  29. package/dist/htmlspec/{GlobalAttributes.d.ts → attributes/StandardGlobalAttributes.d.ts} +26 -107
  30. package/dist/htmlspec/attributes/index.d.ts +7 -0
  31. package/dist/htmlspec/elements/a.d.ts +71 -0
  32. package/dist/htmlspec/elements/abbr.d.ts +4 -0
  33. package/dist/htmlspec/elements/address.d.ts +4 -0
  34. package/dist/htmlspec/elements/area.d.ts +66 -0
  35. package/dist/htmlspec/elements/article.d.ts +4 -0
  36. package/dist/htmlspec/elements/aside.d.ts +4 -0
  37. package/dist/htmlspec/elements/audio.d.ts +45 -0
  38. package/dist/htmlspec/elements/b.d.ts +4 -0
  39. package/dist/htmlspec/elements/base.d.ts +18 -0
  40. package/dist/htmlspec/elements/bdi.d.ts +4 -0
  41. package/dist/htmlspec/elements/bdo.d.ts +4 -0
  42. package/dist/htmlspec/elements/blockquote.d.ts +8 -0
  43. package/dist/htmlspec/elements/body.d.ts +92 -0
  44. package/dist/htmlspec/elements/br.d.ts +4 -0
  45. package/dist/htmlspec/elements/button.d.ts +103 -0
  46. package/dist/htmlspec/elements/canvas.d.ts +13 -0
  47. package/dist/htmlspec/elements/caption.d.ts +4 -0
  48. package/dist/htmlspec/elements/cite.d.ts +4 -0
  49. package/dist/htmlspec/elements/code.d.ts +4 -0
  50. package/dist/htmlspec/elements/col.d.ts +9 -0
  51. package/dist/htmlspec/elements/colgroup.d.ts +9 -0
  52. package/dist/htmlspec/elements/data.d.ts +9 -0
  53. package/dist/htmlspec/elements/datalist.d.ts +4 -0
  54. package/dist/htmlspec/elements/dd.d.ts +4 -0
  55. package/dist/htmlspec/elements/del.d.ts +12 -0
  56. package/dist/htmlspec/elements/details.d.ts +12 -0
  57. package/dist/htmlspec/elements/dfn.d.ts +4 -0
  58. package/dist/htmlspec/elements/dialog.d.ts +17 -0
  59. package/dist/htmlspec/elements/div.d.ts +4 -0
  60. package/dist/htmlspec/elements/dl.d.ts +4 -0
  61. package/dist/htmlspec/elements/dt.d.ts +4 -0
  62. package/dist/htmlspec/elements/element-types.d.ts +1 -0
  63. package/dist/htmlspec/elements/em.d.ts +4 -0
  64. package/dist/htmlspec/elements/embed.d.ts +21 -0
  65. package/dist/htmlspec/elements/fencedframe.d.ts +23 -0
  66. package/dist/htmlspec/elements/fieldset.d.ts +16 -0
  67. package/dist/htmlspec/elements/figcaption.d.ts +4 -0
  68. package/dist/htmlspec/elements/figure.d.ts +4 -0
  69. package/dist/htmlspec/elements/footer.d.ts +4 -0
  70. package/dist/htmlspec/elements/form.d.ts +61 -0
  71. package/dist/htmlspec/elements/h1.d.ts +4 -0
  72. package/dist/htmlspec/elements/h2.d.ts +4 -0
  73. package/dist/htmlspec/elements/h3.d.ts +4 -0
  74. package/dist/htmlspec/elements/h4.d.ts +4 -0
  75. package/dist/htmlspec/elements/h5.d.ts +4 -0
  76. package/dist/htmlspec/elements/h6.d.ts +4 -0
  77. package/dist/htmlspec/elements/head.d.ts +4 -0
  78. package/dist/htmlspec/elements/header.d.ts +4 -0
  79. package/dist/htmlspec/elements/hgroup.d.ts +4 -0
  80. package/dist/htmlspec/elements/hr.d.ts +4 -0
  81. package/dist/htmlspec/elements/html.d.ts +8 -0
  82. package/dist/htmlspec/elements/i.d.ts +4 -0
  83. package/dist/htmlspec/elements/iframe.d.ts +82 -0
  84. package/dist/htmlspec/elements/img.d.ts +90 -0
  85. package/dist/htmlspec/elements/index.d.ts +114 -0
  86. package/dist/htmlspec/elements/input.d.ts +189 -0
  87. package/dist/htmlspec/elements/ins.d.ts +12 -0
  88. package/dist/htmlspec/elements/kbd.d.ts +4 -0
  89. package/dist/htmlspec/elements/label.d.ts +8 -0
  90. package/dist/htmlspec/elements/legend.d.ts +4 -0
  91. package/dist/htmlspec/elements/li.d.ts +19 -0
  92. package/dist/htmlspec/elements/link.d.ts +77 -0
  93. package/dist/htmlspec/elements/main.d.ts +4 -0
  94. package/dist/htmlspec/elements/map.d.ts +8 -0
  95. package/dist/htmlspec/elements/mark.d.ts +4 -0
  96. package/dist/htmlspec/elements/menu.d.ts +4 -0
  97. package/dist/htmlspec/elements/meta.d.ts +24 -0
  98. package/dist/htmlspec/elements/meter.d.ts +29 -0
  99. package/dist/htmlspec/elements/nav.d.ts +4 -0
  100. package/dist/htmlspec/elements/noscript.d.ts +4 -0
  101. package/dist/htmlspec/elements/object.d.ts +29 -0
  102. package/dist/htmlspec/elements/ol.d.ts +24 -0
  103. package/dist/htmlspec/elements/optgroup.d.ts +12 -0
  104. package/dist/htmlspec/elements/option.d.ts +21 -0
  105. package/dist/htmlspec/elements/output.d.ts +16 -0
  106. package/dist/htmlspec/elements/p.d.ts +4 -0
  107. package/dist/htmlspec/elements/picture.d.ts +4 -0
  108. package/dist/htmlspec/elements/pre.d.ts +4 -0
  109. package/dist/htmlspec/elements/progress.d.ts +13 -0
  110. package/dist/htmlspec/elements/q.d.ts +8 -0
  111. package/dist/htmlspec/elements/rp.d.ts +4 -0
  112. package/dist/htmlspec/elements/rt.d.ts +4 -0
  113. package/dist/htmlspec/elements/ruby.d.ts +4 -0
  114. package/dist/htmlspec/elements/s.d.ts +4 -0
  115. package/dist/htmlspec/elements/samp.d.ts +4 -0
  116. package/dist/htmlspec/elements/script.d.ts +57 -0
  117. package/dist/htmlspec/elements/search.d.ts +4 -0
  118. package/dist/htmlspec/elements/section.d.ts +4 -0
  119. package/dist/htmlspec/elements/select.d.ts +37 -0
  120. package/dist/htmlspec/elements/selectedcontent.d.ts +7 -0
  121. package/dist/htmlspec/elements/slot.d.ts +8 -0
  122. package/dist/htmlspec/elements/small.d.ts +4 -0
  123. package/dist/htmlspec/elements/source.d.ts +33 -0
  124. package/dist/htmlspec/elements/span.d.ts +4 -0
  125. package/dist/htmlspec/elements/strong.d.ts +4 -0
  126. package/dist/htmlspec/elements/style.d.ts +21 -0
  127. package/dist/htmlspec/elements/sub.d.ts +4 -0
  128. package/dist/htmlspec/elements/summary.d.ts +4 -0
  129. package/dist/htmlspec/elements/sup.d.ts +4 -0
  130. package/dist/htmlspec/elements/table.d.ts +4 -0
  131. package/dist/htmlspec/elements/tbody.d.ts +4 -0
  132. package/dist/htmlspec/elements/td.d.ts +17 -0
  133. package/dist/htmlspec/elements/template.d.ts +29 -0
  134. package/dist/htmlspec/elements/textarea.d.ts +66 -0
  135. package/dist/htmlspec/elements/tfoot.d.ts +4 -0
  136. package/dist/htmlspec/elements/th.d.ts +31 -0
  137. package/dist/htmlspec/elements/thead.d.ts +4 -0
  138. package/dist/htmlspec/elements/time.d.ts +8 -0
  139. package/dist/htmlspec/elements/title.d.ts +4 -0
  140. package/dist/htmlspec/elements/tr.d.ts +4 -0
  141. package/dist/htmlspec/elements/track.d.ts +31 -0
  142. package/dist/htmlspec/elements/u.d.ts +4 -0
  143. package/dist/htmlspec/elements/ul.d.ts +12 -0
  144. package/dist/htmlspec/elements/var.d.ts +4 -0
  145. package/dist/htmlspec/elements/video.d.ts +66 -0
  146. package/dist/htmlspec/elements/wbr.d.ts +4 -0
  147. package/dist/index.cjs +142 -7
  148. package/dist/index.mjs +114 -9
  149. package/dist/internal/dev.d.ts +1 -0
  150. package/dist/internal/kitchen-sink-dev.d.ts +7 -0
  151. package/dist/internal/kitchen-sink.d.ts +2 -0
  152. package/dist/internal/type-assert.d.ts +39 -0
  153. package/dist/jsx-dev-runtime.cjs +1 -2
  154. package/dist/jsx-dev-runtime.mjs +2 -3
  155. package/dist/{jsx-runtime-cimCxEOU.js → jsx-runtime-BQPDXeiv.js} +27 -13
  156. package/dist/{jsx-runtime-Dh9PxNQe.js → jsx-runtime-DlHYwToA.js} +28 -14
  157. package/dist/jsx-runtime.cjs +1 -1
  158. package/dist/jsx-runtime.mjs +1 -1
  159. package/dist/jsx-types.d.ts +6 -26
  160. package/package.json +93 -86
  161. package/dist/htmlspec/AnchorElement.d.ts +0 -83
  162. package/dist/htmlspec/ButtonElement.d.ts +0 -55
  163. package/dist/htmlspec/InputAttributes.d.ts +0 -221
  164. package/dist/htmlspec/ScriptElement.d.ts +0 -38
  165. package/dist/htmlspec/StyleAttributes.d.ts +0 -19
  166. /package/dist/{dev.d.ts → classnames.test.d.ts} +0 -0
  167. /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