@wardic/solid 1.1.0 → 1.1.1

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 (549) hide show
  1. package/dist/browser/animation-controls.js +3 -149
  2. package/dist/browser/animation-controls.js.map +1 -1
  3. package/dist/browser/appear.js +3 -782
  4. package/dist/browser/appear.js.map +1 -1
  5. package/dist/browser/batch-gestures.js.map +1 -1
  6. package/dist/browser/batch.js +3 -2511
  7. package/dist/browser/batch.js.map +1 -1
  8. package/dist/browser/config.js +11 -1
  9. package/dist/browser/config.js.map +1 -1
  10. package/dist/browser/create-animate.js +4 -2
  11. package/dist/browser/create-animate.js.map +1 -1
  12. package/dist/browser/create-batch.js +2 -2
  13. package/dist/browser/create-batch.js.map +1 -1
  14. package/dist/browser/create-ward.js +28 -5
  15. package/dist/browser/create-ward.js.map +1 -1
  16. package/dist/browser/drag-constraints.js +3 -75
  17. package/dist/browser/drag-constraints.js.map +1 -1
  18. package/dist/browser/drag-controls.js +3 -50
  19. package/dist/browser/drag-controls.js.map +1 -1
  20. package/dist/browser/drag-defaults.js +4 -0
  21. package/dist/browser/drag-defaults.js.map +1 -0
  22. package/dist/browser/drag-track.js +3 -826
  23. package/dist/browser/drag-track.js.map +1 -1
  24. package/dist/browser/drag-transition.js +3 -55
  25. package/dist/browser/drag-transition.js.map +1 -1
  26. package/dist/browser/element-setup.js +4 -0
  27. package/dist/browser/element-setup.js.map +1 -0
  28. package/dist/browser/element.js.map +1 -1
  29. package/dist/browser/feature.js +3 -305
  30. package/dist/browser/feature.js.map +1 -1
  31. package/dist/browser/features/all.js +3 -17
  32. package/dist/browser/features/all.js.map +1 -1
  33. package/dist/browser/features/colors.js +3 -32
  34. package/dist/browser/features/colors.js.map +1 -1
  35. package/dist/browser/features/dom-animation.js +3 -14
  36. package/dist/browser/features/dom-animation.js.map +1 -1
  37. package/dist/browser/features/dom-max.js +3 -9
  38. package/dist/browser/features/dom-max.js.map +1 -1
  39. package/dist/browser/features/drag.js +3 -27
  40. package/dist/browser/features/drag.js.map +1 -1
  41. package/dist/browser/features/focus.js +3 -17
  42. package/dist/browser/features/focus.js.map +1 -1
  43. package/dist/browser/features/hover.js +3 -17
  44. package/dist/browser/features/hover.js.map +1 -1
  45. package/dist/browser/features/in-view.js +3 -17
  46. package/dist/browser/features/in-view.js.map +1 -1
  47. package/dist/browser/features/input.js +3 -26
  48. package/dist/browser/features/input.js.map +1 -1
  49. package/dist/browser/features/keys.js +3 -24
  50. package/dist/browser/features/keys.js.map +1 -1
  51. package/dist/browser/features/layout.js +3 -43
  52. package/dist/browser/features/layout.js.map +1 -1
  53. package/dist/browser/features/pan.js +3 -17
  54. package/dist/browser/features/pan.js.map +1 -1
  55. package/dist/browser/features/press.js +3 -11
  56. package/dist/browser/features/press.js.map +1 -1
  57. package/dist/browser/features/scroll.js +3 -27
  58. package/dist/browser/features/scroll.js.map +1 -1
  59. package/dist/browser/gesture-features.js +3 -28
  60. package/dist/browser/gesture-features.js.map +1 -1
  61. package/dist/browser/gesture-info.js +3 -42
  62. package/dist/browser/gesture-info.js.map +1 -1
  63. package/dist/browser/imperative.js +3 -886
  64. package/dist/browser/imperative.js.map +1 -1
  65. package/dist/browser/index.js +1 -1
  66. package/dist/browser/instant.js +3 -50
  67. package/dist/browser/instant.js.map +1 -1
  68. package/dist/browser/layout-group.js +3 -26
  69. package/dist/browser/layout-group.js.map +1 -1
  70. package/dist/browser/layout-member.js +3 -371
  71. package/dist/browser/layout-member.js.map +1 -1
  72. package/dist/browser/lazy-batch-gestures.js.map +1 -1
  73. package/dist/browser/live-style.js +3 -323
  74. package/dist/browser/live-style.js.map +1 -1
  75. package/dist/browser/member-hold.js +3 -210
  76. package/dist/browser/member-hold.js.map +1 -1
  77. package/dist/browser/owner-scope.js +3 -28
  78. package/dist/browser/owner-scope.js.map +1 -1
  79. package/dist/browser/presence-controller.js +3 -1541
  80. package/dist/browser/presence-controller.js.map +1 -1
  81. package/dist/browser/presence-record.js +9 -24
  82. package/dist/browser/presence-record.js.map +1 -1
  83. package/dist/browser/press.js +3 -23
  84. package/dist/browser/press.js.map +1 -1
  85. package/dist/browser/provider.js +8 -0
  86. package/dist/browser/provider.js.map +1 -1
  87. package/dist/browser/reactivity.js +0 -7
  88. package/dist/browser/reactivity.js.map +1 -1
  89. package/dist/browser/retarget-legs.js +3 -1021
  90. package/dist/browser/retarget-legs.js.map +1 -1
  91. package/dist/browser/runtime.js +54 -19
  92. package/dist/browser/runtime.js.map +1 -1
  93. package/dist/browser/server-interpolators.js +3 -19
  94. package/dist/browser/server-interpolators.js.map +1 -1
  95. package/dist/browser/spine.js +3 -2985
  96. package/dist/browser/spine.js.map +1 -1
  97. package/dist/browser/timelines.js +3 -8
  98. package/dist/browser/timelines.js.map +1 -1
  99. package/dist/browser/unstable/v2/create-animate.js +4 -2
  100. package/dist/browser/unstable/v2/create-animate.js.map +1 -1
  101. package/dist/browser/unstable/v2/create-batch.js +2 -2
  102. package/dist/browser/unstable/v2/create-batch.js.map +1 -1
  103. package/dist/browser/unstable/v2/element.js.map +1 -1
  104. package/dist/browser/unstable/v2/provider.js +8 -0
  105. package/dist/browser/unstable/v2/provider.js.map +1 -1
  106. package/dist/browser/unstable/v2/w.js.map +1 -1
  107. package/dist/browser/unstable/v2/ward.js +20 -5
  108. package/dist/browser/unstable/v2/ward.js.map +1 -1
  109. package/dist/browser/variant-target.js +3 -228
  110. package/dist/browser/variant-target.js.map +1 -1
  111. package/dist/browser/variant-tree.js +3 -393
  112. package/dist/browser/variant-tree.js.map +1 -1
  113. package/dist/browser/w.js.map +1 -1
  114. package/dist/browser/wardic-config-value.js +3 -90
  115. package/dist/browser/wardic-config-value.js.map +1 -1
  116. package/dist/server/animation-controls.js +3 -149
  117. package/dist/server/animation-controls.js.map +1 -1
  118. package/dist/server/appear.js +3 -782
  119. package/dist/server/appear.js.map +1 -1
  120. package/dist/server/batch-gestures.js.map +1 -1
  121. package/dist/server/batch.js +3 -2511
  122. package/dist/server/batch.js.map +1 -1
  123. package/dist/server/config.js +11 -1
  124. package/dist/server/config.js.map +1 -1
  125. package/dist/server/create-animate.js +4 -2
  126. package/dist/server/create-animate.js.map +1 -1
  127. package/dist/server/create-batch.js +2 -2
  128. package/dist/server/create-batch.js.map +1 -1
  129. package/dist/server/create-ward.js +28 -5
  130. package/dist/server/create-ward.js.map +1 -1
  131. package/dist/server/drag-constraints.js +3 -75
  132. package/dist/server/drag-constraints.js.map +1 -1
  133. package/dist/server/drag-controls.js +3 -50
  134. package/dist/server/drag-controls.js.map +1 -1
  135. package/dist/server/drag-defaults.js +4 -0
  136. package/dist/server/drag-defaults.js.map +1 -0
  137. package/dist/server/drag-track.js +3 -826
  138. package/dist/server/drag-track.js.map +1 -1
  139. package/dist/server/drag-transition.js +3 -55
  140. package/dist/server/drag-transition.js.map +1 -1
  141. package/dist/server/element-setup.js +4 -0
  142. package/dist/server/element-setup.js.map +1 -0
  143. package/dist/server/element.js.map +1 -1
  144. package/dist/server/feature.js +3 -305
  145. package/dist/server/feature.js.map +1 -1
  146. package/dist/server/features/all.js +3 -17
  147. package/dist/server/features/all.js.map +1 -1
  148. package/dist/server/features/colors.js +3 -32
  149. package/dist/server/features/colors.js.map +1 -1
  150. package/dist/server/features/dom-animation.js +3 -14
  151. package/dist/server/features/dom-animation.js.map +1 -1
  152. package/dist/server/features/dom-max.js +3 -9
  153. package/dist/server/features/dom-max.js.map +1 -1
  154. package/dist/server/features/drag.js +3 -27
  155. package/dist/server/features/drag.js.map +1 -1
  156. package/dist/server/features/focus.js +3 -17
  157. package/dist/server/features/focus.js.map +1 -1
  158. package/dist/server/features/hover.js +3 -17
  159. package/dist/server/features/hover.js.map +1 -1
  160. package/dist/server/features/in-view.js +3 -17
  161. package/dist/server/features/in-view.js.map +1 -1
  162. package/dist/server/features/input.js +3 -26
  163. package/dist/server/features/input.js.map +1 -1
  164. package/dist/server/features/keys.js +3 -24
  165. package/dist/server/features/keys.js.map +1 -1
  166. package/dist/server/features/layout.js +3 -43
  167. package/dist/server/features/layout.js.map +1 -1
  168. package/dist/server/features/pan.js +3 -17
  169. package/dist/server/features/pan.js.map +1 -1
  170. package/dist/server/features/press.js +3 -11
  171. package/dist/server/features/press.js.map +1 -1
  172. package/dist/server/features/scroll.js +3 -27
  173. package/dist/server/features/scroll.js.map +1 -1
  174. package/dist/server/gesture-features.js +3 -28
  175. package/dist/server/gesture-features.js.map +1 -1
  176. package/dist/server/gesture-info.js +3 -42
  177. package/dist/server/gesture-info.js.map +1 -1
  178. package/dist/server/imperative.js +3 -886
  179. package/dist/server/imperative.js.map +1 -1
  180. package/dist/server/index.js +1 -1
  181. package/dist/server/instant.js +3 -50
  182. package/dist/server/instant.js.map +1 -1
  183. package/dist/server/layout-group.js +3 -26
  184. package/dist/server/layout-group.js.map +1 -1
  185. package/dist/server/layout-member.js +3 -371
  186. package/dist/server/layout-member.js.map +1 -1
  187. package/dist/server/lazy-batch-gestures.js.map +1 -1
  188. package/dist/server/live-style.js +3 -323
  189. package/dist/server/live-style.js.map +1 -1
  190. package/dist/server/member-hold.js +3 -210
  191. package/dist/server/member-hold.js.map +1 -1
  192. package/dist/server/owner-scope.js +3 -28
  193. package/dist/server/owner-scope.js.map +1 -1
  194. package/dist/server/presence-controller.js +3 -1541
  195. package/dist/server/presence-controller.js.map +1 -1
  196. package/dist/server/presence-record.js +9 -24
  197. package/dist/server/presence-record.js.map +1 -1
  198. package/dist/server/press.js +3 -23
  199. package/dist/server/press.js.map +1 -1
  200. package/dist/server/provider.js +8 -0
  201. package/dist/server/provider.js.map +1 -1
  202. package/dist/server/reactivity.js +0 -7
  203. package/dist/server/reactivity.js.map +1 -1
  204. package/dist/server/retarget-legs.js +3 -1021
  205. package/dist/server/retarget-legs.js.map +1 -1
  206. package/dist/server/runtime.js +54 -19
  207. package/dist/server/runtime.js.map +1 -1
  208. package/dist/server/server-interpolators.js +3 -19
  209. package/dist/server/server-interpolators.js.map +1 -1
  210. package/dist/server/spine.js +3 -2985
  211. package/dist/server/spine.js.map +1 -1
  212. package/dist/server/timelines.js +3 -8
  213. package/dist/server/timelines.js.map +1 -1
  214. package/dist/server/unstable/v2/create-animate.js +4 -2
  215. package/dist/server/unstable/v2/create-animate.js.map +1 -1
  216. package/dist/server/unstable/v2/create-batch.js +2 -2
  217. package/dist/server/unstable/v2/create-batch.js.map +1 -1
  218. package/dist/server/unstable/v2/element.js.map +1 -1
  219. package/dist/server/unstable/v2/provider.js +8 -0
  220. package/dist/server/unstable/v2/provider.js.map +1 -1
  221. package/dist/server/unstable/v2/w.js.map +1 -1
  222. package/dist/server/unstable/v2/ward.js +20 -5
  223. package/dist/server/unstable/v2/ward.js.map +1 -1
  224. package/dist/server/variant-target.js +3 -228
  225. package/dist/server/variant-target.js.map +1 -1
  226. package/dist/server/variant-tree.js +3 -393
  227. package/dist/server/variant-tree.js.map +1 -1
  228. package/dist/server/w.js.map +1 -1
  229. package/dist/server/wardic-config-value.js +3 -90
  230. package/dist/server/wardic-config-value.js.map +1 -1
  231. package/dist/solid/animation-controls.d.ts +1 -102
  232. package/dist/solid/animation-controls.d.ts.map +1 -1
  233. package/dist/solid/animation-controls.js +3 -128
  234. package/dist/solid/animation-controls.js.map +1 -1
  235. package/dist/solid/appear.d.ts +1 -231
  236. package/dist/solid/appear.d.ts.map +1 -1
  237. package/dist/solid/appear.js +3 -570
  238. package/dist/solid/appear.js.map +1 -1
  239. package/dist/solid/batch-gestures.d.ts +2 -2
  240. package/dist/solid/batch-gestures.d.ts.map +1 -1
  241. package/dist/solid/batch-gestures.js.map +1 -1
  242. package/dist/solid/batch.d.ts +1 -511
  243. package/dist/solid/batch.d.ts.map +1 -1
  244. package/dist/solid/batch.js +3 -2484
  245. package/dist/solid/batch.js.map +1 -1
  246. package/dist/solid/config.d.ts +2 -728
  247. package/dist/solid/config.d.ts.map +1 -1
  248. package/dist/solid/config.js +11 -1
  249. package/dist/solid/config.js.map +1 -1
  250. package/dist/solid/create-animate.d.ts.map +1 -1
  251. package/dist/solid/create-animate.jsx +3 -1
  252. package/dist/solid/create-animate.jsx.map +1 -1
  253. package/dist/solid/create-batch.jsx +2 -2
  254. package/dist/solid/create-batch.jsx.map +1 -1
  255. package/dist/solid/create-ward.d.ts +5 -2
  256. package/dist/solid/create-ward.d.ts.map +1 -1
  257. package/dist/solid/create-ward.jsx +24 -5
  258. package/dist/solid/create-ward.jsx.map +1 -1
  259. package/dist/solid/drag-constraints.d.ts +1 -45
  260. package/dist/solid/drag-constraints.d.ts.map +1 -1
  261. package/dist/solid/drag-constraints.js +3 -48
  262. package/dist/solid/drag-constraints.js.map +1 -1
  263. package/dist/solid/drag-controls.d.ts +1 -49
  264. package/dist/solid/drag-controls.d.ts.map +1 -1
  265. package/dist/solid/drag-controls.js +3 -50
  266. package/dist/solid/drag-controls.js.map +1 -1
  267. package/dist/solid/drag-defaults.d.ts +2 -0
  268. package/dist/solid/drag-defaults.d.ts.map +1 -0
  269. package/dist/solid/drag-defaults.js +4 -0
  270. package/dist/solid/drag-defaults.js.map +1 -0
  271. package/dist/solid/drag-track.d.ts +1 -232
  272. package/dist/solid/drag-track.d.ts.map +1 -1
  273. package/dist/solid/drag-track.js +3 -641
  274. package/dist/solid/drag-track.js.map +1 -1
  275. package/dist/solid/drag-transition.d.ts +1 -19
  276. package/dist/solid/drag-transition.d.ts.map +1 -1
  277. package/dist/solid/drag-transition.js +3 -30
  278. package/dist/solid/drag-transition.js.map +1 -1
  279. package/dist/solid/element-setup.d.ts +2 -0
  280. package/dist/solid/element-setup.d.ts.map +1 -0
  281. package/dist/solid/element-setup.js +4 -0
  282. package/dist/solid/element-setup.js.map +1 -0
  283. package/dist/solid/element.d.ts +2 -1
  284. package/dist/solid/element.d.ts.map +1 -1
  285. package/dist/solid/element.jsx.map +1 -1
  286. package/dist/solid/feature.d.ts +1 -206
  287. package/dist/solid/feature.d.ts.map +1 -1
  288. package/dist/solid/feature.js +3 -286
  289. package/dist/solid/feature.js.map +1 -1
  290. package/dist/solid/features/all.d.ts +1 -16
  291. package/dist/solid/features/all.d.ts.map +1 -1
  292. package/dist/solid/features/all.js +3 -26
  293. package/dist/solid/features/all.js.map +1 -1
  294. package/dist/solid/features/colors.d.ts +1 -11
  295. package/dist/solid/features/colors.d.ts.map +1 -1
  296. package/dist/solid/features/colors.js +3 -33
  297. package/dist/solid/features/colors.js.map +1 -1
  298. package/dist/solid/features/dom-animation.d.ts +1 -13
  299. package/dist/solid/features/dom-animation.d.ts.map +1 -1
  300. package/dist/solid/features/dom-animation.js +3 -14
  301. package/dist/solid/features/dom-animation.js.map +1 -1
  302. package/dist/solid/features/dom-max.d.ts +1 -9
  303. package/dist/solid/features/dom-max.d.ts.map +1 -1
  304. package/dist/solid/features/dom-max.js +3 -9
  305. package/dist/solid/features/dom-max.js.map +1 -1
  306. package/dist/solid/features/drag.d.ts +1 -4
  307. package/dist/solid/features/drag.d.ts.map +1 -1
  308. package/dist/solid/features/drag.js +3 -27
  309. package/dist/solid/features/drag.js.map +1 -1
  310. package/dist/solid/features/focus.d.ts +1 -4
  311. package/dist/solid/features/focus.d.ts.map +1 -1
  312. package/dist/solid/features/focus.js +3 -15
  313. package/dist/solid/features/focus.js.map +1 -1
  314. package/dist/solid/features/hover.d.ts +1 -4
  315. package/dist/solid/features/hover.d.ts.map +1 -1
  316. package/dist/solid/features/hover.js +3 -15
  317. package/dist/solid/features/hover.js.map +1 -1
  318. package/dist/solid/features/in-view.d.ts +1 -4
  319. package/dist/solid/features/in-view.d.ts.map +1 -1
  320. package/dist/solid/features/in-view.js +3 -15
  321. package/dist/solid/features/in-view.js.map +1 -1
  322. package/dist/solid/features/input.d.ts +1 -25
  323. package/dist/solid/features/input.d.ts.map +1 -1
  324. package/dist/solid/features/input.js +3 -26
  325. package/dist/solid/features/input.js.map +1 -1
  326. package/dist/solid/features/keys.d.ts +1 -84
  327. package/dist/solid/features/keys.d.ts.map +1 -1
  328. package/dist/solid/features/keys.js +3 -32
  329. package/dist/solid/features/keys.js.map +1 -1
  330. package/dist/solid/features/layout.d.ts +1 -37
  331. package/dist/solid/features/layout.d.ts.map +1 -1
  332. package/dist/solid/features/layout.js +3 -43
  333. package/dist/solid/features/layout.js.map +1 -1
  334. package/dist/solid/features/pan.d.ts +1 -4
  335. package/dist/solid/features/pan.d.ts.map +1 -1
  336. package/dist/solid/features/pan.js +3 -15
  337. package/dist/solid/features/pan.js.map +1 -1
  338. package/dist/solid/features/press.d.ts +1 -10
  339. package/dist/solid/features/press.d.ts.map +1 -1
  340. package/dist/solid/features/press.js +3 -9
  341. package/dist/solid/features/press.js.map +1 -1
  342. package/dist/solid/features/scroll.d.ts +1 -17
  343. package/dist/solid/features/scroll.d.ts.map +1 -1
  344. package/dist/solid/features/scroll.js +3 -29
  345. package/dist/solid/features/scroll.js.map +1 -1
  346. package/dist/solid/gesture-features.d.ts +1 -27
  347. package/dist/solid/gesture-features.d.ts.map +1 -1
  348. package/dist/solid/gesture-features.js +3 -28
  349. package/dist/solid/gesture-features.js.map +1 -1
  350. package/dist/solid/gesture-info.d.ts +1 -58
  351. package/dist/solid/gesture-info.d.ts.map +1 -1
  352. package/dist/solid/gesture-info.js +3 -22
  353. package/dist/solid/gesture-info.js.map +1 -1
  354. package/dist/solid/imperative.d.ts +1 -202
  355. package/dist/solid/imperative.d.ts.map +1 -1
  356. package/dist/solid/imperative.js +3 -764
  357. package/dist/solid/imperative.js.map +1 -1
  358. package/dist/solid/index.d.ts +1 -1
  359. package/dist/solid/index.jsx +1 -1
  360. package/dist/solid/instant.d.ts +1 -43
  361. package/dist/solid/instant.d.ts.map +1 -1
  362. package/dist/solid/instant.js +3 -48
  363. package/dist/solid/instant.js.map +1 -1
  364. package/dist/solid/layout-group.d.ts +1 -13
  365. package/dist/solid/layout-group.d.ts.map +1 -1
  366. package/dist/solid/layout-group.js +3 -26
  367. package/dist/solid/layout-group.js.map +1 -1
  368. package/dist/solid/layout-member.d.ts +1 -124
  369. package/dist/solid/layout-member.d.ts.map +1 -1
  370. package/dist/solid/layout-member.js +3 -175
  371. package/dist/solid/layout-member.js.map +1 -1
  372. package/dist/solid/lazy-batch-gestures.d.ts +2 -2
  373. package/dist/solid/lazy-batch-gestures.d.ts.map +1 -1
  374. package/dist/solid/lazy-batch-gestures.js.map +1 -1
  375. package/dist/solid/live-style.d.ts +1 -158
  376. package/dist/solid/live-style.d.ts.map +1 -1
  377. package/dist/solid/live-style.js +3 -314
  378. package/dist/solid/live-style.js.map +1 -1
  379. package/dist/solid/member-hold.d.ts +1 -32
  380. package/dist/solid/member-hold.d.ts.map +1 -1
  381. package/dist/solid/member-hold.js +3 -223
  382. package/dist/solid/member-hold.js.map +1 -1
  383. package/dist/solid/owner-scope.d.ts +1 -15
  384. package/dist/solid/owner-scope.d.ts.map +1 -1
  385. package/dist/solid/owner-scope.js +3 -30
  386. package/dist/solid/owner-scope.js.map +1 -1
  387. package/dist/solid/presence-controller.d.ts +1 -121
  388. package/dist/solid/presence-controller.d.ts.map +1 -1
  389. package/dist/solid/presence-controller.js +3 -1426
  390. package/dist/solid/presence-controller.js.map +1 -1
  391. package/dist/solid/presence-record.d.ts +6 -168
  392. package/dist/solid/presence-record.d.ts.map +1 -1
  393. package/dist/solid/presence-record.js +9 -23
  394. package/dist/solid/presence-record.js.map +1 -1
  395. package/dist/solid/press.d.ts +1 -23
  396. package/dist/solid/press.d.ts.map +1 -1
  397. package/dist/solid/press.js +3 -18
  398. package/dist/solid/press.js.map +1 -1
  399. package/dist/solid/provider.d.ts +7 -1
  400. package/dist/solid/provider.d.ts.map +1 -1
  401. package/dist/solid/provider.jsx +8 -0
  402. package/dist/solid/provider.jsx.map +1 -1
  403. package/dist/solid/reactivity.d.ts +1 -20
  404. package/dist/solid/reactivity.d.ts.map +1 -1
  405. package/dist/solid/reactivity.js +0 -7
  406. package/dist/solid/reactivity.js.map +1 -1
  407. package/dist/solid/retarget-legs.d.ts +1 -188
  408. package/dist/solid/retarget-legs.d.ts.map +1 -1
  409. package/dist/solid/retarget-legs.js +3 -825
  410. package/dist/solid/retarget-legs.js.map +1 -1
  411. package/dist/solid/runtime.d.ts +12 -32
  412. package/dist/solid/runtime.d.ts.map +1 -1
  413. package/dist/solid/runtime.js +44 -21
  414. package/dist/solid/runtime.js.map +1 -1
  415. package/dist/solid/server-interpolators.d.ts +1 -12
  416. package/dist/solid/server-interpolators.d.ts.map +1 -1
  417. package/dist/solid/server-interpolators.js +3 -19
  418. package/dist/solid/server-interpolators.js.map +1 -1
  419. package/dist/solid/spine.d.ts +1 -743
  420. package/dist/solid/spine.d.ts.map +1 -1
  421. package/dist/solid/spine.js +3 -2834
  422. package/dist/solid/spine.js.map +1 -1
  423. package/dist/solid/timelines.d.ts +1 -43
  424. package/dist/solid/timelines.d.ts.map +1 -1
  425. package/dist/solid/timelines.js +3 -9
  426. package/dist/solid/timelines.js.map +1 -1
  427. package/dist/solid/unstable/v2/create-animate.d.ts.map +1 -1
  428. package/dist/solid/unstable/v2/create-animate.jsx +3 -1
  429. package/dist/solid/unstable/v2/create-animate.jsx.map +1 -1
  430. package/dist/solid/unstable/v2/create-batch.jsx +2 -2
  431. package/dist/solid/unstable/v2/create-batch.jsx.map +1 -1
  432. package/dist/solid/unstable/v2/element.d.ts +2 -1
  433. package/dist/solid/unstable/v2/element.d.ts.map +1 -1
  434. package/dist/solid/unstable/v2/element.jsx.map +1 -1
  435. package/dist/solid/unstable/v2/provider.d.ts +7 -1
  436. package/dist/solid/unstable/v2/provider.d.ts.map +1 -1
  437. package/dist/solid/unstable/v2/provider.jsx +8 -0
  438. package/dist/solid/unstable/v2/provider.jsx.map +1 -1
  439. package/dist/solid/unstable/v2/w.d.ts +2 -1
  440. package/dist/solid/unstable/v2/w.d.ts.map +1 -1
  441. package/dist/solid/unstable/v2/w.jsx.map +1 -1
  442. package/dist/solid/unstable/v2/ward.d.ts +3 -2
  443. package/dist/solid/unstable/v2/ward.d.ts.map +1 -1
  444. package/dist/solid/unstable/v2/ward.jsx +15 -5
  445. package/dist/solid/unstable/v2/ward.jsx.map +1 -1
  446. package/dist/solid/variant-target.d.ts +1 -103
  447. package/dist/solid/variant-target.d.ts.map +1 -1
  448. package/dist/solid/variant-target.js +3 -181
  449. package/dist/solid/variant-target.js.map +1 -1
  450. package/dist/solid/variant-tree.d.ts +1 -348
  451. package/dist/solid/variant-tree.d.ts.map +1 -1
  452. package/dist/solid/variant-tree.js +3 -357
  453. package/dist/solid/variant-tree.js.map +1 -1
  454. package/dist/solid/w.d.ts +2 -1
  455. package/dist/solid/w.d.ts.map +1 -1
  456. package/dist/solid/w.jsx.map +1 -1
  457. package/dist/solid/wardic-config-value.d.ts +1 -86
  458. package/dist/solid/wardic-config-value.d.ts.map +1 -1
  459. package/dist/solid/wardic-config-value.js +3 -105
  460. package/dist/solid/wardic-config-value.js.map +1 -1
  461. package/package.json +4 -4
  462. package/src/animation-controls.ts +3 -206
  463. package/src/appear.ts +3 -878
  464. package/src/batch-gestures.ts +2 -2
  465. package/src/batch.ts +3 -3078
  466. package/src/config.ts +5 -858
  467. package/src/create-animate.tsx +3 -1
  468. package/src/create-batch.tsx +2 -2
  469. package/src/create-ward.tsx +27 -46
  470. package/src/drag-constraints.ts +3 -103
  471. package/src/drag-controls.ts +3 -94
  472. package/src/drag-defaults.ts +3 -0
  473. package/src/drag-track.ts +3 -955
  474. package/src/drag-transition.ts +3 -43
  475. package/src/element-setup.ts +3 -0
  476. package/src/element.tsx +2 -1
  477. package/src/feature.ts +3 -491
  478. package/src/features/all.ts +3 -27
  479. package/src/features/colors.ts +3 -36
  480. package/src/features/dom-animation.ts +3 -15
  481. package/src/features/dom-max.ts +3 -10
  482. package/src/features/drag.ts +3 -30
  483. package/src/features/focus.ts +3 -17
  484. package/src/features/hover.ts +3 -17
  485. package/src/features/in-view.ts +3 -17
  486. package/src/features/input.ts +3 -34
  487. package/src/features/keys.ts +3 -106
  488. package/src/features/layout.ts +3 -66
  489. package/src/features/pan.ts +3 -17
  490. package/src/features/press.ts +3 -17
  491. package/src/features/scroll.ts +3 -31
  492. package/src/gesture-features.ts +3 -35
  493. package/src/gesture-info.ts +3 -81
  494. package/src/imperative.ts +3 -1052
  495. package/src/index.tsx +1 -1
  496. package/src/instant.ts +3 -90
  497. package/src/layout-group.ts +3 -32
  498. package/src/layout-member.ts +3 -315
  499. package/src/lazy-batch-gestures.ts +3 -3
  500. package/src/live-style.ts +3 -471
  501. package/src/member-hold.ts +3 -241
  502. package/src/owner-scope.ts +3 -31
  503. package/src/presence-controller.ts +3 -1732
  504. package/src/presence-record.ts +8 -192
  505. package/src/press.ts +3 -40
  506. package/src/provider.tsx +10 -0
  507. package/src/reactivity.ts +3 -23
  508. package/src/retarget-legs.ts +3 -1049
  509. package/src/runtime.ts +54 -42
  510. package/src/server-interpolators.ts +3 -33
  511. package/src/spine.ts +3 -3540
  512. package/src/timelines.ts +3 -46
  513. package/src/unstable/v2/create-animate.tsx +3 -1
  514. package/src/unstable/v2/create-batch.tsx +2 -2
  515. package/src/unstable/v2/element.tsx +2 -1
  516. package/src/unstable/v2/provider.tsx +10 -0
  517. package/src/unstable/v2/w.tsx +2 -1
  518. package/src/unstable/v2/ward.tsx +18 -43
  519. package/src/variant-target.ts +3 -240
  520. package/src/variant-tree.ts +3 -638
  521. package/src/w.tsx +2 -1
  522. package/src/wardic-config-value.ts +3 -150
  523. package/dist/browser/batch-handoff.js +0 -57
  524. package/dist/browser/batch-handoff.js.map +0 -1
  525. package/dist/browser/features/timeline-keys.js +0 -100
  526. package/dist/browser/features/timeline-keys.js.map +0 -1
  527. package/dist/browser/frame-time.js +0 -40
  528. package/dist/browser/frame-time.js.map +0 -1
  529. package/dist/server/batch-handoff.js +0 -57
  530. package/dist/server/batch-handoff.js.map +0 -1
  531. package/dist/server/features/timeline-keys.js +0 -100
  532. package/dist/server/features/timeline-keys.js.map +0 -1
  533. package/dist/server/frame-time.js +0 -40
  534. package/dist/server/frame-time.js.map +0 -1
  535. package/dist/solid/batch-handoff.d.ts +0 -25
  536. package/dist/solid/batch-handoff.d.ts.map +0 -1
  537. package/dist/solid/batch-handoff.js +0 -62
  538. package/dist/solid/batch-handoff.js.map +0 -1
  539. package/dist/solid/features/timeline-keys.d.ts +0 -7
  540. package/dist/solid/features/timeline-keys.d.ts.map +0 -1
  541. package/dist/solid/features/timeline-keys.js +0 -97
  542. package/dist/solid/features/timeline-keys.js.map +0 -1
  543. package/dist/solid/frame-time.d.ts +0 -21
  544. package/dist/solid/frame-time.d.ts.map +0 -1
  545. package/dist/solid/frame-time.js +0 -41
  546. package/dist/solid/frame-time.js.map +0 -1
  547. package/src/batch-handoff.ts +0 -73
  548. package/src/features/timeline-keys.ts +0 -109
  549. package/src/frame-time.ts +0 -45
