govuk_publishing_components 17.21.0 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (476) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/all_components.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -1
  4. data/app/assets/javascripts/govuk_publishing_components/components/character-count.js +1 -1
  5. data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +1 -1
  6. data/app/assets/javascripts/govuk_publishing_components/components/error-summary.js +1 -1
  7. data/app/assets/javascripts/govuk_publishing_components/components/radio.js +1 -1
  8. data/app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js +1 -1
  9. data/app/assets/stylesheets/component_guide/application.scss +5 -7
  10. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +1 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +5 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +3 -15
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +1 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +2 -2
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +28 -9
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +1 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +1 -1
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -2
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +1 -1
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +1 -13
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +1 -1
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +1 -1
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +3 -3
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +3 -3
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +1 -1
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +18 -7
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +1 -1
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +1 -1
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +1 -1
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-admin.scss +1 -1
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +6 -6
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +8 -3
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -1
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +6 -3
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -1
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +10 -3
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +1 -1
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +1 -1
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +3 -3
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +17 -1
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +8 -6
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +1 -1
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +1 -1
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +5 -5
  53. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
  54. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +1 -1
  55. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +2 -2
  56. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -1
  57. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +2 -2
  58. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +2 -2
  59. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +2 -2
  60. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +2 -2
  61. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -2
  62. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +2 -2
  63. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -2
  64. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +2 -2
  65. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -1
  66. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +1 -1
  67. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
  68. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -1
  69. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +2 -2
  70. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +4 -4
  71. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
  72. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +2 -2
  73. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +0 -4
  74. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +4 -1
  75. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +1 -1
  76. data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +1 -1
  77. data/app/views/govuk_publishing_components/component_guide/index.html.erb +14 -12
  78. data/app/views/govuk_publishing_components/components/_accordion.html.erb +1 -1
  79. data/app/views/govuk_publishing_components/components/_button.html.erb +16 -2
  80. data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
  81. data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +1 -1
  82. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +5 -1
  83. data/app/views/govuk_publishing_components/components/_details.html.erb +3 -1
  84. data/app/views/govuk_publishing_components/components/_error_summary.html.erb +1 -1
  85. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -2
  86. data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
  87. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +2 -2
  88. data/app/views/govuk_publishing_components/components/_tabs.html.erb +1 -1
  89. data/app/views/govuk_publishing_components/components/_textarea.html.erb +1 -1
  90. data/app/views/govuk_publishing_components/components/_title.html.erb +1 -1
  91. data/app/views/govuk_publishing_components/components/docs/button.yml +1 -1
  92. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +12 -0
  93. data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
  94. data/app/views/govuk_publishing_components/components/docs/fieldset.yml +1 -1
  95. data/app/views/govuk_publishing_components/components/docs/label.yml +4 -1
  96. data/app/views/govuk_publishing_components/components/docs/table.yml +1 -0
  97. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +2 -2
  98. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +2 -2
  99. data/config/initializers/assets.rb +3 -3
  100. data/config/locales/en.yml +0 -2
  101. data/lib/govuk_publishing_components/version.rb +1 -1
  102. data/node_modules/govuk-frontend/README.md +4 -9
  103. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +4 -5
  104. data/node_modules/govuk-frontend/{all-ie8.scss → govuk/all-ie8.scss} +0 -0
  105. data/node_modules/govuk-frontend/{all.js → govuk/all.js} +116 -63
  106. data/node_modules/govuk-frontend/{all.scss → govuk/all.scss} +0 -0
  107. data/node_modules/govuk-frontend/govuk/assets/fonts/bold-affa96571d-v2.woff +0 -0
  108. data/node_modules/govuk-frontend/govuk/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
  109. data/node_modules/govuk-frontend/govuk/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
  110. data/node_modules/govuk-frontend/govuk/assets/fonts/light-f591b13f7d-v2.woff +0 -0
  111. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/favicon.ico +0 -0
  112. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-152x152.png +0 -0
  113. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-167x167.png +0 -0
  114. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-180x180.png +0 -0
  115. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon.png +0 -0
  116. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-crest-2x.png +0 -0
  117. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-crest.png +0 -0
  118. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-logotype-crown.png +0 -0
  119. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-mask-icon.svg +0 -0
  120. data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-opengraph-image.png +0 -0
  121. data/node_modules/govuk-frontend/{common.js → govuk/common.js} +0 -0
  122. data/node_modules/govuk-frontend/{components → govuk/components}/_all.scss +0 -0
  123. data/node_modules/govuk-frontend/{components → govuk/components}/accordion/README.md +0 -0
  124. data/node_modules/govuk-frontend/{components → govuk/components}/accordion/_accordion.scss +48 -28
  125. data/node_modules/govuk-frontend/{components → govuk/components}/accordion/accordion.js +0 -0
  126. data/node_modules/govuk-frontend/{components → govuk/components}/accordion/macro-options.json +8 -2
  127. data/node_modules/govuk-frontend/{components → govuk/components}/accordion/macro.njk +0 -0
  128. data/node_modules/govuk-frontend/{components → govuk/components}/accordion/template.njk +1 -3
  129. data/node_modules/govuk-frontend/{components → govuk/components}/back-link/README.md +0 -0
  130. data/node_modules/govuk-frontend/{components → govuk/components}/back-link/_back-link.scss +17 -9
  131. data/node_modules/govuk-frontend/{components → govuk/components}/back-link/macro-options.json +0 -0
  132. data/node_modules/govuk-frontend/{components → govuk/components}/back-link/macro.njk +0 -0
  133. data/node_modules/govuk-frontend/{components → govuk/components}/back-link/template.njk +0 -0
  134. data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/README.md +0 -0
  135. data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/_breadcrumbs.scss +10 -11
  136. data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/macro-options.json +0 -0
  137. data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/macro.njk +0 -0
  138. data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/template.njk +0 -0
  139. data/node_modules/govuk-frontend/{components → govuk/components}/button/README.md +0 -0
  140. data/node_modules/govuk-frontend/{components → govuk/components}/button/_button.scss +76 -46
  141. data/node_modules/govuk-frontend/{components → govuk/components}/button/button.js +168 -17
  142. data/node_modules/govuk-frontend/{components → govuk/components}/button/macro-options.json +0 -0
  143. data/node_modules/govuk-frontend/{components → govuk/components}/button/macro.njk +0 -0
  144. data/node_modules/govuk-frontend/govuk/components/button/template.njk +60 -0
  145. data/node_modules/govuk-frontend/{components → govuk/components}/character-count/README.md +0 -0
  146. data/node_modules/govuk-frontend/{components → govuk/components}/character-count/_character-count.scss +0 -0
  147. data/node_modules/govuk-frontend/{components → govuk/components}/character-count/character-count.js +5 -1
  148. data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro-options.json +0 -0
  149. data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro.njk +0 -0
  150. data/node_modules/govuk-frontend/{components → govuk/components}/character-count/template.njk +2 -2
  151. data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/README.md +0 -0
  152. data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/_checkboxes.scss +4 -6
  153. data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/checkboxes.js +0 -0
  154. data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro-options.json +6 -0
  155. data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro.njk +0 -0
  156. data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/template.njk +18 -5
  157. data/node_modules/govuk-frontend/{components → govuk/components}/date-input/README.md +0 -0
  158. data/node_modules/govuk-frontend/{components → govuk/components}/date-input/_date-input.scss +0 -0
  159. data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro-options.json +0 -0
  160. data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro.njk +0 -0
  161. data/node_modules/govuk-frontend/{components → govuk/components}/date-input/template.njk +1 -1
  162. data/node_modules/govuk-frontend/{components → govuk/components}/details/README.md +0 -0
  163. data/node_modules/govuk-frontend/{components → govuk/components}/details/_details.scss +12 -13
  164. data/node_modules/govuk-frontend/{components → govuk/components}/details/details.js +3 -4
  165. data/node_modules/govuk-frontend/{components → govuk/components}/details/implementation.md +0 -0
  166. data/node_modules/govuk-frontend/{components → govuk/components}/details/macro-options.json +0 -0
  167. data/node_modules/govuk-frontend/{components → govuk/components}/details/macro.njk +0 -0
  168. data/node_modules/govuk-frontend/{components → govuk/components}/details/template.njk +1 -1
  169. data/node_modules/govuk-frontend/{components → govuk/components}/error-message/README.md +0 -0
  170. data/node_modules/govuk-frontend/{components → govuk/components}/error-message/_error-message.scss +0 -0
  171. data/node_modules/govuk-frontend/{components → govuk/components}/error-message/macro-options.json +0 -0
  172. data/node_modules/govuk-frontend/{components → govuk/components}/error-message/macro.njk +0 -0
  173. data/node_modules/govuk-frontend/{components → govuk/components}/error-message/template.njk +0 -0
  174. data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/README.md +0 -0
  175. data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/_error-summary.scss +4 -17
  176. data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/error-summary.js +0 -10
  177. data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/macro-options.json +0 -0
  178. data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/macro.njk +0 -0
  179. data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/template.njk +1 -1
  180. data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/README.md +0 -0
  181. data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/_fieldset.scss +0 -0
  182. data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/macro-options.json +1 -1
  183. data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/macro.njk +0 -0
  184. data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/template.njk +0 -0
  185. data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/README.md +0 -0
  186. data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +81 -0
  187. data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/macro-options.json +6 -0
  188. data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/macro.njk +0 -0
  189. data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/template.njk +1 -1
  190. data/node_modules/govuk-frontend/{components → govuk/components}/footer/README.md +0 -0
  191. data/node_modules/govuk-frontend/{components → govuk/components}/footer/_footer.scss +47 -16
  192. data/node_modules/govuk-frontend/{components → govuk/components}/footer/macro-options.json +5 -0
  193. data/node_modules/govuk-frontend/{components → govuk/components}/footer/macro.njk +0 -0
  194. data/node_modules/govuk-frontend/{components → govuk/components}/footer/template.njk +1 -1
  195. data/node_modules/govuk-frontend/{components → govuk/components}/header/README.md +0 -0
  196. data/node_modules/govuk-frontend/{components → govuk/components}/header/_header.scss +34 -21
  197. data/node_modules/govuk-frontend/{components → govuk/components}/header/header.js +1 -1
  198. data/node_modules/govuk-frontend/{components → govuk/components}/header/macro-options.json +2 -2
  199. data/node_modules/govuk-frontend/{components → govuk/components}/header/macro.njk +0 -0
  200. data/node_modules/govuk-frontend/{components → govuk/components}/header/template.njk +6 -9
  201. data/node_modules/govuk-frontend/{components → govuk/components}/hint/README.md +0 -0
  202. data/node_modules/govuk-frontend/{components → govuk/components}/hint/_hint.scss +0 -0
  203. data/node_modules/govuk-frontend/{components → govuk/components}/hint/macro-options.json +0 -0
  204. data/node_modules/govuk-frontend/{components → govuk/components}/hint/macro.njk +0 -0
  205. data/node_modules/govuk-frontend/{components → govuk/components}/hint/template.njk +0 -0
  206. data/node_modules/govuk-frontend/{components → govuk/components}/input/README.md +0 -0
  207. data/node_modules/govuk-frontend/{components → govuk/components}/input/_input.scss +24 -1
  208. data/node_modules/govuk-frontend/{components → govuk/components}/input/macro-options.json +6 -0
  209. data/node_modules/govuk-frontend/{components → govuk/components}/input/macro.njk +0 -0
  210. data/node_modules/govuk-frontend/{components → govuk/components}/input/template.njk +1 -1
  211. data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/README.md +0 -0
  212. data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/_inset-text.scss +0 -0
  213. data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/macro-options.json +0 -0
  214. data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/macro.njk +0 -0
  215. data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/template.njk +0 -0
  216. data/node_modules/govuk-frontend/{components → govuk/components}/label/README.md +0 -0
  217. data/node_modules/govuk-frontend/{components → govuk/components}/label/_label.scss +0 -0
  218. data/node_modules/govuk-frontend/{components → govuk/components}/label/macro-options.json +0 -0
  219. data/node_modules/govuk-frontend/{components → govuk/components}/label/macro.njk +0 -0
  220. data/node_modules/govuk-frontend/{components → govuk/components}/label/template.njk +0 -0
  221. data/node_modules/govuk-frontend/{components → govuk/components}/panel/README.md +0 -0
  222. data/node_modules/govuk-frontend/{components → govuk/components}/panel/_panel.scss +1 -1
  223. data/node_modules/govuk-frontend/{components → govuk/components}/panel/macro-options.json +0 -0
  224. data/node_modules/govuk-frontend/{components → govuk/components}/panel/macro.njk +0 -0
  225. data/node_modules/govuk-frontend/{components → govuk/components}/panel/template.njk +0 -0
  226. data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/README.md +0 -0
  227. data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/_phase-banner.scss +0 -0
  228. data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/macro-options.json +0 -0
  229. data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/macro.njk +0 -0
  230. data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/template.njk +5 -7
  231. data/node_modules/govuk-frontend/{components → govuk/components}/radios/README.md +0 -0
  232. data/node_modules/govuk-frontend/{components → govuk/components}/radios/_radios.scss +7 -9
  233. data/node_modules/govuk-frontend/{components → govuk/components}/radios/macro-options.json +0 -0
  234. data/node_modules/govuk-frontend/{components → govuk/components}/radios/macro.njk +0 -0
  235. data/node_modules/govuk-frontend/{components → govuk/components}/radios/radios.js +24 -11
  236. data/node_modules/govuk-frontend/{components → govuk/components}/radios/template.njk +15 -5
  237. data/node_modules/govuk-frontend/{components → govuk/components}/select/README.md +0 -0
  238. data/node_modules/govuk-frontend/{components → govuk/components}/select/_select.scss +23 -1
  239. data/node_modules/govuk-frontend/{components → govuk/components}/select/macro-options.json +6 -0
  240. data/node_modules/govuk-frontend/{components → govuk/components}/select/macro.njk +0 -0
  241. data/node_modules/govuk-frontend/{components → govuk/components}/select/template.njk +1 -1
  242. data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/README.md +0 -0
  243. data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/_skip-link.scss +6 -1
  244. data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/macro-options.json +0 -0
  245. data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/macro.njk +0 -0
  246. data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/template.njk +0 -0
  247. data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/README.md +0 -0
  248. data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/_summary-list.scss +0 -0
  249. data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/macro-options.json +7 -1
  250. data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/macro.njk +0 -0
  251. data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/template.njk +1 -1
  252. data/node_modules/govuk-frontend/{components → govuk/components}/table/README.md +0 -0
  253. data/node_modules/govuk-frontend/{components → govuk/components}/table/_table.scss +1 -0
  254. data/node_modules/govuk-frontend/{components → govuk/components}/table/macro-options.json +0 -0
  255. data/node_modules/govuk-frontend/{components → govuk/components}/table/macro.njk +0 -0
  256. data/node_modules/govuk-frontend/{components → govuk/components}/table/template.njk +14 -14
  257. data/node_modules/govuk-frontend/{components → govuk/components}/tabs/README.md +0 -0
  258. data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +142 -0
  259. data/node_modules/govuk-frontend/{components → govuk/components}/tabs/macro-options.json +0 -0
  260. data/node_modules/govuk-frontend/{components → govuk/components}/tabs/macro.njk +0 -0
  261. data/node_modules/govuk-frontend/{components → govuk/components}/tabs/tabs.js +59 -5
  262. data/node_modules/govuk-frontend/{components → govuk/components}/tabs/template.njk +4 -6
  263. data/node_modules/govuk-frontend/{components → govuk/components}/tag/README.md +0 -0
  264. data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +44 -0
  265. data/node_modules/govuk-frontend/{components → govuk/components}/tag/macro-options.json +0 -0
  266. data/node_modules/govuk-frontend/{components → govuk/components}/tag/macro.njk +0 -0
  267. data/node_modules/govuk-frontend/{components → govuk/components}/tag/template.njk +0 -0
  268. data/node_modules/govuk-frontend/{components → govuk/components}/textarea/README.md +0 -0
  269. data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +55 -0
  270. data/node_modules/govuk-frontend/{components → govuk/components}/textarea/macro-options.json +6 -0
  271. data/node_modules/govuk-frontend/{components → govuk/components}/textarea/macro.njk +0 -0
  272. data/node_modules/govuk-frontend/{components → govuk/components}/textarea/template.njk +1 -1
  273. data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/README.md +0 -0
  274. data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/_warning-text.scss +0 -0
  275. data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/macro-options.json +0 -0
  276. data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/macro.njk +0 -0
  277. data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/template.njk +0 -0
  278. data/node_modules/govuk-frontend/{core → govuk/core}/_all.scss +0 -0
  279. data/node_modules/govuk-frontend/{core → govuk/core}/_global-styles.scss +0 -0
  280. data/node_modules/govuk-frontend/{core → govuk/core}/_links.scss +0 -0
  281. data/node_modules/govuk-frontend/{core → govuk/core}/_lists.scss +0 -0
  282. data/node_modules/govuk-frontend/{core → govuk/core}/_section-break.scss +0 -0
  283. data/node_modules/govuk-frontend/{core → govuk/core}/_template.scss +0 -0
  284. data/node_modules/govuk-frontend/{core → govuk/core}/_typography.scss +0 -0
  285. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_all.scss +1 -1
  286. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_clearfix.scss +0 -0
  287. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_colour.scss +23 -1
  288. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_device-pixels.scss +0 -0
  289. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +28 -0
  290. data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
  291. data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +60 -0
  292. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_links.scss +15 -1
  293. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_media-queries.scss +0 -0
  294. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_shape-arrow.scss +0 -0
  295. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_spacing.scss +0 -0
  296. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_typography.scss +23 -5
  297. data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_visually-hidden.scss +4 -2
  298. data/node_modules/govuk-frontend/{objects → govuk/objects}/_all.scss +0 -0
  299. data/node_modules/govuk-frontend/{objects → govuk/objects}/_form-group.scss +0 -0
  300. data/node_modules/govuk-frontend/{objects → govuk/objects}/_grid.scss +2 -2
  301. data/node_modules/govuk-frontend/{objects → govuk/objects}/_main-wrapper.scss +15 -1
  302. data/node_modules/govuk-frontend/{objects → govuk/objects}/_width-container.scss +0 -0
  303. data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_all.scss +0 -0
  304. data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_display.scss +0 -0
  305. data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_spacing.scss +0 -0
  306. data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_typography.scss +0 -0
  307. data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_width.scss +0 -0
  308. data/node_modules/govuk-frontend/{settings → govuk/settings}/_all.scss +0 -0
  309. data/node_modules/govuk-frontend/{settings → govuk/settings}/_assets.scss +0 -0
  310. data/node_modules/govuk-frontend/{settings → govuk/settings}/_colours-applied.scss +9 -8
  311. data/node_modules/govuk-frontend/{settings → govuk/settings}/_colours-organisations.scss +1 -1
  312. data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +101 -0
  313. data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +75 -0
  314. data/node_modules/govuk-frontend/{settings → govuk/settings}/_global-styles.scss +0 -0
  315. data/node_modules/govuk-frontend/{settings → govuk/settings}/_ie8.scss +0 -0
  316. data/node_modules/govuk-frontend/{settings → govuk/settings}/_measurements.scss +2 -2
  317. data/node_modules/govuk-frontend/{settings → govuk/settings}/_media-queries.scss +0 -0
  318. data/node_modules/govuk-frontend/{settings → govuk/settings}/_spacing.scss +0 -0
  319. data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-font-families.scss +11 -1
  320. data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-font.scss +27 -7
  321. data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-responsive.scss +9 -10
  322. data/node_modules/govuk-frontend/{template.njk → govuk/template.njk} +0 -0
  323. data/node_modules/govuk-frontend/{tools → govuk/tools}/_all.scss +0 -0
  324. data/node_modules/govuk-frontend/{tools → govuk/tools}/_compatibility.scss +0 -0
  325. data/node_modules/govuk-frontend/{tools → govuk/tools}/_exports.scss +0 -0
  326. data/node_modules/govuk-frontend/{tools → govuk/tools}/_font-url.scss +0 -0
  327. data/node_modules/govuk-frontend/{tools → govuk/tools}/_ie8.scss +0 -0
  328. data/node_modules/govuk-frontend/{tools → govuk/tools}/_iff.scss +0 -0
  329. data/node_modules/govuk-frontend/{tools → govuk/tools}/_image-url.scss +0 -0
  330. data/node_modules/govuk-frontend/{tools → govuk/tools}/_px-to-em.scss +0 -0
  331. data/node_modules/govuk-frontend/{tools → govuk/tools}/_px-to-rem.scss +0 -0
  332. data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_all.scss +0 -0
  333. data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_clearfix.scss +0 -0
  334. data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_visually-hidden.scss +0 -0
  335. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/_sass-mq.scss +0 -0
  336. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/DOMTokenList.js +0 -0
  337. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Document.js +0 -0
  338. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element.js +0 -0
  339. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/classList.js +0 -0
  340. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/closest.js +0 -0
  341. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/matches.js +0 -0
  342. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +259 -0
  343. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +257 -0
  344. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Event.js +0 -0
  345. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Function/prototype/bind.js +0 -0
  346. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Object/defineProperty.js +0 -0
  347. data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Window.js +0 -0
  348. data/node_modules/govuk-frontend/package.json +21 -21
  349. data/node_modules/react-is/README.md +2 -12
  350. data/node_modules/react-is/build-info.json +5 -5
  351. data/node_modules/react-is/cjs/react-is.development.js +7 -2
  352. data/node_modules/react-is/cjs/react-is.production.min.js +6 -6
  353. data/node_modules/react-is/package.json +13 -13
  354. data/node_modules/react-is/umd/react-is.development.js +7 -2
  355. data/node_modules/react-is/umd/react-is.production.min.js +5 -5
  356. data/node_modules/type/CHANGELOG.md +62 -50
  357. data/node_modules/type/LICENSE +15 -0
  358. data/node_modules/type/README.md +19 -19
  359. data/node_modules/type/error/is.js +28 -7
  360. data/node_modules/type/package.json +36 -22
  361. data/node_modules/type/test/error/is.js +13 -5
  362. metadata +247 -344
  363. data/app/assets/javascripts/govuk_publishing_components/components/accessible-autocomplete.js +0 -79
  364. data/app/assets/stylesheets/govuk_publishing_components/components/_accessible-autocomplete.scss +0 -41
  365. data/app/views/govuk_publishing_components/components/_accessible_autocomplete.html.erb +0 -35
  366. data/app/views/govuk_publishing_components/components/docs/accessible_autocomplete.yml +0 -49
  367. data/node_modules/accessible-autocomplete/CHANGELOG.md +0 -269
  368. data/node_modules/accessible-autocomplete/CONTRIBUTING.md +0 -150
  369. data/node_modules/accessible-autocomplete/LICENSE.txt +0 -20
  370. data/node_modules/accessible-autocomplete/Procfile +0 -1
  371. data/node_modules/accessible-autocomplete/README.md +0 -416
  372. data/node_modules/accessible-autocomplete/accessibility-criteria.md +0 -42
  373. data/node_modules/accessible-autocomplete/app.json +0 -15
  374. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.css +0 -1
  375. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +0 -2
  376. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +0 -1
  377. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +0 -2
  378. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +0 -1
  379. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +0 -2
  380. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +0 -1
  381. data/node_modules/accessible-autocomplete/examples/form.html +0 -671
  382. data/node_modules/accessible-autocomplete/examples/index.html +0 -665
  383. data/node_modules/accessible-autocomplete/examples/multiselect.html +0 -134
  384. data/node_modules/accessible-autocomplete/examples/preact/index.html +0 -346
  385. data/node_modules/accessible-autocomplete/examples/react/index.html +0 -347
  386. data/node_modules/accessible-autocomplete/package-lock.json +0 -14491
  387. data/node_modules/accessible-autocomplete/package.json +0 -173
  388. data/node_modules/accessible-autocomplete/preact.js +0 -1
  389. data/node_modules/accessible-autocomplete/react.js +0 -1
  390. data/node_modules/accessible-autocomplete/scripts/check-staged.js +0 -14
  391. data/node_modules/accessible-autocomplete/src/autocomplete.css +0 -192
  392. data/node_modules/accessible-autocomplete/src/autocomplete.js +0 -618
  393. data/node_modules/accessible-autocomplete/src/dropdown-arrow-down.js +0 -11
  394. data/node_modules/accessible-autocomplete/src/status.js +0 -80
  395. data/node_modules/accessible-autocomplete/src/wrapper.js +0 -76
  396. data/node_modules/accessible-autocomplete/test/functional/dropdown-arrow-down.js +0 -44
  397. data/node_modules/accessible-autocomplete/test/functional/index.js +0 -485
  398. data/node_modules/accessible-autocomplete/test/functional/wrapper.js +0 -318
  399. data/node_modules/accessible-autocomplete/test/integration/index.js +0 -188
  400. data/node_modules/accessible-autocomplete/test/karma.config.js +0 -42
  401. data/node_modules/accessible-autocomplete/test/wdio.config.js +0 -80
  402. data/node_modules/accessible-autocomplete/webpack.config.babel.js +0 -193
  403. data/node_modules/govuk-frontend/assets/fonts/bold-a2452cb66f-v1.woff2 +0 -0
  404. data/node_modules/govuk-frontend/assets/fonts/bold-f38c792ac2-v1.woff +0 -0
  405. data/node_modules/govuk-frontend/assets/fonts/bold-fb2676462a-v1.eot +0 -0
  406. data/node_modules/govuk-frontend/assets/fonts/bold-tabular-357fdfbcc3-v1.eot +0 -0
  407. data/node_modules/govuk-frontend/assets/fonts/bold-tabular-784c21afb8-v1.woff +0 -0
  408. data/node_modules/govuk-frontend/assets/fonts/bold-tabular-b89238d840-v1.woff2 +0 -0
  409. data/node_modules/govuk-frontend/assets/fonts/light-2c037cf7e1-v1.eot +0 -0
  410. data/node_modules/govuk-frontend/assets/fonts/light-458f8ea81c-v1.woff +0 -0
  411. data/node_modules/govuk-frontend/assets/fonts/light-f38ad40456-v1.woff2 +0 -0
  412. data/node_modules/govuk-frontend/assets/fonts/light-tabular-498ea8ffe2-v1.eot +0 -0
  413. data/node_modules/govuk-frontend/assets/fonts/light-tabular-62cc6f0a28-v1.woff +0 -0
  414. data/node_modules/govuk-frontend/assets/fonts/light-tabular-851b10ccdd-v1.woff2 +0 -0
  415. data/node_modules/govuk-frontend/assets/images/icon-arrow-left.png +0 -0
  416. data/node_modules/govuk-frontend/assets/images/icon-important.png +0 -0
  417. data/node_modules/govuk-frontend/assets/images/icon-pointer-2x.png +0 -0
  418. data/node_modules/govuk-frontend/assets/images/icon-pointer.png +0 -0
  419. data/node_modules/govuk-frontend/components/button/template.njk +0 -35
  420. data/node_modules/govuk-frontend/components/file-upload/_file-upload.scss +0 -19
  421. data/node_modules/govuk-frontend/components/tabs/_tabs.scss +0 -130
  422. data/node_modules/govuk-frontend/components/tag/_tag.scss +0 -33
  423. data/node_modules/govuk-frontend/components/textarea/_textarea.scss +0 -32
  424. data/node_modules/govuk-frontend/helpers/_focusable.scss +0 -34
  425. data/node_modules/govuk-frontend/helpers/_font-faces.scss +0 -67
  426. data/node_modules/govuk-frontend/helpers/_grid.scss +0 -107
  427. data/node_modules/govuk-frontend/settings/_colours-palette.scss +0 -37
  428. data/node_modules/govuk-frontend/settings/_compatibility.scss +0 -51
  429. data/node_modules/preact/LICENSE +0 -21
  430. data/node_modules/preact/README.md +0 -592
  431. data/node_modules/preact/debug.js +0 -740
  432. data/node_modules/preact/debug.js.map +0 -1
  433. data/node_modules/preact/debug/dist/debug.js +0 -2
  434. data/node_modules/preact/debug/dist/debug.js.map +0 -1
  435. data/node_modules/preact/debug/dist/debug.mjs +0 -681
  436. data/node_modules/preact/debug/dist/debug.mjs.map +0 -1
  437. data/node_modules/preact/debug/dist/debug.module.js +0 -2
  438. data/node_modules/preact/debug/dist/debug.module.js.map +0 -1
  439. data/node_modules/preact/debug/dist/debug.umd.js +0 -2
  440. data/node_modules/preact/debug/dist/debug.umd.js.map +0 -1
  441. data/node_modules/preact/debug/index.js +0 -122
  442. data/node_modules/preact/devtools.js +0 -403
  443. data/node_modules/preact/devtools.js.map +0 -1
  444. data/node_modules/preact/devtools/devtools.js +0 -395
  445. data/node_modules/preact/devtools/index.js +0 -4
  446. data/node_modules/preact/dist/preact.d.ts +0 -1712
  447. data/node_modules/preact/dist/preact.dev.js +0 -727
  448. data/node_modules/preact/dist/preact.dev.js.map +0 -1
  449. data/node_modules/preact/dist/preact.js +0 -414
  450. data/node_modules/preact/dist/preact.js.flow +0 -25
  451. data/node_modules/preact/dist/preact.js.map +0 -1
  452. data/node_modules/preact/dist/preact.min.js +0 -2
  453. data/node_modules/preact/dist/preact.min.js.map +0 -1
  454. data/node_modules/preact/dist/preact.mjs +0 -724
  455. data/node_modules/preact/dist/preact.mjs.map +0 -1
  456. data/node_modules/preact/dist/preact.umd.js +0 -751
  457. data/node_modules/preact/dist/preact.umd.js.map +0 -1
  458. data/node_modules/preact/package.json +0 -226
  459. data/node_modules/preact/src/clone-element.js +0 -18
  460. data/node_modules/preact/src/component.js +0 -90
  461. data/node_modules/preact/src/constants.js +0 -17
  462. data/node_modules/preact/src/dom/index.js +0 -139
  463. data/node_modules/preact/src/h.js +0 -86
  464. data/node_modules/preact/src/options.js +0 -22
  465. data/node_modules/preact/src/preact.d.ts +0 -1712
  466. data/node_modules/preact/src/preact.js +0 -32
  467. data/node_modules/preact/src/preact.js.flow +0 -25
  468. data/node_modules/preact/src/render-queue.js +0 -27
  469. data/node_modules/preact/src/render.js +0 -22
  470. data/node_modules/preact/src/util.js +0 -30
  471. data/node_modules/preact/src/vdom/component-recycler.js +0 -48
  472. data/node_modules/preact/src/vdom/component.js +0 -296
  473. data/node_modules/preact/src/vdom/diff.js +0 -337
  474. data/node_modules/preact/src/vdom/index.js +0 -54
  475. data/node_modules/preact/src/vnode.js +0 -9
  476. data/node_modules/preact/typings.json +0 -5
