hyperscript-rxjs 1.3.15 → 1.3.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/dist/hyperscript-rxjs.cjs +4114 -0
  2. package/dist/hyperscript-rxjs.d.ts +1438 -0
  3. package/package.json +21 -12
  4. package/src/array/advance.d.ts +0 -9
  5. package/src/array/advance.js +0 -13
  6. package/src/array/advance.test.js +0 -12
  7. package/src/array/arrayInsert.d.ts +0 -8
  8. package/src/array/arrayInsert.js +0 -13
  9. package/src/array/arrayInsert.test.js +0 -13
  10. package/src/array/arrayRemove.d.ts +0 -7
  11. package/src/array/arrayRemove.js +0 -15
  12. package/src/array/arrayRemove.test.js +0 -13
  13. package/src/array/findLastIndex.d.ts +0 -14
  14. package/src/array/findLastIndex.js +0 -20
  15. package/src/array/findLastIndex.test.js +0 -41
  16. package/src/array/index.d.ts +0 -9
  17. package/src/array/index.js +0 -9
  18. package/src/array/isRange.d.ts +0 -7
  19. package/src/array/isRange.js +0 -15
  20. package/src/array/isRange.test.js +0 -6
  21. package/src/array/rangeArray.d.ts +0 -7
  22. package/src/array/rangeArray.js +0 -10
  23. package/src/array/rangeArray.test.js +0 -11
  24. package/src/array/unwrapArgs.d.ts +0 -10
  25. package/src/array/unwrapArgs.js +0 -15
  26. package/src/array/unwrapArgs.test.js +0 -33
  27. package/src/array/zipArray.d.ts +0 -11
  28. package/src/array/zipArray.js +0 -24
  29. package/src/array/zipArray.test.js +0 -16
  30. package/src/comparers/Comparer.d.ts +0 -101
  31. package/src/comparers/Comparer.js +0 -149
  32. package/src/comparers/comparers.d.ts +0 -21
  33. package/src/comparers/comparers.js +0 -10
  34. package/src/comparers/differenceSet.d.ts +0 -20
  35. package/src/comparers/differenceSet.js +0 -35
  36. package/src/comparers/differenceSet.test.js +0 -11
  37. package/src/comparers/distinctArray.d.ts +0 -13
  38. package/src/comparers/distinctArray.js +0 -30
  39. package/src/comparers/distinctArray.test.js +0 -10
  40. package/src/comparers/findIndexInSet.d.ts +0 -20
  41. package/src/comparers/findIndexInSet.js +0 -27
  42. package/src/comparers/findIndexInSet.test.js +0 -8
  43. package/src/comparers/groupArrayBy.d.ts +0 -19
  44. package/src/comparers/groupArrayBy.js +0 -29
  45. package/src/comparers/groupArrayBy.test.js +0 -38
  46. package/src/comparers/groupSortedEntries.d.ts +0 -17
  47. package/src/comparers/groupSortedEntries.js +0 -38
  48. package/src/comparers/groupSortedEntries.test.js +0 -46
  49. package/src/comparers/index.d.ts +0 -14
  50. package/src/comparers/index.js +0 -14
  51. package/src/comparers/intersectSet.d.ts +0 -19
  52. package/src/comparers/intersectSet.js +0 -35
  53. package/src/comparers/intersectSet.test.js +0 -14
  54. package/src/comparers/isEqualset.d.ts +0 -22
  55. package/src/comparers/isEqualset.js +0 -33
  56. package/src/comparers/isEqualset.test.js +0 -22
  57. package/src/comparers/isSubset.d.ts +0 -21
  58. package/src/comparers/isSubset.js +0 -33
  59. package/src/comparers/isSubset.test.js +0 -21
  60. package/src/comparers/isSuperset.d.ts +0 -21
  61. package/src/comparers/isSuperset.js +0 -13
  62. package/src/comparers/isSuperset.test.js +0 -21
  63. package/src/comparers/sortedArrayToSet.d.ts +0 -20
  64. package/src/comparers/sortedArrayToSet.js +0 -35
  65. package/src/comparers/sortedArrayToSet.test.js +0 -11
  66. package/src/comparers/unionSet.d.ts +0 -21
  67. package/src/comparers/unionSet.js +0 -34
  68. package/src/comparers/unionSet.test.js +0 -11
  69. package/src/comparison/compareDate.d.ts +0 -8
  70. package/src/comparison/compareDate.js +0 -11
  71. package/src/comparison/compareEntries.d.ts +0 -13
  72. package/src/comparison/compareEntries.js +0 -13
  73. package/src/comparison/compareKey.d.ts +0 -11
  74. package/src/comparison/compareKey.js +0 -25
  75. package/src/comparison/compareKey.test.js +0 -21
  76. package/src/comparison/compareKeyPath.d.ts +0 -15
  77. package/src/comparison/compareKeyPath.js +0 -33
  78. package/src/comparison/compareKeyPath.test.js +0 -28
  79. package/src/comparison/compareNumber.d.ts +0 -11
  80. package/src/comparison/compareNumber.js +0 -27
  81. package/src/comparison/compareNumber.test.js +0 -21
  82. package/src/comparison/defaultCompare.d.ts +0 -8
  83. package/src/comparison/defaultCompare.js +0 -12
  84. package/src/comparison/defaultCompare.test.js +0 -24
  85. package/src/comparison/index.d.ts +0 -7
  86. package/src/comparison/index.js +0 -7
  87. package/src/comparison/infinity.test.js +0 -122
  88. package/src/comparison/typeof.test.js +0 -64
  89. package/src/comparison/types.d.ts +0 -5
  90. package/src/comparison/types.js +0 -11
  91. package/src/deep/Deep.d.ts +0 -58
  92. package/src/deep/Deep.js +0 -267
  93. package/src/deep/Deep.test.js +0 -130
  94. package/src/deep/deepCombineLatest.test.js +0 -36
  95. package/src/deep/deepMerge.test.js +0 -34
  96. package/src/deep/differenceDeep.test.js +0 -31
  97. package/src/deep/freshValueDeep.test.js +0 -17
  98. package/src/deep/index.d.ts +0 -1
  99. package/src/deep/index.js +0 -2
  100. package/src/deep/intersectDeep.test.js +0 -25
  101. package/src/deep/intersectEntries.d.ts +0 -13
  102. package/src/deep/intersectEntries.js +0 -37
  103. package/src/deep/intersectEntries.test.js +0 -20
  104. package/src/deep/objectToDeep.test.js +0 -31
  105. package/src/deep/replaceValueDeep.test.js +0 -21
  106. package/src/deep/unionDeep.test.js +0 -30
  107. package/src/deep/zipValueDeep.test.js +0 -21
  108. package/src/deep-rxjs/ObservableArray.d.ts +0 -55
  109. package/src/deep-rxjs/ObservableArray.js +0 -94
  110. package/src/deep-rxjs/ObservableArray.test.js +0 -117
  111. package/src/deep-rxjs/index.d.ts +0 -2
  112. package/src/deep-rxjs/index.js +0 -2
  113. package/src/deep-rxjs/isRxType.d.ts +0 -9
  114. package/src/deep-rxjs/isRxType.js +0 -15
  115. package/src/deep-rxjs/isRxType.test.js +0 -43
  116. package/src/hyperscript-rxjs/HyperscriptExtensions.d.ts +0 -20
  117. package/src/hyperscript-rxjs/checkbox.d.ts +0 -13
  118. package/src/hyperscript-rxjs/checkbox.js +0 -47
  119. package/src/hyperscript-rxjs/checkbox.test.js +0 -68
  120. package/src/hyperscript-rxjs/choice.d.ts +0 -13
  121. package/src/hyperscript-rxjs/choice.js +0 -24
  122. package/src/hyperscript-rxjs/choice.test.js +0 -108
  123. package/src/hyperscript-rxjs/collapse.d.ts +0 -14
  124. package/src/hyperscript-rxjs/collapse.js +0 -32
  125. package/src/hyperscript-rxjs/collapse.test.js +0 -67
  126. package/src/hyperscript-rxjs/displays/blockLevelFamily.d.ts +0 -5
  127. package/src/hyperscript-rxjs/displays/blockLevelFamily.js +0 -51
  128. package/src/hyperscript-rxjs/displays/getDisplay.d.ts +0 -7
  129. package/src/hyperscript-rxjs/displays/getDisplay.js +0 -51
  130. package/src/hyperscript-rxjs/displays/getDisplay.test.js +0 -56
  131. package/src/hyperscript-rxjs/displays/index.d.ts +0 -3
  132. package/src/hyperscript-rxjs/displays/index.js +0 -3
  133. package/src/hyperscript-rxjs/displays/inlineFamily.d.ts +0 -5
  134. package/src/hyperscript-rxjs/displays/inlineFamily.js +0 -73
  135. package/src/hyperscript-rxjs/flip.d.ts +0 -15
  136. package/src/hyperscript-rxjs/flip.js +0 -29
  137. package/src/hyperscript-rxjs/flip.test.js +0 -85
  138. package/src/hyperscript-rxjs/fragment.d.ts +0 -10
  139. package/src/hyperscript-rxjs/fragment.js +0 -22
  140. package/src/hyperscript-rxjs/fragment.test.js +0 -70
  141. package/src/hyperscript-rxjs/hyperscript.d.ts +0 -15
  142. package/src/hyperscript-rxjs/hyperscript.js +0 -170
  143. package/src/hyperscript-rxjs/hyperscript.test.js +0 -75
  144. package/src/hyperscript-rxjs/index.d.ts +0 -19
  145. package/src/hyperscript-rxjs/index.js +0 -19
  146. package/src/hyperscript-rxjs/multiselect.d.ts +0 -18
  147. package/src/hyperscript-rxjs/multiselect.js +0 -41
  148. package/src/hyperscript-rxjs/multiselect.test.js +0 -121
  149. package/src/hyperscript-rxjs/numberbox.d.ts +0 -14
  150. package/src/hyperscript-rxjs/numberbox.js +0 -73
  151. package/src/hyperscript-rxjs/numberbox.test.js +0 -84
  152. package/src/hyperscript-rxjs/radio.d.ts +0 -15
  153. package/src/hyperscript-rxjs/radio.js +0 -53
  154. package/src/hyperscript-rxjs/radio.test.js +0 -59
  155. package/src/hyperscript-rxjs/select.d.ts +0 -28
  156. package/src/hyperscript-rxjs/select.js +0 -88
  157. package/src/hyperscript-rxjs/select.test.js +0 -101
  158. package/src/hyperscript-rxjs/tabControls/bindTabIndex.d.ts +0 -12
  159. package/src/hyperscript-rxjs/tabControls/bindTabIndex.js +0 -59
  160. package/src/hyperscript-rxjs/tabControls/index.d.ts +0 -8
  161. package/src/hyperscript-rxjs/tabControls/index.js +0 -10
  162. package/src/hyperscript-rxjs/tabControls/tabControl.d.ts +0 -19
  163. package/src/hyperscript-rxjs/tabControls/tabControl.js +0 -40
  164. package/src/hyperscript-rxjs/tabControls/tabControl.test.js +0 -98
  165. package/src/hyperscript-rxjs/tabControls/tabNavItem.d.ts +0 -9
  166. package/src/hyperscript-rxjs/tabControls/tabNavItem.js +0 -30
  167. package/src/hyperscript-rxjs/tabControls/tabPanel.d.ts +0 -9
  168. package/src/hyperscript-rxjs/tabControls/tabPanel.js +0 -21
  169. package/src/hyperscript-rxjs/tabControls/tabRoot.d.ts +0 -7
  170. package/src/hyperscript-rxjs/tabControls/tabRoot.js +0 -26
  171. package/src/hyperscript-rxjs/tags.d.ts +0 -193
  172. package/src/hyperscript-rxjs/tags.js +0 -751
  173. package/src/hyperscript-rxjs/tags.test.js +0 -75
  174. package/src/hyperscript-rxjs/textNode.d.ts +0 -11
  175. package/src/hyperscript-rxjs/textNode.js +0 -51
  176. package/src/hyperscript-rxjs/textNode.test.js +0 -56
  177. package/src/hyperscript-rxjs/textarea.d.ts +0 -17
  178. package/src/hyperscript-rxjs/textarea.js +0 -45
  179. package/src/hyperscript-rxjs/textarea.test.js +0 -52
  180. package/src/hyperscript-rxjs/textbox.d.ts +0 -15
  181. package/src/hyperscript-rxjs/textbox.js +0 -42
  182. package/src/hyperscript-rxjs/textbox.test.js +0 -52
  183. package/src/index.d.ts +0 -19
  184. package/src/index.js +0 -19
  185. package/src/nodes/attachSubscriptionToNode.d.ts +0 -13
  186. package/src/nodes/attachSubscriptionToNode.js +0 -25
  187. package/src/nodes/attachSubscriptionToNode.test.js +0 -73
  188. package/src/nodes/index.d.ts +0 -6
  189. package/src/nodes/index.js +0 -6
  190. package/src/nodes/normalizeChildNodes.d.ts +0 -9
  191. package/src/nodes/normalizeChildNodes.js +0 -15
  192. package/src/nodes/normalizeChildNodes.test.js +0 -55
  193. package/src/nodes/parseHyperscriptArgs.d.ts +0 -10
  194. package/src/nodes/parseHyperscriptArgs.js +0 -57
  195. package/src/nodes/parseHyperscriptArgs.test.js +0 -85
  196. package/src/nodes/pipeEvent.d.ts +0 -15
  197. package/src/nodes/pipeEvent.js +0 -49
  198. package/src/nodes/pipeEvent.test.js +0 -97
  199. package/src/nodes/subscribeEvent.d.ts +0 -15
  200. package/src/nodes/subscribeEvent.js +0 -56
  201. package/src/nodes/subscribeEvent.test.js +0 -88
  202. package/src/object/index.d.ts +0 -10
  203. package/src/object/index.js +0 -11
  204. package/src/object/intersectObject.d.ts +0 -12
  205. package/src/object/intersectObject.js +0 -23
  206. package/src/object/intersectObject.test.js +0 -69
  207. package/src/object/isEmptyObject.d.ts +0 -7
  208. package/src/object/isEmptyObject.js +0 -13
  209. package/src/object/isEmptyObject.test.js +0 -33
  210. package/src/object/isPlainObject.d.ts +0 -11
  211. package/src/object/isPlainObject.js +0 -18
  212. package/src/object/nestedCombineLatest.d.ts +0 -11
  213. package/src/object/nestedCombineLatest.js +0 -18
  214. package/src/object/nestedCombineLatest.test.js +0 -25
  215. package/src/object/nestedMerge.d.ts +0 -11
  216. package/src/object/nestedMerge.js +0 -11
  217. package/src/object/nestedMerge.test.js +0 -61
  218. package/src/object/pickBehaviorSubject.d.ts +0 -13
  219. package/src/object/pickBehaviorSubject.js +0 -81
  220. package/src/object/pickBehaviorSubject.test.js +0 -88
  221. package/src/object/pluckProperty.d.ts +0 -13
  222. package/src/object/pluckProperty.js +0 -24
  223. package/src/object/pluckProperty.test.js +0 -37
  224. package/src/object/restore.d.ts +0 -12
  225. package/src/object/restore.js +0 -69
  226. package/src/object/restore.test.js +0 -124
  227. package/src/object/splitObjectByObservable.d.ts +0 -12
  228. package/src/object/splitObjectByObservable.js +0 -41
  229. package/src/object/splitObjectByObservable.test.js +0 -78
  230. package/src/props/getNestedProperty.d.ts +0 -12
  231. package/src/props/getNestedProperty.js +0 -31
  232. package/src/props/getNestedProperty.test.js +0 -72
  233. package/src/props/index.d.ts +0 -7
  234. package/src/props/index.js +0 -7
  235. package/src/props/parsePropName.d.ts +0 -13
  236. package/src/props/parsePropName.js +0 -45
  237. package/src/props/parsePropName.test.js +0 -67
  238. package/src/props/setProp.d.ts +0 -16
  239. package/src/props/setProp.js +0 -42
  240. package/src/props/setProp.test.js +0 -59
  241. package/src/props/setProps.d.ts +0 -14
  242. package/src/props/setProps.js +0 -47
  243. package/src/props/setProps.test.js +0 -97
  244. package/src/props/subscribeProp.d.ts +0 -16
  245. package/src/props/subscribeProp.js +0 -47
  246. package/src/props/subscribeProp.test.js +0 -81
  247. package/src/ramda/compose.d.ts +0 -10
  248. package/src/ramda/compose.js +0 -36
  249. package/src/ramda/compose.test.js +0 -73
  250. package/src/ramda/cond.d.ts +0 -12
  251. package/src/ramda/cond.js +0 -29
  252. package/src/ramda/cond.test.js +0 -88
  253. package/src/ramda/fold.d.ts +0 -13
  254. package/src/ramda/fold.js +0 -20
  255. package/src/ramda/fold.test.js +0 -51
  256. package/src/ramda/index.d.ts +0 -6
  257. package/src/ramda/index.js +0 -6
  258. package/src/ramda/pipe.d.ts +0 -13
  259. package/src/ramda/pipe.js +0 -27
  260. package/src/ramda/pipe.test.js +0 -77
  261. package/src/ramda/unfold.d.ts +0 -11
  262. package/src/ramda/unfold.js +0 -20
  263. package/src/ramda/unfold.test.js +0 -29
  264. package/src/unquoted-json/ajax.test.js +0 -1074
  265. package/src/unquoted-json/index.d.ts +0 -13
  266. package/src/unquoted-json/index.js +0 -12
  267. package/src/unquoted-json/queryStringify.d.ts +0 -8
  268. package/src/unquoted-json/queryStringify.js +0 -70
  269. package/src/unquoted-json/queryStringify.test.js +0 -110
  270. package/src/unquoted-json/stringifyKey.d.ts +0 -7
  271. package/src/unquoted-json/stringifyKey.js +0 -16
  272. package/src/unquoted-json/stringifyKey.test.js +0 -51
  273. package/src/unquoted-json/stringifyStringValue.d.ts +0 -7
  274. package/src/unquoted-json/stringifyStringValue.js +0 -17
  275. package/src/unquoted-json/stringifyStringValue.test.js +0 -52
  276. package/src/unquoted-json/unquotedJsonStringify.d.ts +0 -7
  277. package/src/unquoted-json/unquotedJsonStringify.js +0 -39
  278. package/src/unquoted-json/unquotedJsonStringify.test.js +0 -52