@@ -1,735 +1,9 @@
1
1
  /**
2
2
  * The Solid bindings' configuration types (#209): what an element's `initial`, `animate`,
3
3
  * `transition`, variants, gestures, drag and layout props take, for the Solid 1 binding and the
4
- * Solid 2 one (`@wardic/solid/unstable/v2`) alike. Solid-free: CSS properties come from
5
- * `csstype`, as both Solids' own `JSX.CSSProperties` do.
4
+ * Solid 2 one (`@wardic/solid/unstable/v2`) alike.
6
5
  *
7
6
  * @module
8
7
  */
9
- import type { WardicAnimationControls } from "./animation-controls.ts";
10
- import type * as Arc from "@wardic/core/Arc";
11
- import type * as Machine from "@wardic/core/Machine";
12
- import type * as Stagger from "@wardic/core/Stagger";
13
- import type * as CSS from "csstype";
14
- import type * as DomRenderer from "@wardic/dom/DomRenderer";
15
- import type * as ProjectionSystem from "@wardic/dom/ProjectionSystem";
16
- import type * as Box from "@wardic/core/Box";
17
- import type { WardicDragConstraints, WardicMeasureDragConstraints } from "./drag-constraints.ts";
18
- import type { WardicDragControls } from "./drag-controls.ts";
19
- import type { WardicDragInfo, WardicPointInfo, WardicPressEvent, WardicPressInfo } from "./gesture-info.ts";
20
- /** What "in view" means: an element's `viewport`, and `createInView`'s. Motion's `viewport` and `useInView` options. */
21
- export interface WardicViewport {
22
- /** Stays in view after its first entry. */
23
- readonly once?: boolean;
24
- /** Grown around the root, as CSS `rootMargin`: `"0px 0px -100px 0px"` counts it in 100 px later at the bottom. */
25
- readonly margin?: string;
26
- /** How much of the element must show: `"some"` (the default), `"all"`, or 0 to 1. */
27
- readonly amount?: "some" | "all" | number;
28
- /** The scrolling container it's in view of, as an accessor; the window if none. Read as it starts watching. */
29
- readonly root?: () => Element | undefined;
30
- }
31
- /** CSS properties as Solid types them: `csstype`'s hyphenated set, and custom properties. */
32
- export interface CSSProperties extends CSS.PropertiesHyphen {
33
- [key: `-${string}`]: string | number | undefined;
34
- }
35
- /**
36
- * The transform-shorthand keys the `@wardic/dom` renderer's `TRANSFORM_KEYS`
37
- * groups into a single `transform` string (see `renderer.ts`). They are NOT
38
- * valid {@link CSSProperties} keys (`x`, `scale`, `rotate`, …), so they are added
39
- * here as an intersection on top of {@link CSSProperties}. Each is
40
- * `number | string` (a bare number gets the renderer's default unit; a string
41
- * is used verbatim).
42
- */
43
- export interface WardicTransformShorthands {
44
- readonly x?: number | string;
45
- readonly y?: number | string;
46
- readonly z?: number | string;
47
- readonly translateX?: number | string;
48
- readonly translateY?: number | string;
49
- readonly translateZ?: number | string;
50
- readonly scale?: number | string;
51
- readonly scaleX?: number | string;
52
- readonly scaleY?: number | string;
53
- readonly rotate?: number | string;
54
- readonly rotateX?: number | string;
55
- readonly rotateY?: number | string;
56
- readonly rotateZ?: number | string;
57
- readonly skewX?: number | string;
58
- readonly skewY?: number | string;
59
- }
60
- /**
61
- * Animatable SVG attributes (ADR-0014) the DOM applier routes via `setAttribute`.
62
- * These are the SVG keys NOT already typed by {@link CSSProperties}, plus the
63
- * geometry keys (`cx`/`cy`/`r`/`rx`/`ry`) re-typed `number | string` (csstype's
64
- * CSS-Geometry types are narrower). `fill`/`stroke`/`stroke-*` stay as
65
- * {@link CSSProperties} provides (color/length strings — already animatable). The
66
- * runtime accepts any key regardless; this is purely DX typing.
67
- */
68
- export interface WardicSvgAttributes {
69
- readonly cx?: number | string;
70
- readonly cy?: number | string;
71
- readonly r?: number | string;
72
- readonly rx?: number | string;
73
- readonly ry?: number | string;
74
- readonly x1?: number | string;
75
- readonly y1?: number | string;
76
- readonly x2?: number | string;
77
- readonly y2?: number | string;
78
- /** Motion's line-draw feature: portion (0–1) of the path stroked → `stroke-dasharray`. */
79
- readonly pathLength?: number;
80
- readonly pathSpacing?: number;
81
- readonly pathOffset?: number;
82
- /** Set the SVG `x`/`y`/`scale` ATTRIBUTE explicitly (Wardic's `x`/`y` are transform shorthands). */
83
- readonly attrX?: number | string;
84
- readonly attrY?: number | string;
85
- readonly attrScale?: number | string;
86
- }
87
- /**
88
- * The Solid bindings' value type: every {@link CSSProperties} key PLUS the transform
89
- * shorthands and the {@link WardicSvgAttributes} the renderer understands. This is
90
- * the type users write at the edge (`animate={{ opacity: 1, x: 100, cx: 50 }}`).
91
- * Core's `Values` (`Record<string, number | string>`) is framework-agnostic and
92
- * UNCHANGED; the binding funnels `WardicValues` through {@link toValues} before core.
93
- *
94
- * Some shorthand / geometry keys (`x`, `scale`, `cx`, `r`, …) ALSO exist on
95
- * `csstype`'s property set with much narrower value types (e.g. `scale: "none" |
96
- * string`). A plain intersection would narrow those to the (often `never`-like)
97
- * overlap and reject `scale: 1.1`. So we `Omit` those keys off {@link CSSProperties}
98
- * first, letting the `number | string` typing here win for them.
99
- */
100
- export type WardicValues = Omit<CSSProperties, keyof WardicTransformShorthands | keyof WardicSvgAttributes | DomRenderer.LengthKey> & WardicLengths & WardicTransformShorthands & WardicSvgAttributes;
101
- /**
102
- * The CSS lengths a value takes a bare number on, drawn in `px` (#522, Motion's `animate={{ height: 200 }}`):
103
- * the DOM renderer's `LENGTH_KEYS`, so a number typechecks only where it's drawn as a length. Every
104
- * other length takes `csstype`'s value, `0` or a string. `style` keeps Solid's own types: Solid writes a
105
- * number there as it is.
106
- */
107
- export type WardicLengths = {
108
- readonly [K in DomRenderer.LengthKey]?: number | CSSProperties[K];
109
- };
110
- /**
111
- * A **Keyframes** value (Motion's): the stops a key passes through in order, as
112
- * `animate={{ scale: [1, 1.2, 1] }}`. A first `null` is where the key is now; a later one repeats the
113
- * stop before it. An explicit first stop is jumped to as its animation starts. More than two stops run
114
- * on a tween (Motion's 0.8 s one with no transition defined; `times` places them, `ease` may be one per
115
- * Interval, between two stops): a spring takes two.
116
- */
117
- export type WardicKeyframes<V> = ReadonlyArray<V | null>;
118
- /**
119
- * A target's values: {@link WardicValues}, each a value or its {@link WardicKeyframes}. Every
120
- * target takes them (`animate`, `exit`, each `while*`, a variant); `initial` reads one at its first
121
- * stop. `style` and a Transition end take one value, as does CSS's own `transition` string.
122
- */
123
- export type WardicTargetValues = {
124
- readonly [K in keyof WardicValues]?: K extends "transition" ? WardicValues[K] : WardicValues[K] | WardicKeyframes<Exclude<WardicValues[K], undefined>>;
125
- };
126
- /** A stagger: a child's delay in seconds, from its index and the count. `stagger()` makes one. Motion's `DynamicOption<number>`. */
127
- export type WardicStagger = (index: number, total: number) => number;
128
- /**
129
- * A path for `x` and `y` to travel along together: from where they start to where they end, the point
130
- * at each progress, 0 to 1, with a turn (`rotate`, in degrees) for one that turns the element. `arc()`
131
- * makes one; any function of this shape is one, a curve of your own.
132
- */
133
- export type WardicPath = Arc.Path;
134
- /**
135
- * How a parent's variant children are timed against it and each other: `when`, `delayChildren`,
136
- * `staggerChildren`, `staggerDirection` and `from`. Read on the parent's transition, for the variant
137
- * change it hands its children.
138
- */
139
- export interface WardicOrchestration {
140
- /** Seconds between one child's start and the next's. */
141
- readonly staggerChildren?: number;
142
- /**
143
- * Fixed delay added to every child before its staggered offset; or, as Motion's, a function of a
144
- * child's index and the count, `stagger()`'s, which decides each child's whole delay:
145
- * `staggerChildren`, `staggerDirection` and `from` aren't read beside it.
146
- */
147
- readonly delayChildren?: number | WardicStagger;
148
- /** `-1` reverses the stagger order, the last child first. Default `1`. */
149
- readonly staggerDirection?: 1 | -1;
150
- /** The child the stagger grows from: `"first"` (the default), `"last"`, `"center"` or an index. */
151
- readonly from?: Stagger.Origin;
152
- /**
153
- * Orders the parent and its children: `"beforeChildren"` animates the parent, then the children once
154
- * it lands; `"afterChildren"` the children, then the parent once they've all landed. Left out, they
155
- * animate together.
156
- */
157
- readonly when?: "beforeChildren" | "afterChildren";
158
- }
159
- /**
160
- * A transition's reduced-motion opt-out, on both arms. An animation honours the
161
- * provider's `reducedMotion` by default: under it, its positional keys snap and a layout
162
- * animation lands at once.
163
- */
164
- export interface WardicReducedMotion {
165
- /** `false` animates the transition's keys whatever the provider's `reducedMotion` says. Default `true`. */
166
- readonly respectReducedMotion?: boolean;
167
- }
168
- /**
169
- * A transition of `type: "inertia"`: each number glides from where it is at its velocity, its own or
170
- * `velocity`, and comes to rest `power × velocity` on, through `modifyTarget`, springing back to `min`
171
- * or `max` past one. Its target isn't read, so with no velocity it stays where it is. A value that
172
- * isn't a number, a colour or a length with units, runs on its default transition instead.
173
- * `timeConstant` is in milliseconds, as Motion's. Motion's `inertia`.
174
- */
175
- export interface WardicInertia {
176
- readonly type: "inertia";
177
- /** The velocity every key glides from, per second: each key's own when left out. */
178
- readonly velocity?: number;
179
- /** How far a glide carries, as a multiple of its velocity. Default 0.8. */
180
- readonly power?: number;
181
- /** The glide's time constant, in milliseconds. Default 325. */
182
- readonly timeConstant?: number;
183
- /** The bounce back from an edge: its stiffness and damping. Defaults 500 and 10. */
184
- readonly bounceStiffness?: number;
185
- readonly bounceDamping?: number;
186
- /** At rest within this of where it's going. Default 0.5. */
187
- readonly restDelta?: number;
188
- /** A bounce at rest below this speed, per second. Default 2. */
189
- readonly restSpeed?: number;
190
- /** Moves where a glide rests, called with where it would: snapping it to a grid, say. */
191
- readonly modifyTarget?: (ideal: number) => number;
192
- /** The edges: past one, the glide springs back to it. */
193
- readonly min?: number;
194
- readonly max?: number;
195
- /** Seconds each key holds where it is before it glides. */
196
- readonly delay?: number;
197
- }
198
- /**
199
- * A transition's **Skipped animation** (Motion's `skipAnimations`), on both arms: `true` lands its
200
- * keys at their ends on the next frame, with no delay, as a `WardicConfig`'s `skipAnimations` does.
201
- * `false` doesn't undo a config's.
202
- */
203
- export interface WardicSkipAnimations {
204
- readonly skipAnimations?: boolean;
205
- }
206
- /**
207
- * A transition's **Path** (#438, Motion's `path`): `x` and `y` travel along it together, rather than
208
- * each on its own, on `x`'s transition, from rest. `arc()` makes one; any {@link WardicPath} is one.
209
- * An axis the target leaves out ends where it rests (#574): where a Path in flight was taking it, so
210
- * one caught mid-air curves back to its line, else where it is.
211
- * A layout animation reads it where Motion's does, on its layout transition: the `layout` entry when
212
- * there is one, else the element's transition. On any other value's entry it isn't read.
213
- */
214
- export interface WardicTransitionPath {
215
- readonly path?: WardicPath;
216
- }
217
- /**
218
- * How an element gets to its target: a spring, a tween, or an inertia, with a value's own transition
219
- * under its name. With no `type`, a spring field (`stiffness`, `damping`, `mass`, `velocity`,
220
- * `restDelta`, `restSpeed`, `bounce`, `visualDuration`) makes it a spring, and anything else a tween, so
221
- * `{ duration: 0.5 }` is a 0.5 s tween. A spring's missing fields are Motion's 100 / 10 / 1, or set by
222
- * time, a `duration` or `visualDuration` with a `bounce`; a tween's easing is `easeOut`. With neither,
223
- * each value runs on its default. It also takes `delay`, a tween's repeats, a `path`, its variant
224
- * children's orchestration, `respectReducedMotion` and `skipAnimations`.
225
- *
226
- * @example
227
- * <w.div animate={{ x: 100, opacity: 1 }} transition={{ type: "spring", bounce: 0.2, opacity: { duration: 0.2 } }} />
228
- * @see https://wardic.dev/reference/solid/transitions/transition
229
- */
230
- export type WardicTransition = WardicTransitionWith<WardicTransitionEntries>;
231
- /**
232
- * A transition with the entries `E` (#301): {@link WardicTransition}'s two arms. A Wardic element's
233
- * config checks each transition in it against the entries its keys allow (`WardChecked`).
234
- */
235
- export type WardicTransitionWith<E> = ({
236
- readonly type?: "spring";
237
- } & Omit<Machine.SpringOptions, "from"> & WardicOrchestration & WardicReducedMotion & WardicSkipAnimations & WardicTransitionPath & E) | ({
238
- readonly type?: "tween";
239
- } & Machine.KeyframesOptions & WardicOrchestration & WardicReducedMotion & WardicSkipAnimations & WardicTransitionPath & E) | (WardicInertia & WardicOrchestration & WardicReducedMotion & WardicSkipAnimations & WardicTransitionPath & E);
240
- /**
241
- * One value's own transition, under its name in a `transition`: a spring, a tween or an inertia, without
242
- * the orchestration, which is the whole transition's. With `inherit: true` it's laid over the
243
- * transition's own fields, its own winning; without, it stands alone, taking only the transition's
244
- * `respectReducedMotion` and `skipAnimations`. Motion's `ValueTransition`.
245
- */
246
- export type WardicValueTransition = ({
247
- readonly type?: "spring";
248
- } & Omit<Machine.SpringOptions, "from"> & WardicReducedMotion & WardicSkipAnimations & WardicTransitionPath & WardicInherit) | ({
249
- readonly type?: "tween";
250
- } & Machine.KeyframesOptions & WardicReducedMotion & WardicSkipAnimations & WardicTransitionPath & WardicInherit) | (WardicInertia & WardicReducedMotion & WardicSkipAnimations & WardicTransitionPath & WardicInherit);
251
- /** `inherit: true` lays a transition over the one it would replace, its own fields winning, as Motion's. */
252
- export interface WardicInherit {
253
- readonly inherit?: boolean;
254
- }
255
- /** The name of a value a transition can have an entry for: a style, a transform shorthand, an SVG attribute. */
256
- export type WardicValueKey = Exclude<keyof WardicValues & string, "transition">;
257
- /**
258
- * A transition's per-value entries: a value's own transition under its name, `default` for every value
259
- * without one, and `layout` for the element's layout animations. A value runs on its entry, else
260
- * `default`, else the transition's own fields. Motion's `TransitionWithValueOverrides`.
261
- */
262
- export type WardicTransitionEntries = WardicValueEntries<WardicValueKey> & {
263
- readonly layout?: WardicValueTransition;
264
- };
265
- /** Entries for the values `K`, and `default` for the rest (#301). */
266
- export type WardicValueEntries<K extends string> = {
267
- readonly default?: WardicValueTransition;
268
- } & {
269
- readonly [P in K]?: WardicValueTransition;
270
- };
271
- /**
272
- * A variant's own transition, or a target's: it runs the animation that variant starts, in place of
273
- * the element's `transition`, unless `inherit: true` lays it over the element's, its own fields winning.
274
- * Motion's.
275
- */
276
- export type WardicVariantTransition = WardicTransition & WardicInherit;
277
- /**
278
- * A target's **Transition end** (Motion's `transitionEnd`): values set at once, with no
279
- * animation, once the keys the target animates have landed, `{ opacity: 0, transitionEnd: { display:
280
- * "none" } }`. Its keys are the target's, so they return to their base when it's no longer active;
281
- * a target interrupted before it lands never sets them; the target an element renders first sets its
282
- * own at once, on a server too.
283
- */
284
- export type WardicTransitionEnd = Omit<WardicValues, "transition">;
285
- /**
286
- * A target, as a variant, `animate` or `exit` gives it (Motion's `TargetAndTransition`): its
287
- * values, each a value or its Keyframes ({@link WardicTargetValues}), optionally the transition
288
- * the animation to it runs on, as an object, and its Transition end ({@link WardicTransitionEnd}).
289
- * A plain {@link WardicValues} map fits too, its CSS `transition` string a value as any other.
290
- */
291
- export type WardicVariant = (WardicTargetValues & {
292
- readonly transitionEnd?: WardicTransitionEnd;
293
- }) | (Omit<WardicTargetValues, "transition"> & {
294
- readonly transition?: WardicVariantTransition;
295
- readonly transitionEnd?: WardicTransitionEnd;
296
- });
297
- /**
298
- * Variant names (Motion's `VariantLabels`): one name, or a list of them. A list merges its
299
- * names' values in order, a later name's winning a key both set. Each key animates on the own
300
- * transition of the last name that sets it, and each name orchestrates the keys it sets in the
301
- * element's Variant children. An empty list is no name.
302
- */
303
- export type WardicVariantLabels = string | ReadonlyArray<string>;
304
- /**
305
- * A dynamic variant (Motion's `TargetResolver`): called each time the variant is
306
- * resolved with the element's `custom` (or, for an exit, its `<AnimatePresence custom>`), its values
307
- * now and their velocities, and returns its target, or another variant's name.
308
- */
309
- export type WardicVariantResolver = (custom: any, current: Readonly<Record<string, number | string>>, velocity: Readonly<Record<string, number>>) => WardicVariant | string;
310
- /** Named targets, each a target or a {@link WardicVariantResolver}. */
311
- export type WardicVariants = Readonly<Record<string, WardicVariant | WardicVariantResolver>>;
312
- /**
313
- * A drag's release, Motion's `dragTransition`: the inertia every
314
- * release runs on, a Fling, a snap back to the origin, and a layout node's Release offset. A glide
315
- * toward `power` × the release velocity that eases out over `timeConstant`, springing back on the
316
- * bounce at an edge it would cross. Motion's names and units: `timeConstant` in milliseconds. The
317
- * edges are `dragConstraints`, both at the origin with `dragSnapToOrigin`, or the slot for a layout
318
- * node. A release never borrows the element's `transition`.
319
- */
320
- export interface WardicDragTransition {
321
- /** How far a release glides, as a multiple of its velocity. Default 0.8. */
322
- readonly power?: number;
323
- /** The glide's time constant, in milliseconds. Default 750. */
324
- readonly timeConstant?: number;
325
- /** The bounce at an edge: 200 / 40 by default, a wall (1e6 / 1e7) with `dragElastic={0}`. */
326
- readonly bounceStiffness?: number;
327
- readonly bounceDamping?: number;
328
- /** At rest within this many px of where it's going. Default 1. */
329
- readonly restDelta?: number;
330
- /** At an edge, at rest below this speed, px/s. Default 10. */
331
- readonly restSpeed?: number;
332
- /** Moves where a release rests, called per axis with where it would: snapping it to a grid, say. */
333
- readonly modifyTarget?: (ideal: number) => number;
334
- }
335
- /**
336
- * Config accepted by {@link createWard}.
337
- *
338
- * REACTIVITY LAYERING (step 21e): every field here is a STATIC value. A Ward's
339
- * reactivity is solely via the WHOLE-CONFIG accessor: `createWard(() => ({ ... }))`
340
- * re-reads the config when a signal it touches changes, recomputing `target()`
341
- * and driving a Retarget. Per-field accessor unwrapping is the COMPONENT layer's
342
- * job ({@link "./wardic.tsx"} `MotionProps`), not `createWard`'s — at its
343
- * boundary a config field is always a plain value.
344
- */
345
- /**
346
- * Which of an element's gestures reach its pressable ancestors (Motion's `PropagateOptions`): only
347
- * `tap` so far. `false` stops it; left out or `true`, it propagates.
348
- */
349
- export interface WardicPropagate {
350
- readonly tap?: boolean;
351
- }
352
- /**
353
- * Motion's `definition` of an animation: a variant name, or its target values. A list of names
354
- * on Solid 2's landing, where `animate` gave one; Solid 1's callbacks are told each name.
355
- */
356
- export type WardicAnimationDefinition = WardicVariantLabels | WardicValues;
357
- /**
358
- * An app's scale corrector (Motion's `addScaleCorrector` entry), given to `WardicProvider`'s
359
- * `scaleCorrectors` by the value key it corrects: `correct(latest, { target, treeScale, projectionDelta })`
360
- * turns the element's value into the one to write while a layout animation scales it (`target` the
361
- * box it's drawn into, `treeScale` its ancestors' scale, `projectionDelta` its delta, Motion's
362
- * shapes), written under `applyTo`'s keys when given, else its own. `latest` is the element's own
363
- * value for the key (from its `style` or an animation), else its Own value at its first measure.
364
- */
365
- export type WardicScaleCorrector = ProjectionSystem.ScaleCorrector;
366
- /**
367
- * A point mapping (Motion's `TransformPoint`): handed a point in the viewport's coordinates, it
368
- * gives the one a drag or a pan uses: `WardicConfig`'s `transformPagePoint`.
369
- */
370
- export type WardicTransformPoint = (point: {
371
- readonly x: number;
372
- readonly y: number;
373
- }) => {
374
- readonly x: number;
375
- readonly y: number;
376
- };
377
- /** A layout box (Motion's `Box`): each axis's `min` and `max`, in the page's pixels. */
378
- export type WardicLayoutBox = Box.Box;
379
- /**
380
- * A **Transform template** (Motion's `transformTemplate`): `(values, generated) => transform`.
381
- *
382
- * - **At rest and animating:** `values` holds the element's transform keys in their units, as
383
- * Motion's do (`x: "10px"`, `rotate: "45deg"`, `scale: 1.5`), and `generated` is the transform
384
- * Wardic would draw, `""` when every key is at its identity. It's called with no transform key too.
385
- * - **While a layout animation moves it:** `values` holds every value as it is (`x: 10`), and
386
- * `generated` is the projection's transform. Once the flight lands, it's called as at rest.
387
- * - **Held for a Measure pass:** every value as it is, and `""`.
388
- */
389
- export type WardicTransformTemplate = DomRenderer.TransformTemplate;
390
- /** The motion props every element takes, whatever its Features: {@link WardConfig}'s base group (#516). */
391
- export interface WardBaseConfig {
392
- /**
393
- * Where the element starts: values, a `variants` name, or `false` to start at `animate`, so nothing
394
- * animates as it mounts. On a server-rendered page, the element arrives in the HTML at `initial`.
395
- *
396
- * @example <w.div initial={{ opacity: 0, y: 12 }} />
397
- */
398
- readonly initial?: WardicVariant | WardicVariantLabels | false;
399
- /**
400
- * Where the element animates to: values or a `variants` name. Change it, and the element animates
401
- * from wherever it is to the new target. Or animation controls from `createAnimationControls()`,
402
- * which set the target when you call `start` or `set`.
403
- *
404
- * @example <w.div animate={{ opacity: open() ? 1 : 0 }} />
405
- */
406
- readonly animate?: WardicVariant | WardicVariantLabels | WardicAnimationControls;
407
- /**
408
- * Named targets that `initial`, `animate`, `exit` and the `while*` props can name instead of giving
409
- * values. A variant can carry its own `transition`, or be a function of `custom`. Children with
410
- * `variants` follow their parent's names, staggered by its `transition`.
411
- *
412
- * @example <w.div variants={{ hidden: { opacity: 0 }, shown: { opacity: 1 } }} />
413
- */
414
- readonly variants?: WardicVariants;
415
- /**
416
- * The value passed to this element's function variants. When it changes, they're resolved again,
417
- * and the element animates to what they give. A leaving element uses `<AnimatePresence custom>`
418
- * instead, if given.
419
- */
420
- readonly custom?: any;
421
- /**
422
- * Which child of an `<AnimatePresence>` this is, as React's `key` tells Motion. A child that comes
423
- * back while one with its key is still leaving takes over from it, starting where it's drawn. Only
424
- * on the presence's child itself; never written to the page.
425
- */
426
- readonly key?: string | number;
427
- /**
428
- * `false` keeps an element with `variants` out of its parent's: it doesn't follow its names or take
429
- * part in its stagger, and passes none of them on to its own children.
430
- */
431
- readonly inherit?: boolean;
432
- /**
433
- * How the element moves to a target: a spring (`stiffness`, `damping`, `mass`, or `duration` and
434
- * `bounce`), a tween (`duration`, `ease`), keyframes' `times`, or `inertia`, with `delay`, `repeat`
435
- * and, for variants, `staggerChildren` and `when`. A value's own (`opacity: {…}`) or `layout`'s apply
436
- * to it alone. Without one, each value gets Motion's default.
437
- *
438
- * @example <w.div transition={{ type: "spring", stiffness: 300, damping: 20 }} />
439
- * @see https://wardic.dev/guides/transitions
440
- */
441
- readonly transition?: WardicTransition;
442
- /**
443
- * Where the element animates as it leaves an `<AnimatePresence>`: values or a `variants` name. The
444
- * element stays on the page until it has played.
445
- *
446
- * @example <w.div exit={{ opacity: 0, scale: 0.9 }} />
447
- */
448
- readonly exit?: WardicVariant | WardicVariantLabels;
449
- /**
450
- * Called when an animation of the element starts, with what it animates to: the variant name, or
451
- * the values. Not for a layout animation, which has its own. Solid 1's.
452
- */
453
- readonly onAnimationStart?: (definition: WardicAnimationDefinition) => void;
454
- /**
455
- * Called when that animation lands, with the same definition, once every value it moves has
456
- * settled. Not for one interrupted by a new target. Solid 1; on Solid 2, the element's ward gives
457
- * `next("settled")`.
458
- */
459
- readonly onAnimationComplete?: (definition: WardicAnimationDefinition) => void;
460
- /**
461
- * Called once a frame in which the element's values changed, with every value it holds (`x` as a
462
- * number). The object is reused: read it during the call, or copy it. For one value, `ward.read(key)`
463
- * on Solid 2, or `ward.value(key)` on Solid 1, costs less.
464
- */
465
- readonly onUpdate?: (latest: Readonly<Record<string, number | string>>) => void;
466
- /**
467
- * Builds the element's whole `transform` from its values and the one Wardic would draw, wherever
468
- * it's drawn: at rest, animating, on the server and during a layout animation.
469
- *
470
- * @example <w.div transformTemplate={(_, generated) => `translate(-50%, -50%) ${generated}`} />
471
- */
472
- readonly transformTemplate?: WardicTransformTemplate;
473
- /**
474
- * `false`: on a server-rendered page, this element's entrance waits for the JavaScript instead of
475
- * playing from the first paint. The provider's `appear` sets it for every element.
476
- *
477
- * @see https://wardic.dev/guides/server-rendering
478
- */
479
- readonly appear?: boolean;
480
- }
481
- /** The motion props the `hover` Feature reads: {@link WardConfig}'s `hover` group (#516). */
482
- export interface WardHoverConfig {
483
- /**
484
- * Where the element animates while the pointer is over it, and back when it leaves: values or a
485
- * `variants` name, which children with `variants` follow too. Needs the `hover` Feature.
486
- *
487
- * @example <w.div whileHover={{ scale: 1.05 }} />
488
- */
489
- readonly whileHover?: WardicVariant | WardicVariantLabels;
490
- /** Called when the pointer comes over the element (a touch never hovers). Solid 1; Solid 2's ward gives `"hoverStart"`. */
491
- readonly onHoverStart?: (event: PointerEvent, info: WardicPointInfo) => void;
492
- /** Called when the pointer leaves the element. Solid 1; Solid 2's ward gives `"hoverEnd"`. */
493
- readonly onHoverEnd?: (event: PointerEvent, info: WardicPointInfo) => void;
494
- }
495
- /** The motion props the `press` Feature reads: {@link WardConfig}'s `press` group (#516). */
496
- export interface WardPressConfig {
497
- /**
498
- * Where the element animates while it's pressed, by a pointer or by Enter or Space while it has
499
- * focus. Needs the `press` Feature.
500
- *
501
- * @example <w.div whileTap={{ scale: 0.95 }} />
502
- */
503
- readonly whileTap?: WardicVariant | WardicVariantLabels;
504
- /**
505
- * Whether a press on this element also counts as a press of its ancestors. `{ tap: false }` keeps
506
- * it to this element: a pressable parent doesn't play its `whileTap` or hear the tap.
507
- */
508
- readonly propagate?: WardicPropagate;
509
- /**
510
- * Called when a press begins on the element: a pointer going down, or Enter or Space while it has
511
- * focus (`info.input` says which). Solid 1; Solid 2's ward gives `"pressStart"`.
512
- */
513
- readonly onTapStart?: (event: WardicPressEvent, info: WardicPressInfo) => void;
514
- /** Called when that press ends on the element: a release on it, or its key coming up. Solid 1; Solid 2's ward gives `"tap"`. */
515
- readonly onTap?: (event: WardicPressEvent, info: WardicPressInfo) => void;
516
- /**
517
- * Called when that press ends anywhere else, or is cancelled. A press a drag took over is neither a
518
- * tap nor a cancel. Solid 1; Solid 2's ward gives `"tapCancel"`.
519
- */
520
- readonly onTapCancel?: (event: WardicPressEvent, info: WardicPressInfo) => void;
521
- }
522
- /** The motion props the `focus` Feature reads: {@link WardConfig}'s `focus` group (#516). */
523
- export interface WardFocusConfig {
524
- /**
525
- * Where the element animates while it has the keyboard's focus (as `:focus-visible` shows it, not
526
- * a click's). Needs the `focus` Feature.
527
- */
528
- readonly whileFocus?: WardicVariant | WardicVariantLabels;
529
- }
530
- /** The motion props the `inView` Feature reads: {@link WardConfig}'s `inView` group (#516). */
531
- export interface WardInViewConfig {
532
- /**
533
- * Where the element animates while it's in view, as `viewport` defines it. Needs the `inView`
534
- * Feature.
535
- *
536
- * @example <w.div whileInView={{ opacity: 1 }} viewport={{ once: true }} />
537
- */
538
- readonly whileInView?: WardicVariant | WardicVariantLabels;
539
- /**
540
- * What "in view" means for `whileInView` and the viewport callbacks: `root`, a scrolling container
541
- * (the window if none); `margin`, grown around it, as CSS `rootMargin`; `amount` of the element that
542
- * must show, `"some"`, `"all"` or 0 to 1; and `once`, to stay in view after the first entry.
543
- */
544
- readonly viewport?: WardicViewport;
545
- /** Called when the element comes into view, as `viewport` defines it, with the browser's `IntersectionObserverEntry`. Solid 1; Solid 2's ward gives `"viewportEnter"`. */
546
- readonly onViewportEnter?: (entry: IntersectionObserverEntry) => void;
547
- /** Called when the element leaves the view. With `viewport.once`, never after the first entry. Solid 1; Solid 2's ward gives `"viewportLeave"`. */
548
- readonly onViewportLeave?: (entry: IntersectionObserverEntry) => void;
549
- }
550
- /** The motion props the `pan` Feature reads: {@link WardConfig}'s `pan` group (#516). */
551
- export interface WardPanConfig {
552
- /**
553
- * Called when a pointer goes down on the element, ready to pan. A pan moves nothing itself: read
554
- * its offset and velocity in `onPan`. On a touch screen, give the element a `touch-action`, such as
555
- * `pan-y` for a sideways pan, or the page's scroll takes the gesture. Solid 1; Solid 2's ward gives
556
- * `"panSessionStart"`.
557
- */
558
- readonly onPanSessionStart?: (event: PointerEvent, info: WardicPointInfo) => void;
559
- /** Called when a pan starts, past its threshold. Solid 1; Solid 2's ward gives `"panStart"`. */
560
- readonly onPanStart?: (event: PointerEvent, info: WardicDragInfo) => void;
561
- /** Called as the pan moves: at its start, and each move after. Solid 1; Solid 2's ward gives `"pan"`. */
562
- readonly onPan?: (event: PointerEvent, info: WardicDragInfo) => void;
563
- /** Called when a pan that started ends, or is cancelled. Solid 1; Solid 2's ward gives `"panEnd"`. */
564
- readonly onPanEnd?: (event: PointerEvent, info: WardicDragInfo) => void;
565
- }
566
- /** The motion props the `drag` Feature reads: {@link WardConfig}'s `drag` group (#516). */
567
- export interface WardDragConfig {
568
- /**
569
- * Makes the element draggable: `true` on both axes, `"x"` or `"y"` on one. On release it carries on
570
- * at the speed it was let go, a Fling, and slows to a stop. Needs the `drag` Feature.
571
- *
572
- * The element gets `touch-action`, `user-select: none` and `draggable="false"`, so a touch drag
573
- * isn't a scroll; its own `style` can override them. Of nested draggables, the innermost drags. With
574
- * `layout`, the element moves within its layout and returns to its place on release.
575
- *
576
- * @example <w.div drag="x" dragConstraints={{ left: 0, right: 200 }} />
577
- */
578
- readonly drag?: boolean | "x" | "y";
579
- /**
580
- * Where the element animates while it's dragged, and back once it's let go.
581
- *
582
- * @example <w.div whileDrag={{ scale: 1.1 }} />
583
- */
584
- readonly whileDrag?: WardicVariant | WardicVariantLabels;
585
- /**
586
- * Keeps the element within bounds: `{ top, left, right, bottom }` in pixels from where it started
587
- * (an edge left out is unbounded), or a container element, given as an accessor, that it stays
588
- * inside. A Fling past an edge springs back to it.
589
- *
590
- * @example <w.div dragConstraints={() => frame} />
591
- */
592
- readonly dragConstraints?: WardicDragConstraints;
593
- /**
594
- * How far the element can be pulled past `dragConstraints`, 0 to 1: 0 stops it at the edge.
595
- * Default `0.35`, Motion's.
596
- */
597
- readonly dragElastic?: number;
598
- /**
599
- * With a container in `dragConstraints`: called with the bounds measured against it, at each
600
- * measure. Return other bounds to use them instead, such as with a margin, or nothing to keep these.
601
- */
602
- readonly onMeasureDragConstraints?: WardicMeasureDragConstraints;
603
- /** `false` stops the element where it's let go, instead of carrying on at the speed it was let go. Default `true`. */
604
- readonly dragMomentum?: boolean;
605
- /** Springs the element back to where it started when it's let go. */
606
- readonly dragSnapToOrigin?: boolean;
607
- /**
608
- * How the element carries on after it's let go: Motion's inertia options (`power`, `timeConstant`,
609
- * `bounceStiffness`, `bounceDamping`, `min`, `max`…), over Motion's defaults.
610
- */
611
- readonly dragTransition?: WardicDragTransition;
612
- /** `true` lets a draggable ancestor drag along with this element, instead of only the innermost dragging. */
613
- readonly dragPropagation?: boolean;
614
- /**
615
- * Waits until a drag has moved 10 px, then keeps it to the axis it moved on. A sideways swipe inside
616
- * a sheet you drag down swipes, and a downward one drags the sheet. `onDirectionLock` says which.
617
- */
618
- readonly dragDirectionLock?: boolean;
619
- /**
620
- * Drag controls from `createDragControls()`: their `start(event)` begins this element's drag from a
621
- * press somewhere else, such as a handle.
622
- */
623
- readonly dragControls?: WardicDragControls;
624
- /**
625
- * `false`: pressing the element itself doesn't drag it; only its `dragControls` do. It then gets
626
- * none of the drag's touch and selection styles, so a list whose items drag by a handle still
627
- * scrolls by touch. Default `true`.
628
- */
629
- readonly dragListener?: boolean;
630
- /** Called when a drag of the element starts. Solid 1; Solid 2's ward gives `"dragStart"`. */
631
- readonly onDragStart?: (event: PointerEvent, info: WardicDragInfo) => void;
632
- /** Called as the drag moves: at its start, and each move after. Solid 1; Solid 2's ward gives `"drag"`. */
633
- readonly onDrag?: (event: PointerEvent, info: WardicDragInfo) => void;
634
- /** Called when the drag is let go. Solid 1; Solid 2's ward gives `"dragEnd"`. */
635
- readonly onDragEnd?: (event: PointerEvent, info: WardicDragInfo) => void;
636
- /** Called when the element comes to rest after it's let go. Not when a new grab stops it. Solid 1; Solid 2's ward gives `"dragTransitionEnd"`. */
637
- readonly onDragTransitionEnd?: () => void;
638
- /** With `dragDirectionLock`: called with the axis a drag locked to, before `onDragStart`. Solid 1; Solid 2's ward gives `"directionLock"`. */
639
- readonly onDirectionLock?: (axis: "x" | "y") => void;
640
- }
641
- /** The motion props the `layout` Feature reads: {@link WardConfig}'s `layout` group (#516). */
642
- export interface WardLayoutConfig {
643
- /**
644
- * Animates the element's layout: when its size or place on the page changes, by its own layout or
645
- * its siblings', it moves there smoothly instead of jumping. `"position"` or `"size"` animates only
646
- * that part, `"x"` or `"y"` one axis, and `"preserve-aspect"` its size only when the aspect ratio
647
- * changes. Needs the `layout` Feature.
648
- *
649
- * @see https://wardic.dev/guides/layout
650
- */
651
- readonly layout?: boolean | "position" | "size" | "preserve-aspect" | "x" | "y";
652
- /**
653
- * A value whose change makes the element look for a layout change. In Solid nothing re-renders, so
654
- * give it what your layout depends on, such as a signal's value; a size change is seen on its own.
655
- *
656
- * @example <w.div layoutDependency={open()} />
657
- */
658
- readonly layoutDependency?: unknown;
659
- /**
660
- * A shared-layout id: when an element with this id mounts as another with it leaves or hides, the
661
- * new one animates from where the old one was, crossfading between them. Needs the `layout` Feature.
662
- *
663
- * @example <w.span layoutId="underline" />
664
- */
665
- readonly layoutId?: string;
666
- /**
667
- * Marks a scrolling element that is itself a layout element, so its descendants' layout animations
668
- * aren't moved by its scroll. Every other scroll, `position: sticky` included, is accounted for
669
- * without it. With no `layout` or `layoutId`, the element animates no layout of its own: it moves to a
670
- * new place at once, as Motion's.
671
- */
672
- readonly layoutScroll?: boolean;
673
- /**
674
- * Makes the element a root for the layout animations inside it: it never animates its own layout,
675
- * and its descendants' are measured against it. With `layout` too, it stays at its new place while a
676
- * parent's layout animation runs. Alone, it moves with that animation, as Motion's.
677
- *
678
- * @example <w.div layout layoutRoot>...</w.div>
679
- */
680
- readonly layoutRoot?: boolean;
681
- /**
682
- * Where in its parent's box a layout element anchors as the parent changes size: 0 to 1 on each
683
- * axis, top-left `{ x: 0, y: 0 }` by default. `false` measures it against the page instead.
684
- */
685
- readonly layoutAnchor?: {
686
- readonly x: number;
687
- readonly y: number;
688
- } | false;
689
- /**
690
- * Whether this element crossfades with the one it takes a `layoutId` over from. Default `true`.
691
- * `false` hides the old one as the move starts, and this one keeps its own opacity.
692
- */
693
- readonly layoutCrossfade?: boolean;
694
- /**
695
- * Called when a layout animation of the element starts moving. Not when there's nothing to move.
696
- * Solid 1; Solid 2's ward gives `"layoutStart"`.
697
- */
698
- readonly onLayoutAnimationStart?: () => void;
699
- /**
700
- * Called when a layout animation of the element lands. Not for one interrupted or cut short, so a
701
- * start isn't always followed by a complete: `animateLayout`'s `onSettled` tells a change's end
702
- * however it went. Solid 1; Solid 2's ward gives `"layoutComplete"`.
703
- */
704
- readonly onLayoutAnimationComplete?: () => void;
705
- /** Called as each layout measure of this layout element begins, before it's measured. */
706
- readonly onBeforeLayoutMeasure?: () => void;
707
- /**
708
- * Called with this layout element's box each time it's measured, and its box before (`undefined`
709
- * the first time): each axis's `min` and `max` in page pixels, its transforms left out.
710
- */
711
- readonly onLayoutMeasure?: (box: WardicLayoutBox, prev: WardicLayoutBox | undefined) => void;
712
- }
713
- /**
714
- * The motion props a Wardic element takes, and the config a ward is made with: what it animates,
715
- * when, how, and what it tells you. Motion's props, by Motion's names.
716
- *
717
- * @see https://wardic.dev/reference/solid/elements/props
718
- */
719
- export interface WardConfig extends WardBaseConfig, WardHoverConfig, WardPressConfig, WardFocusConfig, WardInViewConfig, WardPanConfig, WardDragConfig, WardLayoutConfig {
720
- }
721
- /**
722
- * Each Feature's motion props, by its name (#516, ADR-0067 *Amendment (#516)*): what a **Wardic
723
- * instance**'s elements take for the Features it has, beside {@link WardBaseConfig}. `colors` and
724
- * `scroll` add none. Solid 1's; Solid 2's are these without Solid 1's callbacks.
725
- */
726
- export interface WardFeatureConfigs {
727
- readonly hover: WardHoverConfig;
728
- readonly press: WardPressConfig;
729
- readonly focus: WardFocusConfig;
730
- readonly inView: WardInViewConfig;
731
- readonly pan: WardPanConfig;
732
- readonly drag: WardDragConfig;
733
- readonly layout: WardLayoutConfig;
734
- }
8
+ export * from "@wardic/dom/unstable/WardConfig";
735
9
  //# sourceMappingURL=config.d.ts.map