@@ -1,86 +0,0 @@
1
- import { VNode } from './vnode';
2
- import options from './options';
3
-
4
-
5
- const stack = [];
6
-
7
- const EMPTY_CHILDREN = [];
8
-
9
- /**
10
- * JSX/hyperscript reviver.
11
- * @see http://jasonformat.com/wtf-is-jsx
12
- * Benchmarks: https://esbench.com/bench/57ee8f8e330ab09900a1a1a0
13
- *
14
- * Note: this is exported as both `h()` and `createElement()` for compatibility
15
- * reasons.
16
- *
17
- * Creates a VNode (virtual DOM element). A tree of VNodes can be used as a
18
- * lightweight representation of the structure of a DOM tree. This structure can
19
- * be realized by recursively comparing it against the current _actual_ DOM
20
- * structure, and applying only the differences.
21
- *
22
- * `h()`/`createElement()` accepts an element name, a list of attributes/props,
23
- * and optionally children to append to the element.
24
- *
25
- * @example The following DOM tree
26
- *
27
- * `<div id="foo" name="bar">Hello!</div>`
28
- *
29
- * can be constructed using this function as:
30
- *
31
- * `h('div', { id: 'foo', name : 'bar' }, 'Hello!');`
32
- *
33
- * @param {string | function} nodeName An element name. Ex: `div`, `a`, `span`, etc.
34
- * @param {object | null} attributes Any attributes/props to set on the created element.
35
- * @param {VNode[]} [rest] Additional arguments are taken to be children to
36
- * append. Can be infinitely nested Arrays.
37
- *
38
- * @public
39
- */
40
- export function h(nodeName, attributes) {
41
- let children=EMPTY_CHILDREN, lastSimple, child, simple, i;
42
- for (i=arguments.length; i-- > 2; ) {
43
- stack.push(arguments[i]);
44
- }
45
- if (attributes && attributes.children!=null) {
46
- if (!stack.length) stack.push(attributes.children);
47
- delete attributes.children;
48
- }
49
- while (stack.length) {
50
- if ((child = stack.pop()) && child.pop!==undefined) {
51
- for (i=child.length; i--; ) stack.push(child[i]);
52
- }
53
- else {
54
- if (typeof child==='boolean') child = null;
55
-
56
- if ((simple = typeof nodeName!=='function')) {
57
- if (child==null) child = '';
58
- else if (typeof child==='number') child = String(child);
59
- else if (typeof child!=='string') simple = false;
60
- }
61
-
62
- if (simple && lastSimple) {
63
- children[children.length-1] += child;
64
- }
65
- else if (children===EMPTY_CHILDREN) {
66
- children = [child];
67
- }
68
- else {
69
- children.push(child);
70
- }
71
-
72
- lastSimple = simple;
73
- }
74
- }
75
-
76
- let p = new VNode();
77
- p.nodeName = nodeName;
78
- p.children = children;
79
- p.attributes = attributes==null ? undefined : attributes;
80
- p.key = attributes==null ? undefined : attributes.key;
81
-
82
- // if a "vnode hook" is defined, pass every created VNode to it
83
- if (options.vnode!==undefined) options.vnode(p);
84
-
85
- return p;
86
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * @typedef {import('./component').Component} Component
3
- * @typedef {import('./vnode').VNode} VNode
4
- */
5
-
6
- /**
7
- * Global options
8
- * @public
9
- * @typedef Options
10
- * @property {boolean} [syncComponentUpdates] If `true`, `prop` changes trigger synchronous component updates. Defaults to true.
11
- * @property {(vnode: VNode) => void} [vnode] Processes all created VNodes.
12
- * @property {(component: Component) => void} [afterMount] Hook invoked after a component is mounted.
13
- * @property {(component: Component) => void} [afterUpdate] Hook invoked after the DOM is updated with a component's latest render.
14
- * @property {(component: Component) => void} [beforeUnmount] Hook invoked immediately before a component is unmounted.
15
- * @property {(rerender: function) => void} [debounceRendering] Hook invoked whenever a rerender is requested. Can be used to debounce rerenders.
16
- * @property {(event: Event) => Event | void} [event] Hook invoked before any Preact event listeners. The return value (if any) replaces the native browser event given to event listeners
17
- */
18
-
19
- /** @type {Options} */
20
- const options = {};
21
-
22
- export default options;
@@ -1,1712 +0,0 @@
1
- export = preact;
2
- export as namespace preact;
3
-
4
- declare namespace preact {
5
- type Key = string | number;
6
- type RefObject<T> = { current?: T | null };
7
- type RefCallback<T> = (instance: T | null) => void;
8
- type Ref<T> = RefObject<T> | RefCallback<T>;
9
- type ComponentChild = VNode<any> | object | string | number | boolean | null;
10
- type ComponentChildren = ComponentChild[] | ComponentChild;
11
-
12
- /**
13
- * @deprecated
14
- *
15
- * Use Attributes instead
16
- */
17
- type ComponentProps = Attributes;
18
-
19
- /**
20
- * @deprecated
21
- *
22
- * Use ClassAttributes instead
23
- */
24
- type PreactHTMLAttributes = ClassAttributes<any>;
25
-
26
- interface Attributes {
27
- key?: Key;
28
- jsx?: boolean;
29
- }
30
-
31
- interface ClassAttributes<T> extends Attributes {
32
- ref?: Ref<T>;
33
- }
34
-
35
- interface PreactDOMAttributes {
36
- children?: ComponentChildren;
37
- dangerouslySetInnerHTML?: {
38
- __html: string;
39
- };
40
- }
41
-
42
- type ComponentFactory<P> = ComponentConstructor<P> | FunctionalComponent<P>;
43
- /**
44
- * Define the contract for a virtual node in preact.
45
- *
46
- * A virtual node has a name, a map of attributes, an array
47
- * of child {VNode}s and a key. The key is used by preact for
48
- * internal purposes.
49
- */
50
- interface VNode<P = any> {
51
- nodeName: ComponentFactory<P> | string;
52
- attributes: P;
53
- children: Array<VNode<any> | string>;
54
- key?: Key | null;
55
- }
56
-
57
- type RenderableProps<P, RefType = any> = Readonly<
58
- P & Attributes & { children?: ComponentChildren; ref?: Ref<RefType> }
59
- >;
60
-
61
- interface FunctionalComponent<P = {}> {
62
- (props: RenderableProps<P>, context?: any): VNode<any> | null;
63
- displayName?: string;
64
- defaultProps?: Partial<P>;
65
- }
66
-
67
- interface ComponentConstructor<P = {}, S = {}> {
68
- new (props: P, context?: any): Component<P, S>;
69
- displayName?: string;
70
- defaultProps?: Partial<P>;
71
- }
72
-
73
- // Type alias for a component considered generally, whether stateless or stateful.
74
- type AnyComponent<P = {}, S = {}> = FunctionalComponent<P> | ComponentConstructor<P, S>;
75
-
76
- interface Component<P = {}, S = {}> {
77
- componentWillMount?(): void;
78
- componentDidMount?(): void;
79
- componentWillUnmount?(): void;
80
- getChildContext?(): object;
81
- componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
82
- shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): boolean;
83
- componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
84
- componentDidUpdate?(previousProps: Readonly<P>, previousState: Readonly<S>, previousContext: any): void;
85
- }
86
-
87
- abstract class Component<P, S> {
88
- constructor(props?: P, context?: any);
89
-
90
- static displayName?: string;
91
- static defaultProps?: any;
92
-
93
- state: Readonly<S>;
94
- props: RenderableProps<P>;
95
- context: any;
96
- base?: HTMLElement;
97
-
98
- // From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e836acc75a78cf0655b5dfdbe81d69fdd4d8a252/types/react/index.d.ts#L402
99
- // // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.
100
- // // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
101
- // // Also, the ` | S` allows intellisense to not be dumbisense
102
- setState<K extends keyof S>(
103
- state: ((prevState: Readonly<S>, props: Readonly<P>) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null),
104
- callback?: () => void
105
- ): void;
106
-
107
- forceUpdate(callback?: () => void): void;
108
-
109
- abstract render(props?: RenderableProps<P>, state?: Readonly<S>, context?: any): ComponentChild;
110
-
111
- // Add these variables to avoid descendants shadowing them (some from properties.json for minification)
112
- private __key;
113
- private __ref;
114
- private _component;
115
- private _dirty;
116
- private _disable;
117
- private nextBase;
118
- private prevContext;
119
- private prevProps;
120
- private prevState;
121
- private __d;
122
- private __x;
123
- private __l;
124
- private __h;
125
- private __k;
126
- private __r;
127
- private __n;
128
- private __b;
129
- private __c;
130
- private __p;
131
- private __s;
132
- private __u;
133
- }
134
-
135
- function h(
136
- node: string,
137
- params: JSX.HTMLAttributes & JSX.SVGAttributes & Record<string, any> | null,
138
- ...children: ComponentChildren[]
139
- ): VNode<any>;
140
- function h<P>(
141
- node: ComponentFactory<P>,
142
- params: Attributes & P | null,
143
- ...children: ComponentChildren[]
144
- ): VNode<any>;
145
-
146
- function render(node: ComponentChild, parent: Element | Document | ShadowRoot | DocumentFragment, mergeWith?: Element): Element;
147
- function rerender(): void;
148
- function cloneElement(element: JSX.Element, props: any, ...children: ComponentChildren[]): JSX.Element;
149
- function createRef<T=any>(): RefObject<T>;
150
-
151
- var options: {
152
- syncComponentUpdates?: boolean;
153
- debounceRendering?: (render: () => void) => void;
154
- vnode?: (vnode: VNode<any>) => void;
155
- event?: (event: Event) => Event;
156
- };
157
-
158
- namespace JSX {
159
- interface Element extends preact.VNode<any> {
160
- }
161
-
162
- interface ElementClass extends preact.Component<any, any> {
163
- }
164
-
165
- interface ElementAttributesProperty {
166
- props: any;
167
- }
168
-
169
- interface ElementChildrenAttribute {
170
- children: any;
171
- }
172
-
173
- type LibraryManagedAttributes<Component, Props> =
174
- Component extends { defaultProps: infer Defaults }
175
- ? Defaultize<Props, Defaults>
176
- : Props;
177
-
178
- interface SVGAttributes extends HTMLAttributes {
179
- accentHeight?: number | string;
180
- accumulate?: "none" | "sum";
181
- additive?: "replace" | "sum";
182
- alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
183
- allowReorder?: "no" | "yes";
184
- alphabetic?: number | string;
185
- amplitude?: number | string;
186
- arabicForm?: "initial" | "medial" | "terminal" | "isolated";
187
- ascent?: number | string;
188
- attributeName?: string;
189
- attributeType?: string;
190
- autoReverse?: number | string;
191
- azimuth?: number | string;
192
- baseFrequency?: number | string;
193
- baselineShift?: number | string;
194
- baseProfile?: number | string;
195
- bbox?: number | string;
196
- begin?: number | string;
197
- bias?: number | string;
198
- by?: number | string;
199
- calcMode?: number | string;
200
- capHeight?: number | string;
201
- clip?: number | string;
202
- clipPath?: string;
203
- clipPathUnits?: number | string;
204
- clipRule?: number | string;
205
- colorInterpolation?: number | string;
206
- colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
207
- colorProfile?: number | string;
208
- colorRendering?: number | string;
209
- contentScriptType?: number | string;
210
- contentStyleType?: number | string;
211
- cursor?: number | string;
212
- cx?: number | string;
213
- cy?: number | string;
214
- d?: string;
215
- decelerate?: number | string;
216
- descent?: number | string;
217
- diffuseConstant?: number | string;
218
- direction?: number | string;
219
- display?: number | string;
220
- divisor?: number | string;
221
- dominantBaseline?: number | string;
222
- dur?: number | string;
223
- dx?: number | string;
224
- dy?: number | string;
225
- edgeMode?: number | string;
226
- elevation?: number | string;
227
- enableBackground?: number | string;
228
- end?: number | string;
229
- exponent?: number | string;
230
- externalResourcesRequired?: number | string;
231
- fill?: string;
232
- fillOpacity?: number | string;
233
- fillRule?: "nonzero" | "evenodd" | "inherit";
234
- filter?: string;
235
- filterRes?: number | string;
236
- filterUnits?: number | string;
237
- floodColor?: number | string;
238
- floodOpacity?: number | string;
239
- focusable?: number | string;
240
- fontFamily?: string;
241
- fontSize?: number | string;
242
- fontSizeAdjust?: number | string;
243
- fontStretch?: number | string;
244
- fontStyle?: number | string;
245
- fontVariant?: number | string;
246
- fontWeight?: number | string;
247
- format?: number | string;
248
- from?: number | string;
249
- fx?: number | string;
250
- fy?: number | string;
251
- g1?: number | string;
252
- g2?: number | string;
253
- glyphName?: number | string;
254
- glyphOrientationHorizontal?: number | string;
255
- glyphOrientationVertical?: number | string;
256
- glyphRef?: number | string;
257
- gradientTransform?: string;
258
- gradientUnits?: string;
259
- hanging?: number | string;
260
- horizAdvX?: number | string;
261
- horizOriginX?: number | string;
262
- ideographic?: number | string;
263
- imageRendering?: number | string;
264
- in2?: number | string;
265
- in?: string;
266
- intercept?: number | string;
267
- k1?: number | string;
268
- k2?: number | string;
269
- k3?: number | string;
270
- k4?: number | string;
271
- k?: number | string;
272
- kernelMatrix?: number | string;
273
- kernelUnitLength?: number | string;
274
- kerning?: number | string;
275
- keyPoints?: number | string;
276
- keySplines?: number | string;
277
- keyTimes?: number | string;
278
- lengthAdjust?: number | string;
279
- letterSpacing?: number | string;
280
- lightingColor?: number | string;
281
- limitingConeAngle?: number | string;
282
- local?: number | string;
283
- markerEnd?: string;
284
- markerHeight?: number | string;
285
- markerMid?: string;
286
- markerStart?: string;
287
- markerUnits?: number | string;
288
- markerWidth?: number | string;
289
- mask?: string;
290
- maskContentUnits?: number | string;
291
- maskUnits?: number | string;
292
- mathematical?: number | string;
293
- mode?: number | string;
294
- numOctaves?: number | string;
295
- offset?: number | string;
296
- opacity?: number | string;
297
- operator?: number | string;
298
- order?: number | string;
299
- orient?: number | string;
300
- orientation?: number | string;
301
- origin?: number | string;
302
- overflow?: number | string;
303
- overlinePosition?: number | string;
304
- overlineThickness?: number | string;
305
- paintOrder?: number | string;
306
- panose1?: number | string;
307
- pathLength?: number | string;
308
- patternContentUnits?: string;
309
- patternTransform?: number | string;
310
- patternUnits?: string;
311
- pointerEvents?: number | string;
312
- points?: string;
313
- pointsAtX?: number | string;
314
- pointsAtY?: number | string;
315
- pointsAtZ?: number | string;
316
- preserveAlpha?: number | string;
317
- preserveAspectRatio?: string;
318
- primitiveUnits?: number | string;
319
- r?: number | string;
320
- radius?: number | string;
321
- refX?: number | string;
322
- refY?: number | string;
323
- renderingIntent?: number | string;
324
- repeatCount?: number | string;
325
- repeatDur?: number | string;
326
- requiredExtensions?: number | string;
327
- requiredFeatures?: number | string;
328
- restart?: number | string;
329
- result?: string;
330
- rotate?: number | string;
331
- rx?: number | string;
332
- ry?: number | string;
333
- scale?: number | string;
334
- seed?: number | string;
335
- shapeRendering?: number | string;
336
- slope?: number | string;
337
- spacing?: number | string;
338
- specularConstant?: number | string;
339
- specularExponent?: number | string;
340
- speed?: number | string;
341
- spreadMethod?: string;
342
- startOffset?: number | string;
343
- stdDeviation?: number | string;
344
- stemh?: number | string;
345
- stemv?: number | string;
346
- stitchTiles?: number | string;
347
- stopColor?: string;
348
- stopOpacity?: number | string;
349
- strikethroughPosition?: number | string;
350
- strikethroughThickness?: number | string;
351
- string?: number | string;
352
- stroke?: string;
353
- strokeDasharray?: string | number;
354
- strokeDashoffset?: string | number;
355
- strokeLinecap?: "butt" | "round" | "square" | "inherit";
356
- strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
357
- strokeMiterlimit?: string;
358
- strokeOpacity?: number | string;
359
- strokeWidth?: number | string;
360
- surfaceScale?: number | string;
361
- systemLanguage?: number | string;
362
- tableValues?: number | string;
363
- targetX?: number | string;
364
- targetY?: number | string;
365
- textAnchor?: string;
366
- textDecoration?: number | string;
367
- textLength?: number | string;
368
- textRendering?: number | string;
369
- to?: number | string;
370
- transform?: string;
371
- u1?: number | string;
372
- u2?: number | string;
373
- underlinePosition?: number | string;
374
- underlineThickness?: number | string;
375
- unicode?: number | string;
376
- unicodeBidi?: number | string;
377
- unicodeRange?: number | string;
378
- unitsPerEm?: number | string;
379
- vAlphabetic?: number | string;
380
- values?: string;
381
- vectorEffect?: number | string;
382
- version?: string;
383
- vertAdvY?: number | string;
384
- vertOriginX?: number | string;
385
- vertOriginY?: number | string;
386
- vHanging?: number | string;
387
- vIdeographic?: number | string;
388
- viewBox?: string;
389
- viewTarget?: number | string;
390
- visibility?: number | string;
391
- vMathematical?: number | string;
392
- widths?: number | string;
393
- wordSpacing?: number | string;
394
- writingMode?: number | string;
395
- x1?: number | string;
396
- x2?: number | string;
397
- x?: number | string;
398
- xChannelSelector?: string;
399
- xHeight?: number | string;
400
- xlinkActuate?: string;
401
- xlinkArcrole?: string;
402
- xlinkHref?: string;
403
- xlinkRole?: string;
404
- xlinkShow?: string;
405
- xlinkTitle?: string;
406
- xlinkType?: string;
407
- xmlBase?: string;
408
- xmlLang?: string;
409
- xmlns?: string;
410
- xmlnsXlink?: string;
411
- xmlSpace?: string;
412
- y1?: number | string;
413
- y2?: number | string;
414
- y?: number | string;
415
- yChannelSelector?: string;
416
- z?: number | string;
417
- zoomAndPan?: string;
418
- }
419
-
420
- interface PathAttributes {
421
- d: string;
422
- }
423
-
424
- interface EventHandler<E extends Event> {
425
- (event: E): void;
426
- }
427
-
428
- type ClipboardEventHandler = EventHandler<ClipboardEvent>;
429
- type CompositionEventHandler = EventHandler<CompositionEvent>;
430
- type DragEventHandler = EventHandler<DragEvent>;
431
- type FocusEventHandler = EventHandler<FocusEvent>;
432
- type KeyboardEventHandler = EventHandler<KeyboardEvent>;
433
- type MouseEventHandler = EventHandler<MouseEvent>;
434
- type TouchEventHandler = EventHandler<TouchEvent>;
435
- type UIEventHandler = EventHandler<UIEvent>;
436
- type WheelEventHandler = EventHandler<WheelEvent>;
437
- type AnimationEventHandler = EventHandler<AnimationEvent>;
438
- type TransitionEventHandler = EventHandler<TransitionEvent>;
439
- type GenericEventHandler = EventHandler<Event>;
440
- type PointerEventHandler = EventHandler<PointerEvent>;
441
-
442
- interface DOMAttributes extends preact.PreactDOMAttributes {
443
- // Image Events
444
- onLoad?: GenericEventHandler;
445
- onError?: GenericEventHandler;
446
- onLoadCapture?: GenericEventHandler;
447
-
448
- // Clipboard Events
449
- onCopy?: ClipboardEventHandler;
450
- onCopyCapture?: ClipboardEventHandler;
451
- onCut?: ClipboardEventHandler;
452
- onCutCapture?: ClipboardEventHandler;
453
- onPaste?: ClipboardEventHandler;
454
- onPasteCapture?: ClipboardEventHandler;
455
-
456
- // Composition Events
457
- onCompositionEnd?: CompositionEventHandler;
458
- onCompositionEndCapture?: CompositionEventHandler;
459
- onCompositionStart?: CompositionEventHandler;
460
- onCompositionStartCapture?: CompositionEventHandler;
461
- onCompositionUpdate?: CompositionEventHandler;
462
- onCompositionUpdateCapture?: CompositionEventHandler;
463
-
464
- // Focus Events
465
- onFocus?: FocusEventHandler;
466
- onFocusCapture?: FocusEventHandler;
467
- onBlur?: FocusEventHandler;
468
- onBlurCapture?: FocusEventHandler;
469
-
470
- // Form Events
471
- onChange?: GenericEventHandler;
472
- onChangeCapture?: GenericEventHandler;
473
- onInput?: GenericEventHandler;
474
- onInputCapture?: GenericEventHandler;
475
- onSearch?: GenericEventHandler;
476
- onSearchCapture?: GenericEventHandler;
477
- onSubmit?: GenericEventHandler;
478
- onSubmitCapture?: GenericEventHandler;
479
- onInvalid?: GenericEventHandler;
480
-
481
- // Keyboard Events
482
- onKeyDown?: KeyboardEventHandler;
483
- onKeyDownCapture?: KeyboardEventHandler;
484
- onKeyPress?: KeyboardEventHandler;
485
- onKeyPressCapture?: KeyboardEventHandler;
486
- onKeyUp?: KeyboardEventHandler;
487
- onKeyUpCapture?: KeyboardEventHandler;
488
-
489
- // Media Events
490
- onAbort?: GenericEventHandler;
491
- onAbortCapture?: GenericEventHandler;
492
- onCanPlay?: GenericEventHandler;
493
- onCanPlayCapture?: GenericEventHandler;
494
- onCanPlayThrough?: GenericEventHandler;
495
- onCanPlayThroughCapture?: GenericEventHandler;
496
- onDurationChange?: GenericEventHandler;
497
- onDurationChangeCapture?: GenericEventHandler;
498
- onEmptied?: GenericEventHandler;
499
- onEmptiedCapture?: GenericEventHandler;
500
- onEncrypted?: GenericEventHandler;
501
- onEncryptedCapture?: GenericEventHandler;
502
- onEnded?: GenericEventHandler;
503
- onEndedCapture?: GenericEventHandler;
504
- onLoadedData?: GenericEventHandler;
505
- onLoadedDataCapture?: GenericEventHandler;
506
- onLoadedMetadata?: GenericEventHandler;
507
- onLoadedMetadataCapture?: GenericEventHandler;
508
- onLoadStart?: GenericEventHandler;
509
- onLoadStartCapture?: GenericEventHandler;
510
- onPause?: GenericEventHandler;
511
- onPauseCapture?: GenericEventHandler;
512
- onPlay?: GenericEventHandler;
513
- onPlayCapture?: GenericEventHandler;
514
- onPlaying?: GenericEventHandler;
515
- onPlayingCapture?: GenericEventHandler;
516
- onProgress?: GenericEventHandler;
517
- onProgressCapture?: GenericEventHandler;
518
- onRateChange?: GenericEventHandler;
519
- onRateChangeCapture?: GenericEventHandler;
520
- onSeeked?: GenericEventHandler;
521
- onSeekedCapture?: GenericEventHandler;
522
- onSeeking?: GenericEventHandler;
523
- onSeekingCapture?: GenericEventHandler;
524
- onStalled?: GenericEventHandler;
525
- onStalledCapture?: GenericEventHandler;
526
- onSuspend?: GenericEventHandler;
527
- onSuspendCapture?: GenericEventHandler;
528
- onTimeUpdate?: GenericEventHandler;
529
- onTimeUpdateCapture?: GenericEventHandler;
530
- onVolumeChange?: GenericEventHandler;
531
- onVolumeChangeCapture?: GenericEventHandler;
532
- onWaiting?: GenericEventHandler;
533
- onWaitingCapture?: GenericEventHandler;
534
-
535
- // MouseEvents
536
- onClick?: MouseEventHandler;
537
- onClickCapture?: MouseEventHandler;
538
- onContextMenu?: MouseEventHandler;
539
- onContextMenuCapture?: MouseEventHandler;
540
- onDblClick?: MouseEventHandler;
541
- onDblClickCapture?: MouseEventHandler;
542
- onDrag?: DragEventHandler;
543
- onDragCapture?: DragEventHandler;
544
- onDragEnd?: DragEventHandler;
545
- onDragEndCapture?: DragEventHandler;
546
- onDragEnter?: DragEventHandler;
547
- onDragEnterCapture?: DragEventHandler;
548
- onDragExit?: DragEventHandler;
549
- onDragExitCapture?: DragEventHandler;
550
- onDragLeave?: DragEventHandler;
551
- onDragLeaveCapture?: DragEventHandler;
552
- onDragOver?: DragEventHandler;
553
- onDragOverCapture?: DragEventHandler;
554
- onDragStart?: DragEventHandler;
555
- onDragStartCapture?: DragEventHandler;
556
- onDrop?: DragEventHandler;
557
- onDropCapture?: DragEventHandler;
558
- onMouseDown?: MouseEventHandler;
559
- onMouseDownCapture?: MouseEventHandler;
560
- onMouseEnter?: MouseEventHandler;
561
- onMouseEnterCapture?: MouseEventHandler;
562
- onMouseLeave?: MouseEventHandler;
563
- onMouseLeaveCapture?: MouseEventHandler;
564
- onMouseMove?: MouseEventHandler;
565
- onMouseMoveCapture?: MouseEventHandler;
566
- onMouseOut?: MouseEventHandler;
567
- onMouseOutCapture?: MouseEventHandler;
568
- onMouseOver?: MouseEventHandler;
569
- onMouseOverCapture?: MouseEventHandler;
570
- onMouseUp?: MouseEventHandler;
571
- onMouseUpCapture?: MouseEventHandler;
572
-
573
- // Selection Events
574
- onSelect?: GenericEventHandler;
575
- onSelectCapture?: GenericEventHandler;
576
-
577
- // Touch Events
578
- onTouchCancel?: TouchEventHandler;
579
- onTouchCancelCapture?: TouchEventHandler;
580
- onTouchEnd?: TouchEventHandler;
581
- onTouchEndCapture?: TouchEventHandler;
582
- onTouchMove?: TouchEventHandler;
583
- onTouchMoveCapture?: TouchEventHandler;
584
- onTouchStart?: TouchEventHandler;
585
- onTouchStartCapture?: TouchEventHandler;
586
-
587
- // Pointer Events
588
- onPointerOver?: PointerEventHandler;
589
- onPointerOverCapture?: PointerEventHandler;
590
- onPointerEnter?: PointerEventHandler;
591
- onPointerEnterCapture?: PointerEventHandler;
592
- onPointerDown?: PointerEventHandler;
593
- onPointerDownCapture?: PointerEventHandler;
594
- onPointerMove?: PointerEventHandler;
595
- onPointerMoveCapture?: PointerEventHandler;
596
- onPointerUp?: PointerEventHandler;
597
- onPointerUpCapture?: PointerEventHandler;
598
- onPointerCancel?: PointerEventHandler;
599
- onPointerCancelCapture?: PointerEventHandler;
600
- onPointerOut?: PointerEventHandler;
601
- onPointerOutCapture?: PointerEventHandler;
602
- onPointerLeave?: PointerEventHandler;
603
- onPointerLeaveCapture?: PointerEventHandler;
604
- onGotPointerCapture?: PointerEventHandler;
605
- onGotPointerCaptureCapture?: PointerEventHandler;
606
- onLostPointerCapture?: PointerEventHandler;
607
- onLostPointerCaptureCapture?: PointerEventHandler;
608
-
609
- // UI Events
610
- onScroll?: UIEventHandler;
611
- onScrollCapture?: UIEventHandler;
612
-
613
- // Wheel Events
614
- onWheel?: WheelEventHandler;
615
- onWheelCapture?: WheelEventHandler;
616
-
617
- // Animation Events
618
- onAnimationStart?: AnimationEventHandler;
619
- onAnimationStartCapture?: AnimationEventHandler;
620
- onAnimationEnd?: AnimationEventHandler;
621
- onAnimationEndCapture?: AnimationEventHandler;
622
- onAnimationIteration?: AnimationEventHandler;
623
- onAnimationIterationCapture?: AnimationEventHandler;
624
-
625
- // Transition Events
626
- onTransitionEnd?: TransitionEventHandler;
627
- onTransitionEndCapture?: TransitionEventHandler;
628
- }
629
-
630
- interface HTMLAttributes extends preact.PreactHTMLAttributes, DOMAttributes {
631
- // Standard HTML Attributes
632
- accept?: string;
633
- acceptCharset?: string;
634
- accessKey?: string;
635
- action?: string;
636
- allowFullScreen?: boolean;
637
- allowTransparency?: boolean;
638
- alt?: string;
639
- async?: boolean;
640
- autocomplete?: string;
641
- autofocus?: boolean;
642
- autoPlay?: boolean;
643
- capture?: boolean;
644
- cellPadding?: number | string;
645
- cellSpacing?: number | string;
646
- charSet?: string;
647
- challenge?: string;
648
- checked?: boolean;
649
- class?: string;
650
- className?: string;
651
- cols?: number;
652
- colSpan?: number;
653
- content?: string;
654
- contentEditable?: boolean;
655
- contextMenu?: string;
656
- controls?: boolean;
657
- controlsList?: string;
658
- coords?: string;
659
- crossOrigin?: string;
660
- data?: string;
661
- dateTime?: string;
662
- default?: boolean;
663
- defer?: boolean;
664
- dir?: string;
665
- disabled?: boolean;
666
- download?: any;
667
- draggable?: boolean;
668
- encType?: string;
669
- form?: string;
670
- formAction?: string;
671
- formEncType?: string;
672
- formMethod?: string;
673
- formNoValidate?: boolean;
674
- formTarget?: string;
675
- frameBorder?: number | string;
676
- headers?: string;
677
- height?: number | string;
678
- hidden?: boolean;
679
- high?: number;
680
- href?: string;
681
- hrefLang?: string;
682
- for?: string;
683
- httpEquiv?: string;
684
- icon?: string;
685
- id?: string;
686
- inputMode?: string;
687
- integrity?: string;
688
- is?: string;
689
- keyParams?: string;
690
- keyType?: string;
691
- kind?: string;
692
- label?: string;
693
- lang?: string;
694
- list?: string;
695
- loop?: boolean;
696
- low?: number;
697
- manifest?: string;
698
- marginHeight?: number;
699
- marginWidth?: number;
700
- max?: number | string;
701
- maxLength?: number;
702
- media?: string;
703
- mediaGroup?: string;
704
- method?: string;
705
- min?: number | string;
706
- minLength?: number;
707
- multiple?: boolean;
708
- muted?: boolean;
709
- name?: string;
710
- noValidate?: boolean;
711
- open?: boolean;
712
- optimum?: number;
713
- pattern?: string;
714
- placeholder?: string;
715
- playsInline?: boolean;
716
- poster?: string;
717
- preload?: string;
718
- radioGroup?: string;
719
- readOnly?: boolean;
720
- rel?: string;
721
- required?: boolean;
722
- role?: string;
723
- rows?: number;
724
- rowSpan?: number;
725
- sandbox?: string;
726
- scope?: string;
727
- scoped?: boolean;
728
- scrolling?: string;
729
- seamless?: boolean;
730
- selected?: boolean;
731
- shape?: string;
732
- size?: number;
733
- sizes?: string;
734
- slot?: string;
735
- span?: number;
736
- spellcheck?: boolean;
737
- src?: string;
738
- srcset?: string;
739
- srcDoc?: string;
740
- srcLang?: string;
741
- srcSet?: string;
742
- start?: number;
743
- step?: number | string;
744
- style?: any;
745
- summary?: string;
746
- tabIndex?: number;
747
- target?: string;
748
- title?: string;
749
- type?: string;
750
- useMap?: string;
751
- value?: string | string[] | number;
752
- width?: number | string;
753
- wmode?: string;
754
- wrap?: string;
755
-
756
- // RDFa Attributes
757
- about?: string;
758
- datatype?: string;
759
- inlist?: any;
760
- prefix?: string;
761
- property?: string;
762
- resource?: string;
763
- typeof?: string;
764
- vocab?: string;
765
- }
766
-
767
- interface IntrinsicElements {
768
- // HTML
769
- a: HTMLAttributes;
770
- abbr: HTMLAttributes;
771
- address: HTMLAttributes;
772
- area: HTMLAttributes;
773
- article: HTMLAttributes;
774
- aside: HTMLAttributes;
775
- audio: HTMLAttributes;
776
- b: HTMLAttributes;
777
- base: HTMLAttributes;
778
- bdi: HTMLAttributes;
779
- bdo: HTMLAttributes;
780
- big: HTMLAttributes;
781
- blockquote: HTMLAttributes;
782
- body: HTMLAttributes;
783
- br: HTMLAttributes;
784
- button: HTMLAttributes;
785
- canvas: HTMLAttributes;
786
- caption: HTMLAttributes;
787
- cite: HTMLAttributes;
788
- code: HTMLAttributes;
789
- col: HTMLAttributes;
790
- colgroup: HTMLAttributes;
791
- data: HTMLAttributes;
792
- datalist: HTMLAttributes;
793
- dd: HTMLAttributes;
794
- del: HTMLAttributes;
795
- details: HTMLAttributes;
796
- dfn: HTMLAttributes;
797
- dialog: HTMLAttributes;
798
- div: HTMLAttributes;
799
- dl: HTMLAttributes;
800
- dt: HTMLAttributes;
801
- em: HTMLAttributes;
802
- embed: HTMLAttributes;
803
- fieldset: HTMLAttributes;
804
- figcaption: HTMLAttributes;
805
- figure: HTMLAttributes;
806
- footer: HTMLAttributes;
807
- form: HTMLAttributes;
808
- h1: HTMLAttributes;
809
- h2: HTMLAttributes;
810
- h3: HTMLAttributes;
811
- h4: HTMLAttributes;
812
- h5: HTMLAttributes;
813
- h6: HTMLAttributes;
814
- head: HTMLAttributes;
815
- header: HTMLAttributes;
816
- hr: HTMLAttributes;
817
- html: HTMLAttributes;
818
- i: HTMLAttributes;
819
- iframe: HTMLAttributes;
820
- img: HTMLAttributes;
821
- input: HTMLAttributes;
822
- ins: HTMLAttributes;
823
- kbd: HTMLAttributes;
824
- keygen: HTMLAttributes;
825
- label: HTMLAttributes;
826
- legend: HTMLAttributes;
827
- li: HTMLAttributes;
828
- link: HTMLAttributes;
829
- main: HTMLAttributes;
830
- map: HTMLAttributes;
831
- mark: HTMLAttributes;
832
- menu: HTMLAttributes;
833
- menuitem: HTMLAttributes;
834
- meta: HTMLAttributes;
835
- meter: HTMLAttributes;
836
- nav: HTMLAttributes;
837
- noscript: HTMLAttributes;
838
- object: HTMLAttributes;
839
- ol: HTMLAttributes;
840
- optgroup: HTMLAttributes;
841
- option: HTMLAttributes;
842
- output: HTMLAttributes;
843
- p: HTMLAttributes;
844
- param: HTMLAttributes;
845
- picture: HTMLAttributes;
846
- pre: HTMLAttributes;
847
- progress: HTMLAttributes;
848
- q: HTMLAttributes;
849
- rp: HTMLAttributes;
850
- rt: HTMLAttributes;
851
- ruby: HTMLAttributes;
852
- s: HTMLAttributes;
853
- samp: HTMLAttributes;
854
- script: HTMLAttributes;
855
- section: HTMLAttributes;
856
- select: HTMLAttributes;
857
- slot: HTMLAttributes;
858
- small: HTMLAttributes;
859
- source: HTMLAttributes;
860
- span: HTMLAttributes;
861
- strong: HTMLAttributes;
862
- style: HTMLAttributes;
863
- sub: HTMLAttributes;
864
- summary: HTMLAttributes;
865
- sup: HTMLAttributes;
866
- table: HTMLAttributes;
867
- tbody: HTMLAttributes;
868
- td: HTMLAttributes;
869
- textarea: HTMLAttributes;
870
- tfoot: HTMLAttributes;
871
- th: HTMLAttributes;
872
- thead: HTMLAttributes;
873
- time: HTMLAttributes;
874
- title: HTMLAttributes;
875
- tr: HTMLAttributes;
876
- track: HTMLAttributes;
877
- u: HTMLAttributes;
878
- ul: HTMLAttributes;
879
- "var": HTMLAttributes;
880
- video: HTMLAttributes;
881
- wbr: HTMLAttributes;
882
-
883
- //SVG
884
- svg: SVGAttributes;
885
- animate: SVGAttributes;
886
- circle: SVGAttributes;
887
- clipPath: SVGAttributes;
888
- defs: SVGAttributes;
889
- desc: SVGAttributes;
890
- ellipse: SVGAttributes;
891
- feBlend: SVGAttributes;
892
- feColorMatrix: SVGAttributes;
893
- feComponentTransfer: SVGAttributes;
894
- feComposite: SVGAttributes;
895
- feConvolveMatrix: SVGAttributes;
896
- feDiffuseLighting: SVGAttributes;
897
- feDisplacementMap: SVGAttributes;
898
- feFlood: SVGAttributes;
899
- feGaussianBlur: SVGAttributes;
900
- feImage: SVGAttributes;
901
- feMerge: SVGAttributes;
902
- feMergeNode: SVGAttributes;
903
- feMorphology: SVGAttributes;
904
- feOffset: SVGAttributes;
905
- feSpecularLighting: SVGAttributes;
906
- feTile: SVGAttributes;
907
- feTurbulence: SVGAttributes;
908
- filter: SVGAttributes;
909
- foreignObject: SVGAttributes;
910
- g: SVGAttributes;
911
- image: SVGAttributes;
912
- line: SVGAttributes;
913
- linearGradient: SVGAttributes;
914
- marker: SVGAttributes;
915
- mask: SVGAttributes;
916
- path: SVGAttributes;
917
- pattern: SVGAttributes;
918
- polygon: SVGAttributes;
919
- polyline: SVGAttributes;
920
- radialGradient: SVGAttributes;
921
- rect: SVGAttributes;
922
- stop: SVGAttributes;
923
- symbol: SVGAttributes;
924
- text: SVGAttributes;
925
- tspan: SVGAttributes;
926
- use: SVGAttributes;
927
- }
928
- }
929
- }
930
-
931
- type Defaultize<Props, Defaults> =
932
- // Distribute over unions
933
- Props extends any
934
- ? // Make any properties included in Default optional
935
- & Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>>
936
- // Include the remaining properties from Props
937
- & Pick<Props, Exclude<keyof Props, keyof Defaults>>
938
- : never;
939
-
940
- declare global {
941
- namespace JSX {
942
- interface Element extends preact.VNode<any> {
943
- }
944
-
945
- interface ElementClass extends preact.Component<any, any> {
946
- }
947
-
948
- interface ElementAttributesProperty {
949
- props: any;
950
- }
951
-
952
- interface ElementChildrenAttribute {
953
- children: any;
954
- }
955
-
956
- type LibraryManagedAttributes<Component, Props> =
957
- Component extends { defaultProps: infer Defaults }
958
- ? Defaultize<Props, Defaults>
959
- : Props;
960
-
961
- interface SVGAttributes extends HTMLAttributes {
962
- accentHeight?: number | string;
963
- accumulate?: "none" | "sum";
964
- additive?: "replace" | "sum";
965
- alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
966
- allowReorder?: "no" | "yes";
967
- alphabetic?: number | string;
968
- amplitude?: number | string;
969
- arabicForm?: "initial" | "medial" | "terminal" | "isolated";
970
- ascent?: number | string;
971
- attributeName?: string;
972
- attributeType?: string;
973
- autoReverse?: number | string;
974
- azimuth?: number | string;
975
- baseFrequency?: number | string;
976
- baselineShift?: number | string;
977
- baseProfile?: number | string;
978
- bbox?: number | string;
979
- begin?: number | string;
980
- bias?: number | string;
981
- by?: number | string;
982
- calcMode?: number | string;
983
- capHeight?: number | string;
984
- clip?: number | string;
985
- clipPath?: string;
986
- clipPathUnits?: number | string;
987
- clipRule?: number | string;
988
- colorInterpolation?: number | string;
989
- colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
990
- colorProfile?: number | string;
991
- colorRendering?: number | string;
992
- contentScriptType?: number | string;
993
- contentStyleType?: number | string;
994
- cursor?: number | string;
995
- cx?: number | string;
996
- cy?: number | string;
997
- d?: string;
998
- decelerate?: number | string;
999
- descent?: number | string;
1000
- diffuseConstant?: number | string;
1001
- direction?: number | string;
1002
- display?: number | string;
1003
- divisor?: number | string;
1004
- dominantBaseline?: number | string;
1005
- dur?: number | string;
1006
- dx?: number | string;
1007
- dy?: number | string;
1008
- edgeMode?: number | string;
1009
- elevation?: number | string;
1010
- enableBackground?: number | string;
1011
- end?: number | string;
1012
- exponent?: number | string;
1013
- externalResourcesRequired?: number | string;
1014
- fill?: string;
1015
- fillOpacity?: number | string;
1016
- fillRule?: "nonzero" | "evenodd" | "inherit";
1017
- filter?: string;
1018
- filterRes?: number | string;
1019
- filterUnits?: number | string;
1020
- floodColor?: number | string;
1021
- floodOpacity?: number | string;
1022
- focusable?: number | string;
1023
- fontFamily?: string;
1024
- fontSize?: number | string;
1025
- fontSizeAdjust?: number | string;
1026
- fontStretch?: number | string;
1027
- fontStyle?: number | string;
1028
- fontVariant?: number | string;
1029
- fontWeight?: number | string;
1030
- format?: number | string;
1031
- from?: number | string;
1032
- fx?: number | string;
1033
- fy?: number | string;
1034
- g1?: number | string;
1035
- g2?: number | string;
1036
- glyphName?: number | string;
1037
- glyphOrientationHorizontal?: number | string;
1038
- glyphOrientationVertical?: number | string;
1039
- glyphRef?: number | string;
1040
- gradientTransform?: string;
1041
- gradientUnits?: string;
1042
- hanging?: number | string;
1043
- horizAdvX?: number | string;
1044
- horizOriginX?: number | string;
1045
- ideographic?: number | string;
1046
- imageRendering?: number | string;
1047
- in2?: number | string;
1048
- in?: string;
1049
- intercept?: number | string;
1050
- k1?: number | string;
1051
- k2?: number | string;
1052
- k3?: number | string;
1053
- k4?: number | string;
1054
- k?: number | string;
1055
- kernelMatrix?: number | string;
1056
- kernelUnitLength?: number | string;
1057
- kerning?: number | string;
1058
- keyPoints?: number | string;
1059
- keySplines?: number | string;
1060
- keyTimes?: number | string;
1061
- lengthAdjust?: number | string;
1062
- letterSpacing?: number | string;
1063
- lightingColor?: number | string;
1064
- limitingConeAngle?: number | string;
1065
- local?: number | string;
1066
- markerEnd?: string;
1067
- markerHeight?: number | string;
1068
- markerMid?: string;
1069
- markerStart?: string;
1070
- markerUnits?: number | string;
1071
- markerWidth?: number | string;
1072
- mask?: string;
1073
- maskContentUnits?: number | string;
1074
- maskUnits?: number | string;
1075
- mathematical?: number | string;
1076
- mode?: number | string;
1077
- numOctaves?: number | string;
1078
- offset?: number | string;
1079
- opacity?: number | string;
1080
- operator?: number | string;
1081
- order?: number | string;
1082
- orient?: number | string;
1083
- orientation?: number | string;
1084
- origin?: number | string;
1085
- overflow?: number | string;
1086
- overlinePosition?: number | string;
1087
- overlineThickness?: number | string;
1088
- paintOrder?: number | string;
1089
- panose1?: number | string;
1090
- pathLength?: number | string;
1091
- patternContentUnits?: string;
1092
- patternTransform?: number | string;
1093
- patternUnits?: string;
1094
- pointerEvents?: number | string;
1095
- points?: string;
1096
- pointsAtX?: number | string;
1097
- pointsAtY?: number | string;
1098
- pointsAtZ?: number | string;
1099
- preserveAlpha?: number | string;
1100
- preserveAspectRatio?: string;
1101
- primitiveUnits?: number | string;
1102
- r?: number | string;
1103
- radius?: number | string;
1104
- refX?: number | string;
1105
- refY?: number | string;
1106
- renderingIntent?: number | string;
1107
- repeatCount?: number | string;
1108
- repeatDur?: number | string;
1109
- requiredExtensions?: number | string;
1110
- requiredFeatures?: number | string;
1111
- restart?: number | string;
1112
- result?: string;
1113
- rotate?: number | string;
1114
- rx?: number | string;
1115
- ry?: number | string;
1116
- scale?: number | string;
1117
- seed?: number | string;
1118
- shapeRendering?: number | string;
1119
- slope?: number | string;
1120
- spacing?: number | string;
1121
- specularConstant?: number | string;
1122
- specularExponent?: number | string;
1123
- speed?: number | string;
1124
- spreadMethod?: string;
1125
- startOffset?: number | string;
1126
- stdDeviation?: number | string;
1127
- stemh?: number | string;
1128
- stemv?: number | string;
1129
- stitchTiles?: number | string;
1130
- stopColor?: string;
1131
- stopOpacity?: number | string;
1132
- strikethroughPosition?: number | string;
1133
- strikethroughThickness?: number | string;
1134
- string?: number | string;
1135
- stroke?: string;
1136
- strokeDasharray?: string | number;
1137
- strokeDashoffset?: string | number;
1138
- strokeLinecap?: "butt" | "round" | "square" | "inherit";
1139
- strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
1140
- strokeMiterlimit?: string;
1141
- strokeOpacity?: number | string;
1142
- strokeWidth?: number | string;
1143
- surfaceScale?: number | string;
1144
- systemLanguage?: number | string;
1145
- tableValues?: number | string;
1146
- targetX?: number | string;
1147
- targetY?: number | string;
1148
- textAnchor?: string;
1149
- textDecoration?: number | string;
1150
- textLength?: number | string;
1151
- textRendering?: number | string;
1152
- to?: number | string;
1153
- transform?: string;
1154
- u1?: number | string;
1155
- u2?: number | string;
1156
- underlinePosition?: number | string;
1157
- underlineThickness?: number | string;
1158
- unicode?: number | string;
1159
- unicodeBidi?: number | string;
1160
- unicodeRange?: number | string;
1161
- unitsPerEm?: number | string;
1162
- vAlphabetic?: number | string;
1163
- values?: string;
1164
- vectorEffect?: number | string;
1165
- version?: string;
1166
- vertAdvY?: number | string;
1167
- vertOriginX?: number | string;
1168
- vertOriginY?: number | string;
1169
- vHanging?: number | string;
1170
- vIdeographic?: number | string;
1171
- viewBox?: string;
1172
- viewTarget?: number | string;
1173
- visibility?: number | string;
1174
- vMathematical?: number | string;
1175
- widths?: number | string;
1176
- wordSpacing?: number | string;
1177
- writingMode?: number | string;
1178
- x1?: number | string;
1179
- x2?: number | string;
1180
- x?: number | string;
1181
- xChannelSelector?: string;
1182
- xHeight?: number | string;
1183
- xlinkActuate?: string;
1184
- xlinkArcrole?: string;
1185
- xlinkHref?: string;
1186
- xlinkRole?: string;
1187
- xlinkShow?: string;
1188
- xlinkTitle?: string;
1189
- xlinkType?: string;
1190
- xmlBase?: string;
1191
- xmlLang?: string;
1192
- xmlns?: string;
1193
- xmlnsXlink?: string;
1194
- xmlSpace?: string;
1195
- y1?: number | string;
1196
- y2?: number | string;
1197
- y?: number | string;
1198
- yChannelSelector?: string;
1199
- z?: number | string;
1200
- zoomAndPan?: string;
1201
- }
1202
-
1203
- interface PathAttributes {
1204
- d: string;
1205
- }
1206
-
1207
- interface EventHandler<E extends Event> {
1208
- (event: E): void;
1209
- }
1210
-
1211
- type ClipboardEventHandler = EventHandler<ClipboardEvent>;
1212
- type CompositionEventHandler = EventHandler<CompositionEvent>;
1213
- type DragEventHandler = EventHandler<DragEvent>;
1214
- type FocusEventHandler = EventHandler<FocusEvent>;
1215
- type KeyboardEventHandler = EventHandler<KeyboardEvent>;
1216
- type MouseEventHandler = EventHandler<MouseEvent>;
1217
- type TouchEventHandler = EventHandler<TouchEvent>;
1218
- type UIEventHandler = EventHandler<UIEvent>;
1219
- type WheelEventHandler = EventHandler<WheelEvent>;
1220
- type AnimationEventHandler = EventHandler<AnimationEvent>;
1221
- type TransitionEventHandler = EventHandler<TransitionEvent>;
1222
- type GenericEventHandler = EventHandler<Event>;
1223
- type PointerEventHandler = EventHandler<PointerEvent>;
1224
-
1225
- interface DOMAttributes extends preact.PreactDOMAttributes {
1226
- // Image Events
1227
- onLoad?: GenericEventHandler;
1228
- onError?: GenericEventHandler;
1229
- onLoadCapture?: GenericEventHandler;
1230
-
1231
- // Clipboard Events
1232
- onCopy?: ClipboardEventHandler;
1233
- onCopyCapture?: ClipboardEventHandler;
1234
- onCut?: ClipboardEventHandler;
1235
- onCutCapture?: ClipboardEventHandler;
1236
- onPaste?: ClipboardEventHandler;
1237
- onPasteCapture?: ClipboardEventHandler;
1238
-
1239
- // Composition Events
1240
- onCompositionEnd?: CompositionEventHandler;
1241
- onCompositionEndCapture?: CompositionEventHandler;
1242
- onCompositionStart?: CompositionEventHandler;
1243
- onCompositionStartCapture?: CompositionEventHandler;
1244
- onCompositionUpdate?: CompositionEventHandler;
1245
- onCompositionUpdateCapture?: CompositionEventHandler;
1246
-
1247
- // Focus Events
1248
- onFocus?: FocusEventHandler;
1249
- onFocusCapture?: FocusEventHandler;
1250
- onBlur?: FocusEventHandler;
1251
- onBlurCapture?: FocusEventHandler;
1252
-
1253
- // Form Events
1254
- onChange?: GenericEventHandler;
1255
- onChangeCapture?: GenericEventHandler;
1256
- onInput?: GenericEventHandler;
1257
- onInputCapture?: GenericEventHandler;
1258
- onSearch?: GenericEventHandler;
1259
- onSearchCapture?: GenericEventHandler;
1260
- onSubmit?: GenericEventHandler;
1261
- onSubmitCapture?: GenericEventHandler;
1262
- onInvalid?: GenericEventHandler;
1263
-
1264
- // Keyboard Events
1265
- onKeyDown?: KeyboardEventHandler;
1266
- onKeyDownCapture?: KeyboardEventHandler;
1267
- onKeyPress?: KeyboardEventHandler;
1268
- onKeyPressCapture?: KeyboardEventHandler;
1269
- onKeyUp?: KeyboardEventHandler;
1270
- onKeyUpCapture?: KeyboardEventHandler;
1271
-
1272
- // Media Events
1273
- onAbort?: GenericEventHandler;
1274
- onAbortCapture?: GenericEventHandler;
1275
- onCanPlay?: GenericEventHandler;
1276
- onCanPlayCapture?: GenericEventHandler;
1277
- onCanPlayThrough?: GenericEventHandler;
1278
- onCanPlayThroughCapture?: GenericEventHandler;
1279
- onDurationChange?: GenericEventHandler;
1280
- onDurationChangeCapture?: GenericEventHandler;
1281
- onEmptied?: GenericEventHandler;
1282
- onEmptiedCapture?: GenericEventHandler;
1283
- onEncrypted?: GenericEventHandler;
1284
- onEncryptedCapture?: GenericEventHandler;
1285
- onEnded?: GenericEventHandler;
1286
- onEndedCapture?: GenericEventHandler;
1287
- onLoadedData?: GenericEventHandler;
1288
- onLoadedDataCapture?: GenericEventHandler;
1289
- onLoadedMetadata?: GenericEventHandler;
1290
- onLoadedMetadataCapture?: GenericEventHandler;
1291
- onLoadStart?: GenericEventHandler;
1292
- onLoadStartCapture?: GenericEventHandler;
1293
- onPause?: GenericEventHandler;
1294
- onPauseCapture?: GenericEventHandler;
1295
- onPlay?: GenericEventHandler;
1296
- onPlayCapture?: GenericEventHandler;
1297
- onPlaying?: GenericEventHandler;
1298
- onPlayingCapture?: GenericEventHandler;
1299
- onProgress?: GenericEventHandler;
1300
- onProgressCapture?: GenericEventHandler;
1301
- onRateChange?: GenericEventHandler;
1302
- onRateChangeCapture?: GenericEventHandler;
1303
- onSeeked?: GenericEventHandler;
1304
- onSeekedCapture?: GenericEventHandler;
1305
- onSeeking?: GenericEventHandler;
1306
- onSeekingCapture?: GenericEventHandler;
1307
- onStalled?: GenericEventHandler;
1308
- onStalledCapture?: GenericEventHandler;
1309
- onSuspend?: GenericEventHandler;
1310
- onSuspendCapture?: GenericEventHandler;
1311
- onTimeUpdate?: GenericEventHandler;
1312
- onTimeUpdateCapture?: GenericEventHandler;
1313
- onVolumeChange?: GenericEventHandler;
1314
- onVolumeChangeCapture?: GenericEventHandler;
1315
- onWaiting?: GenericEventHandler;
1316
- onWaitingCapture?: GenericEventHandler;
1317
-
1318
- // MouseEvents
1319
- onClick?: MouseEventHandler;
1320
- onClickCapture?: MouseEventHandler;
1321
- onContextMenu?: MouseEventHandler;
1322
- onContextMenuCapture?: MouseEventHandler;
1323
- onDblClick?: MouseEventHandler;
1324
- onDblClickCapture?: MouseEventHandler;
1325
- onDrag?: DragEventHandler;
1326
- onDragCapture?: DragEventHandler;
1327
- onDragEnd?: DragEventHandler;
1328
- onDragEndCapture?: DragEventHandler;
1329
- onDragEnter?: DragEventHandler;
1330
- onDragEnterCapture?: DragEventHandler;
1331
- onDragExit?: DragEventHandler;
1332
- onDragExitCapture?: DragEventHandler;
1333
- onDragLeave?: DragEventHandler;
1334
- onDragLeaveCapture?: DragEventHandler;
1335
- onDragOver?: DragEventHandler;
1336
- onDragOverCapture?: DragEventHandler;
1337
- onDragStart?: DragEventHandler;
1338
- onDragStartCapture?: DragEventHandler;
1339
- onDrop?: DragEventHandler;
1340
- onDropCapture?: DragEventHandler;
1341
- onMouseDown?: MouseEventHandler;
1342
- onMouseDownCapture?: MouseEventHandler;
1343
- onMouseEnter?: MouseEventHandler;
1344
- onMouseEnterCapture?: MouseEventHandler;
1345
- onMouseLeave?: MouseEventHandler;
1346
- onMouseLeaveCapture?: MouseEventHandler;
1347
- onMouseMove?: MouseEventHandler;
1348
- onMouseMoveCapture?: MouseEventHandler;
1349
- onMouseOut?: MouseEventHandler;
1350
- onMouseOutCapture?: MouseEventHandler;
1351
- onMouseOver?: MouseEventHandler;
1352
- onMouseOverCapture?: MouseEventHandler;
1353
- onMouseUp?: MouseEventHandler;
1354
- onMouseUpCapture?: MouseEventHandler;
1355
-
1356
- // Selection Events
1357
- onSelect?: GenericEventHandler;
1358
- onSelectCapture?: GenericEventHandler;
1359
-
1360
- // Touch Events
1361
- onTouchCancel?: TouchEventHandler;
1362
- onTouchCancelCapture?: TouchEventHandler;
1363
- onTouchEnd?: TouchEventHandler;
1364
- onTouchEndCapture?: TouchEventHandler;
1365
- onTouchMove?: TouchEventHandler;
1366
- onTouchMoveCapture?: TouchEventHandler;
1367
- onTouchStart?: TouchEventHandler;
1368
- onTouchStartCapture?: TouchEventHandler;
1369
-
1370
- // Pointer Events
1371
- onPointerOver?: PointerEventHandler;
1372
- onPointerOverCapture?: PointerEventHandler;
1373
- onPointerEnter?: PointerEventHandler;
1374
- onPointerEnterCapture?: PointerEventHandler;
1375
- onPointerDown?: PointerEventHandler;
1376
- onPointerDownCapture?: PointerEventHandler;
1377
- onPointerMove?: PointerEventHandler;
1378
- onPointerMoveCapture?: PointerEventHandler;
1379
- onPointerUp?: PointerEventHandler;
1380
- onPointerUpCapture?: PointerEventHandler;
1381
- onPointerCancel?: PointerEventHandler;
1382
- onPointerCancelCapture?: PointerEventHandler;
1383
- onPointerOut?: PointerEventHandler;
1384
- onPointerOutCapture?: PointerEventHandler;
1385
- onPointerLeave?: PointerEventHandler;
1386
- onPointerLeaveCapture?: PointerEventHandler;
1387
- onGotPointerCapture?: PointerEventHandler;
1388
- onGotPointerCaptureCapture?: PointerEventHandler;
1389
- onLostPointerCapture?: PointerEventHandler;
1390
- onLostPointerCaptureCapture?: PointerEventHandler;
1391
-
1392
- // UI Events
1393
- onScroll?: UIEventHandler;
1394
- onScrollCapture?: UIEventHandler;
1395
-
1396
- // Wheel Events
1397
- onWheel?: WheelEventHandler;
1398
- onWheelCapture?: WheelEventHandler;
1399
-
1400
- // Animation Events
1401
- onAnimationStart?: AnimationEventHandler;
1402
- onAnimationStartCapture?: AnimationEventHandler;
1403
- onAnimationEnd?: AnimationEventHandler;
1404
- onAnimationEndCapture?: AnimationEventHandler;
1405
- onAnimationIteration?: AnimationEventHandler;
1406
- onAnimationIterationCapture?: AnimationEventHandler;
1407
-
1408
- // Transition Events
1409
- onTransitionEnd?: TransitionEventHandler;
1410
- onTransitionEndCapture?: TransitionEventHandler;
1411
- }
1412
-
1413
- interface HTMLAttributes extends preact.PreactHTMLAttributes, DOMAttributes {
1414
- // Standard HTML Attributes
1415
- accept?: string;
1416
- acceptCharset?: string;
1417
- accessKey?: string;
1418
- action?: string;
1419
- allowFullScreen?: boolean;
1420
- allowTransparency?: boolean;
1421
- alt?: string;
1422
- async?: boolean;
1423
- autocomplete?: string;
1424
- autofocus?: boolean;
1425
- autoPlay?: boolean;
1426
- capture?: boolean;
1427
- cellPadding?: number | string;
1428
- cellSpacing?: number | string;
1429
- charSet?: string;
1430
- challenge?: string;
1431
- checked?: boolean;
1432
- class?: string;
1433
- className?: string;
1434
- cols?: number;
1435
- colSpan?: number;
1436
- content?: string;
1437
- contentEditable?: boolean;
1438
- contextMenu?: string;
1439
- controls?: boolean;
1440
- controlsList?: string;
1441
- coords?: string;
1442
- crossOrigin?: string;
1443
- data?: string;
1444
- dateTime?: string;
1445
- default?: boolean;
1446
- defer?: boolean;
1447
- dir?: string;
1448
- disabled?: boolean;
1449
- download?: any;
1450
- draggable?: boolean;
1451
- encType?: string;
1452
- form?: string;
1453
- formAction?: string;
1454
- formEncType?: string;
1455
- formMethod?: string;
1456
- formNoValidate?: boolean;
1457
- formTarget?: string;
1458
- frameBorder?: number | string;
1459
- headers?: string;
1460
- height?: number | string;
1461
- hidden?: boolean;
1462
- high?: number;
1463
- href?: string;
1464
- hrefLang?: string;
1465
- for?: string;
1466
- httpEquiv?: string;
1467
- icon?: string;
1468
- id?: string;
1469
- inputMode?: string;
1470
- integrity?: string;
1471
- is?: string;
1472
- keyParams?: string;
1473
- keyType?: string;
1474
- kind?: string;
1475
- label?: string;
1476
- lang?: string;
1477
- list?: string;
1478
- loop?: boolean;
1479
- low?: number;
1480
- manifest?: string;
1481
- marginHeight?: number;
1482
- marginWidth?: number;
1483
- max?: number | string;
1484
- maxLength?: number;
1485
- media?: string;
1486
- mediaGroup?: string;
1487
- method?: string;
1488
- min?: number | string;
1489
- minLength?: number;
1490
- multiple?: boolean;
1491
- muted?: boolean;
1492
- name?: string;
1493
- noValidate?: boolean;
1494
- open?: boolean;
1495
- optimum?: number;
1496
- pattern?: string;
1497
- placeholder?: string;
1498
- playsInline?: boolean;
1499
- poster?: string;
1500
- preload?: string;
1501
- radioGroup?: string;
1502
- readOnly?: boolean;
1503
- rel?: string;
1504
- required?: boolean;
1505
- role?: string;
1506
- rows?: number;
1507
- rowSpan?: number;
1508
- sandbox?: string;
1509
- scope?: string;
1510
- scoped?: boolean;
1511
- scrolling?: string;
1512
- seamless?: boolean;
1513
- selected?: boolean;
1514
- shape?: string;
1515
- size?: number;
1516
- sizes?: string;
1517
- slot?: string;
1518
- span?: number;
1519
- spellcheck?: boolean;
1520
- src?: string;
1521
- srcset?: string;
1522
- srcDoc?: string;
1523
- srcLang?: string;
1524
- srcSet?: string;
1525
- start?: number;
1526
- step?: number | string;
1527
- style?: any;
1528
- summary?: string;
1529
- tabIndex?: number;
1530
- target?: string;
1531
- title?: string;
1532
- type?: string;
1533
- useMap?: string;
1534
- value?: string | string[] | number;
1535
- width?: number | string;
1536
- wmode?: string;
1537
- wrap?: string;
1538
-
1539
- // RDFa Attributes
1540
- about?: string;
1541
- datatype?: string;
1542
- inlist?: any;
1543
- prefix?: string;
1544
- property?: string;
1545
- resource?: string;
1546
- typeof?: string;
1547
- vocab?: string;
1548
- }
1549
-
1550
- interface IntrinsicElements {
1551
- // HTML
1552
- a: HTMLAttributes;
1553
- abbr: HTMLAttributes;
1554
- address: HTMLAttributes;
1555
- area: HTMLAttributes;
1556
- article: HTMLAttributes;
1557
- aside: HTMLAttributes;
1558
- audio: HTMLAttributes;
1559
- b: HTMLAttributes;
1560
- base: HTMLAttributes;
1561
- bdi: HTMLAttributes;
1562
- bdo: HTMLAttributes;
1563
- big: HTMLAttributes;
1564
- blockquote: HTMLAttributes;
1565
- body: HTMLAttributes;
1566
- br: HTMLAttributes;
1567
- button: HTMLAttributes;
1568
- canvas: HTMLAttributes;
1569
- caption: HTMLAttributes;
1570
- cite: HTMLAttributes;
1571
- code: HTMLAttributes;
1572
- col: HTMLAttributes;
1573
- colgroup: HTMLAttributes;
1574
- data: HTMLAttributes;
1575
- datalist: HTMLAttributes;
1576
- dd: HTMLAttributes;
1577
- del: HTMLAttributes;
1578
- details: HTMLAttributes;
1579
- dfn: HTMLAttributes;
1580
- dialog: HTMLAttributes;
1581
- div: HTMLAttributes;
1582
- dl: HTMLAttributes;
1583
- dt: HTMLAttributes;
1584
- em: HTMLAttributes;
1585
- embed: HTMLAttributes;
1586
- fieldset: HTMLAttributes;
1587
- figcaption: HTMLAttributes;
1588
- figure: HTMLAttributes;
1589
- footer: HTMLAttributes;
1590
- form: HTMLAttributes;
1591
- h1: HTMLAttributes;
1592
- h2: HTMLAttributes;
1593
- h3: HTMLAttributes;
1594
- h4: HTMLAttributes;
1595
- h5: HTMLAttributes;
1596
- h6: HTMLAttributes;
1597
- head: HTMLAttributes;
1598
- header: HTMLAttributes;
1599
- hr: HTMLAttributes;
1600
- html: HTMLAttributes;
1601
- i: HTMLAttributes;
1602
- iframe: HTMLAttributes;
1603
- img: HTMLAttributes;
1604
- input: HTMLAttributes;
1605
- ins: HTMLAttributes;
1606
- kbd: HTMLAttributes;
1607
- keygen: HTMLAttributes;
1608
- label: HTMLAttributes;
1609
- legend: HTMLAttributes;
1610
- li: HTMLAttributes;
1611
- link: HTMLAttributes;
1612
- main: HTMLAttributes;
1613
- map: HTMLAttributes;
1614
- mark: HTMLAttributes;
1615
- menu: HTMLAttributes;
1616
- menuitem: HTMLAttributes;
1617
- meta: HTMLAttributes;
1618
- meter: HTMLAttributes;
1619
- nav: HTMLAttributes;
1620
- noscript: HTMLAttributes;
1621
- object: HTMLAttributes;
1622
- ol: HTMLAttributes;
1623
- optgroup: HTMLAttributes;
1624
- option: HTMLAttributes;
1625
- output: HTMLAttributes;
1626
- p: HTMLAttributes;
1627
- param: HTMLAttributes;
1628
- picture: HTMLAttributes;
1629
- pre: HTMLAttributes;
1630
- progress: HTMLAttributes;
1631
- q: HTMLAttributes;
1632
- rp: HTMLAttributes;
1633
- rt: HTMLAttributes;
1634
- ruby: HTMLAttributes;
1635
- s: HTMLAttributes;
1636
- samp: HTMLAttributes;
1637
- script: HTMLAttributes;
1638
- section: HTMLAttributes;
1639
- select: HTMLAttributes;
1640
- slot: HTMLAttributes;
1641
- small: HTMLAttributes;
1642
- source: HTMLAttributes;
1643
- span: HTMLAttributes;
1644
- strong: HTMLAttributes;
1645
- style: HTMLAttributes;
1646
- sub: HTMLAttributes;
1647
- summary: HTMLAttributes;
1648
- sup: HTMLAttributes;
1649
- table: HTMLAttributes;
1650
- tbody: HTMLAttributes;
1651
- td: HTMLAttributes;
1652
- textarea: HTMLAttributes;
1653
- tfoot: HTMLAttributes;
1654
- th: HTMLAttributes;
1655
- thead: HTMLAttributes;
1656
- time: HTMLAttributes;
1657
- title: HTMLAttributes;
1658
- tr: HTMLAttributes;
1659
- track: HTMLAttributes;
1660
- u: HTMLAttributes;
1661
- ul: HTMLAttributes;
1662
- "var": HTMLAttributes;
1663
- video: HTMLAttributes;
1664
- wbr: HTMLAttributes;
1665
-
1666
- //SVG
1667
- svg: SVGAttributes;
1668
- animate: SVGAttributes;
1669
- circle: SVGAttributes;
1670
- clipPath: SVGAttributes;
1671
- defs: SVGAttributes;
1672
- desc: SVGAttributes;
1673
- ellipse: SVGAttributes;
1674
- feBlend: SVGAttributes;
1675
- feColorMatrix: SVGAttributes;
1676
- feComponentTransfer: SVGAttributes;
1677
- feComposite: SVGAttributes;
1678
- feConvolveMatrix: SVGAttributes;
1679
- feDiffuseLighting: SVGAttributes;
1680
- feDisplacementMap: SVGAttributes;
1681
- feFlood: SVGAttributes;
1682
- feGaussianBlur: SVGAttributes;
1683
- feImage: SVGAttributes;
1684
- feMerge: SVGAttributes;
1685
- feMergeNode: SVGAttributes;
1686
- feMorphology: SVGAttributes;
1687
- feOffset: SVGAttributes;
1688
- feSpecularLighting: SVGAttributes;
1689
- feTile: SVGAttributes;
1690
- feTurbulence: SVGAttributes;
1691
- filter: SVGAttributes;
1692
- foreignObject: SVGAttributes;
1693
- g: SVGAttributes;
1694
- image: SVGAttributes;
1695
- line: SVGAttributes;
1696
- linearGradient: SVGAttributes;
1697
- marker: SVGAttributes;
1698
- mask: SVGAttributes;
1699
- path: SVGAttributes;
1700
- pattern: SVGAttributes;
1701
- polygon: SVGAttributes;
1702
- polyline: SVGAttributes;
1703
- radialGradient: SVGAttributes;
1704
- rect: SVGAttributes;
1705
- stop: SVGAttributes;
1706
- symbol: SVGAttributes;
1707
- text: SVGAttributes;
1708
- tspan: SVGAttributes;
1709
- use: SVGAttributes;
1710
- }
1711
- }
1712
- }