@builder.io/mitosis 0.0.0-dev-20260605060721

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 (582) hide show
  1. package/dist/src/constants/hooks.d.ts +16 -0
  2. package/dist/src/constants/hooks.js +19 -0
  3. package/dist/src/constants/html_tags.d.ts +2 -0
  4. package/dist/src/constants/html_tags.js +198 -0
  5. package/dist/src/constants/media-sizes.d.ts +22 -0
  6. package/dist/src/constants/media-sizes.js +34 -0
  7. package/dist/src/constants/method-literal-prefix.d.ts +1 -0
  8. package/dist/src/constants/method-literal-prefix.js +2 -0
  9. package/dist/src/flow.d.ts +26 -0
  10. package/dist/src/flow.js +27 -0
  11. package/dist/src/generators/alpine/generate.d.ts +11 -0
  12. package/dist/src/generators/alpine/generate.js +201 -0
  13. package/dist/src/generators/alpine/index.d.ts +2 -0
  14. package/dist/src/generators/alpine/index.js +18 -0
  15. package/dist/src/generators/alpine/render-mount-hook.d.ts +2 -0
  16. package/dist/src/generators/alpine/render-mount-hook.js +17 -0
  17. package/dist/src/generators/alpine/render-update-hooks.d.ts +5 -0
  18. package/dist/src/generators/alpine/render-update-hooks.js +44 -0
  19. package/dist/src/generators/alpine/types.d.ts +12 -0
  20. package/dist/src/generators/alpine/types.js +2 -0
  21. package/dist/src/generators/angular/classic/blocks.d.ts +10 -0
  22. package/dist/src/generators/angular/classic/blocks.js +409 -0
  23. package/dist/src/generators/angular/classic/component.d.ts +3 -0
  24. package/dist/src/generators/angular/classic/component.js +356 -0
  25. package/dist/src/generators/angular/classic/plugins/get-class-properties-plugin.d.ts +2 -0
  26. package/dist/src/generators/angular/classic/plugins/get-class-properties-plugin.js +138 -0
  27. package/dist/src/generators/angular/classic/plugins/get-code-processor-plugins.d.ts +8 -0
  28. package/dist/src/generators/angular/classic/plugins/get-code-processor-plugins.js +60 -0
  29. package/dist/src/generators/angular/component.d.ts +3 -0
  30. package/dist/src/generators/angular/component.js +27 -0
  31. package/dist/src/generators/angular/helpers/format.d.ts +1 -0
  32. package/dist/src/generators/angular/helpers/format.js +24 -0
  33. package/dist/src/generators/angular/helpers/get-inputs.d.ts +7 -0
  34. package/dist/src/generators/angular/helpers/get-inputs.js +18 -0
  35. package/dist/src/generators/angular/helpers/get-outputs.d.ts +7 -0
  36. package/dist/src/generators/angular/helpers/get-outputs.js +23 -0
  37. package/dist/src/generators/angular/helpers/get-refs.d.ts +8 -0
  38. package/dist/src/generators/angular/helpers/get-refs.js +40 -0
  39. package/dist/src/generators/angular/helpers/get-styles.d.ts +6 -0
  40. package/dist/src/generators/angular/helpers/get-styles.js +17 -0
  41. package/dist/src/generators/angular/helpers/hooks.d.ts +25 -0
  42. package/dist/src/generators/angular/helpers/hooks.js +59 -0
  43. package/dist/src/generators/angular/helpers/index.d.ts +33 -0
  44. package/dist/src/generators/angular/helpers/index.js +221 -0
  45. package/dist/src/generators/angular/helpers/parse-selector.d.ts +5 -0
  46. package/dist/src/generators/angular/helpers/parse-selector.js +19 -0
  47. package/dist/src/generators/angular/index.d.ts +2 -0
  48. package/dist/src/generators/angular/index.js +18 -0
  49. package/dist/src/generators/angular/signals/blocks.d.ts +10 -0
  50. package/dist/src/generators/angular/signals/blocks.js +379 -0
  51. package/dist/src/generators/angular/signals/component.d.ts +3 -0
  52. package/dist/src/generators/angular/signals/component.js +377 -0
  53. package/dist/src/generators/angular/signals/helpers/get-computed.d.ts +6 -0
  54. package/dist/src/generators/angular/signals/helpers/get-computed.js +79 -0
  55. package/dist/src/generators/angular/signals/helpers/get-dynamic-template-refs.d.ts +2 -0
  56. package/dist/src/generators/angular/signals/helpers/get-dynamic-template-refs.js +25 -0
  57. package/dist/src/generators/angular/signals/helpers/get-inputs.d.ts +7 -0
  58. package/dist/src/generators/angular/signals/helpers/get-inputs.js +15 -0
  59. package/dist/src/generators/angular/signals/helpers/index.d.ts +16 -0
  60. package/dist/src/generators/angular/signals/helpers/index.js +30 -0
  61. package/dist/src/generators/angular/signals/plugins/get-code-processor-plugins.d.ts +4 -0
  62. package/dist/src/generators/angular/signals/plugins/get-code-processor-plugins.js +547 -0
  63. package/dist/src/generators/angular/types.d.ts +72 -0
  64. package/dist/src/generators/angular/types.js +12 -0
  65. package/dist/src/generators/builder/generator.d.ts +12 -0
  66. package/dist/src/generators/builder/generator.js +876 -0
  67. package/dist/src/generators/builder/index.d.ts +2 -0
  68. package/dist/src/generators/builder/index.js +18 -0
  69. package/dist/src/generators/builder/types.d.ts +6 -0
  70. package/dist/src/generators/builder/types.js +2 -0
  71. package/dist/src/generators/context/angular.d.ts +9 -0
  72. package/dist/src/generators/context/angular.js +40 -0
  73. package/dist/src/generators/context/helpers/context-with-symbol-key.d.ts +5 -0
  74. package/dist/src/generators/context/helpers/context-with-symbol-key.js +33 -0
  75. package/dist/src/generators/context/qwik.d.ts +8 -0
  76. package/dist/src/generators/context/qwik.js +29 -0
  77. package/dist/src/generators/context/react.d.ts +10 -0
  78. package/dist/src/generators/context/react.js +30 -0
  79. package/dist/src/generators/context/rsc.d.ts +12 -0
  80. package/dist/src/generators/context/rsc.js +32 -0
  81. package/dist/src/generators/context/solid.d.ts +8 -0
  82. package/dist/src/generators/context/solid.js +30 -0
  83. package/dist/src/generators/context/svelte.d.ts +11 -0
  84. package/dist/src/generators/context/svelte.js +44 -0
  85. package/dist/src/generators/context/vue.d.ts +3 -0
  86. package/dist/src/generators/context/vue.js +5 -0
  87. package/dist/src/generators/helpers/context.d.ts +8 -0
  88. package/dist/src/generators/helpers/context.js +15 -0
  89. package/dist/src/generators/helpers/functions.d.ts +2 -0
  90. package/dist/src/generators/helpers/functions.js +31 -0
  91. package/dist/src/generators/helpers/minify.d.ts +1 -0
  92. package/dist/src/generators/helpers/minify.js +20 -0
  93. package/dist/src/generators/helpers/on-mount.d.ts +5 -0
  94. package/dist/src/generators/helpers/on-mount.js +25 -0
  95. package/dist/src/generators/helpers/rsc.d.ts +2 -0
  96. package/dist/src/generators/helpers/rsc.js +38 -0
  97. package/dist/src/generators/html/generator.d.ts +4 -0
  98. package/dist/src/generators/html/generator.js +1232 -0
  99. package/dist/src/generators/html/index.d.ts +2 -0
  100. package/dist/src/generators/html/index.js +18 -0
  101. package/dist/src/generators/html/types.d.ts +6 -0
  102. package/dist/src/generators/html/types.js +2 -0
  103. package/dist/src/generators/liquid/generator.d.ts +9 -0
  104. package/dist/src/generators/liquid/generator.js +161 -0
  105. package/dist/src/generators/liquid/index.d.ts +2 -0
  106. package/dist/src/generators/liquid/index.js +18 -0
  107. package/dist/src/generators/liquid/types.d.ts +5 -0
  108. package/dist/src/generators/liquid/types.js +2 -0
  109. package/dist/src/generators/lit/collect-class-string.d.ts +2 -0
  110. package/dist/src/generators/lit/collect-class-string.js +41 -0
  111. package/dist/src/generators/lit/generate.d.ts +3 -0
  112. package/dist/src/generators/lit/generate.js +271 -0
  113. package/dist/src/generators/lit/index.d.ts +2 -0
  114. package/dist/src/generators/lit/index.js +18 -0
  115. package/dist/src/generators/lit/types.d.ts +8 -0
  116. package/dist/src/generators/lit/types.js +2 -0
  117. package/dist/src/generators/marko/generate.d.ts +20 -0
  118. package/dist/src/generators/marko/generate.js +316 -0
  119. package/dist/src/generators/marko/index.d.ts +2 -0
  120. package/dist/src/generators/marko/index.js +18 -0
  121. package/dist/src/generators/marko/types.d.ts +4 -0
  122. package/dist/src/generators/marko/types.js +2 -0
  123. package/dist/src/generators/mitosis/generator.d.ts +7 -0
  124. package/dist/src/generators/mitosis/generator.js +367 -0
  125. package/dist/src/generators/mitosis/index.d.ts +2 -0
  126. package/dist/src/generators/mitosis/index.js +18 -0
  127. package/dist/src/generators/mitosis/types.d.ts +8 -0
  128. package/dist/src/generators/mitosis/types.js +2 -0
  129. package/dist/src/generators/qwik/component-generator.d.ts +3 -0
  130. package/dist/src/generators/qwik/component-generator.js +337 -0
  131. package/dist/src/generators/qwik/component.d.ts +21 -0
  132. package/dist/src/generators/qwik/component.js +170 -0
  133. package/dist/src/generators/qwik/directives.d.ts +24 -0
  134. package/dist/src/generators/qwik/directives.js +152 -0
  135. package/dist/src/generators/qwik/helpers/add-prevent-default.d.ts +7 -0
  136. package/dist/src/generators/qwik/helpers/add-prevent-default.js +33 -0
  137. package/dist/src/generators/qwik/helpers/convert-method-to-function.d.ts +2 -0
  138. package/dist/src/generators/qwik/helpers/convert-method-to-function.js +161 -0
  139. package/dist/src/generators/qwik/helpers/handlers.d.ts +3 -0
  140. package/dist/src/generators/qwik/helpers/handlers.js +60 -0
  141. package/dist/src/generators/qwik/helpers/stable-inject.d.ts +5 -0
  142. package/dist/src/generators/qwik/helpers/stable-inject.js +49 -0
  143. package/dist/src/generators/qwik/helpers/stable-serialize.d.ts +6 -0
  144. package/dist/src/generators/qwik/helpers/stable-serialize.js +50 -0
  145. package/dist/src/generators/qwik/helpers/state.d.ts +32 -0
  146. package/dist/src/generators/qwik/helpers/state.js +111 -0
  147. package/dist/src/generators/qwik/helpers/styles.d.ts +7 -0
  148. package/dist/src/generators/qwik/helpers/styles.js +70 -0
  149. package/dist/src/generators/qwik/index.d.ts +5 -0
  150. package/dist/src/generators/qwik/index.js +26 -0
  151. package/dist/src/generators/qwik/jsx.d.ts +17 -0
  152. package/dist/src/generators/qwik/jsx.js +223 -0
  153. package/dist/src/generators/qwik/src-generator.d.ts +83 -0
  154. package/dist/src/generators/qwik/src-generator.js +575 -0
  155. package/dist/src/generators/qwik/types.d.ts +14 -0
  156. package/dist/src/generators/qwik/types.js +2 -0
  157. package/dist/src/generators/react/blocks.d.ts +4 -0
  158. package/dist/src/generators/react/blocks.js +332 -0
  159. package/dist/src/generators/react/generator.d.ts +5 -0
  160. package/dist/src/generators/react/generator.js +399 -0
  161. package/dist/src/generators/react/helpers/default-props.d.ts +2 -0
  162. package/dist/src/generators/react/helpers/default-props.js +21 -0
  163. package/dist/src/generators/react/helpers/hooks.d.ts +20 -0
  164. package/dist/src/generators/react/helpers/hooks.js +67 -0
  165. package/dist/src/generators/react/helpers/index.d.ts +11 -0
  166. package/dist/src/generators/react/helpers/index.js +97 -0
  167. package/dist/src/generators/react/helpers/state.d.ts +17 -0
  168. package/dist/src/generators/react/helpers/state.js +198 -0
  169. package/dist/src/generators/react/index.d.ts +3 -0
  170. package/dist/src/generators/react/index.js +21 -0
  171. package/dist/src/generators/react/types.d.ts +22 -0
  172. package/dist/src/generators/react/types.js +2 -0
  173. package/dist/src/generators/react-native/extract-css-var-default-value.d.ts +1 -0
  174. package/dist/src/generators/react-native/extract-css-var-default-value.js +15 -0
  175. package/dist/src/generators/react-native/helpers.d.ts +3 -0
  176. package/dist/src/generators/react-native/helpers.js +133 -0
  177. package/dist/src/generators/react-native/index.d.ts +8 -0
  178. package/dist/src/generators/react-native/index.js +286 -0
  179. package/dist/src/generators/react-native/sanitize-react-native-block-styles.d.ts +4 -0
  180. package/dist/src/generators/react-native/sanitize-react-native-block-styles.js +57 -0
  181. package/dist/src/generators/react-native/types.d.ts +9 -0
  182. package/dist/src/generators/react-native/types.js +2 -0
  183. package/dist/src/generators/rsc/generator.d.ts +3 -0
  184. package/dist/src/generators/rsc/generator.js +77 -0
  185. package/dist/src/generators/rsc/index.d.ts +2 -0
  186. package/dist/src/generators/rsc/index.js +18 -0
  187. package/dist/src/generators/rsc/types.d.ts +5 -0
  188. package/dist/src/generators/rsc/types.js +2 -0
  189. package/dist/src/generators/solid/blocks.d.ts +4 -0
  190. package/dist/src/generators/solid/blocks.js +138 -0
  191. package/dist/src/generators/solid/helpers/styles.d.ts +3 -0
  192. package/dist/src/generators/solid/helpers/styles.js +47 -0
  193. package/dist/src/generators/solid/index.d.ts +4 -0
  194. package/dist/src/generators/solid/index.js +264 -0
  195. package/dist/src/generators/solid/state/helpers.d.ts +13 -0
  196. package/dist/src/generators/solid/state/helpers.js +88 -0
  197. package/dist/src/generators/solid/state/index.d.ts +1 -0
  198. package/dist/src/generators/solid/state/index.js +5 -0
  199. package/dist/src/generators/solid/state/signals.d.ts +7 -0
  200. package/dist/src/generators/solid/state/signals.js +53 -0
  201. package/dist/src/generators/solid/state/state.d.ts +14 -0
  202. package/dist/src/generators/solid/state/state.js +55 -0
  203. package/dist/src/generators/solid/state/store.d.ts +7 -0
  204. package/dist/src/generators/solid/state/store.js +76 -0
  205. package/dist/src/generators/solid/types.d.ts +10 -0
  206. package/dist/src/generators/solid/types.js +2 -0
  207. package/dist/src/generators/stencil/blocks.d.ts +9 -0
  208. package/dist/src/generators/stencil/blocks.js +122 -0
  209. package/dist/src/generators/stencil/component.d.ts +3 -0
  210. package/dist/src/generators/stencil/component.js +199 -0
  211. package/dist/src/generators/stencil/helpers/collect-class-string.d.ts +2 -0
  212. package/dist/src/generators/stencil/helpers/collect-class-string.js +43 -0
  213. package/dist/src/generators/stencil/helpers/index.d.ts +37 -0
  214. package/dist/src/generators/stencil/helpers/index.js +129 -0
  215. package/dist/src/generators/stencil/index.d.ts +2 -0
  216. package/dist/src/generators/stencil/index.js +18 -0
  217. package/dist/src/generators/stencil/plugins/get-code-processor-plugins.d.ts +4 -0
  218. package/dist/src/generators/stencil/plugins/get-code-processor-plugins.js +25 -0
  219. package/dist/src/generators/stencil/types.d.ts +37 -0
  220. package/dist/src/generators/stencil/types.js +2 -0
  221. package/dist/src/generators/svelte/blocks.d.ts +10 -0
  222. package/dist/src/generators/svelte/blocks.js +280 -0
  223. package/dist/src/generators/svelte/helpers.d.ts +6 -0
  224. package/dist/src/generators/svelte/helpers.js +14 -0
  225. package/dist/src/generators/svelte/index.d.ts +2 -0
  226. package/dist/src/generators/svelte/index.js +20 -0
  227. package/dist/src/generators/svelte/svelte.d.ts +3 -0
  228. package/dist/src/generators/svelte/svelte.js +412 -0
  229. package/dist/src/generators/svelte/types.d.ts +5 -0
  230. package/dist/src/generators/svelte/types.js +2 -0
  231. package/dist/src/generators/swift/blocks.d.ts +8 -0
  232. package/dist/src/generators/swift/blocks.js +304 -0
  233. package/dist/src/generators/swift/generator.d.ts +3 -0
  234. package/dist/src/generators/swift/generator.js +287 -0
  235. package/dist/src/generators/swift/helpers.d.ts +42 -0
  236. package/dist/src/generators/swift/helpers.js +412 -0
  237. package/dist/src/generators/swift/index.d.ts +2 -0
  238. package/dist/src/generators/swift/index.js +18 -0
  239. package/dist/src/generators/swift/types.d.ts +29 -0
  240. package/dist/src/generators/swift/types.js +2 -0
  241. package/dist/src/generators/taro/generator.d.ts +8 -0
  242. package/dist/src/generators/taro/generator.js +168 -0
  243. package/dist/src/generators/taro/index.d.ts +2 -0
  244. package/dist/src/generators/taro/index.js +18 -0
  245. package/dist/src/generators/taro/types.d.ts +3 -0
  246. package/dist/src/generators/taro/types.js +2 -0
  247. package/dist/src/generators/template/generator.d.ts +3 -0
  248. package/dist/src/generators/template/generator.js +131 -0
  249. package/dist/src/generators/template/index.d.ts +2 -0
  250. package/dist/src/generators/template/index.js +18 -0
  251. package/dist/src/generators/template/types.d.ts +4 -0
  252. package/dist/src/generators/template/types.js +2 -0
  253. package/dist/src/generators/vue/blocks.d.ts +8 -0
  254. package/dist/src/generators/vue/blocks.js +217 -0
  255. package/dist/src/generators/vue/compositionApi.d.ts +3 -0
  256. package/dist/src/generators/vue/compositionApi.js +128 -0
  257. package/dist/src/generators/vue/helpers.d.ts +25 -0
  258. package/dist/src/generators/vue/helpers.js +179 -0
  259. package/dist/src/generators/vue/index.d.ts +2 -0
  260. package/dist/src/generators/vue/index.js +18 -0
  261. package/dist/src/generators/vue/optionsApi.d.ts +3 -0
  262. package/dist/src/generators/vue/optionsApi.js +210 -0
  263. package/dist/src/generators/vue/types.d.ts +33 -0
  264. package/dist/src/generators/vue/types.js +2 -0
  265. package/dist/src/generators/vue/vue.d.ts +3 -0
  266. package/dist/src/generators/vue/vue.js +272 -0
  267. package/dist/src/helpers/apply-meta-tagname.d.ts +2 -0
  268. package/dist/src/helpers/apply-meta-tagname.js +20 -0
  269. package/dist/src/helpers/babel-transform.d.ts +7 -0
  270. package/dist/src/helpers/babel-transform.js +130 -0
  271. package/dist/src/helpers/bindings.d.ts +6 -0
  272. package/dist/src/helpers/bindings.js +9 -0
  273. package/dist/src/helpers/camel-case.d.ts +8 -0
  274. package/dist/src/helpers/camel-case.js +17 -0
  275. package/dist/src/helpers/capitalize.d.ts +1 -0
  276. package/dist/src/helpers/capitalize.js +10 -0
  277. package/dist/src/helpers/class-components.d.ts +13 -0
  278. package/dist/src/helpers/class-components.js +51 -0
  279. package/dist/src/helpers/component-file-extensions.d.ts +50 -0
  280. package/dist/src/helpers/component-file-extensions.js +141 -0
  281. package/dist/src/helpers/create-mitosis-component.d.ts +7 -0
  282. package/dist/src/helpers/create-mitosis-component.js +27 -0
  283. package/dist/src/helpers/create-mitosis-context.d.ts +4 -0
  284. package/dist/src/helpers/create-mitosis-context.js +11 -0
  285. package/dist/src/helpers/create-mitosis-node.d.ts +2 -0
  286. package/dist/src/helpers/create-mitosis-node.js +14 -0
  287. package/dist/src/helpers/dash-case.d.ts +1 -0
  288. package/dist/src/helpers/dash-case.js +6 -0
  289. package/dist/src/helpers/dedent.d.ts +1 -0
  290. package/dist/src/helpers/dedent.js +83 -0
  291. package/dist/src/helpers/event-handlers.d.ts +3 -0
  292. package/dist/src/helpers/event-handlers.js +115 -0
  293. package/dist/src/helpers/fast-clone.d.ts +1 -0
  294. package/dist/src/helpers/fast-clone.js +5 -0
  295. package/dist/src/helpers/filter-empty-text-nodes.d.ts +3 -0
  296. package/dist/src/helpers/filter-empty-text-nodes.js +9 -0
  297. package/dist/src/helpers/generic-format.d.ts +6 -0
  298. package/dist/src/helpers/generic-format.js +35 -0
  299. package/dist/src/helpers/get-bindings.d.ts +2 -0
  300. package/dist/src/helpers/get-bindings.js +16 -0
  301. package/dist/src/helpers/get-child-components.d.ts +2 -0
  302. package/dist/src/helpers/get-child-components.js +26 -0
  303. package/dist/src/helpers/get-components-used.d.ts +2 -0
  304. package/dist/src/helpers/get-components-used.js +18 -0
  305. package/dist/src/helpers/get-components.d.ts +2 -0
  306. package/dist/src/helpers/get-components.js +21 -0
  307. package/dist/src/helpers/get-custom-imports.d.ts +15 -0
  308. package/dist/src/helpers/get-custom-imports.js +38 -0
  309. package/dist/src/helpers/get-function-string.d.ts +1 -0
  310. package/dist/src/helpers/get-function-string.js +5 -0
  311. package/dist/src/helpers/get-prop-functions.d.ts +5 -0
  312. package/dist/src/helpers/get-prop-functions.js +28 -0
  313. package/dist/src/helpers/get-props-ref.d.ts +2 -0
  314. package/dist/src/helpers/get-props-ref.js +32 -0
  315. package/dist/src/helpers/get-props.d.ts +5 -0
  316. package/dist/src/helpers/get-props.js +41 -0
  317. package/dist/src/helpers/get-refs.d.ts +2 -0
  318. package/dist/src/helpers/get-refs.js +21 -0
  319. package/dist/src/helpers/get-state-object-string.d.ts +20 -0
  320. package/dist/src/helpers/get-state-object-string.js +86 -0
  321. package/dist/src/helpers/get-state-used.d.ts +5 -0
  322. package/dist/src/helpers/get-state-used.js +28 -0
  323. package/dist/src/helpers/get-styles.d.ts +4 -0
  324. package/dist/src/helpers/get-styles.js +34 -0
  325. package/dist/src/helpers/get-tag-name.d.ts +2 -0
  326. package/dist/src/helpers/get-tag-name.js +7 -0
  327. package/dist/src/helpers/get-typed-function.d.ts +4 -0
  328. package/dist/src/helpers/get-typed-function.js +20 -0
  329. package/dist/src/helpers/getters-to-functions.d.ts +5 -0
  330. package/dist/src/helpers/getters-to-functions.js +36 -0
  331. package/dist/src/helpers/handle-missing-state.d.ts +2 -0
  332. package/dist/src/helpers/handle-missing-state.js +13 -0
  333. package/dist/src/helpers/has-bindings-text.d.ts +2 -0
  334. package/dist/src/helpers/has-bindings-text.js +21 -0
  335. package/dist/src/helpers/has-component.d.ts +2 -0
  336. package/dist/src/helpers/has-component.js +21 -0
  337. package/dist/src/helpers/has-props.d.ts +2 -0
  338. package/dist/src/helpers/has-props.js +19 -0
  339. package/dist/src/helpers/has-stateful-dom.d.ts +2 -0
  340. package/dist/src/helpers/has-stateful-dom.js +21 -0
  341. package/dist/src/helpers/has.d.ts +9 -0
  342. package/dist/src/helpers/has.js +27 -0
  343. package/dist/src/helpers/html-escape.d.ts +1 -0
  344. package/dist/src/helpers/html-escape.js +7 -0
  345. package/dist/src/helpers/indent.d.ts +1 -0
  346. package/dist/src/helpers/indent.js +7 -0
  347. package/dist/src/helpers/is-children.d.ts +6 -0
  348. package/dist/src/helpers/is-children.js +14 -0
  349. package/dist/src/helpers/is-component.d.ts +5 -0
  350. package/dist/src/helpers/is-component.js +8 -0
  351. package/dist/src/helpers/is-hook-empty.d.ts +2 -0
  352. package/dist/src/helpers/is-hook-empty.js +14 -0
  353. package/dist/src/helpers/is-html-attribute.d.ts +4 -0
  354. package/dist/src/helpers/is-html-attribute.js +371 -0
  355. package/dist/src/helpers/is-mitosis-node.d.ts +2 -0
  356. package/dist/src/helpers/is-mitosis-node.js +7 -0
  357. package/dist/src/helpers/is-root-text-node.d.ts +4 -0
  358. package/dist/src/helpers/is-root-text-node.js +12 -0
  359. package/dist/src/helpers/is-upper-case.d.ts +1 -0
  360. package/dist/src/helpers/is-upper-case.js +5 -0
  361. package/dist/src/helpers/is-valid-attribute-name.d.ts +1 -0
  362. package/dist/src/helpers/is-valid-attribute-name.js +7 -0
  363. package/dist/src/helpers/json.d.ts +3 -0
  364. package/dist/src/helpers/json.js +17 -0
  365. package/dist/src/helpers/map-refs.d.ts +9 -0
  366. package/dist/src/helpers/map-refs.js +91 -0
  367. package/dist/src/helpers/merge-options.d.ts +19 -0
  368. package/dist/src/helpers/merge-options.js +35 -0
  369. package/dist/src/helpers/mitosis-imports.d.ts +5 -0
  370. package/dist/src/helpers/mitosis-imports.js +48 -0
  371. package/dist/src/helpers/nodes/for.d.ts +4 -0
  372. package/dist/src/helpers/nodes/for.js +12 -0
  373. package/dist/src/helpers/nullable.d.ts +2 -0
  374. package/dist/src/helpers/nullable.js +5 -0
  375. package/dist/src/helpers/on-event.d.ts +14 -0
  376. package/dist/src/helpers/on-event.js +52 -0
  377. package/dist/src/helpers/output.d.ts +5 -0
  378. package/dist/src/helpers/output.js +10 -0
  379. package/dist/src/helpers/parse-node.d.ts +2 -0
  380. package/dist/src/helpers/parse-node.js +20 -0
  381. package/dist/src/helpers/parsers.d.ts +9 -0
  382. package/dist/src/helpers/parsers.js +66 -0
  383. package/dist/src/helpers/patterns.d.ts +8 -0
  384. package/dist/src/helpers/patterns.js +17 -0
  385. package/dist/src/helpers/plugins/process-code/index.d.ts +12 -0
  386. package/dist/src/helpers/plugins/process-code/index.js +169 -0
  387. package/dist/src/helpers/plugins/process-code/types.d.ts +7 -0
  388. package/dist/src/helpers/plugins/process-code/types.js +2 -0
  389. package/dist/src/helpers/plugins/process-signals.d.ts +22 -0
  390. package/dist/src/helpers/plugins/process-signals.js +179 -0
  391. package/dist/src/helpers/plugins/process-target-blocks.d.ts +6 -0
  392. package/dist/src/helpers/plugins/process-target-blocks.js +59 -0
  393. package/dist/src/helpers/process-http-requests.d.ts +2 -0
  394. package/dist/src/helpers/process-http-requests.js +25 -0
  395. package/dist/src/helpers/remove-surrounding-block.d.ts +6 -0
  396. package/dist/src/helpers/remove-surrounding-block.js +25 -0
  397. package/dist/src/helpers/render-imports.d.ts +42 -0
  398. package/dist/src/helpers/render-imports.js +169 -0
  399. package/dist/src/helpers/replace-identifiers.d.ts +27 -0
  400. package/dist/src/helpers/replace-identifiers.js +187 -0
  401. package/dist/src/helpers/replace-new-lines-in-strings.d.ts +1 -0
  402. package/dist/src/helpers/replace-new-lines-in-strings.js +26 -0
  403. package/dist/src/helpers/set.d.ts +7 -0
  404. package/dist/src/helpers/set.js +24 -0
  405. package/dist/src/helpers/signals/index.d.ts +1 -0
  406. package/dist/src/helpers/signals/index.js +17 -0
  407. package/dist/src/helpers/signals/signals.d.ts +22 -0
  408. package/dist/src/helpers/signals/signals.js +109 -0
  409. package/dist/src/helpers/slots.d.ts +5 -0
  410. package/dist/src/helpers/slots.js +26 -0
  411. package/dist/src/helpers/state.d.ts +2 -0
  412. package/dist/src/helpers/state.js +5 -0
  413. package/dist/src/helpers/strip-meta-properties.d.ts +2 -0
  414. package/dist/src/helpers/strip-meta-properties.js +26 -0
  415. package/dist/src/helpers/strip-state-and-props-refs.d.ts +38 -0
  416. package/dist/src/helpers/strip-state-and-props-refs.js +86 -0
  417. package/dist/src/helpers/styles/collect-css.d.ts +7 -0
  418. package/dist/src/helpers/styles/collect-css.js +113 -0
  419. package/dist/src/helpers/styles/collect-styled-components.d.ts +2 -0
  420. package/dist/src/helpers/styles/collect-styled-components.js +64 -0
  421. package/dist/src/helpers/styles/helpers.d.ts +31 -0
  422. package/dist/src/helpers/styles/helpers.js +90 -0
  423. package/dist/src/helpers/trace-reference-to-module-path.d.ts +2 -0
  424. package/dist/src/helpers/trace-reference-to-module-path.js +13 -0
  425. package/dist/src/helpers/transform-state-setters.d.ts +14 -0
  426. package/dist/src/helpers/transform-state-setters.js +24 -0
  427. package/dist/src/helpers/transform-to-jsx.d.ts +4 -0
  428. package/dist/src/helpers/transform-to-jsx.js +13 -0
  429. package/dist/src/helpers/traverse-nodes.d.ts +4 -0
  430. package/dist/src/helpers/traverse-nodes.js +16 -0
  431. package/dist/src/helpers/try-prettier-format.d.ts +1 -0
  432. package/dist/src/helpers/try-prettier-format.js +24 -0
  433. package/dist/src/helpers/typescript-project.d.ts +7 -0
  434. package/dist/src/helpers/typescript-project.js +63 -0
  435. package/dist/src/helpers/typescript.d.ts +9 -0
  436. package/dist/src/helpers/typescript.js +5 -0
  437. package/dist/src/helpers/web-components/attribute-passing.d.ts +6 -0
  438. package/dist/src/helpers/web-components/attribute-passing.js +47 -0
  439. package/dist/src/index.d.ts +96 -0
  440. package/dist/src/index.js +74 -0
  441. package/dist/src/modules/plugins.d.ts +25 -0
  442. package/dist/src/modules/plugins.js +51 -0
  443. package/dist/src/parsers/angular.d.ts +5 -0
  444. package/dist/src/parsers/angular.js +154 -0
  445. package/dist/src/parsers/builder/builder.d.ts +55 -0
  446. package/dist/src/parsers/builder/builder.js +1198 -0
  447. package/dist/src/parsers/builder/helpers.d.ts +3 -0
  448. package/dist/src/parsers/builder/helpers.js +26 -0
  449. package/dist/src/parsers/builder/index.d.ts +1 -0
  450. package/dist/src/parsers/builder/index.js +17 -0
  451. package/dist/src/parsers/context.d.ts +6 -0
  452. package/dist/src/parsers/context.js +82 -0
  453. package/dist/src/parsers/jsx/ast.d.ts +5 -0
  454. package/dist/src/parsers/jsx/ast.js +74 -0
  455. package/dist/src/parsers/jsx/component-types.d.ts +8 -0
  456. package/dist/src/parsers/jsx/component-types.js +82 -0
  457. package/dist/src/parsers/jsx/context.d.ts +6 -0
  458. package/dist/src/parsers/jsx/context.js +68 -0
  459. package/dist/src/parsers/jsx/element-parser.d.ts +9 -0
  460. package/dist/src/parsers/jsx/element-parser.js +418 -0
  461. package/dist/src/parsers/jsx/exports.d.ts +5 -0
  462. package/dist/src/parsers/jsx/exports.js +76 -0
  463. package/dist/src/parsers/jsx/function-parser.d.ts +9 -0
  464. package/dist/src/parsers/jsx/function-parser.js +360 -0
  465. package/dist/src/parsers/jsx/helpers.d.ts +17 -0
  466. package/dist/src/parsers/jsx/helpers.js +85 -0
  467. package/dist/src/parsers/jsx/hooks/helpers.d.ts +5 -0
  468. package/dist/src/parsers/jsx/hooks/helpers.js +54 -0
  469. package/dist/src/parsers/jsx/hooks/index.d.ts +16 -0
  470. package/dist/src/parsers/jsx/hooks/index.js +96 -0
  471. package/dist/src/parsers/jsx/hooks/use-metadata.d.ts +9 -0
  472. package/dist/src/parsers/jsx/hooks/use-metadata.js +184 -0
  473. package/dist/src/parsers/jsx/hooks/use-target.d.ts +13 -0
  474. package/dist/src/parsers/jsx/hooks/use-target.js +135 -0
  475. package/dist/src/parsers/jsx/imports.d.ts +7 -0
  476. package/dist/src/parsers/jsx/imports.js +23 -0
  477. package/dist/src/parsers/jsx/index.d.ts +2 -0
  478. package/dist/src/parsers/jsx/index.js +5 -0
  479. package/dist/src/parsers/jsx/jsx.d.ts +10 -0
  480. package/dist/src/parsers/jsx/jsx.js +227 -0
  481. package/dist/src/parsers/jsx/props-types.d.ts +5 -0
  482. package/dist/src/parsers/jsx/props-types.js +22 -0
  483. package/dist/src/parsers/jsx/props.d.ts +2 -0
  484. package/dist/src/parsers/jsx/props.js +64 -0
  485. package/dist/src/parsers/jsx/signals.d.ts +9 -0
  486. package/dist/src/parsers/jsx/signals.js +99 -0
  487. package/dist/src/parsers/jsx/state.d.ts +17 -0
  488. package/dist/src/parsers/jsx/state.js +274 -0
  489. package/dist/src/parsers/jsx/types.d.ts +29 -0
  490. package/dist/src/parsers/jsx/types.js +2 -0
  491. package/dist/src/parsers/svelte/css/index.d.ts +3 -0
  492. package/dist/src/parsers/svelte/css/index.js +8 -0
  493. package/dist/src/parsers/svelte/helpers/bindings.d.ts +3 -0
  494. package/dist/src/parsers/svelte/helpers/bindings.js +75 -0
  495. package/dist/src/parsers/svelte/helpers/children.d.ts +5 -0
  496. package/dist/src/parsers/svelte/helpers/children.js +22 -0
  497. package/dist/src/parsers/svelte/helpers/expressions.d.ts +3 -0
  498. package/dist/src/parsers/svelte/helpers/expressions.js +20 -0
  499. package/dist/src/parsers/svelte/helpers/hooks.d.ts +2 -0
  500. package/dist/src/parsers/svelte/helpers/hooks.js +15 -0
  501. package/dist/src/parsers/svelte/helpers/mitosis-node.d.ts +2 -0
  502. package/dist/src/parsers/svelte/helpers/mitosis-node.js +16 -0
  503. package/dist/src/parsers/svelte/helpers/post-process.d.ts +15 -0
  504. package/dist/src/parsers/svelte/helpers/post-process.js +174 -0
  505. package/dist/src/parsers/svelte/helpers/string.d.ts +3 -0
  506. package/dist/src/parsers/svelte/helpers/string.js +26 -0
  507. package/dist/src/parsers/svelte/html/actions.d.ts +3 -0
  508. package/dist/src/parsers/svelte/html/actions.js +46 -0
  509. package/dist/src/parsers/svelte/html/each.d.ts +4 -0
  510. package/dist/src/parsers/svelte/html/each.js +20 -0
  511. package/dist/src/parsers/svelte/html/element.d.ts +3 -0
  512. package/dist/src/parsers/svelte/html/element.js +224 -0
  513. package/dist/src/parsers/svelte/html/fragment.d.ts +3 -0
  514. package/dist/src/parsers/svelte/html/fragment.js +16 -0
  515. package/dist/src/parsers/svelte/html/if-else.d.ts +3 -0
  516. package/dist/src/parsers/svelte/html/if-else.js +31 -0
  517. package/dist/src/parsers/svelte/html/index.d.ts +5 -0
  518. package/dist/src/parsers/svelte/html/index.js +80 -0
  519. package/dist/src/parsers/svelte/html/mustache-tag.d.ts +3 -0
  520. package/dist/src/parsers/svelte/html/mustache-tag.js +24 -0
  521. package/dist/src/parsers/svelte/html/slot.d.ts +3 -0
  522. package/dist/src/parsers/svelte/html/slot.js +20 -0
  523. package/dist/src/parsers/svelte/html/text.d.ts +66 -0
  524. package/dist/src/parsers/svelte/html/text.js +14 -0
  525. package/dist/src/parsers/svelte/index.d.ts +2 -0
  526. package/dist/src/parsers/svelte/index.js +59 -0
  527. package/dist/src/parsers/svelte/instance/context.d.ts +5 -0
  528. package/dist/src/parsers/svelte/instance/context.js +59 -0
  529. package/dist/src/parsers/svelte/instance/expressions.d.ts +3 -0
  530. package/dist/src/parsers/svelte/instance/expressions.js +11 -0
  531. package/dist/src/parsers/svelte/instance/functions.d.ts +3 -0
  532. package/dist/src/parsers/svelte/instance/functions.js +66 -0
  533. package/dist/src/parsers/svelte/instance/hooks.d.ts +5 -0
  534. package/dist/src/parsers/svelte/instance/hooks.js +32 -0
  535. package/dist/src/parsers/svelte/instance/imports.d.ts +3 -0
  536. package/dist/src/parsers/svelte/instance/imports.js +32 -0
  537. package/dist/src/parsers/svelte/instance/index.d.ts +3 -0
  538. package/dist/src/parsers/svelte/instance/index.js +123 -0
  539. package/dist/src/parsers/svelte/instance/properties.d.ts +3 -0
  540. package/dist/src/parsers/svelte/instance/properties.js +22 -0
  541. package/dist/src/parsers/svelte/instance/reactive.d.ts +3 -0
  542. package/dist/src/parsers/svelte/instance/reactive.js +33 -0
  543. package/dist/src/parsers/svelte/instance/references.d.ts +4 -0
  544. package/dist/src/parsers/svelte/instance/references.js +68 -0
  545. package/dist/src/parsers/svelte/instance/statements.d.ts +3 -0
  546. package/dist/src/parsers/svelte/instance/statements.js +10 -0
  547. package/dist/src/parsers/svelte/module/index.d.ts +3 -0
  548. package/dist/src/parsers/svelte/module/index.js +34 -0
  549. package/dist/src/parsers/svelte/types/index.d.ts +4 -0
  550. package/dist/src/parsers/svelte/types/index.js +2 -0
  551. package/dist/src/parsers/svelte/typescript/index.d.ts +7 -0
  552. package/dist/src/parsers/svelte/typescript/index.js +121 -0
  553. package/dist/src/plugins/compile-away-builder-components.d.ts +15 -0
  554. package/dist/src/plugins/compile-away-builder-components.js +609 -0
  555. package/dist/src/plugins/compile-away-components.d.ts +33 -0
  556. package/dist/src/plugins/compile-away-components.js +50 -0
  557. package/dist/src/plugins/map-styles.d.ts +12 -0
  558. package/dist/src/plugins/map-styles.js +16 -0
  559. package/dist/src/symbols/symbol-processor.d.ts +20 -0
  560. package/dist/src/symbols/symbol-processor.js +202 -0
  561. package/dist/src/targets.d.ts +25 -0
  562. package/dist/src/targets.js +46 -0
  563. package/dist/src/types/config.d.ts +103 -0
  564. package/dist/src/types/config.js +2 -0
  565. package/dist/src/types/json.d.ts +13 -0
  566. package/dist/src/types/json.js +2 -0
  567. package/dist/src/types/metadata.d.ts +55 -0
  568. package/dist/src/types/metadata.js +2 -0
  569. package/dist/src/types/mitosis-component.d.ts +162 -0
  570. package/dist/src/types/mitosis-component.js +2 -0
  571. package/dist/src/types/mitosis-context.d.ts +6 -0
  572. package/dist/src/types/mitosis-context.js +2 -0
  573. package/dist/src/types/mitosis-node.d.ts +117 -0
  574. package/dist/src/types/mitosis-node.js +12 -0
  575. package/dist/src/types/mitosis-styles.d.ts +1 -0
  576. package/dist/src/types/mitosis-styles.js +2 -0
  577. package/dist/src/types/plugins.d.ts +19 -0
  578. package/dist/src/types/plugins.js +2 -0
  579. package/dist/src/types/transpiler.d.ts +48 -0
  580. package/dist/src/types/transpiler.js +2 -0
  581. package/jsx-runtime.d.ts +2143 -0
  582. package/package.json +106 -0