@@ -1,751 +0,0 @@
1
- import { hyperscript } from './hyperscript';
2
-
3
- /**
4
- * @template {HTMLElement} T
5
- * @typedef {import("./HyperscriptExtensions").HyperscriptExtensions<T>} HyperscriptExtensions
6
- */
7
-
8
- /**
9
- * 创建 <a> 元素
10
- * @param {{ [_: string]: any }} [props] - 元素属性
11
- * @param {...any} childNodes - 子节点
12
- * @returns {HyperscriptExtensions<HTMLAnchorElement>}
13
- */
14
- export const a = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLAnchorElement>} */(hyperscript('a', props, ...childNodes));
15
-
16
- /**
17
- * 创建 <abbr> 元素
18
- * @param {{ [_: string]: any }} [props] - 元素属性
19
- * @param {...any} childNodes - 子节点
20
- * @returns {HyperscriptExtensions<HTMLElement>}
21
- */
22
- export const abbr = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('abbr', props, ...childNodes));
23
-
24
- /**
25
- * 创建 <address> 元素
26
- * @param {{ [_: string]: any }} [props] - 元素属性
27
- * @param {...any} childNodes - 子节点
28
- * @returns {HyperscriptExtensions<HTMLElement>}
29
- */
30
- export const address = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('address', props, ...childNodes));
31
-
32
- /**
33
- * 创建 <area> 元素
34
- * @param {{ [_: string]: any }} [props] - 元素属性
35
- * @param {...any} childNodes - 子节点
36
- * @returns {HyperscriptExtensions<HTMLAreaElement>}
37
- */
38
- export const area = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLAreaElement>} */(hyperscript('area', props, ...childNodes));
39
-
40
- /**
41
- * 创建 <article> 元素
42
- * @param {{ [_: string]: any }} [props] - 元素属性
43
- * @param {...any} childNodes - 子节点
44
- * @returns {HyperscriptExtensions<HTMLElement>}
45
- */
46
- export const article = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('article', props, ...childNodes));
47
-
48
- /**
49
- * 创建 <aside> 元素
50
- * @param {{ [_: string]: any }} [props] - 元素属性
51
- * @param {...any} childNodes - 子节点
52
- * @returns {HyperscriptExtensions<HTMLElement>}
53
- */
54
- export const aside = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('aside', props, ...childNodes));
55
-
56
- /**
57
- * 创建 <audio> 元素
58
- * @param {{ [_: string]: any }} [props] - 元素属性
59
- * @param {...any} childNodes - 子节点
60
- * @returns {HyperscriptExtensions<HTMLAudioElement>}
61
- */
62
- export const audio = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLAudioElement>} */(hyperscript('audio', props, ...childNodes));
63
-
64
- /**
65
- * 创建 <b> 元素
66
- * @param {{ [_: string]: any }} [props] - 元素属性
67
- * @param {...any} childNodes - 子节点
68
- * @returns {HyperscriptExtensions<HTMLElement>}
69
- */
70
- export const b = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('b', props, ...childNodes));
71
-
72
- /**
73
- * 创建 <bdi> 元素
74
- * @param {{ [_: string]: any }} [props] - 元素属性
75
- * @param {...any} childNodes - 子节点
76
- * @returns {HyperscriptExtensions<HTMLElement>}
77
- */
78
- export const bdi = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('bdi', props, ...childNodes));
79
-
80
- /**
81
- * 创建 <bdo> 元素
82
- * @param {{ [_: string]: any }} [props] - 元素属性
83
- * @param {...any} childNodes - 子节点
84
- * @returns {HyperscriptExtensions<HTMLElement>}
85
- */
86
- export const bdo = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('bdo', props, ...childNodes));
87
-
88
- /**
89
- * 创建 <blockquote> 元素
90
- * @param {{ [_: string]: any }} [props] - 元素属性
91
- * @param {...any} childNodes - 子节点
92
- * @returns {HyperscriptExtensions<HTMLQuoteElement>}
93
- */
94
- export const blockquote = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLQuoteElement>} */(hyperscript('blockquote', props, ...childNodes));
95
-
96
- /**
97
- * 创建 <br> 元素
98
- * @param {{ [_: string]: any }} [props] - 元素属性
99
- * @param {...any} childNodes - 子节点
100
- * @returns {HyperscriptExtensions<HTMLBRElement>}
101
- */
102
- export const br = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLBRElement>} */(hyperscript('br', props, ...childNodes));
103
-
104
- /**
105
- * 创建 <button> 元素
106
- * @param {{ [_: string]: any }} [props] - 元素属性
107
- * @param {...any} childNodes - 子节点
108
- * @returns {HyperscriptExtensions<HTMLButtonElement>}
109
- */
110
- export const button = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLButtonElement>} */(hyperscript('button', props, ...childNodes));
111
-
112
- /**
113
- * 创建 <caption> 元素
114
- * @param {{ [_: string]: any }} [props] - 元素属性
115
- * @param {...any} childNodes - 子节点
116
- * @returns {HyperscriptExtensions<HTMLElement>}
117
- */
118
- export const caption = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('caption', props, ...childNodes));
119
-
120
- /**
121
- * 创建 <cite> 元素
122
- * @param {{ [_: string]: any }} [props] - 元素属性
123
- * @param {...any} childNodes - 子节点
124
- * @returns {HyperscriptExtensions<HTMLElement>}
125
- */
126
- export const cite = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('cite', props, ...childNodes));
127
-
128
- /**
129
- * 创建 <code> 元素
130
- * @param {{ [_: string]: any }} [props] - 元素属性
131
- * @param {...any} childNodes - 子节点
132
- * @returns {HyperscriptExtensions<HTMLElement>}
133
- */
134
- export const code = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('code', props, ...childNodes));
135
-
136
- /**
137
- * 创建 <col> 元素
138
- * @param {{ [_: string]: any }} [props] - 元素属性
139
- * @param {...any} childNodes - 子节点
140
- * @returns {HyperscriptExtensions<HTMLTableColElement>}
141
- */
142
- export const col = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableColElement>} */(hyperscript('col', props, ...childNodes));
143
-
144
- /**
145
- * 创建 <colgroup> 元素
146
- * @param {{ [_: string]: any }} [props] - 元素属性
147
- * @param {...any} childNodes - 子节点
148
- * @returns {HyperscriptExtensions<HTMLTableColElement>}
149
- */
150
- export const colgroup = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableColElement>} */(hyperscript('colgroup', props, ...childNodes));
151
-
152
- /**
153
- * 创建 <data> 元素
154
- * @param {{ [_: string]: any }} [props] - 元素属性
155
- * @param {...any} childNodes - 子节点
156
- * @returns {HyperscriptExtensions<HTMLDataElement>}
157
- */
158
- export const data = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLDataElement>} */(hyperscript('data', props, ...childNodes));
159
-
160
- /**
161
- * 创建 <datalist> 元素
162
- * @param {{ [_: string]: any }} [props] - 元素属性
163
- * @param {...any} childNodes - 子节点
164
- * @returns {HyperscriptExtensions<HTMLDataListElement>}
165
- */
166
- export const datalist = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLDataListElement>} */(hyperscript('datalist', props, ...childNodes));
167
-
168
- /**
169
- * 创建 <dd> 元素
170
- * @param {{ [_: string]: any }} [props] - 元素属性
171
- * @param {...any} childNodes - 子节点
172
- * @returns {HyperscriptExtensions<HTMLElement>}
173
- */
174
- export const dd = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('dd', props, ...childNodes));
175
-
176
- /**
177
- * 创建 <del> 元素
178
- * @param {{ [_: string]: any }} [props] - 元素属性
179
- * @param {...any} childNodes - 子节点
180
- * @returns {HyperscriptExtensions<HTMLModElement>}
181
- */
182
- export const del = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLModElement>} */(hyperscript('del', props, ...childNodes));
183
-
184
- /**
185
- * 创建 <details> 元素
186
- * @param {{ [_: string]: any }} [props] - 元素属性
187
- * @param {...any} childNodes - 子节点
188
- * @returns {HyperscriptExtensions<HTMLDetailsElement>}
189
- */
190
- export const details = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLDetailsElement>} */(hyperscript('details', props, ...childNodes));
191
-
192
- /**
193
- * 创建 <dfn> 元素
194
- * @param {{ [_: string]: any }} [props] - 元素属性
195
- * @param {...any} childNodes - 子节点
196
- * @returns {HyperscriptExtensions<HTMLElement>}
197
- */
198
- export const dfn = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('dfn', props, ...childNodes));
199
-
200
- /**
201
- * 创建 <dialog> 元素
202
- * @param {{ [_: string]: any }} [props] - 元素属性
203
- * @param {...any} childNodes - 子节点
204
- * @returns {HyperscriptExtensions<HTMLDialogElement>}
205
- */
206
- export const dialog = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLDialogElement>} */(hyperscript('dialog', props, ...childNodes));
207
-
208
- /**
209
- * 创建 <div> 元素
210
- * @param {{ [_: string]: any }} [props] - 元素属性
211
- * @param {...any} childNodes - 子节点
212
- * @returns {HyperscriptExtensions<HTMLDivElement>}
213
- */
214
- export const div = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLDivElement>} */(hyperscript('div', props, ...childNodes));
215
-
216
- /**
217
- * 创建 <dl> 元素
218
- * @param {{ [_: string]: any }} [props] - 元素属性
219
- * @param {...any} childNodes - 子节点
220
- * @returns {HyperscriptExtensions<HTMLDListElement>}
221
- */
222
- export const dl = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLDListElement>} */(hyperscript('dl', props, ...childNodes));
223
-
224
- /**
225
- * 创建 <dt> 元素
226
- * @param {{ [_: string]: any }} [props] - 元素属性
227
- * @param {...any} childNodes - 子节点
228
- * @returns {HyperscriptExtensions<HTMLElement>}
229
- */
230
- export const dt = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('dt', props, ...childNodes));
231
-
232
- /**
233
- * 创建 <em> 元素
234
- * @param {{ [_: string]: any }} [props] - 元素属性
235
- * @param {...any} childNodes - 子节点
236
- * @returns {HyperscriptExtensions<HTMLElement>}
237
- */
238
- export const em = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('em', props, ...childNodes));
239
-
240
- /**
241
- * 创建 <fieldset> 元素
242
- * @param {{ [_: string]: any }} [props] - 元素属性
243
- * @param {...any} childNodes - 子节点
244
- * @returns {HyperscriptExtensions<HTMLFieldSetElement>}
245
- */
246
- export const fieldset = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLFieldSetElement>} */(hyperscript('fieldset', props, ...childNodes));
247
-
248
- /**
249
- * 创建 <figcaption> 元素
250
- * @param {{ [_: string]: any }} [props] - 元素属性
251
- * @param {...any} childNodes - 子节点
252
- * @returns {HyperscriptExtensions<HTMLElement>}
253
- */
254
- export const figcaption = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('figcaption', props, ...childNodes));
255
-
256
- /**
257
- * 创建 <figure> 元素
258
- * @param {{ [_: string]: any }} [props] - 元素属性
259
- * @param {...any} childNodes - 子节点
260
- * @returns {HyperscriptExtensions<HTMLElement>}
261
- */
262
- export const figure = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('figure', props, ...childNodes));
263
-
264
- /**
265
- * 创建 <footer> 元素
266
- * @param {{ [_: string]: any }} [props] - 元素属性
267
- * @param {...any} childNodes - 子节点
268
- * @returns {HyperscriptExtensions<HTMLElement>}
269
- */
270
- export const footer = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('footer', props, ...childNodes));
271
-
272
- /**
273
- * 创建 <form> 元素
274
- * @param {{ [_: string]: any }} [props] - 元素属性
275
- * @param {...any} childNodes - 子节点
276
- * @returns {HyperscriptExtensions<HTMLFormElement>}
277
- */
278
- export const form = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLFormElement>} */(hyperscript('form', props, ...childNodes));
279
-
280
- /**
281
- * 创建 <h1> 元素
282
- * @param {{ [_: string]: any }} [props] - 元素属性
283
- * @param {...any} childNodes - 子节点
284
- * @returns {HyperscriptExtensions<HTMLHeadingElement>}
285
- */
286
- export const h1 = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLHeadingElement>} */(hyperscript('h1', props, ...childNodes));
287
-
288
- /**
289
- * 创建 <h2> 元素
290
- * @param {{ [_: string]: any }} [props] - 元素属性
291
- * @param {...any} childNodes - 子节点
292
- * @returns {HyperscriptExtensions<HTMLHeadingElement>}
293
- */
294
- export const h2 = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLHeadingElement>} */(hyperscript('h2', props, ...childNodes));
295
-
296
- /**
297
- * 创建 <h3> 元素
298
- * @param {{ [_: string]: any }} [props] - 元素属性
299
- * @param {...any} childNodes - 子节点
300
- * @returns {HyperscriptExtensions<HTMLHeadingElement>}
301
- */
302
- export const h3 = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLHeadingElement>} */(hyperscript('h3', props, ...childNodes));
303
-
304
- /**
305
- * 创建 <h4> 元素
306
- * @param {{ [_: string]: any }} [props] - 元素属性
307
- * @param {...any} childNodes - 子节点
308
- * @returns {HyperscriptExtensions<HTMLHeadingElement>}
309
- */
310
- export const h4 = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLHeadingElement>} */(hyperscript('h4', props, ...childNodes));
311
-
312
- /**
313
- * 创建 <h5> 元素
314
- * @param {{ [_: string]: any }} [props] - 元素属性
315
- * @param {...any} childNodes - 子节点
316
- * @returns {HyperscriptExtensions<HTMLHeadingElement>}
317
- */
318
- export const h5 = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLHeadingElement>} */(hyperscript('h5', props, ...childNodes));
319
-
320
- /**
321
- * 创建 <h6> 元素
322
- * @param {{ [_: string]: any }} [props] - 元素属性
323
- * @param {...any} childNodes - 子节点
324
- * @returns {HyperscriptExtensions<HTMLHeadingElement>}
325
- */
326
- export const h6 = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLHeadingElement>} */(hyperscript('h6', props, ...childNodes));
327
-
328
- /**
329
- * 创建 <header> 元素
330
- * @param {{ [_: string]: any }} [props] - 元素属性
331
- * @param {...any} childNodes - 子节点
332
- * @returns {HyperscriptExtensions<HTMLElement>}
333
- */
334
- export const header = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('header', props, ...childNodes));
335
-
336
- /**
337
- * 创建 <hgroup> 元素
338
- * @param {{ [_: string]: any }} [props] - 元素属性
339
- * @param {...any} childNodes - 子节点
340
- * @returns {HyperscriptExtensions<HTMLElement>}
341
- */
342
- export const hgroup = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('hgroup', props, ...childNodes));
343
-
344
- /**
345
- * 创建 <hr> 元素
346
- * @param {{ [_: string]: any }} [props] - 元素属性
347
- * @param {...any} childNodes - 子节点
348
- * @returns {HyperscriptExtensions<HTMLHRElement>}
349
- */
350
- export const hr = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLHRElement>} */(hyperscript('hr', props, ...childNodes));
351
-
352
- /**
353
- * 创建 <i> 元素
354
- * @param {{ [_: string]: any }} [props] - 元素属性
355
- * @param {...any} childNodes - 子节点
356
- * @returns {HyperscriptExtensions<HTMLElement>}
357
- */
358
- export const i = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('i', props, ...childNodes));
359
-
360
- /**
361
- * 创建 <img> 元素
362
- * @param {{ [_: string]: any }} [props] - 元素属性
363
- * @param {...any} childNodes - 子节点
364
- * @returns {HyperscriptExtensions<HTMLImageElement>}
365
- */
366
- export const img = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLImageElement>} */(hyperscript('img', props, ...childNodes));
367
-
368
- /**
369
- * 创建 <input> 元素
370
- * @param {{ [_: string]: any }} [props] - 元素属性
371
- * @param {...any} childNodes - 子节点
372
- * @returns {HyperscriptExtensions<HTMLInputElement>}
373
- */
374
- export const input = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLInputElement>} */(hyperscript('input', props, ...childNodes));
375
-
376
- /**
377
- * 创建 <ins> 元素
378
- * @param {{ [_: string]: any }} [props] - 元素属性
379
- * @param {...any} childNodes - 子节点
380
- * @returns {HyperscriptExtensions<HTMLModElement>}
381
- */
382
- export const ins = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLModElement>} */(hyperscript('ins', props, ...childNodes));
383
-
384
- /**
385
- * 创建 <kbd> 元素
386
- * @param {{ [_: string]: any }} [props] - 元素属性
387
- * @param {...any} childNodes - 子节点
388
- * @returns {HyperscriptExtensions<HTMLElement>}
389
- */
390
- export const kbd = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('kbd', props, ...childNodes));
391
-
392
- /**
393
- * 创建 <label> 元素
394
- * @param {{ [_: string]: any }} [props] - 元素属性
395
- * @param {...any} childNodes - 子节点
396
- * @returns {HyperscriptExtensions<HTMLLabelElement>}
397
- */
398
- export const label = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLLabelElement>} */(hyperscript('label', props, ...childNodes));
399
-
400
- /**
401
- * 创建 <legend> 元素
402
- * @param {{ [_: string]: any }} [props] - 元素属性
403
- * @param {...any} childNodes - 子节点
404
- * @returns {HyperscriptExtensions<HTMLLegendElement>}
405
- */
406
- export const legend = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLLegendElement>} */(hyperscript('legend', props, ...childNodes));
407
-
408
- /**
409
- * 创建 <li> 元素
410
- * @param {{ [_: string]: any }} [props] - 元素属性
411
- * @param {...any} childNodes - 子节点
412
- * @returns {HyperscriptExtensions<HTMLLIElement>}
413
- */
414
- export const li = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLLIElement>} */(hyperscript('li', props, ...childNodes));
415
-
416
- /**
417
- * 创建 <main> 元素
418
- * @param {{ [_: string]: any }} [props] - 元素属性
419
- * @param {...any} childNodes - 子节点
420
- * @returns {HyperscriptExtensions<HTMLElement>}
421
- */
422
- export const main = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('main', props, ...childNodes));
423
-
424
- /**
425
- * 创建 <mark> 元素
426
- * @param {{ [_: string]: any }} [props] - 元素属性
427
- * @param {...any} childNodes - 子节点
428
- * @returns {HyperscriptExtensions<HTMLElement>}
429
- */
430
- export const mark = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('mark', props, ...childNodes));
431
-
432
- /**
433
- * 创建 <menu> 元素
434
- * @param {{ [_: string]: any }} [props] - 元素属性
435
- * @param {...any} childNodes - 子节点
436
- * @returns {HyperscriptExtensions<HTMLMenuElement>}
437
- */
438
- export const menu = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLMenuElement>} */(hyperscript('menu', props, ...childNodes));
439
-
440
- /**
441
- * 创建 <menuitem> 元素
442
- * @param {{ [_: string]: any }} [props] - 元素属性
443
- * @param {...any} childNodes - 子节点
444
- * @returns {HyperscriptExtensions<HTMLElement>}
445
- */
446
- export const menuitem = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('menuitem', props, ...childNodes));
447
-
448
- /**
449
- * 创建 <meter> 元素
450
- * @param {{ [_: string]: any }} [props] - 元素属性
451
- * @param {...any} childNodes - 子节点
452
- * @returns {HyperscriptExtensions<HTMLMeterElement>}
453
- */
454
- export const meter = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLMeterElement>} */(hyperscript('meter', props, ...childNodes));
455
-
456
- /**
457
- * 创建 <nav> 元素
458
- * @param {{ [_: string]: any }} [props] - 元素属性
459
- * @param {...any} childNodes - 子节点
460
- * @returns {HyperscriptExtensions<HTMLElement>}
461
- */
462
- export const nav = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('nav', props, ...childNodes));
463
-
464
- /**
465
- * 创建 <ol> 元素
466
- * @param {{ [_: string]: any }} [props] - 元素属性
467
- * @param {...any} childNodes - 子节点
468
- * @returns {HyperscriptExtensions<HTMLOListElement>}
469
- */
470
- export const ol = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLOListElement>} */(hyperscript('ol', props, ...childNodes));
471
-
472
- /**
473
- * 创建 <optgroup> 元素
474
- * @param {{ [_: string]: any }} [props] - 元素属性
475
- * @param {...any} childNodes - 子节点
476
- * @returns {HyperscriptExtensions<HTMLOptGroupElement>}
477
- */
478
- export const optgroup = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLOptGroupElement>} */(hyperscript('optgroup', props, ...childNodes));
479
-
480
- /**
481
- * 创建 <option> 元素
482
- * @param {{ [_: string]: any }} [props] - 元素属性
483
- * @param {...any} childNodes - 子节点
484
- * @returns {HyperscriptExtensions<HTMLOptionElement>}
485
- */
486
- export const option = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLOptionElement>} */(hyperscript('option', props, ...childNodes));
487
-
488
- /**
489
- * 创建 <output> 元素
490
- * @param {{ [_: string]: any }} [props] - 元素属性
491
- * @param {...any} childNodes - 子节点
492
- * @returns {HyperscriptExtensions<HTMLOutputElement>}
493
- */
494
- export const output = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLOutputElement>} */(hyperscript('output', props, ...childNodes));
495
-
496
- /**
497
- * 创建 <p> 元素
498
- * @param {{ [_: string]: any }} [props] - 元素属性
499
- * @param {...any} childNodes - 子节点
500
- * @returns {HyperscriptExtensions<HTMLParagraphElement>}
501
- */
502
- export const p = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLParagraphElement>} */(hyperscript('p', props, ...childNodes));
503
-
504
- /**
505
- * 创建 <pre> 元素
506
- * @param {{ [_: string]: any }} [props] - 元素属性
507
- * @param {...any} childNodes - 子节点
508
- * @returns {HyperscriptExtensions<HTMLPreElement>}
509
- */
510
- export const pre = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLPreElement>} */(hyperscript('pre', props, ...childNodes));
511
-
512
- /**
513
- * 创建 <progress> 元素
514
- * @param {{ [_: string]: any }} [props] - 元素属性
515
- * @param {...any} childNodes - 子节点
516
- * @returns {HyperscriptExtensions<HTMLProgressElement>}
517
- */
518
- export const progress = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLProgressElement>} */(hyperscript('progress', props, ...childNodes));
519
-
520
- /**
521
- * 创建 <q> 元素
522
- * @param {{ [_: string]: any }} [props] - 元素属性
523
- * @param {...any} childNodes - 子节点
524
- * @returns {HyperscriptExtensions<HTMLQuoteElement>}
525
- */
526
- export const q = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLQuoteElement>} */(hyperscript('q', props, ...childNodes));
527
-
528
- /**
529
- * 创建 <rb> 元素
530
- * @param {{ [_: string]: any }} [props] - 元素属性
531
- * @param {...any} childNodes - 子节点
532
- * @returns {HyperscriptExtensions<HTMLElement>}
533
- */
534
- export const rb = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('rb', props, ...childNodes));
535
-
536
- /**
537
- * 创建 <rp> 元素
538
- * @param {{ [_: string]: any }} [props] - 元素属性
539
- * @param {...any} childNodes - 子节点
540
- * @returns {HyperscriptExtensions<HTMLElement>}
541
- */
542
- export const rp = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('rp', props, ...childNodes));
543
-
544
- /**
545
- * 创建 <rt> 元素
546
- * @param {{ [_: string]: any }} [props] - 元素属性
547
- * @param {...any} childNodes - 子节点
548
- * @returns {HyperscriptExtensions<HTMLElement>}
549
- */
550
- export const rt = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('rt', props, ...childNodes));
551
-
552
- /**
553
- * 创建 <rtc> 元素
554
- * @param {{ [_: string]: any }} [props] - 元素属性
555
- * @param {...any} childNodes - 子节点
556
- * @returns {HyperscriptExtensions<HTMLElement>}
557
- */
558
- export const rtc = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('rtc', props, ...childNodes));
559
-
560
- /**
561
- * 创建 <ruby> 元素
562
- * @param {{ [_: string]: any }} [props] - 元素属性
563
- * @param {...any} childNodes - 子节点
564
- * @returns {HyperscriptExtensions<HTMLElement>}
565
- */
566
- export const ruby = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('ruby', props, ...childNodes));
567
-
568
- /**
569
- * 创建 <s> 元素
570
- * @param {{ [_: string]: any }} [props] - 元素属性
571
- * @param {...any} childNodes - 子节点
572
- * @returns {HyperscriptExtensions<HTMLElement>}
573
- */
574
- export const s = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('s', props, ...childNodes));
575
-
576
- /**
577
- * 创建 <samp> 元素
578
- * @param {{ [_: string]: any }} [props] - 元素属性
579
- * @param {...any} childNodes - 子节点
580
- * @returns {HyperscriptExtensions<HTMLElement>}
581
- */
582
- export const samp = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('samp', props, ...childNodes));
583
-
584
- /**
585
- * 创建 <section> 元素
586
- * @param {{ [_: string]: any }} [props] - 元素属性
587
- * @param {...any} childNodes - 子节点
588
- * @returns {HyperscriptExtensions<HTMLElement>}
589
- */
590
- export const section = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('section', props, ...childNodes));
591
-
592
- /**
593
- * 创建 <small> 元素
594
- * @param {{ [_: string]: any }} [props] - 元素属性
595
- * @param {...any} childNodes - 子节点
596
- * @returns {HyperscriptExtensions<HTMLElement>}
597
- */
598
- export const small = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('small', props, ...childNodes));
599
-
600
- /**
601
- * 创建 <span> 元素
602
- * @param {{ [_: string]: any }} [props] - 元素属性
603
- * @param {...any} childNodes - 子节点
604
- * @returns {HyperscriptExtensions<HTMLSpanElement>}
605
- */
606
- export const span = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLSpanElement>} */(hyperscript('span', props, ...childNodes));
607
-
608
- /**
609
- * 创建 <strong> 元素
610
- * @param {{ [_: string]: any }} [props] - 元素属性
611
- * @param {...any} childNodes - 子节点
612
- * @returns {HyperscriptExtensions<HTMLElement>}
613
- */
614
- export const strong = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('strong', props, ...childNodes));
615
-
616
- /**
617
- * 创建 <sub> 元素
618
- * @param {{ [_: string]: any }} [props] - 元素属性
619
- * @param {...any} childNodes - 子节点
620
- * @returns {HyperscriptExtensions<HTMLElement>}
621
- */
622
- export const sub = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('sub', props, ...childNodes));
623
-
624
- /**
625
- * 创建 <summary> 元素
626
- * @param {{ [_: string]: any }} [props] - 元素属性
627
- * @param {...any} childNodes - 子节点
628
- * @returns {HyperscriptExtensions<HTMLElement>}
629
- */
630
- export const summary = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('summary', props, ...childNodes));
631
-
632
- /**
633
- * 创建 <sup> 元素
634
- * @param {{ [_: string]: any }} [props] - 元素属性
635
- * @param {...any} childNodes - 子节点
636
- * @returns {HyperscriptExtensions<HTMLElement>}
637
- */
638
- export const sup = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('sup', props, ...childNodes));
639
-
640
- /**
641
- * 创建 <table> 元素
642
- * @param {{ [_: string]: any }} [props] - 元素属性
643
- * @param {...any} childNodes - 子节点
644
- * @returns {HyperscriptExtensions<HTMLTableElement>}
645
- */
646
- export const table = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableElement>} */(hyperscript('table', props, ...childNodes));
647
-
648
- /**
649
- * 创建 <tbody> 元素
650
- * @param {{ [_: string]: any }} [props] - 元素属性
651
- * @param {...any} childNodes - 子节点
652
- * @returns {HyperscriptExtensions<HTMLTableSectionElement>}
653
- */
654
- export const tbody = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableSectionElement>} */(hyperscript('tbody', props, ...childNodes));
655
-
656
- /**
657
- * 创建 <td> 元素
658
- * @param {{ [_: string]: any }} [props] - 元素属性
659
- * @param {...any} childNodes - 子节点
660
- * @returns {HyperscriptExtensions<HTMLTableCellElement>}
661
- */
662
- export const td = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableCellElement>} */(hyperscript('td', props, ...childNodes));
663
-
664
- /**
665
- * 创建 <tfoot> 元素
666
- * @param {{ [_: string]: any }} [props] - 元素属性
667
- * @param {...any} childNodes - 子节点
668
- * @returns {HyperscriptExtensions<HTMLTableSectionElement>}
669
- */
670
- export const tfoot = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableSectionElement>} */(hyperscript('tfoot', props, ...childNodes));
671
-
672
- /**
673
- * 创建 <th> 元素
674
- * @param {{ [_: string]: any }} [props] - 元素属性
675
- * @param {...any} childNodes - 子节点
676
- * @returns {HyperscriptExtensions<HTMLTableCellElement>}
677
- */
678
- export const th = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableCellElement>} */(hyperscript('th', props, ...childNodes));
679
-
680
- /**
681
- * 创建 <thead> 元素
682
- * @param {{ [_: string]: any }} [props] - 元素属性
683
- * @param {...any} childNodes - 子节点
684
- * @returns {HyperscriptExtensions<HTMLTableSectionElement>}
685
- */
686
- export const thead = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableSectionElement>} */(hyperscript('thead', props, ...childNodes));
687
-
688
- /**
689
- * 创建 <time> 元素
690
- * @param {{ [_: string]: any }} [props] - 元素属性
691
- * @param {...any} childNodes - 子节点
692
- * @returns {HyperscriptExtensions<HTMLTimeElement>}
693
- */
694
- export const time = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTimeElement>} */(hyperscript('time', props, ...childNodes));
695
-
696
- /**
697
- * 创建 <tr> 元素
698
- * @param {{ [_: string]: any }} [props] - 元素属性
699
- * @param {...any} childNodes - 子节点
700
- * @returns {HyperscriptExtensions<HTMLTableRowElement>}
701
- */
702
- export const tr = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTableRowElement>} */(hyperscript('tr', props, ...childNodes));
703
-
704
- /**
705
- * 创建 <track> 元素
706
- * @param {{ [_: string]: any }} [props] - 元素属性
707
- * @param {...any} childNodes - 子节点
708
- * @returns {HyperscriptExtensions<HTMLTrackElement>}
709
- */
710
- export const track = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLTrackElement>} */(hyperscript('track', props, ...childNodes));
711
-
712
- /**
713
- * 创建 <tt> 元素
714
- * @param {{ [_: string]: any }} [props] - 元素属性
715
- * @param {...any} childNodes - 子节点
716
- * @returns {HyperscriptExtensions<HTMLElement>}
717
- */
718
- export const tt = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('tt', props, ...childNodes));
719
-
720
-
721
- /**
722
- * 创建 <u> 元素
723
- * @param {{ [_: string]: any }} [props] - 元素属性
724
- * @param {...any} childNodes - 子节点
725
- * @returns {HyperscriptExtensions<HTMLElement>}
726
- */
727
- export const u = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('u', props, ...childNodes))
728
-
729
- /**
730
- * 创建 <ul> 元素
731
- * @param {{ [_: string]: any }} [props] - 元素属性
732
- * @param {...any} childNodes - 子节点
733
- * @returns {HyperscriptExtensions<HTMLUListElement>}
734
- */
735
- export const ul = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLUListElement>} */(hyperscript('ul', props, ...childNodes))
736
-
737
- /**
738
- * 创建 <video> 元素
739
- * @param {{ [_: string]: any }} [props] - 元素属性
740
- * @param {...any} childNodes - 子节点
741
- * @returns {HyperscriptExtensions<HTMLVideoElement>}
742
- */
743
- export const video = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLVideoElement>} */(hyperscript('video', props, ...childNodes))
744
-
745
- /**
746
- * 创建 <wbr> 元素
747
- * @param {{ [_: string]: any }} [props] - 元素属性
748
- * @param {...any} childNodes - 子节点
749
- * @returns {HyperscriptExtensions<HTMLElement>}
750
- */
751
- export const wbr = (props, ...childNodes) => /** @type {HyperscriptExtensions<HTMLElement>} */(hyperscript('wbr', props, ...childNodes))