@@ -0,0 +1,2143 @@
1
+ /**
2
+ * Based on JSX types for Solid, Inferno, Surplus, and React
3
+ *
4
+ * https://github.com/ryansolid/solid/blob/master/packages/solid/src/rendering/jsx.ts
5
+ * https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts
6
+ * https://github.com/infernojs/inferno/blob/master/packages/inferno/src/core/types.ts
7
+ * https://github.com/adamhaile/surplus/blob/master/index.d.ts
8
+ */
9
+
10
+ export declare namespace JSX {
11
+ type CSS = Partial<CSSStyleDeclaration> & {
12
+ [key: string]: Partial<CSSStyleDeclaration> | string;
13
+ };
14
+
15
+ type Element =
16
+ | Node
17
+ | ArrayElement
18
+ | FunctionElement
19
+ | string
20
+ | number
21
+ | boolean
22
+ | null
23
+ | undefined;
24
+
25
+ interface ArrayElement extends Array<Element> {}
26
+ interface FunctionElement {
27
+ (): Element;
28
+ }
29
+
30
+ interface ElementClass {
31
+ render(props: any): Element;
32
+ }
33
+
34
+ type LibraryManagedAttributes<Component, Props> = Props;
35
+
36
+ // Let TS know the name of the `children` property in order for it to be able to type check them.
37
+ // https://github.com/Microsoft/TypeScript/issues/18357
38
+ interface ElementChildrenAttribute {
39
+ children: {};
40
+ }
41
+
42
+ interface EventHandler<T, E extends Event> {
43
+ (e: E & { currentTarget: T; target: T }): void;
44
+ }
45
+
46
+ interface BoundEventHandler<T, E extends Event> {
47
+ 0: (data: any, e: E & { currentTarget: T; target: T }) => void;
48
+ 1: any;
49
+ }
50
+
51
+ type EventHandlerUnion<T, E extends Event> = EventHandler<T, E> | BoundEventHandler<T, E>;
52
+
53
+ // Intrinsic attributes enable us to define certain keys as attributes on an element, while
54
+ // at the same time hiding them from the element's `props`.
55
+ // https://github.com/Microsoft/TypeScript/issues/5478
56
+ interface IntrinsicAttributes {
57
+ key?: string | number;
58
+ ref?: HTMLElement | ((e: HTMLElement) => void);
59
+ }
60
+
61
+ // https://github.com/ryansolid/babel-plugin-jsx-dom-expressions#special-binding
62
+ interface CustomAttributes<T> {
63
+ ref?: T | ((el: T) => void);
64
+ classList?: { [k: string]: boolean | undefined };
65
+ className?: string;
66
+ on?: { [key: string]: EventHandler<T, CustomEvent> };
67
+ onCapture?: { [key: string]: EventHandler<T, CustomEvent> };
68
+
69
+ $name?: string;
70
+ $id?: string;
71
+ }
72
+
73
+ // https://github.com/ryansolid/babel-plugin-jsx-dom-expressions#oneventname
74
+ interface DOMAttributes<T> extends CustomAttributes<T> {
75
+ children?: Element | Element[] | string | undefined | false;
76
+ innerHTML?: string;
77
+ innerText?: string;
78
+ textContent?: string;
79
+
80
+ // Clipboard Events
81
+ onCopy?: EventHandlerUnion<T, ClipboardEvent>;
82
+ onCut?: EventHandlerUnion<T, ClipboardEvent>;
83
+ onPaste?: EventHandlerUnion<T, ClipboardEvent>;
84
+
85
+ // Composition Events
86
+ onCompositionEnd?: EventHandlerUnion<T, CompositionEvent>;
87
+ onCompositionStart?: EventHandlerUnion<T, CompositionEvent>;
88
+ onCompositionUpdate?: EventHandlerUnion<T, CompositionEvent>;
89
+
90
+ // Focus Events
91
+ onFocus?: EventHandlerUnion<T, FocusEvent>;
92
+ onBlur?: EventHandlerUnion<T, FocusEvent>;
93
+
94
+ // Form Events
95
+ onChange?: EventHandlerUnion<T, Event>;
96
+ onInput?: EventHandlerUnion<T, InputEvent>;
97
+ onReset?: EventHandlerUnion<T, Event>;
98
+ onSubmit?: EventHandlerUnion<T, Event & { submitter: HTMLElement }>;
99
+
100
+ // Image Events
101
+ onLoad?: EventHandlerUnion<T, Event>;
102
+ onError?: EventHandlerUnion<T, Event>; // also a Media Event
103
+
104
+ // Keyboard Events
105
+ onKeyDown?: EventHandlerUnion<T, KeyboardEvent>;
106
+ onKeyPress?: EventHandlerUnion<T, KeyboardEvent>;
107
+ onKeyUp?: EventHandlerUnion<T, KeyboardEvent>;
108
+
109
+ // Pointer Events
110
+ onGotPointerCapture?: EventHandlerUnion<T, PointerEvent>;
111
+ onLostPointerCapture?: EventHandlerUnion<T, PointerEvent>;
112
+ onPointerCancel?: EventHandlerUnion<T, PointerEvent>;
113
+ onPointerDown?: EventHandlerUnion<T, PointerEvent>;
114
+ onPointerEnter?: EventHandlerUnion<T, PointerEvent>;
115
+ onPointerLeave?: EventHandlerUnion<T, PointerEvent>;
116
+ onPointerMove?: EventHandlerUnion<T, PointerEvent>;
117
+ onPointerOver?: EventHandlerUnion<T, PointerEvent>;
118
+ onPointerOut?: EventHandlerUnion<T, PointerEvent>;
119
+ onPointerUp?: EventHandlerUnion<T, PointerEvent>;
120
+
121
+ // Media Events
122
+ onAbort?: EventHandlerUnion<T, Event>;
123
+ onCanPlay?: EventHandlerUnion<T, Event>;
124
+ onCanPlayThrough?: EventHandlerUnion<T, Event>;
125
+ onDurationChange?: EventHandlerUnion<T, Event>;
126
+ onEmptied?: EventHandlerUnion<T, Event>;
127
+ onEncrypted?: EventHandlerUnion<T, Event>;
128
+ onEnded?: EventHandlerUnion<T, Event>;
129
+ onLoadedData?: EventHandlerUnion<T, Event>;
130
+ onLoadedMetadata?: EventHandlerUnion<T, Event>;
131
+ onLoadStart?: EventHandlerUnion<T, Event>;
132
+ onPause?: EventHandlerUnion<T, Event>;
133
+ onPlay?: EventHandlerUnion<T, Event>;
134
+ onPlaying?: EventHandlerUnion<T, Event>;
135
+ onProgress?: EventHandlerUnion<T, Event>;
136
+ onRateChange?: EventHandlerUnion<T, Event>;
137
+ onSeeked?: EventHandlerUnion<T, Event>;
138
+ onSeeking?: EventHandlerUnion<T, Event>;
139
+ onStalled?: EventHandlerUnion<T, Event>;
140
+ onSuspend?: EventHandlerUnion<T, Event>;
141
+ onTimeUpdate?: EventHandlerUnion<T, Event>;
142
+ onVolumeChange?: EventHandlerUnion<T, Event>;
143
+ onWaiting?: EventHandlerUnion<T, Event>;
144
+
145
+ // MouseEvents
146
+ onClick?: EventHandlerUnion<T, MouseEvent>;
147
+ onContextMenu?: EventHandlerUnion<T, MouseEvent>;
148
+ onDblClick?: EventHandlerUnion<T, MouseEvent>;
149
+ onDrag?: EventHandlerUnion<T, DragEvent>;
150
+ onDragEnd?: EventHandlerUnion<T, DragEvent>;
151
+ onDragEnter?: EventHandlerUnion<T, DragEvent>;
152
+ onDragExit?: EventHandlerUnion<T, DragEvent>;
153
+ onDragLeave?: EventHandlerUnion<T, DragEvent>;
154
+ onDragOver?: EventHandlerUnion<T, DragEvent>;
155
+ onDragStart?: EventHandlerUnion<T, DragEvent>;
156
+ onDrop?: EventHandlerUnion<T, DragEvent>;
157
+ onMouseDown?: EventHandlerUnion<T, MouseEvent>;
158
+ onMouseEnter?: EventHandlerUnion<T, MouseEvent>;
159
+ onMouseLeave?: EventHandlerUnion<T, MouseEvent>;
160
+ onMouseMove?: EventHandlerUnion<T, MouseEvent>;
161
+ onMouseOut?: EventHandlerUnion<T, MouseEvent>;
162
+ onMouseOver?: EventHandlerUnion<T, MouseEvent>;
163
+ onMouseUp?: EventHandlerUnion<T, MouseEvent>;
164
+
165
+ // Selection Events
166
+ onSelect?: EventHandlerUnion<T, UIEvent>;
167
+
168
+ // Touch Events
169
+ onTouchCancel?: EventHandlerUnion<T, TouchEvent>;
170
+ onTouchEnd?: EventHandlerUnion<T, TouchEvent>;
171
+ onTouchMove?: EventHandlerUnion<T, TouchEvent>;
172
+ onTouchStart?: EventHandlerUnion<T, TouchEvent>;
173
+
174
+ // UI Events
175
+ onScroll?: EventHandlerUnion<T, UIEvent>;
176
+
177
+ // Wheel Events
178
+ onWheel?: EventHandlerUnion<T, WheelEvent>;
179
+
180
+ // Animation Events
181
+ onAnimationStart?: EventHandlerUnion<T, AnimationEvent>;
182
+ onAnimationEnd?: EventHandlerUnion<T, AnimationEvent>;
183
+ onAnimationIteration?: EventHandlerUnion<T, AnimationEvent>;
184
+
185
+ // Transition Events
186
+ onTransitionEnd?: EventHandlerUnion<T, TransitionEvent>;
187
+ }
188
+
189
+ // See CSS 3 CSS-wide keywords https://www.w3.org/TR/css3-values/#common-keywords
190
+ // See CSS 3 Explicit Defaulting https://www.w3.org/TR/css-cascade-3/#defaulting-keywords
191
+ // "all CSS properties can accept these values"
192
+ type CSSWideKeyword = 'initial' | 'inherit' | 'unset';
193
+
194
+ // See CSS 3 <percentage> type https://drafts.csswg.org/css-values-3/#percentages
195
+ type CSSPercentage = string;
196
+
197
+ // See CSS 3 <length> type https://drafts.csswg.org/css-values-3/#lengths
198
+ type CSSLength = number | string;
199
+
200
+ type HTMLAutocapitalize = 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
201
+
202
+ type HTMLDir = 'ltr' | 'rtl' | 'auto';
203
+
204
+ type HTMLFormEncType = 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
205
+
206
+ type HTMLFormMethod = 'post' | 'get' | 'dialog';
207
+
208
+ type HTMLCrossorigin = 'anonymous' | 'use-credentials' | '';
209
+
210
+ type HTMLReferrerPolicy =
211
+ | 'no-referrer'
212
+ | 'no-referrer-when-downgrade'
213
+ | 'origin'
214
+ | 'origin-when-cross-origin'
215
+ | 'same-origin'
216
+ | 'strict-origin'
217
+ | 'strict-origin-when-cross-origin'
218
+ | 'unsafe-url';
219
+
220
+ type HTMLIframeSandbox =
221
+ | 'allow-downloads-without-user-activation'
222
+ | 'allow-forms'
223
+ | 'allow-modals'
224
+ | 'allow-orientation-lock'
225
+ | 'allow-pointer-lock'
226
+ | 'allow-popups'
227
+ | 'allow-popups-to-escape-sandbox'
228
+ | 'allow-presentation'
229
+ | 'allow-same-origin'
230
+ | 'allow-scripts'
231
+ | 'allow-storage-access-by-user-activation'
232
+ | 'allow-top-navigation'
233
+ | 'allow-top-navigation-by-user-activation';
234
+
235
+ type HTMLLinkAs =
236
+ | 'audio'
237
+ | 'document'
238
+ | 'embed'
239
+ | 'fetch'
240
+ | 'font'
241
+ | 'image'
242
+ | 'object'
243
+ | 'script'
244
+ | 'style'
245
+ | 'track'
246
+ | 'video'
247
+ | 'worker';
248
+
249
+ interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
250
+ // Special attributes
251
+ key?: string | boolean | number;
252
+
253
+ // Standard HTML Attributes
254
+ accessKey?: string;
255
+ class?: string;
256
+ contenteditable?: boolean | 'inherit';
257
+ contextmenu?: string;
258
+ dir?: HTMLDir;
259
+ draggable?: boolean;
260
+ hidden?: boolean;
261
+ id?: string;
262
+ lang?: string;
263
+ spellcheck?: boolean;
264
+ style?: CSS;
265
+ css?: CSS | { [key: string]: CSS | undefined };
266
+ tabindex?: number | string;
267
+ title?: string;
268
+ translate?: 'yes' | 'no';
269
+
270
+ // RDFa Attributes
271
+ about?: string;
272
+ datatype?: string;
273
+ inlist?: any;
274
+ prefix?: string;
275
+ property?: string;
276
+ resource?: string;
277
+ typeof?: string;
278
+ vocab?: string;
279
+
280
+ // Non-standard Attributes
281
+ autocapitalize?: HTMLAutocapitalize;
282
+ color?: string;
283
+ itemprop?: string;
284
+ itemscope?: boolean;
285
+ itemtype?: string;
286
+ itemid?: string;
287
+ itemref?: string;
288
+
289
+ // others
290
+ align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch' | 'left' | 'right';
291
+ part?: string;
292
+ exportparts?: string;
293
+ inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
294
+
295
+ // camelcase
296
+ contentEditable?: boolean | 'inherit';
297
+ contextMenu?: string;
298
+ tabIndex?: number | string;
299
+ autoCapitalize?: HTMLAutocapitalize;
300
+ itemProp?: string;
301
+ itemScope?: boolean;
302
+ itemType?: string;
303
+ itemId?: string;
304
+ itemRef?: string;
305
+ exportParts?: string;
306
+ inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
307
+
308
+ // WAI-ARIA
309
+ role?: AriaRole | undefined;
310
+ }
311
+
312
+ // HTML Elements
313
+
314
+ interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
315
+ download?: any;
316
+ href?: string;
317
+ hreflang?: string;
318
+ media?: string;
319
+ ping?: string;
320
+ referrerpolicy?: HTMLReferrerPolicy;
321
+ rel?: string;
322
+ target?: string;
323
+ type?: string;
324
+
325
+ // camelcase
326
+ referrerPolicy?: HTMLReferrerPolicy;
327
+ }
328
+
329
+ interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
330
+
331
+ interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
332
+ alt?: string;
333
+ coords?: string;
334
+ download?: any;
335
+ href?: string;
336
+ hreflang?: string;
337
+ ping?: string;
338
+ referrerpolicy?: HTMLReferrerPolicy;
339
+ rel?: string;
340
+ shape?: 'rect' | 'circle' | 'poly' | 'default';
341
+ target?: string;
342
+
343
+ // camelcase
344
+ referrerPolicy?: HTMLReferrerPolicy;
345
+ }
346
+
347
+ interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
348
+ href?: string;
349
+ target?: string;
350
+ }
351
+
352
+ interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
353
+ cite?: string;
354
+ }
355
+
356
+ interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
357
+ autofocus?: boolean;
358
+ disabled?: boolean;
359
+ form?: string;
360
+ formaction?: string;
361
+ formenctype?: HTMLFormEncType;
362
+ formmethod?: HTMLFormMethod;
363
+ formnovalidate?: boolean;
364
+ formtarget?: string;
365
+ name?: string;
366
+ type?: 'submit' | 'reset' | 'button';
367
+ value?: string;
368
+
369
+ // camelcase
370
+ formAction?: string;
371
+ formEnctype?: HTMLFormEncType;
372
+ formMethod?: HTMLFormMethod;
373
+ formNoValidate?: boolean;
374
+ formTarget?: string;
375
+ }
376
+
377
+ interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
378
+ width?: number | string;
379
+ height?: number | string;
380
+ }
381
+
382
+ interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
383
+ span?: number | string;
384
+ width?: number | string;
385
+ }
386
+
387
+ interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
388
+ span?: number | string;
389
+ }
390
+
391
+ interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
392
+ value?: string | string[] | number;
393
+ }
394
+
395
+ interface DetailsHtmlAttributes<T> extends HTMLAttributes<T> {
396
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/name) */
397
+ name?: string;
398
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */
399
+ open?: boolean;
400
+ }
401
+
402
+ interface DialogHtmlAttributes<T> extends HTMLAttributes<T> {
403
+ open?: boolean;
404
+ }
405
+
406
+ interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
407
+ height?: number | string;
408
+ src?: string;
409
+ type?: string;
410
+ width?: number | string;
411
+ }
412
+
413
+ interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
414
+ disabled?: boolean;
415
+ form?: string;
416
+ name?: string;
417
+ }
418
+
419
+ interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
420
+ acceptcharset?: string;
421
+ action?: string;
422
+ autocomplete?: string;
423
+ encoding?: HTMLFormEncType;
424
+ enctype?: HTMLFormEncType;
425
+ method?: HTMLFormMethod;
426
+ name?: string;
427
+ novalidate?: boolean;
428
+ target?: string;
429
+
430
+ // camelcase
431
+ acceptCharset?: string;
432
+ noValidate?: boolean;
433
+ }
434
+
435
+ interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
436
+ allow?: string;
437
+ allowfullscreen?: boolean;
438
+ height?: number | string;
439
+ name?: string;
440
+ referrerpolicy?: HTMLReferrerPolicy;
441
+ sandbox?: HTMLIframeSandbox;
442
+ src?: string;
443
+ srcdoc?: string;
444
+ width?: number | string;
445
+
446
+ // camelcase
447
+ referrerPolicy?: HTMLReferrerPolicy;
448
+ }
449
+
450
+ interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
451
+ loading?: string;
452
+ fetchpriority?: string;
453
+ role?: string;
454
+ alt?: string;
455
+ crossorigin?: HTMLCrossorigin;
456
+ decoding?: 'sync' | 'async' | 'auto';
457
+ height?: number | string;
458
+ referrerpolicy?: HTMLReferrerPolicy;
459
+ sizes?: string;
460
+ src?: string;
461
+ srcset?: string;
462
+ width?: number | string;
463
+
464
+ // camelcase
465
+ crossOrigin?: HTMLCrossorigin;
466
+ referrerPolicy?: HTMLReferrerPolicy;
467
+ }
468
+
469
+ interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
470
+ accept?: string;
471
+ alt?: string;
472
+ autocomplete?: string;
473
+ autofocus?: boolean;
474
+ capture?: boolean | string;
475
+ checked?: boolean;
476
+ crossorigin?: HTMLCrossorigin;
477
+ disabled?: boolean;
478
+ form?: string;
479
+ formaction?: string;
480
+ formenctype?: HTMLFormEncType;
481
+ formmethod?: HTMLFormMethod;
482
+ formnovalidate?: boolean;
483
+ formtarget?: string;
484
+ height?: number | string;
485
+ list?: string;
486
+ max?: number | string;
487
+ maxlength?: number | string;
488
+ min?: number | string;
489
+ minlength?: number | string;
490
+ multiple?: boolean;
491
+ name?: string;
492
+ pattern?: string;
493
+ placeholder?: string;
494
+ readonly?: boolean;
495
+ required?: boolean;
496
+ size?: number | string;
497
+ src?: string;
498
+ step?: number | string;
499
+ type?: string;
500
+ value?: string | string[] | number;
501
+ width?: number | string;
502
+
503
+ // camelcase
504
+ crossOrigin?: HTMLCrossorigin;
505
+ formAction?: string;
506
+ autoComplete?: string;
507
+ autoFocus?: boolean;
508
+ formEnctype?: HTMLFormEncType;
509
+ formMethod?: HTMLFormMethod;
510
+ formNoValidate?: boolean;
511
+ formTarget?: string;
512
+ maxLength?: number | string;
513
+ minLength?: number | string;
514
+ readOnly?: boolean;
515
+ }
516
+
517
+ interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
518
+ cite?: string;
519
+ dateTime?: string;
520
+ }
521
+
522
+ interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
523
+ autofocus?: boolean;
524
+ challenge?: string;
525
+ disabled?: boolean;
526
+ form?: string;
527
+ keytype?: string;
528
+ keyparams?: string;
529
+ name?: string;
530
+ }
531
+
532
+ interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
533
+ htmlFor?: string;
534
+ for?: string;
535
+ form?: string;
536
+ }
537
+
538
+ interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
539
+ value?: number | string;
540
+ }
541
+
542
+ interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
543
+ as?: HTMLLinkAs;
544
+ crossorigin?: HTMLCrossorigin;
545
+ disabled?: boolean;
546
+ href?: string;
547
+ hreflang?: string;
548
+ integrity?: string;
549
+ media?: string;
550
+ referrerpolicy?: HTMLReferrerPolicy;
551
+ rel?: string;
552
+ sizes?: string;
553
+ type?: string;
554
+
555
+ // camelcase
556
+ crossOrigin?: HTMLCrossorigin;
557
+ referrerPolicy?: HTMLReferrerPolicy;
558
+ }
559
+
560
+ interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
561
+ name?: string;
562
+ }
563
+
564
+ interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
565
+ autoplay?: boolean;
566
+ controls?: boolean;
567
+ crossorigin?: HTMLCrossorigin;
568
+ loop?: boolean;
569
+ mediagroup?: string;
570
+ muted?: boolean;
571
+ preload?: 'none' | 'metadata' | 'auto' | '';
572
+ src?: string;
573
+
574
+ // camelcase
575
+ crossOrigin?: HTMLCrossorigin;
576
+ mediaGroup?: string;
577
+ }
578
+
579
+ interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
580
+ label?: string;
581
+ type?: 'context' | 'toolbar';
582
+ }
583
+
584
+ interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
585
+ charset?: string;
586
+ content?: string;
587
+ httpequiv?: string;
588
+ name?: string;
589
+
590
+ // camelcase
591
+ httpEquiv?: string;
592
+ }
593
+
594
+ interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
595
+ form?: string;
596
+ high?: number | string;
597
+ low?: number | string;
598
+ max?: number | string;
599
+ min?: number | string;
600
+ optimum?: number | string;
601
+ value?: string | string[] | number;
602
+ }
603
+
604
+ interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
605
+ cite?: string;
606
+ }
607
+
608
+ interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
609
+ data?: string;
610
+ form?: string;
611
+ height?: number | string;
612
+ name?: string;
613
+ type?: string;
614
+ usemap?: string;
615
+ width?: number | string;
616
+
617
+ //camelcase
618
+ useMap?: string;
619
+ }
620
+
621
+ interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
622
+ reversed?: boolean;
623
+ start?: number | string;
624
+ type?: '1' | 'a' | 'A' | 'i' | 'I';
625
+ }
626
+
627
+ interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
628
+ disabled?: boolean;
629
+ label?: string;
630
+ }
631
+
632
+ interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
633
+ disabled?: boolean;
634
+ label?: string;
635
+ selected?: boolean;
636
+ value?: string | string[] | number;
637
+ }
638
+
639
+ interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
640
+ form?: string;
641
+ htmlFor?: string;
642
+ for?: string;
643
+ name?: string;
644
+ }
645
+
646
+ interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
647
+ name?: string;
648
+ value?: string | string[] | number;
649
+ }
650
+
651
+ interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
652
+ max?: number | string;
653
+ value?: string | string[] | number;
654
+ }
655
+
656
+ interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
657
+ async?: boolean;
658
+ charset?: string;
659
+ crossorigin?: HTMLCrossorigin;
660
+ defer?: boolean;
661
+ integrity?: string;
662
+ nomodule?: boolean;
663
+ nonce?: string;
664
+ referrerpolicy?: HTMLReferrerPolicy;
665
+ src?: string;
666
+ type?: string;
667
+
668
+ // camelcase
669
+ crossOrigin?: HTMLCrossorigin;
670
+ noModule?: boolean;
671
+ referrerPolicy?: HTMLReferrerPolicy;
672
+ }
673
+
674
+ interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
675
+ autocomplete?: string;
676
+ autofocus?: boolean;
677
+ disabled?: boolean;
678
+ form?: string;
679
+ multiple?: boolean;
680
+ name?: string;
681
+ required?: boolean;
682
+ size?: number | string;
683
+ value?: string | string[] | number;
684
+ }
685
+
686
+ interface HTMLSlotElementAttributes<T = HTMLSlotElement> extends HTMLAttributes<T> {
687
+ name?: string;
688
+ }
689
+
690
+ interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
691
+ media?: string;
692
+ sizes?: string;
693
+ src?: string;
694
+ srcset?: string;
695
+ type?: string;
696
+ }
697
+
698
+ interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
699
+ media?: string;
700
+ nonce?: string;
701
+ scoped?: boolean;
702
+ type?: string;
703
+ }
704
+
705
+ interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
706
+ colspan?: number | string;
707
+ headers?: string;
708
+ rowspan?: number | string;
709
+
710
+ // camelcase
711
+ colSpan?: number | string;
712
+ rowSpan?: number | string;
713
+ }
714
+
715
+ interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
716
+ autocomplete?: string;
717
+ autofocus?: boolean;
718
+ cols?: number | string;
719
+ dirname?: string;
720
+ disabled?: boolean;
721
+ form?: string;
722
+ maxlength?: number | string;
723
+ minlength?: number | string;
724
+ name?: string;
725
+ placeholder?: string;
726
+ readonly?: boolean;
727
+ required?: boolean;
728
+ rows?: number | string;
729
+ value?: string | string[] | number;
730
+ wrap?: 'hard' | 'soft' | 'off';
731
+
732
+ // camelcase
733
+ maxLength?: number | string;
734
+ minLength?: number | string;
735
+ readOnly?: boolean;
736
+ }
737
+
738
+ interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
739
+ colspan?: number | string;
740
+ headers?: string;
741
+ rowspan?: number | string;
742
+
743
+ // camelcase
744
+ colSpan?: number | string;
745
+ rowSpan?: number | string;
746
+ }
747
+
748
+ interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
749
+ datetime?: string;
750
+ dateTime?: string;
751
+ }
752
+
753
+ interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
754
+ default?: boolean;
755
+ kind?: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
756
+ label?: string;
757
+ src?: string;
758
+ srclang?: string;
759
+ }
760
+
761
+ interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
762
+ height?: number | string;
763
+ playsinline?: boolean;
764
+ poster?: string;
765
+ width?: number | string;
766
+ }
767
+
768
+ // SVG Elements
769
+
770
+ type SVGPreserveAspectRatio =
771
+ | 'none'
772
+ | 'xMinYMin'
773
+ | 'xMidYMin'
774
+ | 'xMaxYMin'
775
+ | 'xMinYMid'
776
+ | 'xMidYMid'
777
+ | 'xMaxYMid'
778
+ | 'xMinYMax'
779
+ | 'xMidYMax'
780
+ | 'xMaxYMax'
781
+ | 'xMinYMin meet'
782
+ | 'xMidYMin meet'
783
+ | 'xMaxYMin meet'
784
+ | 'xMinYMid meet'
785
+ | 'xMidYMid meet'
786
+ | 'xMaxYMid meet'
787
+ | 'xMinYMax meet'
788
+ | 'xMidYMax meet'
789
+ | 'xMaxYMax meet'
790
+ | 'xMinYMin slice'
791
+ | 'xMidYMin slice'
792
+ | 'xMaxYMin slice'
793
+ | 'xMinYMid slice'
794
+ | 'xMidYMid slice'
795
+ | 'xMaxYMid slice'
796
+ | 'xMinYMax slice'
797
+ | 'xMidYMax slice'
798
+ | 'xMaxYMax slice';
799
+
800
+ type ImagePreserveAspectRatio =
801
+ | SVGPreserveAspectRatio
802
+ | 'defer none'
803
+ | 'defer xMinYMin'
804
+ | 'defer xMidYMin'
805
+ | 'defer xMaxYMin'
806
+ | 'defer xMinYMid'
807
+ | 'defer xMidYMid'
808
+ | 'defer xMaxYMid'
809
+ | 'defer xMinYMax'
810
+ | 'defer xMidYMax'
811
+ | 'defer xMaxYMax'
812
+ | 'defer xMinYMin meet'
813
+ | 'defer xMidYMin meet'
814
+ | 'defer xMaxYMin meet'
815
+ | 'defer xMinYMid meet'
816
+ | 'defer xMidYMid meet'
817
+ | 'defer xMaxYMid meet'
818
+ | 'defer xMinYMax meet'
819
+ | 'defer xMidYMax meet'
820
+ | 'defer xMaxYMax meet'
821
+ | 'defer xMinYMin slice'
822
+ | 'defer xMidYMin slice'
823
+ | 'defer xMaxYMin slice'
824
+ | 'defer xMinYMid slice'
825
+ | 'defer xMidYMid slice'
826
+ | 'defer xMaxYMid slice'
827
+ | 'defer xMinYMax slice'
828
+ | 'defer xMidYMax slice'
829
+ | 'defer xMaxYMax slice';
830
+
831
+ type SVGUnits = 'userSpaceOnUse' | 'objectBoundingBox';
832
+
833
+ interface CoreSVGAttributes<T> extends AriaAttributes, DOMAttributes<T> {
834
+ id?: string;
835
+ lang?: string;
836
+ tabIndex?: number | string;
837
+ tabindex?: number | string;
838
+
839
+ // Other HTML properties supported by SVG elements in browsers
840
+ role?: AriaRole | undefined;
841
+ }
842
+
843
+ interface StylableSVGAttributes {
844
+ class?: string;
845
+ style?: CSS;
846
+ }
847
+
848
+ interface TransformableSVGAttributes {
849
+ transform?: string;
850
+ }
851
+
852
+ // Fix when namespaces introduced
853
+ // interface XLinkSVGAttributes {
854
+ // xlinkActuate?: string;
855
+ // xlinkArcrole?: string;
856
+ // xlinkHref?: string;
857
+ // xlinkRole?: string;
858
+ // xlinkShow?: string;
859
+ // xlinkTitle?: string;
860
+ // xlinkType?: string;
861
+ // }
862
+
863
+ interface ConditionalProcessingSVGAttributes {
864
+ requiredExtensions?: string;
865
+ requiredFeatures?: string;
866
+ systemLanguage?: string;
867
+ }
868
+
869
+ interface ExternalResourceSVGAttributes {
870
+ externalResourcesRequired?: 'true' | 'false';
871
+ }
872
+
873
+ interface AnimationTimingSVGAttributes {
874
+ begin?: string;
875
+ dur?: string;
876
+ end?: string;
877
+ min?: string;
878
+ max?: string;
879
+ restart?: 'always' | 'whenNotActive' | 'never';
880
+ repeatCount?: number | 'indefinite';
881
+ repeatDur?: string;
882
+ fill?: 'freeze' | 'remove';
883
+ }
884
+
885
+ interface AnimationValueSVGAttributes {
886
+ calcMode?: 'discrete' | 'linear' | 'paced' | 'spline';
887
+ values?: string;
888
+ keyTimes?: string;
889
+ keySplines?: string;
890
+ from?: number | string;
891
+ to?: number | string;
892
+ by?: number | string;
893
+ }
894
+
895
+ interface AnimationAdditionSVGAttributes {
896
+ attributeName?: string;
897
+ additive?: 'replace' | 'sum';
898
+ accumulate?: 'none' | 'sum';
899
+ }
900
+
901
+ interface AnimationAttributeTargetSVGAttributes {
902
+ attributeName?: string;
903
+ attributeType?: 'CSS' | 'XML' | 'auto';
904
+ }
905
+
906
+ interface PresentationSVGAttributes {
907
+ 'alignment-baseline'?:
908
+ | 'auto'
909
+ | 'baseline'
910
+ | 'before-edge'
911
+ | 'text-before-edge'
912
+ | 'middle'
913
+ | 'central'
914
+ | 'after-edge'
915
+ | 'text-after-edge'
916
+ | 'ideographic'
917
+ | 'alphabetic'
918
+ | 'hanging'
919
+ | 'mathematical'
920
+ | 'inherit';
921
+ 'baseline-shift'?: number | string;
922
+ clip?: string;
923
+ 'clip-path'?: string;
924
+ 'clip-rule'?: 'nonzero' | 'evenodd' | 'inherit';
925
+ color?: string;
926
+ 'color-interpolation'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit';
927
+ 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit';
928
+ 'color-profile'?: string;
929
+ 'color-rendering'?: 'auto' | 'optimizeSpeed' | 'optimizeQuality' | 'inherit';
930
+ cursor?: string;
931
+ direction?: 'ltr' | 'rtl' | 'inherit';
932
+ display?: string;
933
+ 'dominant-baseline'?:
934
+ | 'auto'
935
+ | 'text-bottom'
936
+ | 'alphabetic'
937
+ | 'ideographic'
938
+ | 'middle'
939
+ | 'central'
940
+ | 'mathematical'
941
+ | 'hanging'
942
+ | 'text-top'
943
+ | 'inherit';
944
+ 'enable-background'?: string;
945
+ fill?: string;
946
+ 'fill-opacity'?: number | string | 'inherit';
947
+ 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit';
948
+ filter?: string;
949
+ 'flood-color'?: string;
950
+ 'flood-opacity'?: number | string | 'inherit';
951
+ 'font-family'?: string;
952
+ 'font-size'?: string;
953
+ 'font-size-adjust'?: number | string;
954
+ 'font-stretch'?: string;
955
+ 'font-style'?: 'normal' | 'italic' | 'oblique' | 'inherit';
956
+ 'font-variant'?: string;
957
+ 'font-weight'?: number | string;
958
+ 'glyph-orientation-horizontal'?: string;
959
+ 'glyph-orientation-vertical'?: string;
960
+ 'image-rendering'?: 'auto' | 'optimizeQuality' | 'optimizeSpeed' | 'inherit';
961
+ kerning?: string;
962
+ 'letter-spacing'?: number | string;
963
+ 'lighting-color'?: string;
964
+ 'marker-end'?: string;
965
+ 'marker-mid'?: string;
966
+ 'marker-start'?: string;
967
+ mask?: string;
968
+ opacity?: number | string | 'inherit';
969
+ overflow?: 'visible' | 'hidden' | 'scroll' | 'auto' | 'inherit';
970
+ 'pointer-events'?:
971
+ | 'bounding-box'
972
+ | 'visiblePainted'
973
+ | 'visibleFill'
974
+ | 'visibleStroke'
975
+ | 'visible'
976
+ | 'painted'
977
+ | 'color'
978
+ | 'fill'
979
+ | 'stroke'
980
+ | 'all'
981
+ | 'none'
982
+ | 'inherit';
983
+ 'shape-rendering'?: 'auto' | 'optimizeSpeed' | 'crispEdges' | 'geometricPrecision' | 'inherit';
984
+ 'stop-color'?: string;
985
+ 'stop-opacity'?: number | string | 'inherit';
986
+ stroke?: string;
987
+ 'stroke-dasharray'?: string;
988
+ 'stroke-dashoffset'?: number | string;
989
+ 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit';
990
+ 'stroke-linejoin'?: 'arcs' | 'bevel' | 'miter' | 'miter-clip' | 'round' | 'inherit';
991
+ 'stroke-miterlimit'?: number | string | 'inherit';
992
+ 'stroke-opacity'?: number | string | 'inherit';
993
+ 'stroke-width'?: number | string;
994
+ 'text-anchor'?: 'start' | 'middle' | 'end' | 'inherit';
995
+ 'text-decoration'?: 'none' | 'underline' | 'overline' | 'line-through' | 'blink' | 'inherit';
996
+ 'text-rendering'?:
997
+ | 'auto'
998
+ | 'optimizeSpeed'
999
+ | 'optimizeLegibility'
1000
+ | 'geometricPrecision'
1001
+ | 'inherit';
1002
+ 'unicode-bidi'?: string;
1003
+ visibility?: 'visible' | 'hidden' | 'collapse' | 'inherit';
1004
+ 'word-spacing'?: number | string;
1005
+ 'writing-mode'?: 'lr-tb' | 'rl-tb' | 'tb-rl' | 'lr' | 'rl' | 'tb' | 'inherit';
1006
+ }
1007
+
1008
+ interface AnimationElementSVGAttributes<T>
1009
+ extends CoreSVGAttributes<T>,
1010
+ ExternalResourceSVGAttributes,
1011
+ ConditionalProcessingSVGAttributes {}
1012
+
1013
+ interface ContainerElementSVGAttributes<T>
1014
+ extends CoreSVGAttributes<T>,
1015
+ ShapeElementSVGAttributes<T>,
1016
+ Pick<
1017
+ PresentationSVGAttributes,
1018
+ | 'clip-path'
1019
+ | 'mask'
1020
+ | 'cursor'
1021
+ | 'opacity'
1022
+ | 'filter'
1023
+ | 'enable-background'
1024
+ | 'color-interpolation'
1025
+ | 'color-rendering'
1026
+ > {}
1027
+
1028
+ interface FilterPrimitiveElementSVGAttributes<T>
1029
+ extends CoreSVGAttributes<T>,
1030
+ Pick<PresentationSVGAttributes, 'color-interpolation-filters'> {
1031
+ x?: number | string;
1032
+ y?: number | string;
1033
+ width?: number | string;
1034
+ height?: number | string;
1035
+ result?: string;
1036
+ }
1037
+
1038
+ interface SingleInputFilterSVGAttributes {
1039
+ in?: string;
1040
+ }
1041
+
1042
+ interface DoubleInputFilterSVGAttributes {
1043
+ in?: string;
1044
+ in2?: string;
1045
+ }
1046
+
1047
+ interface FitToViewBoxSVGAttributes {
1048
+ viewBox?: string;
1049
+ preserveAspectRatio?: SVGPreserveAspectRatio;
1050
+ }
1051
+
1052
+ interface GradientElementSVGAttributes<T>
1053
+ extends CoreSVGAttributes<T>,
1054
+ // XLinkSVGAttributes,
1055
+ ExternalResourceSVGAttributes,
1056
+ StylableSVGAttributes {
1057
+ gradientUnits?: SVGUnits;
1058
+ gradientTransform?: string;
1059
+ spreadMethod?: 'pad' | 'reflect' | 'repeat';
1060
+ }
1061
+
1062
+ interface GraphicsElementSVGAttributes<T>
1063
+ extends CoreSVGAttributes<T>,
1064
+ Pick<
1065
+ PresentationSVGAttributes,
1066
+ | 'clip-rule'
1067
+ | 'mask'
1068
+ | 'pointer-events'
1069
+ | 'cursor'
1070
+ | 'opacity'
1071
+ | 'filter'
1072
+ | 'display'
1073
+ | 'visibility'
1074
+ | 'color-interpolation'
1075
+ | 'color-rendering'
1076
+ > {}
1077
+
1078
+ interface LightSourceElementSVGAttributes<T> extends CoreSVGAttributes<T> {}
1079
+
1080
+ interface NewViewportSVGAttributes<T>
1081
+ extends CoreSVGAttributes<T>,
1082
+ Pick<PresentationSVGAttributes, 'overflow' | 'clip'> {
1083
+ viewBox?: string;
1084
+ }
1085
+
1086
+ interface ShapeElementSVGAttributes<T>
1087
+ extends CoreSVGAttributes<T>,
1088
+ Pick<
1089
+ PresentationSVGAttributes,
1090
+ | 'color'
1091
+ | 'fill'
1092
+ | 'fill-rule'
1093
+ | 'fill-opacity'
1094
+ | 'stroke'
1095
+ | 'stroke-width'
1096
+ | 'stroke-linecap'
1097
+ | 'stroke-linejoin'
1098
+ | 'stroke-miterlimit'
1099
+ | 'stroke-dasharray'
1100
+ | 'stroke-dashoffset'
1101
+ | 'stroke-opacity'
1102
+ | 'shape-rendering'
1103
+ > {}
1104
+
1105
+ interface TextContentElementSVGAttributes<T>
1106
+ extends CoreSVGAttributes<T>,
1107
+ Pick<
1108
+ PresentationSVGAttributes,
1109
+ | 'font-family'
1110
+ | 'font-style'
1111
+ | 'font-variant'
1112
+ | 'font-weight'
1113
+ | 'font-stretch'
1114
+ | 'font-size'
1115
+ | 'font-size-adjust'
1116
+ | 'kerning'
1117
+ | 'letter-spacing'
1118
+ | 'word-spacing'
1119
+ | 'text-decoration'
1120
+ | 'glyph-orientation-horizontal'
1121
+ | 'glyph-orientation-vertical'
1122
+ | 'direction'
1123
+ | 'unicode-bidi'
1124
+ | 'text-anchor'
1125
+ | 'dominant-baseline'
1126
+ | 'color'
1127
+ | 'fill'
1128
+ | 'fill-rule'
1129
+ | 'fill-opacity'
1130
+ | 'stroke'
1131
+ | 'stroke-width'
1132
+ | 'stroke-linecap'
1133
+ | 'stroke-linejoin'
1134
+ | 'stroke-miterlimit'
1135
+ | 'stroke-dasharray'
1136
+ | 'stroke-dashoffset'
1137
+ | 'stroke-opacity'
1138
+ > {}
1139
+
1140
+ interface ZoomAndPanSVGAttributes {
1141
+ zoomAndPan?: 'disable' | 'magnify';
1142
+ }
1143
+
1144
+ interface AnimateSVGAttributes<T>
1145
+ extends AnimationElementSVGAttributes<T>,
1146
+ // XLinkSVGAttributes,
1147
+ AnimationAttributeTargetSVGAttributes,
1148
+ AnimationTimingSVGAttributes,
1149
+ AnimationValueSVGAttributes,
1150
+ AnimationAdditionSVGAttributes,
1151
+ Pick<PresentationSVGAttributes, 'color-interpolation' | 'color-rendering'> {}
1152
+
1153
+ interface AnimateMotionSVGAttributes<T>
1154
+ extends AnimationElementSVGAttributes<T>,
1155
+ // XLinkSVGAttributes,
1156
+ AnimationTimingSVGAttributes,
1157
+ AnimationValueSVGAttributes,
1158
+ AnimationAdditionSVGAttributes {
1159
+ path?: string;
1160
+ keyPoints?: string;
1161
+ rotate?: number | string | 'auto' | 'auto-reverse';
1162
+ origin?: 'default';
1163
+ }
1164
+
1165
+ interface AnimateTransformSVGAttributes<T>
1166
+ extends AnimationElementSVGAttributes<T>,
1167
+ // XLinkSVGAttributes,
1168
+ AnimationAttributeTargetSVGAttributes,
1169
+ AnimationTimingSVGAttributes,
1170
+ AnimationValueSVGAttributes,
1171
+ AnimationAdditionSVGAttributes {
1172
+ type?: 'translate' | 'scale' | 'rotate' | 'skewX' | 'skewY';
1173
+ }
1174
+
1175
+ interface CircleSVGAttributes<T>
1176
+ extends GraphicsElementSVGAttributes<T>,
1177
+ ShapeElementSVGAttributes<T>,
1178
+ ConditionalProcessingSVGAttributes,
1179
+ StylableSVGAttributes,
1180
+ TransformableSVGAttributes {
1181
+ cx?: number | string;
1182
+ cy?: number | string;
1183
+ r?: number | string;
1184
+ }
1185
+
1186
+ interface ClipPathSVGAttributes<T>
1187
+ extends CoreSVGAttributes<T>,
1188
+ ConditionalProcessingSVGAttributes,
1189
+ ExternalResourceSVGAttributes,
1190
+ StylableSVGAttributes,
1191
+ TransformableSVGAttributes,
1192
+ Pick<PresentationSVGAttributes, 'clip-path'> {
1193
+ clipPathUnits?: SVGUnits;
1194
+ }
1195
+
1196
+ interface DefsSVGAttributes<T>
1197
+ extends ContainerElementSVGAttributes<T>,
1198
+ ConditionalProcessingSVGAttributes,
1199
+ ExternalResourceSVGAttributes,
1200
+ StylableSVGAttributes,
1201
+ TransformableSVGAttributes {}
1202
+
1203
+ interface DescSVGAttributes<T> extends CoreSVGAttributes<T>, StylableSVGAttributes {}
1204
+
1205
+ interface EllipseSVGAttributes<T>
1206
+ extends GraphicsElementSVGAttributes<T>,
1207
+ ShapeElementSVGAttributes<T>,
1208
+ ConditionalProcessingSVGAttributes,
1209
+ ExternalResourceSVGAttributes,
1210
+ StylableSVGAttributes,
1211
+ TransformableSVGAttributes {
1212
+ cx?: number | string;
1213
+ cy?: number | string;
1214
+ rx?: number | string;
1215
+ ry?: number | string;
1216
+ }
1217
+
1218
+ interface FeBlendSVGAttributes<T>
1219
+ extends FilterPrimitiveElementSVGAttributes<T>,
1220
+ DoubleInputFilterSVGAttributes,
1221
+ StylableSVGAttributes {
1222
+ mode?: 'normal' | 'multiply' | 'screen' | 'darken' | 'lighten';
1223
+ }
1224
+
1225
+ interface FeColorMatrixSVGAttributes<T>
1226
+ extends FilterPrimitiveElementSVGAttributes<T>,
1227
+ SingleInputFilterSVGAttributes,
1228
+ StylableSVGAttributes {
1229
+ type?: 'matrix' | 'saturate' | 'hueRotate' | 'luminanceToAlpha';
1230
+ values?: string;
1231
+ }
1232
+
1233
+ interface FeComponentTransferSVGAttributes<T>
1234
+ extends FilterPrimitiveElementSVGAttributes<T>,
1235
+ SingleInputFilterSVGAttributes,
1236
+ StylableSVGAttributes {}
1237
+
1238
+ interface FeCompositeSVGAttributes<T>
1239
+ extends FilterPrimitiveElementSVGAttributes<T>,
1240
+ DoubleInputFilterSVGAttributes,
1241
+ StylableSVGAttributes {
1242
+ operator?: 'over' | 'in' | 'out' | 'atop' | 'xor' | 'arithmetic';
1243
+ k1?: number | string;
1244
+ k2?: number | string;
1245
+ k3?: number | string;
1246
+ k4?: number | string;
1247
+ }
1248
+
1249
+ interface FeConvolveMatrixSVGAttributes<T>
1250
+ extends FilterPrimitiveElementSVGAttributes<T>,
1251
+ SingleInputFilterSVGAttributes,
1252
+ StylableSVGAttributes {
1253
+ order?: number | string;
1254
+ kernelMatrix?: string;
1255
+ divisor?: number | string;
1256
+ bias?: number | string;
1257
+ targetX?: number | string;
1258
+ targetY?: number | string;
1259
+ edgeMode?: 'duplicate' | 'wrap' | 'none';
1260
+ kernelUnitLength?: number | string;
1261
+ preserveAlpha?: 'true' | 'false';
1262
+ }
1263
+
1264
+ interface FeDiffuseLightingSVGAttributes<T>
1265
+ extends FilterPrimitiveElementSVGAttributes<T>,
1266
+ SingleInputFilterSVGAttributes,
1267
+ StylableSVGAttributes,
1268
+ Pick<PresentationSVGAttributes, 'color' | 'lighting-color'> {
1269
+ surfaceScale?: number | string;
1270
+ diffuseConstant?: number | string;
1271
+ kernelUnitLength?: number | string;
1272
+ }
1273
+
1274
+ interface FeDisplacementMapSVGAttributes<T>
1275
+ extends FilterPrimitiveElementSVGAttributes<T>,
1276
+ DoubleInputFilterSVGAttributes,
1277
+ StylableSVGAttributes {
1278
+ scale?: number | string;
1279
+ xChannelSelector?: 'R' | 'G' | 'B' | 'A';
1280
+ yChannelSelector?: 'R' | 'G' | 'B' | 'A';
1281
+ }
1282
+
1283
+ interface FeDistantLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1284
+ azimuth?: number | string;
1285
+ elevation?: number | string;
1286
+ }
1287
+
1288
+ interface FeFloodSVGAttributes<T>
1289
+ extends FilterPrimitiveElementSVGAttributes<T>,
1290
+ StylableSVGAttributes,
1291
+ Pick<PresentationSVGAttributes, 'color' | 'flood-color' | 'flood-opacity'> {}
1292
+
1293
+ interface FeFuncSVGAttributes<T> extends CoreSVGAttributes<T> {
1294
+ type?: 'identity' | 'table' | 'discrete' | 'linear' | 'gamma';
1295
+ tableValues?: string;
1296
+ slope?: number | string;
1297
+ intercept?: number | string;
1298
+ amplitude?: number | string;
1299
+ exponent?: number | string;
1300
+ offset?: number | string;
1301
+ }
1302
+
1303
+ interface FeGaussianBlurSVGAttributes<T>
1304
+ extends FilterPrimitiveElementSVGAttributes<T>,
1305
+ SingleInputFilterSVGAttributes,
1306
+ StylableSVGAttributes {
1307
+ stdDeviation?: number | string;
1308
+ }
1309
+
1310
+ interface FeImageSVGAttributes<T>
1311
+ extends FilterPrimitiveElementSVGAttributes<T>,
1312
+ // XLinkSVGAttributes,
1313
+ ExternalResourceSVGAttributes,
1314
+ StylableSVGAttributes {
1315
+ preserveAspectRatio: SVGPreserveAspectRatio;
1316
+ }
1317
+
1318
+ interface FeMergeSVGAttributes<T>
1319
+ extends FilterPrimitiveElementSVGAttributes<T>,
1320
+ StylableSVGAttributes {}
1321
+
1322
+ interface FeMergeNodeSVGAttributes<T>
1323
+ extends CoreSVGAttributes<T>,
1324
+ SingleInputFilterSVGAttributes {}
1325
+
1326
+ interface FeMorphologySVGAttributes<T>
1327
+ extends FilterPrimitiveElementSVGAttributes<T>,
1328
+ SingleInputFilterSVGAttributes,
1329
+ StylableSVGAttributes {
1330
+ operator?: 'erode' | 'dilate';
1331
+ radius?: number | string;
1332
+ }
1333
+
1334
+ interface FeOffsetSVGAttributes<T>
1335
+ extends FilterPrimitiveElementSVGAttributes<T>,
1336
+ SingleInputFilterSVGAttributes,
1337
+ StylableSVGAttributes {
1338
+ dx?: number | string;
1339
+ dy?: number | string;
1340
+ }
1341
+
1342
+ interface FePointLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1343
+ x?: number | string;
1344
+ y?: number | string;
1345
+ z?: number | string;
1346
+ }
1347
+
1348
+ interface FeSpecularLightingSVGAttributes<T>
1349
+ extends FilterPrimitiveElementSVGAttributes<T>,
1350
+ SingleInputFilterSVGAttributes,
1351
+ StylableSVGAttributes,
1352
+ Pick<PresentationSVGAttributes, 'color' | 'lighting-color'> {
1353
+ surfaceScale?: string;
1354
+ specularConstant?: string;
1355
+ specularExponent?: string;
1356
+ kernelUnitLength?: number | string;
1357
+ }
1358
+
1359
+ interface FeSpotLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1360
+ x?: number | string;
1361
+ y?: number | string;
1362
+ z?: number | string;
1363
+ pointsAtX?: number | string;
1364
+ pointsAtY?: number | string;
1365
+ pointsAtZ?: number | string;
1366
+ specularExponent?: number | string;
1367
+ limitingConeAngle?: number | string;
1368
+ }
1369
+
1370
+ interface FeTileSVGAttributes<T>
1371
+ extends FilterPrimitiveElementSVGAttributes<T>,
1372
+ SingleInputFilterSVGAttributes,
1373
+ StylableSVGAttributes {}
1374
+
1375
+ interface FeTurbulanceSVGAttributes<T>
1376
+ extends FilterPrimitiveElementSVGAttributes<T>,
1377
+ StylableSVGAttributes {
1378
+ baseFrequency?: number | string;
1379
+ numOctaves?: number | string;
1380
+ seed?: number | string;
1381
+ stitchTiles?: 'stitch' | 'noStitch';
1382
+ type?: 'fractalNoise' | 'turbulence';
1383
+ }
1384
+
1385
+ interface FilterSVGAttributes<T>
1386
+ extends CoreSVGAttributes<T>,
1387
+ // XLinkSVGAttributes,
1388
+ ExternalResourceSVGAttributes,
1389
+ StylableSVGAttributes {
1390
+ filterUnits?: SVGUnits;
1391
+ primitiveUnits?: SVGUnits;
1392
+ x?: number | string;
1393
+ y?: number | string;
1394
+ width?: number | string;
1395
+ height?: number | string;
1396
+ filterRes?: number | string;
1397
+ }
1398
+
1399
+ interface ForeignObjectSVGAttributes<T>
1400
+ extends NewViewportSVGAttributes<T>,
1401
+ ConditionalProcessingSVGAttributes,
1402
+ ExternalResourceSVGAttributes,
1403
+ StylableSVGAttributes,
1404
+ TransformableSVGAttributes,
1405
+ Pick<PresentationSVGAttributes, 'display' | 'visibility'> {
1406
+ x?: number | string;
1407
+ y?: number | string;
1408
+ width?: number | string;
1409
+ height?: number | string;
1410
+ }
1411
+
1412
+ interface GSVGAttributes<T>
1413
+ extends ContainerElementSVGAttributes<T>,
1414
+ ConditionalProcessingSVGAttributes,
1415
+ ExternalResourceSVGAttributes,
1416
+ StylableSVGAttributes,
1417
+ TransformableSVGAttributes,
1418
+ Pick<PresentationSVGAttributes, 'display' | 'visibility'> {}
1419
+
1420
+ interface ImageSVGAttributes<T>
1421
+ extends NewViewportSVGAttributes<T>,
1422
+ GraphicsElementSVGAttributes<T>,
1423
+ ConditionalProcessingSVGAttributes,
1424
+ // XLinkSVGAttributes,
1425
+ StylableSVGAttributes,
1426
+ TransformableSVGAttributes,
1427
+ Pick<PresentationSVGAttributes, 'color-profile' | 'image-rendering'> {
1428
+ x?: number | string;
1429
+ y?: number | string;
1430
+ width?: number | string;
1431
+ height?: number | string;
1432
+ preserveAspectRatio?: ImagePreserveAspectRatio;
1433
+ }
1434
+
1435
+ interface LineSVGAttributes<T>
1436
+ extends GraphicsElementSVGAttributes<T>,
1437
+ ShapeElementSVGAttributes<T>,
1438
+ ConditionalProcessingSVGAttributes,
1439
+ ExternalResourceSVGAttributes,
1440
+ StylableSVGAttributes,
1441
+ TransformableSVGAttributes,
1442
+ Pick<PresentationSVGAttributes, 'marker-start' | 'marker-mid' | 'marker-end'> {
1443
+ x1?: number | string;
1444
+ y1?: number | string;
1445
+ x2?: number | string;
1446
+ y2?: number | string;
1447
+ }
1448
+
1449
+ interface LinearGradientSVGAttributes<T> extends GradientElementSVGAttributes<T> {
1450
+ x1?: number | string;
1451
+ x2?: number | string;
1452
+ y1?: number | string;
1453
+ y2?: number | string;
1454
+ }
1455
+
1456
+ interface MarkerSVGAttributes<T>
1457
+ extends ContainerElementSVGAttributes<T>,
1458
+ ExternalResourceSVGAttributes,
1459
+ StylableSVGAttributes,
1460
+ FitToViewBoxSVGAttributes,
1461
+ Pick<PresentationSVGAttributes, 'overflow' | 'clip'> {
1462
+ markerUnits?: 'strokeWidth' | 'userSpaceOnUse';
1463
+ refX?: number | string;
1464
+ refY?: number | string;
1465
+ markerWidth?: number | string;
1466
+ markerHeight?: number | string;
1467
+ orient?: string;
1468
+ }
1469
+
1470
+ interface MaskSVGAttributes<T>
1471
+ extends Omit<ContainerElementSVGAttributes<T>, 'opacity' | 'filter'>,
1472
+ ConditionalProcessingSVGAttributes,
1473
+ ExternalResourceSVGAttributes,
1474
+ StylableSVGAttributes {
1475
+ maskUnits?: SVGUnits;
1476
+ maskContentUnits?: SVGUnits;
1477
+ x?: number | string;
1478
+ y?: number | string;
1479
+ width?: number | string;
1480
+ height?: number | string;
1481
+ }
1482
+
1483
+ interface MetadataSVGAttributes<T> extends CoreSVGAttributes<T> {}
1484
+
1485
+ interface PathSVGAttributes<T>
1486
+ extends GraphicsElementSVGAttributes<T>,
1487
+ ShapeElementSVGAttributes<T>,
1488
+ ConditionalProcessingSVGAttributes,
1489
+ ExternalResourceSVGAttributes,
1490
+ StylableSVGAttributes,
1491
+ TransformableSVGAttributes,
1492
+ Pick<PresentationSVGAttributes, 'marker-start' | 'marker-mid' | 'marker-end'> {
1493
+ d?: string;
1494
+ pathLength?: number | string;
1495
+ }
1496
+
1497
+ interface PatternSVGAttributes<T>
1498
+ extends ContainerElementSVGAttributes<T>,
1499
+ ConditionalProcessingSVGAttributes,
1500
+ // XLinkSVGAttributes,
1501
+ ExternalResourceSVGAttributes,
1502
+ StylableSVGAttributes,
1503
+ FitToViewBoxSVGAttributes,
1504
+ Pick<PresentationSVGAttributes, 'overflow' | 'clip'> {
1505
+ x?: number | string;
1506
+ y?: number | string;
1507
+ width?: number | string;
1508
+ height?: number | string;
1509
+ patternUnits?: SVGUnits;
1510
+ patternContentUnits?: SVGUnits;
1511
+ patternTransform?: string;
1512
+ }
1513
+
1514
+ interface PolygonSVGAttributes<T>
1515
+ extends GraphicsElementSVGAttributes<T>,
1516
+ ShapeElementSVGAttributes<T>,
1517
+ ConditionalProcessingSVGAttributes,
1518
+ ExternalResourceSVGAttributes,
1519
+ StylableSVGAttributes,
1520
+ TransformableSVGAttributes,
1521
+ Pick<PresentationSVGAttributes, 'marker-start' | 'marker-mid' | 'marker-end'> {
1522
+ points?: string;
1523
+ }
1524
+
1525
+ interface PolylineSVGAttributes<T>
1526
+ extends GraphicsElementSVGAttributes<T>,
1527
+ ShapeElementSVGAttributes<T>,
1528
+ ConditionalProcessingSVGAttributes,
1529
+ ExternalResourceSVGAttributes,
1530
+ StylableSVGAttributes,
1531
+ TransformableSVGAttributes,
1532
+ Pick<PresentationSVGAttributes, 'marker-start' | 'marker-mid' | 'marker-end'> {
1533
+ points?: string;
1534
+ }
1535
+
1536
+ interface RadialGradientSVGAttributes<T> extends GradientElementSVGAttributes<T> {
1537
+ cx?: number | string;
1538
+ cy?: number | string;
1539
+ r?: number | string;
1540
+ fx?: number | string;
1541
+ fy?: number | string;
1542
+ }
1543
+
1544
+ interface RectSVGAttributes<T>
1545
+ extends GraphicsElementSVGAttributes<T>,
1546
+ ShapeElementSVGAttributes<T>,
1547
+ ConditionalProcessingSVGAttributes,
1548
+ ExternalResourceSVGAttributes,
1549
+ StylableSVGAttributes,
1550
+ TransformableSVGAttributes {
1551
+ x?: number | string;
1552
+ y?: number | string;
1553
+ width?: number | string;
1554
+ height?: number | string;
1555
+ rx?: number | string;
1556
+ ry?: number | string;
1557
+ }
1558
+
1559
+ interface StopSVGAttributes<T>
1560
+ extends CoreSVGAttributes<T>,
1561
+ StylableSVGAttributes,
1562
+ Pick<PresentationSVGAttributes, 'color' | 'stop-color' | 'stop-opacity'> {
1563
+ offset?: number | string;
1564
+ }
1565
+
1566
+ interface SvgSVGAttributes<T>
1567
+ extends ContainerElementSVGAttributes<T>,
1568
+ NewViewportSVGAttributes<T>,
1569
+ ConditionalProcessingSVGAttributes,
1570
+ ExternalResourceSVGAttributes,
1571
+ StylableSVGAttributes,
1572
+ FitToViewBoxSVGAttributes,
1573
+ ZoomAndPanSVGAttributes,
1574
+ Pick<PresentationSVGAttributes, 'display' | 'visibility'> {
1575
+ xmlns?: string;
1576
+ version?: string;
1577
+ 'base-profile'?: string;
1578
+ x?: number | string;
1579
+ y?: number | string;
1580
+ width?: number | string;
1581
+ height?: number | string;
1582
+ contentScriptType?: string;
1583
+ contentStyleType?: string;
1584
+ }
1585
+
1586
+ interface SwitchSVGAttributes<T>
1587
+ extends ContainerElementSVGAttributes<T>,
1588
+ ConditionalProcessingSVGAttributes,
1589
+ ExternalResourceSVGAttributes,
1590
+ StylableSVGAttributes,
1591
+ TransformableSVGAttributes,
1592
+ Pick<PresentationSVGAttributes, 'display' | 'visibility'> {}
1593
+
1594
+ interface SymbolSVGAttributes<T>
1595
+ extends ContainerElementSVGAttributes<T>,
1596
+ NewViewportSVGAttributes<T>,
1597
+ ExternalResourceSVGAttributes,
1598
+ StylableSVGAttributes,
1599
+ FitToViewBoxSVGAttributes {}
1600
+
1601
+ interface TextSVGAttributes<T>
1602
+ extends TextContentElementSVGAttributes<T>,
1603
+ GraphicsElementSVGAttributes<T>,
1604
+ ConditionalProcessingSVGAttributes,
1605
+ ExternalResourceSVGAttributes,
1606
+ StylableSVGAttributes,
1607
+ TransformableSVGAttributes,
1608
+ Pick<PresentationSVGAttributes, 'writing-mode' | 'text-rendering'> {
1609
+ x?: number | string;
1610
+ y?: number | string;
1611
+ dx?: number | string;
1612
+ dy?: number | string;
1613
+ rotate?: number | string;
1614
+ textLength?: number | string;
1615
+ lengthAdjust?: 'spacing' | 'spacingAndGlyphs';
1616
+ }
1617
+
1618
+ interface TextPathSVGAttributes<T>
1619
+ extends TextContentElementSVGAttributes<T>,
1620
+ ConditionalProcessingSVGAttributes,
1621
+ // XLinkSVGAttributes,
1622
+ ExternalResourceSVGAttributes,
1623
+ StylableSVGAttributes,
1624
+ Pick<
1625
+ PresentationSVGAttributes,
1626
+ 'alignment-baseline' | 'baseline-shift' | 'display' | 'visibility'
1627
+ > {
1628
+ startOffset?: number | string;
1629
+ method?: 'align' | 'stretch';
1630
+ spacing?: 'auto' | 'exact';
1631
+ }
1632
+
1633
+ interface TSpanSVGAttributes<T>
1634
+ extends TextContentElementSVGAttributes<T>,
1635
+ ConditionalProcessingSVGAttributes,
1636
+ ExternalResourceSVGAttributes,
1637
+ StylableSVGAttributes,
1638
+ Pick<
1639
+ PresentationSVGAttributes,
1640
+ 'alignment-baseline' | 'baseline-shift' | 'display' | 'visibility'
1641
+ > {
1642
+ x?: number | string;
1643
+ y?: number | string;
1644
+ dx?: number | string;
1645
+ dy?: number | string;
1646
+ rotate?: number | string;
1647
+ textLength?: number | string;
1648
+ lengthAdjust?: 'spacing' | 'spacingAndGlyphs';
1649
+ }
1650
+
1651
+ interface UseSVGAttributes<T>
1652
+ extends GraphicsElementSVGAttributes<T>,
1653
+ ConditionalProcessingSVGAttributes,
1654
+ // XLinkSVGAttributes,
1655
+ ExternalResourceSVGAttributes,
1656
+ StylableSVGAttributes,
1657
+ TransformableSVGAttributes {
1658
+ x?: number | string;
1659
+ y?: number | string;
1660
+ width?: number | string;
1661
+ height?: number | string;
1662
+ fill?: number | string;
1663
+ }
1664
+
1665
+ interface ViewSVGAttributes<T>
1666
+ extends CoreSVGAttributes<T>,
1667
+ ExternalResourceSVGAttributes,
1668
+ FitToViewBoxSVGAttributes,
1669
+ ZoomAndPanSVGAttributes {
1670
+ viewTarget?: string;
1671
+ }
1672
+
1673
+ interface IntrinsicElements {
1674
+ // HTML
1675
+ a: AnchorHTMLAttributes<HTMLAnchorElement>;
1676
+ abbr: HTMLAttributes<HTMLElement>;
1677
+ address: HTMLAttributes<HTMLElement>;
1678
+ area: AreaHTMLAttributes<HTMLAreaElement>;
1679
+ article: HTMLAttributes<HTMLElement>;
1680
+ aside: HTMLAttributes<HTMLElement>;
1681
+ audio: AudioHTMLAttributes<HTMLAudioElement>;
1682
+ b: HTMLAttributes<HTMLElement>;
1683
+ base: BaseHTMLAttributes<HTMLBaseElement>;
1684
+ bdi: HTMLAttributes<HTMLElement>;
1685
+ bdo: HTMLAttributes<HTMLElement>;
1686
+ big: HTMLAttributes<HTMLElement>;
1687
+ blockquote: BlockquoteHTMLAttributes<HTMLElement>;
1688
+ body: HTMLAttributes<HTMLBodyElement>;
1689
+ br: HTMLAttributes<HTMLBRElement>;
1690
+ button: ButtonHTMLAttributes<HTMLButtonElement>;
1691
+ canvas: CanvasHTMLAttributes<HTMLCanvasElement>;
1692
+ caption: HTMLAttributes<HTMLElement>;
1693
+ cite: HTMLAttributes<HTMLElement>;
1694
+ code: HTMLAttributes<HTMLElement>;
1695
+ col: ColHTMLAttributes<HTMLTableColElement>;
1696
+ colgroup: ColgroupHTMLAttributes<HTMLTableColElement>;
1697
+ data: DataHTMLAttributes<HTMLElement>;
1698
+ datalist: HTMLAttributes<HTMLDataListElement>;
1699
+ dd: HTMLAttributes<HTMLElement>;
1700
+ del: HTMLAttributes<HTMLElement>;
1701
+ details: DetailsHtmlAttributes<HTMLElement>;
1702
+ dfn: HTMLAttributes<HTMLElement>;
1703
+ dialog: DialogHtmlAttributes<HTMLElement>;
1704
+ div: HTMLAttributes<HTMLDivElement>;
1705
+ dl: HTMLAttributes<HTMLDListElement>;
1706
+ dt: HTMLAttributes<HTMLElement>;
1707
+ em: HTMLAttributes<HTMLElement>;
1708
+ embed: EmbedHTMLAttributes<HTMLEmbedElement>;
1709
+ fieldset: FieldsetHTMLAttributes<HTMLFieldSetElement>;
1710
+ figcaption: HTMLAttributes<HTMLElement>;
1711
+ figure: HTMLAttributes<HTMLElement>;
1712
+ footer: HTMLAttributes<HTMLElement>;
1713
+ form: FormHTMLAttributes<HTMLFormElement>;
1714
+ h1: HTMLAttributes<HTMLHeadingElement>;
1715
+ h2: HTMLAttributes<HTMLHeadingElement>;
1716
+ h3: HTMLAttributes<HTMLHeadingElement>;
1717
+ h4: HTMLAttributes<HTMLHeadingElement>;
1718
+ h5: HTMLAttributes<HTMLHeadingElement>;
1719
+ h6: HTMLAttributes<HTMLHeadingElement>;
1720
+ head: HTMLAttributes<HTMLHeadElement>;
1721
+ header: HTMLAttributes<HTMLElement>;
1722
+ hgroup: HTMLAttributes<HTMLElement>;
1723
+ hr: HTMLAttributes<HTMLHRElement>;
1724
+ html: HTMLAttributes<HTMLHtmlElement>;
1725
+ i: HTMLAttributes<HTMLElement>;
1726
+ iframe: IframeHTMLAttributes<HTMLIFrameElement>;
1727
+ img: ImgHTMLAttributes<HTMLImageElement>;
1728
+ input: InputHTMLAttributes<HTMLInputElement>;
1729
+ ins: InsHTMLAttributes<HTMLModElement>;
1730
+ kbd: HTMLAttributes<HTMLElement>;
1731
+ keygen: KeygenHTMLAttributes<HTMLElement>;
1732
+ label: LabelHTMLAttributes<HTMLLabelElement>;
1733
+ legend: HTMLAttributes<HTMLLegendElement>;
1734
+ li: LiHTMLAttributes<HTMLLIElement>;
1735
+ link: LinkHTMLAttributes<HTMLLinkElement>;
1736
+ main: HTMLAttributes<HTMLElement>;
1737
+ map: MapHTMLAttributes<HTMLMapElement>;
1738
+ mark: HTMLAttributes<HTMLElement>;
1739
+ menu: MenuHTMLAttributes<HTMLElement>;
1740
+ menuitem: HTMLAttributes<HTMLElement>;
1741
+ meta: MetaHTMLAttributes<HTMLMetaElement>;
1742
+ meter: MeterHTMLAttributes<HTMLElement>;
1743
+ nav: HTMLAttributes<HTMLElement>;
1744
+ noindex: HTMLAttributes<HTMLElement>;
1745
+ noscript: HTMLAttributes<HTMLElement>;
1746
+ object: ObjectHTMLAttributes<HTMLObjectElement>;
1747
+ ol: OlHTMLAttributes<HTMLOListElement>;
1748
+ optgroup: OptgroupHTMLAttributes<HTMLOptGroupElement>;
1749
+ option: OptionHTMLAttributes<HTMLOptionElement>;
1750
+ output: OutputHTMLAttributes<HTMLElement>;
1751
+ p: HTMLAttributes<HTMLParagraphElement>;
1752
+ param: ParamHTMLAttributes<HTMLParamElement>;
1753
+ picture: HTMLAttributes<HTMLElement>;
1754
+ pre: HTMLAttributes<HTMLPreElement>;
1755
+ progress: ProgressHTMLAttributes<HTMLProgressElement>;
1756
+ q: QuoteHTMLAttributes<HTMLQuoteElement>;
1757
+ rp: HTMLAttributes<HTMLElement>;
1758
+ rt: HTMLAttributes<HTMLElement>;
1759
+ ruby: HTMLAttributes<HTMLElement>;
1760
+ s: HTMLAttributes<HTMLElement>;
1761
+ samp: HTMLAttributes<HTMLElement>;
1762
+ script: ScriptHTMLAttributes<HTMLElement>;
1763
+ section: HTMLAttributes<HTMLElement>;
1764
+ select: SelectHTMLAttributes<HTMLSelectElement>;
1765
+ slot: HTMLSlotElementAttributes;
1766
+ small: HTMLAttributes<HTMLElement>;
1767
+ source: SourceHTMLAttributes<HTMLSourceElement>;
1768
+ span: HTMLAttributes<HTMLSpanElement>;
1769
+ strong: HTMLAttributes<HTMLElement>;
1770
+ style: StyleHTMLAttributes<HTMLStyleElement>;
1771
+ sub: HTMLAttributes<HTMLElement>;
1772
+ summary: HTMLAttributes<HTMLElement>;
1773
+ sup: HTMLAttributes<HTMLElement>;
1774
+ table: HTMLAttributes<HTMLTableElement>;
1775
+ tbody: HTMLAttributes<HTMLTableSectionElement>;
1776
+ td: TdHTMLAttributes<HTMLTableDataCellElement>;
1777
+ textarea: TextareaHTMLAttributes<HTMLTextAreaElement>;
1778
+ tfoot: HTMLAttributes<HTMLTableSectionElement>;
1779
+ th: ThHTMLAttributes<HTMLTableHeaderCellElement>;
1780
+ thead: HTMLAttributes<HTMLTableSectionElement>;
1781
+ time: TimeHTMLAttributes<HTMLElement>;
1782
+ title: HTMLAttributes<HTMLTitleElement>;
1783
+ tr: HTMLAttributes<HTMLTableRowElement>;
1784
+ track: TrackHTMLAttributes<HTMLTrackElement>;
1785
+ u: HTMLAttributes<HTMLElement>;
1786
+ ul: HTMLAttributes<HTMLUListElement>;
1787
+ var: HTMLAttributes<HTMLElement>;
1788
+ video: VideoHTMLAttributes<HTMLVideoElement>;
1789
+ wbr: HTMLAttributes<HTMLElement>;
1790
+ template: HTMLAttributes<HTMLTemplateElement>;
1791
+
1792
+ // SVG
1793
+ svg: SvgSVGAttributes<SVGSVGElement>;
1794
+
1795
+ animate: AnimateSVGAttributes<SVGAnimateElement>;
1796
+ animateMotion: AnimateMotionSVGAttributes<SVGAnimateMotionElement>;
1797
+ animateTransform: AnimateTransformSVGAttributes<SVGAnimateTransformElement>;
1798
+ circle: CircleSVGAttributes<SVGCircleElement>;
1799
+ clipPath: ClipPathSVGAttributes<SVGClipPathElement>;
1800
+ defs: DefsSVGAttributes<SVGDefsElement>;
1801
+ desc: DescSVGAttributes<SVGDescElement>;
1802
+ ellipse: EllipseSVGAttributes<SVGEllipseElement>;
1803
+ feBlend: FeBlendSVGAttributes<SVGFEBlendElement>;
1804
+ feColorMatrix: FeColorMatrixSVGAttributes<SVGFEColorMatrixElement>;
1805
+ feComponentTransfer: FeComponentTransferSVGAttributes<SVGFEComponentTransferElement>;
1806
+ feComposite: FeCompositeSVGAttributes<SVGFECompositeElement>;
1807
+ feConvolveMatrix: FeConvolveMatrixSVGAttributes<SVGFEConvolveMatrixElement>;
1808
+ feDiffuseLighting: FeDiffuseLightingSVGAttributes<SVGFEDiffuseLightingElement>;
1809
+ feDisplacementMap: FeDisplacementMapSVGAttributes<SVGFEDisplacementMapElement>;
1810
+ feDistantLight: FeDistantLightSVGAttributes<SVGFEDistantLightElement>;
1811
+ feFlood: FeFloodSVGAttributes<SVGFEFloodElement>;
1812
+ feFuncA: FeFuncSVGAttributes<SVGFEFuncAElement>;
1813
+ feFuncB: FeFuncSVGAttributes<SVGFEFuncBElement>;
1814
+ feFuncG: FeFuncSVGAttributes<SVGFEFuncGElement>;
1815
+ feFuncR: FeFuncSVGAttributes<SVGFEFuncRElement>;
1816
+ feGaussianBlur: FeGaussianBlurSVGAttributes<SVGFEGaussianBlurElement>;
1817
+ feImage: FeImageSVGAttributes<SVGFEImageElement>;
1818
+ feMerge: FeMergeSVGAttributes<SVGFEMergeElement>;
1819
+ feMergeNode: FeMergeNodeSVGAttributes<SVGFEMergeNodeElement>;
1820
+ feMorphology: FeMorphologySVGAttributes<SVGFEMorphologyElement>;
1821
+ feOffset: FeOffsetSVGAttributes<SVGFEOffsetElement>;
1822
+ fePointLight: FePointLightSVGAttributes<SVGFEPointLightElement>;
1823
+ feSpecularLighting: FeSpecularLightingSVGAttributes<SVGFESpecularLightingElement>;
1824
+ feSpotLight: FeSpotLightSVGAttributes<SVGFESpotLightElement>;
1825
+ feTile: FeTileSVGAttributes<SVGFETileElement>;
1826
+ feTurbulence: FeTurbulanceSVGAttributes<SVGFETurbulenceElement>;
1827
+ filter: FilterSVGAttributes<SVGFilterElement>;
1828
+ foreignObject: ForeignObjectSVGAttributes<SVGForeignObjectElement>;
1829
+ g: GSVGAttributes<SVGGElement>;
1830
+ image: ImageSVGAttributes<SVGImageElement>;
1831
+ line: LineSVGAttributes<SVGLineElement>;
1832
+ linearGradient: LinearGradientSVGAttributes<SVGLinearGradientElement>;
1833
+ marker: MarkerSVGAttributes<SVGMarkerElement>;
1834
+ mask: MaskSVGAttributes<SVGMaskElement>;
1835
+ metadata: MetadataSVGAttributes<SVGMetadataElement>;
1836
+ path: PathSVGAttributes<SVGPathElement>;
1837
+ pattern: PatternSVGAttributes<SVGPatternElement>;
1838
+ polygon: PolygonSVGAttributes<SVGPolygonElement>;
1839
+ polyline: PolylineSVGAttributes<SVGPolylineElement>;
1840
+ radialGradient: RadialGradientSVGAttributes<SVGRadialGradientElement>;
1841
+ rect: RectSVGAttributes<SVGRectElement>;
1842
+ stop: StopSVGAttributes<SVGStopElement>;
1843
+ switch: SwitchSVGAttributes<SVGSwitchElement>;
1844
+ symbol: SymbolSVGAttributes<SVGSymbolElement>;
1845
+ text: TextSVGAttributes<SVGTextElement>;
1846
+ textPath: TextPathSVGAttributes<SVGTextPathElement>;
1847
+ tspan: TSpanSVGAttributes<SVGTSpanElement>;
1848
+ use: UseSVGAttributes<SVGUseElement>;
1849
+ view: ViewSVGAttributes<SVGViewElement>;
1850
+ }
1851
+
1852
+ type AriaRole =
1853
+ | 'alert'
1854
+ | 'alertdialog'
1855
+ | 'application'
1856
+ | 'article'
1857
+ | 'banner'
1858
+ | 'button'
1859
+ | 'cell'
1860
+ | 'checkbox'
1861
+ | 'columnheader'
1862
+ | 'combobox'
1863
+ | 'complementary'
1864
+ | 'contentinfo'
1865
+ | 'definition'
1866
+ | 'dialog'
1867
+ | 'directory'
1868
+ | 'document'
1869
+ | 'feed'
1870
+ | 'figure'
1871
+ | 'form'
1872
+ | 'grid'
1873
+ | 'gridcell'
1874
+ | 'group'
1875
+ | 'heading'
1876
+ | 'img'
1877
+ | 'link'
1878
+ | 'list'
1879
+ | 'listbox'
1880
+ | 'listitem'
1881
+ | 'log'
1882
+ | 'main'
1883
+ | 'marquee'
1884
+ | 'math'
1885
+ | 'menu'
1886
+ | 'menubar'
1887
+ | 'menuitem'
1888
+ | 'menuitemcheckbox'
1889
+ | 'menuitemradio'
1890
+ | 'navigation'
1891
+ | 'none'
1892
+ | 'note'
1893
+ | 'option'
1894
+ | 'presentation'
1895
+ | 'progressbar'
1896
+ | 'radio'
1897
+ | 'radiogroup'
1898
+ | 'region'
1899
+ | 'row'
1900
+ | 'rowgroup'
1901
+ | 'rowheader'
1902
+ | 'scrollbar'
1903
+ | 'search'
1904
+ | 'searchbox'
1905
+ | 'separator'
1906
+ | 'slider'
1907
+ | 'spinbutton'
1908
+ | 'status'
1909
+ | 'switch'
1910
+ | 'tab'
1911
+ | 'table'
1912
+ | 'tablist'
1913
+ | 'tabpanel'
1914
+ | 'term'
1915
+ | 'textbox'
1916
+ | 'timer'
1917
+ | 'toolbar'
1918
+ | 'tooltip'
1919
+ | 'tree'
1920
+ | 'treegrid'
1921
+ | 'treeitem'
1922
+ | (string & {});
1923
+
1924
+ type Booleanish = boolean | 'true' | 'false';
1925
+
1926
+ interface AriaAttributes {
1927
+ /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
1928
+ 'aria-activedescendant'?: string | undefined;
1929
+ /** 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. */
1930
+ 'aria-atomic'?: Booleanish | undefined;
1931
+ /**
1932
+ * 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
1933
+ * presented if they are made.
1934
+ */
1935
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
1936
+ /** 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. */
1937
+ 'aria-busy'?: Booleanish | undefined;
1938
+ /**
1939
+ * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
1940
+ * @see aria-pressed @see aria-selected.
1941
+ */
1942
+ 'aria-checked'?: boolean | 'false' | 'mixed' | 'true' | undefined;
1943
+ /**
1944
+ * Defines the total number of columns in a table, grid, or treegrid.
1945
+ * @see aria-colindex.
1946
+ */
1947
+ 'aria-colcount'?: number | undefined;
1948
+ /**
1949
+ * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
1950
+ * @see aria-colcount @see aria-colspan.
1951
+ */
1952
+ 'aria-colindex'?: number | undefined;
1953
+ /**
1954
+ * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
1955
+ * @see aria-colindex @see aria-rowspan.
1956
+ */
1957
+ 'aria-colspan'?: number | undefined;
1958
+ /**
1959
+ * Identifies the element (or elements) whose contents or presence are controlled by the current element.
1960
+ * @see aria-owns.
1961
+ */
1962
+ 'aria-controls'?: string | undefined;
1963
+ /** Indicates the element that represents the current item within a container or set of related elements. */
1964
+ 'aria-current'?:
1965
+ | boolean
1966
+ | 'false'
1967
+ | 'true'
1968
+ | 'page'
1969
+ | 'step'
1970
+ | 'location'
1971
+ | 'date'
1972
+ | 'time'
1973
+ | undefined;
1974
+ /**
1975
+ * Identifies the element (or elements) that describes the object.
1976
+ * @see aria-labelledby
1977
+ */
1978
+ 'aria-describedby'?: string | undefined;
1979
+ /**
1980
+ * Identifies the element that provides a detailed, extended description for the object.
1981
+ * @see aria-describedby.
1982
+ */
1983
+ 'aria-details'?: string | undefined;
1984
+ /**
1985
+ * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
1986
+ * @see aria-hidden @see aria-readonly.
1987
+ */
1988
+ 'aria-disabled'?: Booleanish | undefined;
1989
+ /**
1990
+ * Indicates what functions can be performed when a dragged object is released on the drop target.
1991
+ * @deprecated in ARIA 1.1
1992
+ */
1993
+ 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined;
1994
+ /**
1995
+ * Identifies the element that provides an error message for the object.
1996
+ * @see aria-invalid @see aria-describedby.
1997
+ */
1998
+ 'aria-errormessage'?: string | undefined;
1999
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
2000
+ 'aria-expanded'?: Booleanish | undefined;
2001
+ /**
2002
+ * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
2003
+ * allows assistive technology to override the general default of reading in document source order.
2004
+ */
2005
+ 'aria-flowto'?: string | undefined;
2006
+ /**
2007
+ * Indicates an element's "grabbed" state in a drag-and-drop operation.
2008
+ * @deprecated in ARIA 1.1
2009
+ */
2010
+ 'aria-grabbed'?: Booleanish | undefined;
2011
+ /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
2012
+ 'aria-haspopup'?:
2013
+ | boolean
2014
+ | 'false'
2015
+ | 'true'
2016
+ | 'menu'
2017
+ | 'listbox'
2018
+ | 'tree'
2019
+ | 'grid'
2020
+ | 'dialog'
2021
+ | undefined;
2022
+ /**
2023
+ * Indicates whether the element is exposed to an accessibility API.
2024
+ * @see aria-disabled.
2025
+ */
2026
+ 'aria-hidden'?: Booleanish | undefined;
2027
+ /**
2028
+ * Indicates the entered value does not conform to the format expected by the application.
2029
+ * @see aria-errormessage.
2030
+ */
2031
+ 'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling' | undefined;
2032
+ /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
2033
+ 'aria-keyshortcuts'?: string | undefined;
2034
+ /**
2035
+ * Defines a string value that labels the current element.
2036
+ * @see aria-labelledby.
2037
+ */
2038
+ 'aria-label'?: string | undefined;
2039
+ /**
2040
+ * Identifies the element (or elements) that labels the current element.
2041
+ * @see aria-describedby.
2042
+ */
2043
+ 'aria-labelledby'?: string | undefined;
2044
+ /** Defines the hierarchical level of an element within a structure. */
2045
+ 'aria-level'?: number | undefined;
2046
+ /** 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. */
2047
+ 'aria-live'?: 'off' | 'assertive' | 'polite' | undefined;
2048
+ /** Indicates whether an element is modal when displayed. */
2049
+ 'aria-modal'?: Booleanish | undefined;
2050
+ /** Indicates whether a text box accepts multiple lines of input or only a single line. */
2051
+ 'aria-multiline'?: Booleanish | undefined;
2052
+ /** Indicates that the user may select more than one item from the current selectable descendants. */
2053
+ 'aria-multiselectable'?: Booleanish | undefined;
2054
+ /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
2055
+ 'aria-orientation'?: 'horizontal' | 'vertical' | undefined;
2056
+ /**
2057
+ * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
2058
+ * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
2059
+ * @see aria-controls.
2060
+ */
2061
+ 'aria-owns'?: string | undefined;
2062
+ /**
2063
+ * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
2064
+ * A hint could be a sample value or a brief description of the expected format.
2065
+ */
2066
+ 'aria-placeholder'?: string | undefined;
2067
+ /**
2068
+ * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
2069
+ * @see aria-setsize.
2070
+ */
2071
+ 'aria-posinset'?: number | undefined;
2072
+ /**
2073
+ * Indicates the current "pressed" state of toggle buttons.
2074
+ * @see aria-checked @see aria-selected.
2075
+ */
2076
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true' | undefined;
2077
+ /**
2078
+ * Indicates that the element is not editable, but is otherwise operable.
2079
+ * @see aria-disabled.
2080
+ */
2081
+ 'aria-readonly'?: Booleanish | undefined;
2082
+ /**
2083
+ * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
2084
+ * @see aria-atomic.
2085
+ */
2086
+ 'aria-relevant'?:
2087
+ | 'additions'
2088
+ | 'additions removals'
2089
+ | 'additions text'
2090
+ | 'all'
2091
+ | 'removals'
2092
+ | 'removals additions'
2093
+ | 'removals text'
2094
+ | 'text'
2095
+ | 'text additions'
2096
+ | 'text removals'
2097
+ | undefined;
2098
+ /** Indicates that user input is required on the element before a form may be submitted. */
2099
+ 'aria-required'?: Booleanish | undefined;
2100
+ /** Defines a human-readable, author-localized description for the role of an element. */
2101
+ 'aria-roledescription'?: string | undefined;
2102
+ /**
2103
+ * Defines the total number of rows in a table, grid, or treegrid.
2104
+ * @see aria-rowindex.
2105
+ */
2106
+ 'aria-rowcount'?: number | undefined;
2107
+ /**
2108
+ * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
2109
+ * @see aria-rowcount @see aria-rowspan.
2110
+ */
2111
+ 'aria-rowindex'?: number | undefined;
2112
+ /**
2113
+ * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
2114
+ * @see aria-rowindex @see aria-colspan.
2115
+ */
2116
+ 'aria-rowspan'?: number | undefined;
2117
+ /**
2118
+ * Indicates the current "selected" state of various widgets.
2119
+ * @see aria-checked @see aria-pressed.
2120
+ */
2121
+ 'aria-selected'?: Booleanish | undefined;
2122
+ /**
2123
+ * 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.
2124
+ * @see aria-posinset.
2125
+ */
2126
+ 'aria-setsize'?: number | undefined;
2127
+ /** Indicates if items in a table or grid are sorted in ascending or descending order. */
2128
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined;
2129
+ /** Defines the maximum allowed value for a range widget. */
2130
+ 'aria-valuemax'?: number | undefined;
2131
+ /** Defines the minimum allowed value for a range widget. */
2132
+ 'aria-valuemin'?: number | undefined;
2133
+ /**
2134
+ * Defines the current value for a range widget.
2135
+ * @see aria-valuetext.
2136
+ */
2137
+ 'aria-valuenow'?: number | undefined;
2138
+ /** Defines the human readable text alternative of aria-valuenow for a range widget. */
2139
+ 'aria-valuetext'?: string | undefined;
2140
+ }
2141
+ }
2142
+
2143
+ export {};