@wardic/dom 1.1.0 → 1.1.2

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 (253) hide show
  1. package/dist/DomProjectionSystem.js +3 -3
  2. package/dist/DomProjectionSystem.js.map +1 -1
  3. package/dist/FlushGate.d.ts +6 -6
  4. package/dist/FlushGate.d.ts.map +1 -1
  5. package/dist/FlushGate.js +7 -5
  6. package/dist/FlushGate.js.map +1 -1
  7. package/dist/ReorderController.js +3 -3
  8. package/dist/ReorderController.js.map +1 -1
  9. package/dist/Report.d.ts +1 -1
  10. package/dist/Report.d.ts.map +1 -1
  11. package/dist/Report.js +3 -2
  12. package/dist/Report.js.map +1 -1
  13. package/dist/Style.d.ts +2 -1
  14. package/dist/Style.d.ts.map +1 -1
  15. package/dist/Style.js +3 -1
  16. package/dist/Style.js.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/internal/batch-handoff.d.ts +25 -0
  20. package/dist/internal/batch-handoff.d.ts.map +1 -0
  21. package/dist/internal/batch-handoff.js +64 -0
  22. package/dist/internal/batch-handoff.js.map +1 -0
  23. package/dist/internal/gate-environment.d.ts +4 -0
  24. package/dist/internal/gate-environment.d.ts.map +1 -0
  25. package/dist/internal/gate-environment.js +21 -0
  26. package/dist/internal/gate-environment.js.map +1 -0
  27. package/dist/internal/projection.js +14 -14
  28. package/dist/internal/projection.js.map +1 -1
  29. package/dist/internal/reorder.d.ts +2 -2
  30. package/dist/internal/reorder.d.ts.map +1 -1
  31. package/dist/internal/reorder.js +2 -2
  32. package/dist/internal/reorder.js.map +1 -1
  33. package/dist/internal/starting-style.d.ts +0 -83
  34. package/dist/internal/starting-style.d.ts.map +1 -1
  35. package/dist/internal/starting-style.js +16 -143
  36. package/dist/internal/starting-style.js.map +1 -1
  37. package/dist/unstable/AppearAnimations.d.ts +191 -0
  38. package/dist/unstable/AppearAnimations.d.ts.map +1 -0
  39. package/dist/unstable/AppearAnimations.js +561 -0
  40. package/dist/unstable/AppearAnimations.js.map +1 -0
  41. package/dist/unstable/BatchMembers.d.ts +513 -0
  42. package/dist/unstable/BatchMembers.d.ts.map +1 -0
  43. package/dist/unstable/BatchMembers.js +2490 -0
  44. package/dist/unstable/BatchMembers.js.map +1 -0
  45. package/dist/unstable/DomValues.d.ts +25 -0
  46. package/dist/unstable/DomValues.d.ts.map +1 -0
  47. package/dist/unstable/DomValues.js +45 -0
  48. package/dist/unstable/DomValues.js.map +1 -0
  49. package/dist/unstable/DragConstraints.d.ts +48 -0
  50. package/dist/unstable/DragConstraints.d.ts.map +1 -0
  51. package/dist/unstable/DragConstraints.js +49 -0
  52. package/dist/unstable/DragConstraints.js.map +1 -0
  53. package/dist/unstable/DragControls.d.ts +50 -0
  54. package/dist/unstable/DragControls.d.ts.map +1 -0
  55. package/dist/unstable/DragControls.js +55 -0
  56. package/dist/unstable/DragControls.js.map +1 -0
  57. package/dist/unstable/DragDefaults.d.ts +34 -0
  58. package/dist/unstable/DragDefaults.d.ts.map +1 -0
  59. package/dist/unstable/DragDefaults.js +47 -0
  60. package/dist/unstable/DragDefaults.js.map +1 -0
  61. package/dist/unstable/DragTrack.d.ts +236 -0
  62. package/dist/unstable/DragTrack.d.ts.map +1 -0
  63. package/dist/unstable/DragTrack.js +646 -0
  64. package/dist/unstable/DragTrack.js.map +1 -0
  65. package/dist/unstable/DragTransition.d.ts +22 -0
  66. package/dist/unstable/DragTransition.d.ts.map +1 -0
  67. package/dist/unstable/DragTransition.js +31 -0
  68. package/dist/unstable/DragTransition.js.map +1 -0
  69. package/dist/unstable/ElementSetup.d.ts +144 -0
  70. package/dist/unstable/ElementSetup.d.ts.map +1 -0
  71. package/dist/unstable/ElementSetup.js +297 -0
  72. package/dist/unstable/ElementSetup.js.map +1 -0
  73. package/dist/unstable/Feature.d.ts +221 -0
  74. package/dist/unstable/Feature.d.ts.map +1 -0
  75. package/dist/unstable/Feature.js +281 -0
  76. package/dist/unstable/Feature.js.map +1 -0
  77. package/dist/unstable/GestureFeatures.d.ts +30 -0
  78. package/dist/unstable/GestureFeatures.d.ts.map +1 -0
  79. package/dist/unstable/GestureFeatures.js +32 -0
  80. package/dist/unstable/GestureFeatures.js.map +1 -0
  81. package/dist/unstable/GestureInfo.d.ts +61 -0
  82. package/dist/unstable/GestureInfo.d.ts.map +1 -0
  83. package/dist/unstable/GestureInfo.js +23 -0
  84. package/dist/unstable/GestureInfo.js.map +1 -0
  85. package/dist/unstable/Imperative.d.ts +214 -0
  86. package/dist/unstable/Imperative.d.ts.map +1 -0
  87. package/dist/unstable/Imperative.js +768 -0
  88. package/dist/unstable/Imperative.js.map +1 -0
  89. package/dist/unstable/Instant.d.ts +46 -0
  90. package/dist/unstable/Instant.d.ts.map +1 -0
  91. package/dist/unstable/Instant.js +49 -0
  92. package/dist/unstable/Instant.js.map +1 -0
  93. package/dist/unstable/LayoutGroup.d.ts +14 -0
  94. package/dist/unstable/LayoutGroup.d.ts.map +1 -0
  95. package/dist/unstable/LayoutGroup.js +31 -0
  96. package/dist/unstable/LayoutGroup.js.map +1 -0
  97. package/dist/unstable/LayoutMember.d.ts +127 -0
  98. package/dist/unstable/LayoutMember.d.ts.map +1 -0
  99. package/dist/unstable/LayoutMember.js +176 -0
  100. package/dist/unstable/LayoutMember.js.map +1 -0
  101. package/dist/unstable/LiveStyle.d.ts +171 -0
  102. package/dist/unstable/LiveStyle.d.ts.map +1 -0
  103. package/dist/unstable/LiveStyle.js +329 -0
  104. package/dist/unstable/LiveStyle.js.map +1 -0
  105. package/dist/unstable/MemberHold.d.ts +3 -0
  106. package/dist/unstable/MemberHold.d.ts.map +1 -0
  107. package/dist/unstable/MemberHold.js +223 -0
  108. package/dist/unstable/MemberHold.js.map +1 -0
  109. package/dist/unstable/OwnerScope.d.ts +16 -0
  110. package/dist/unstable/OwnerScope.d.ts.map +1 -0
  111. package/dist/unstable/OwnerScope.js +35 -0
  112. package/dist/unstable/OwnerScope.js.map +1 -0
  113. package/dist/unstable/PresenceController.d.ts +128 -0
  114. package/dist/unstable/PresenceController.d.ts.map +1 -0
  115. package/dist/unstable/PresenceController.js +1427 -0
  116. package/dist/unstable/PresenceController.js.map +1 -0
  117. package/dist/unstable/Press.d.ts +26 -0
  118. package/dist/unstable/Press.d.ts.map +1 -0
  119. package/dist/unstable/Press.js +19 -0
  120. package/dist/unstable/Press.js.map +1 -0
  121. package/dist/unstable/ServerInterpolators.d.ts +17 -0
  122. package/dist/unstable/ServerInterpolators.d.ts.map +1 -0
  123. package/dist/unstable/ServerInterpolators.js +20 -0
  124. package/dist/unstable/ServerInterpolators.js.map +1 -0
  125. package/dist/unstable/WardConfig.d.ts +567 -0
  126. package/dist/unstable/WardConfig.d.ts.map +1 -0
  127. package/dist/unstable/WardConfig.js +2 -0
  128. package/dist/unstable/WardConfig.js.map +1 -0
  129. package/dist/unstable/features/All.d.ts +24 -0
  130. package/dist/unstable/features/All.d.ts.map +1 -0
  131. package/dist/unstable/features/All.js +20 -0
  132. package/dist/unstable/features/All.js.map +1 -0
  133. package/dist/unstable/features/Colors.d.ts +12 -0
  134. package/dist/unstable/features/Colors.d.ts.map +1 -0
  135. package/dist/unstable/features/Colors.js +38 -0
  136. package/dist/unstable/features/Colors.js.map +1 -0
  137. package/dist/unstable/features/DomAnimation.d.ts +16 -0
  138. package/dist/unstable/features/DomAnimation.d.ts.map +1 -0
  139. package/dist/unstable/features/DomAnimation.js +19 -0
  140. package/dist/unstable/features/DomAnimation.js.map +1 -0
  141. package/dist/unstable/features/DomMax.d.ts +12 -0
  142. package/dist/unstable/features/DomMax.d.ts.map +1 -0
  143. package/dist/unstable/features/DomMax.js +14 -0
  144. package/dist/unstable/features/DomMax.js.map +1 -0
  145. package/dist/unstable/features/Drag.d.ts +5 -0
  146. package/dist/unstable/features/Drag.d.ts.map +1 -0
  147. package/dist/unstable/features/Drag.js +32 -0
  148. package/dist/unstable/features/Drag.js.map +1 -0
  149. package/dist/unstable/features/Focus.d.ts +5 -0
  150. package/dist/unstable/features/Focus.d.ts.map +1 -0
  151. package/dist/unstable/features/Focus.js +20 -0
  152. package/dist/unstable/features/Focus.js.map +1 -0
  153. package/dist/unstable/features/Hover.d.ts +5 -0
  154. package/dist/unstable/features/Hover.d.ts.map +1 -0
  155. package/dist/unstable/features/Hover.js +20 -0
  156. package/dist/unstable/features/Hover.js.map +1 -0
  157. package/dist/unstable/features/InView.d.ts +5 -0
  158. package/dist/unstable/features/InView.d.ts.map +1 -0
  159. package/dist/unstable/features/InView.js +20 -0
  160. package/dist/unstable/features/InView.js.map +1 -0
  161. package/dist/unstable/features/Input.d.ts +28 -0
  162. package/dist/unstable/features/Input.d.ts.map +1 -0
  163. package/dist/unstable/features/Input.js +31 -0
  164. package/dist/unstable/features/Input.js.map +1 -0
  165. package/dist/unstable/features/Keys.d.ts +95 -0
  166. package/dist/unstable/features/Keys.d.ts.map +1 -0
  167. package/dist/unstable/features/Keys.js +44 -0
  168. package/dist/unstable/features/Keys.js.map +1 -0
  169. package/dist/unstable/features/Layout.d.ts +43 -0
  170. package/dist/unstable/features/Layout.d.ts.map +1 -0
  171. package/dist/unstable/features/Layout.js +44 -0
  172. package/dist/unstable/features/Layout.js.map +1 -0
  173. package/dist/unstable/features/Pan.d.ts +5 -0
  174. package/dist/unstable/features/Pan.d.ts.map +1 -0
  175. package/dist/unstable/features/Pan.js +20 -0
  176. package/dist/unstable/features/Pan.js.map +1 -0
  177. package/dist/unstable/features/Press.d.ts +13 -0
  178. package/dist/unstable/features/Press.d.ts.map +1 -0
  179. package/dist/unstable/features/Press.js +10 -0
  180. package/dist/unstable/features/Press.js.map +1 -0
  181. package/dist/unstable/features/Scroll.d.ts +20 -0
  182. package/dist/unstable/features/Scroll.d.ts.map +1 -0
  183. package/dist/unstable/features/Scroll.js +34 -0
  184. package/dist/unstable/features/Scroll.js.map +1 -0
  185. package/dist/unstable/features/TimelineKeys.d.ts +7 -0
  186. package/dist/unstable/features/TimelineKeys.d.ts.map +1 -0
  187. package/dist/unstable/features/TimelineKeys.js +103 -0
  188. package/dist/unstable/features/TimelineKeys.js.map +1 -0
  189. package/package.json +4 -3
  190. package/src/DomProjectionSystem.ts +3 -3
  191. package/src/FlushGate.ts +11 -9
  192. package/src/ReorderController.ts +3 -3
  193. package/src/Report.ts +3 -7
  194. package/src/Style.ts +4 -1
  195. package/src/index.ts +1 -1
  196. package/src/internal/batch-handoff.ts +75 -0
  197. package/src/internal/gate-environment.ts +21 -0
  198. package/src/internal/projection.ts +14 -14
  199. package/src/internal/reorder.ts +4 -4
  200. package/src/internal/starting-style.ts +5 -204
  201. package/src/unstable/AppearAnimations.ts +837 -0
  202. package/src/unstable/BatchMembers.ts +3085 -0
  203. package/src/unstable/DomValues.ts +53 -0
  204. package/src/unstable/DragConstraints.ts +107 -0
  205. package/src/unstable/DragControls.ts +98 -0
  206. package/src/unstable/DragDefaults.ts +57 -0
  207. package/src/unstable/DragTrack.ts +959 -0
  208. package/src/unstable/DragTransition.ts +46 -0
  209. package/src/unstable/ElementSetup.ts +411 -0
  210. package/src/unstable/Feature.ts +494 -0
  211. package/src/unstable/GestureFeatures.ts +38 -0
  212. package/src/unstable/GestureInfo.ts +85 -0
  213. package/src/unstable/Imperative.ts +1037 -0
  214. package/src/unstable/Instant.ts +93 -0
  215. package/src/unstable/LayoutGroup.ts +36 -0
  216. package/src/unstable/LayoutMember.ts +319 -0
  217. package/src/unstable/LiveStyle.ts +497 -0
  218. package/src/unstable/MemberHold.ts +211 -0
  219. package/src/unstable/OwnerScope.ts +35 -0
  220. package/src/unstable/PresenceController.ts +1747 -0
  221. package/src/unstable/Press.ts +43 -0
  222. package/src/unstable/ServerInterpolators.ts +39 -0
  223. package/src/unstable/WardConfig.ts +704 -0
  224. package/src/unstable/features/All.ts +39 -0
  225. package/src/unstable/features/Colors.ts +40 -0
  226. package/src/unstable/features/DomAnimation.ts +19 -0
  227. package/src/unstable/features/DomMax.ts +14 -0
  228. package/src/unstable/features/Drag.ts +34 -0
  229. package/src/unstable/features/Focus.ts +21 -0
  230. package/src/unstable/features/Hover.ts +21 -0
  231. package/src/unstable/features/InView.ts +21 -0
  232. package/src/unstable/features/Input.ts +37 -0
  233. package/src/unstable/features/Keys.ts +124 -0
  234. package/src/unstable/features/Layout.ts +75 -0
  235. package/src/unstable/features/Pan.ts +21 -0
  236. package/src/unstable/features/Press.ts +21 -0
  237. package/src/unstable/features/Scroll.ts +35 -0
  238. package/src/unstable/features/TimelineKeys.ts +115 -0
  239. package/dist/internal/gate.d.ts +0 -199
  240. package/dist/internal/gate.d.ts.map +0 -1
  241. package/dist/internal/gate.js +0 -570
  242. package/dist/internal/gate.js.map +0 -1
  243. package/dist/internal/report.d.ts +0 -30
  244. package/dist/internal/report.d.ts.map +0 -1
  245. package/dist/internal/report.js +0 -60
  246. package/dist/internal/report.js.map +0 -1
  247. package/dist/internal/runner.d.ts +0 -22
  248. package/dist/internal/runner.d.ts.map +0 -1
  249. package/dist/internal/runner.js +0 -62
  250. package/dist/internal/runner.js.map +0 -1
  251. package/src/internal/gate.ts +0 -706
  252. package/src/internal/report.ts +0 -69
  253. package/src/internal/runner.ts +0 -78
@@ -0,0 +1,567 @@
1
+ /**
2
+ * The DOM's configuration types: what an element's `initial`, `animate`, `transition`, variants,
3
+ * gestures, drag and layout props take, for every binding over the DOM. CSS properties come from
4
+ * `csstype`, as Solid's own `JSX.CSSProperties` do. It fills core's `ValueKeys` with the DOM's keys,
5
+ * so core's config types (`WardicTransition`, `WardicVariant`, …) are typed by them, and re-exports
6
+ * them.
7
+ *
8
+ * Unstable, for Wardic's own packages: public, with no semver promise.
9
+ *
10
+ * @module
11
+ */
12
+ import type * as Box from "@wardic/core/Box";
13
+ import type * as Config from "@wardic/core/unstable/Config";
14
+ import type * as CSS from "csstype";
15
+ import type * as DomRenderer from "../DomRenderer.ts";
16
+ import type * as ProjectionSystem from "../ProjectionSystem.ts";
17
+ import type { WardicDragConstraints, WardicMeasureDragConstraints } from "./DragConstraints.ts";
18
+ import type { WardicDragControls } from "./DragControls.ts";
19
+ import type * as Feature from "./Feature.ts";
20
+ import type { WardicDragInfo, WardicPointInfo, WardicPressEvent, WardicPressInfo } from "./GestureInfo.ts";
21
+ /** What "in view" means: an element's `viewport`, and `createInView`'s. Motion's `viewport` and `useInView` options. */
22
+ export interface WardicViewport {
23
+ /** Stays in view after its first entry. */
24
+ readonly once?: boolean;
25
+ /** Grown around the root, as CSS `rootMargin`: `"0px 0px -100px 0px"` counts it in 100 px later at the bottom. */
26
+ readonly margin?: string;
27
+ /** How much of the element must show: `"some"` (the default), `"all"`, or 0 to 1. */
28
+ readonly amount?: "some" | "all" | number;
29
+ /** The scrolling container it's in view of, as an accessor; the window if none. Read as it starts watching. */
30
+ readonly root?: () => Element | undefined;
31
+ }
32
+ /** CSS properties as Solid types them: `csstype`'s hyphenated set, and custom properties. */
33
+ export interface CSSProperties extends CSS.PropertiesHyphen {
34
+ [key: `-${string}`]: string | number | undefined;
35
+ }
36
+ /**
37
+ * The transform-shorthand keys the `@wardic/dom` renderer's `TRANSFORM_KEYS`
38
+ * groups into a single `transform` string (see `renderer.ts`). They are NOT
39
+ * valid {@link CSSProperties} keys (`x`, `scale`, `rotate`, …), so they are added
40
+ * here as an intersection on top of {@link CSSProperties}. Each is
41
+ * `number | string` (a bare number gets the renderer's default unit; a string
42
+ * is used verbatim).
43
+ */
44
+ export interface WardicTransformShorthands {
45
+ readonly x?: number | string;
46
+ readonly y?: number | string;
47
+ readonly z?: number | string;
48
+ readonly translateX?: number | string;
49
+ readonly translateY?: number | string;
50
+ readonly translateZ?: number | string;
51
+ readonly scale?: number | string;
52
+ readonly scaleX?: number | string;
53
+ readonly scaleY?: number | string;
54
+ readonly rotate?: number | string;
55
+ readonly rotateX?: number | string;
56
+ readonly rotateY?: number | string;
57
+ readonly rotateZ?: number | string;
58
+ readonly skewX?: number | string;
59
+ readonly skewY?: number | string;
60
+ }
61
+ /**
62
+ * Animatable SVG attributes (ADR-0014) the DOM applier routes via `setAttribute`.
63
+ * These are the SVG keys NOT already typed by {@link CSSProperties}, plus the
64
+ * geometry keys (`cx`/`cy`/`r`/`rx`/`ry`) re-typed `number | string` (csstype's
65
+ * CSS-Geometry types are narrower). `fill`/`stroke`/`stroke-*` stay as
66
+ * {@link CSSProperties} provides (color/length strings — already animatable). The
67
+ * runtime accepts any key regardless; this is purely DX typing.
68
+ */
69
+ export interface WardicSvgAttributes {
70
+ readonly cx?: number | string;
71
+ readonly cy?: number | string;
72
+ readonly r?: number | string;
73
+ readonly rx?: number | string;
74
+ readonly ry?: number | string;
75
+ readonly x1?: number | string;
76
+ readonly y1?: number | string;
77
+ readonly x2?: number | string;
78
+ readonly y2?: number | string;
79
+ /** Motion's line-draw feature: portion (0–1) of the path stroked → `stroke-dasharray`. */
80
+ readonly pathLength?: number;
81
+ readonly pathSpacing?: number;
82
+ readonly pathOffset?: number;
83
+ /** Set the SVG `x`/`y`/`scale` ATTRIBUTE explicitly (Wardic's `x`/`y` are transform shorthands). */
84
+ readonly attrX?: number | string;
85
+ readonly attrY?: number | string;
86
+ readonly attrScale?: number | string;
87
+ }
88
+ /**
89
+ * The DOM's value type: every {@link CSSProperties} key PLUS the transform shorthands and the
90
+ * {@link WardicSvgAttributes} the renderer understands. This is the type users write at the edge
91
+ * (`animate={{ opacity: 1, x: 100, cx: 50 }}`), and the keys that fill core's `ValueKeys`. A binding
92
+ * funnels it through `Stops.toValues` before core's engine, whose values are a plain
93
+ * `Values.Values` (`Record<string, number | string>`).
94
+ *
95
+ * Some shorthand / geometry keys (`x`, `scale`, `cx`, `r`, …) ALSO exist on
96
+ * `csstype`'s property set with much narrower value types (e.g. `scale: "none" |
97
+ * string`). A plain intersection would narrow those to the (often `never`-like)
98
+ * overlap and reject `scale: 1.1`. So we `Omit` those keys off {@link CSSProperties}
99
+ * first, letting the `number | string` typing here win for them.
100
+ */
101
+ export type WardicValues = Omit<CSSProperties, keyof WardicTransformShorthands | keyof WardicSvgAttributes | DomRenderer.LengthKey> & WardicLengths & WardicTransformShorthands & WardicSvgAttributes;
102
+ /**
103
+ * The CSS lengths a value takes a bare number on, drawn in `px` (#522, Motion's `animate={{ height: 200 }}`):
104
+ * the DOM renderer's `LENGTH_KEYS`, so a number typechecks only where it's drawn as a length. Every
105
+ * other length takes `csstype`'s value, `0` or a string. `style` keeps Solid's own types: Solid writes a
106
+ * number there as it is.
107
+ */
108
+ export type WardicLengths = {
109
+ readonly [K in DomRenderer.LengthKey]?: number | CSSProperties[K];
110
+ };
111
+ /** The DOM's keys and their values fill core's {@link Config.ValueKeys}, typing every config type built on it. */
112
+ declare module "@wardic/core/unstable/Config" {
113
+ interface ValueKeys extends WardicValues {
114
+ }
115
+ }
116
+ export type { WardicKeyframes, WardicStagger, WardicPath, WardicOrchestration, WardicReducedMotion, WardicInertia, WardicSkipAnimations, WardicTransitionPath, WardicTransitionWith, WardicValueTransition, WardicInherit, WardicTransitionEntries, WardicValueEntries, WardicVariantTransition, WardicVariantLabels, WardicVariantResolver, WardicVariants, WardicControlsDefinition, WardicAnimationControls, WardicAnimationDefinition, SpineConfig, } from "@wardic/core/unstable/Config";
117
+ export { CONTROLS } from "@wardic/core/unstable/Config";
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 = Config.WardicTargetValues;
124
+ /**
125
+ * How an element gets to its target: a spring, a tween, or an inertia, with a value's own transition
126
+ * under its name. With no `type`, a spring field (`stiffness`, `damping`, `mass`, `velocity`,
127
+ * `restDelta`, `restSpeed`, `bounce`, `visualDuration`) makes it a spring, and anything else a tween, so
128
+ * `{ duration: 0.5 }` is a 0.5 s tween. A spring's missing fields are Motion's 100 / 10 / 1, or set by
129
+ * time, a `duration` or `visualDuration` with a `bounce`; a tween's easing is `easeOut`. With neither,
130
+ * each value runs on its default. It also takes `delay`, a tween's repeats, a `path`, its variant
131
+ * children's orchestration, `respectReducedMotion` and `skipAnimations`.
132
+ *
133
+ * @example
134
+ * <w.div animate={{ x: 100, opacity: 1 }} transition={{ type: "spring", bounce: 0.2, opacity: { duration: 0.2 } }} />
135
+ * @see https://wardic.dev/reference/solid/transitions/transition
136
+ */
137
+ export type WardicTransition = Config.WardicTransition;
138
+ /** The name of a value a transition can have an entry for: a style, a transform shorthand, an SVG attribute. */
139
+ export type WardicValueKey = Config.WardicValueKey;
140
+ /**
141
+ * A target's **Transition end** (Motion's `transitionEnd`): values set at once, with no
142
+ * animation, once the keys the target animates have landed, `{ opacity: 0, transitionEnd: { display:
143
+ * "none" } }`. Its keys are the target's, so they return to their base when it's no longer active;
144
+ * a target interrupted before it lands never sets them; the target an element renders first sets its
145
+ * own at once, on a server too.
146
+ */
147
+ export type WardicTransitionEnd = Config.WardicTransitionEnd;
148
+ /**
149
+ * A target, as a variant, `animate` or `exit` gives it (Motion's `TargetAndTransition`): its
150
+ * values, each a value or its Keyframes ({@link WardicTargetValues}), optionally the transition
151
+ * the animation to it runs on, as an object, and its Transition end ({@link WardicTransitionEnd}).
152
+ * A plain {@link WardicValues} map fits too, its CSS `transition` string a value as any other.
153
+ */
154
+ export type WardicVariant = Config.WardicVariant;
155
+ /**
156
+ * A point mapping (Motion's `TransformPoint`): handed a point in the viewport's coordinates, it
157
+ * gives the one a drag or a pan uses: `WardicConfig`'s `transformPagePoint`.
158
+ */
159
+ export type WardicTransformPoint = Config.WardicTransformPoint;
160
+ /**
161
+ * A drag's release, Motion's `dragTransition`: the inertia every
162
+ * release runs on, a Fling, a snap back to the origin, and a layout node's Release offset. A glide
163
+ * toward `power` × the release velocity that eases out over `timeConstant`, springing back on the
164
+ * bounce at an edge it would cross. Motion's names and units: `timeConstant` in milliseconds. The
165
+ * edges are `dragConstraints`, both at the origin with `dragSnapToOrigin`, or the slot for a layout
166
+ * node. A release never borrows the element's `transition`.
167
+ */
168
+ export interface WardicDragTransition {
169
+ /** How far a release glides, as a multiple of its velocity. Default 0.8. */
170
+ readonly power?: number;
171
+ /** The glide's time constant, in milliseconds. Default 750. */
172
+ readonly timeConstant?: number;
173
+ /** The bounce at an edge: 200 / 40 by default, a wall (1e6 / 1e7) with `dragElastic={0}`. */
174
+ readonly bounceStiffness?: number;
175
+ readonly bounceDamping?: number;
176
+ /** At rest within this many px of where it's going. Default 1. */
177
+ readonly restDelta?: number;
178
+ /** At an edge, at rest below this speed, px/s. Default 10. */
179
+ readonly restSpeed?: number;
180
+ /** Moves where a release rests, called per axis with where it would: snapping it to a grid, say. */
181
+ readonly modifyTarget?: (ideal: number) => number;
182
+ }
183
+ /**
184
+ * Config accepted by {@link createWard}.
185
+ *
186
+ * REACTIVITY LAYERING (step 21e): every field here is a STATIC value. A Ward's
187
+ * reactivity is solely via the WHOLE-CONFIG accessor: `createWard(() => ({ ... }))`
188
+ * re-reads the config when a signal it touches changes, recomputing `target()`
189
+ * and driving a Retarget. Per-field accessor unwrapping is the COMPONENT layer's
190
+ * job ({@link "./wardic.tsx"} `MotionProps`), not `createWard`'s — at its
191
+ * boundary a config field is always a plain value.
192
+ */
193
+ /**
194
+ * Which of an element's gestures reach its pressable ancestors (Motion's `PropagateOptions`): only
195
+ * `tap` so far. `false` stops it; left out or `true`, it propagates.
196
+ */
197
+ export interface WardicPropagate {
198
+ readonly tap?: boolean;
199
+ }
200
+ /**
201
+ * An app's scale corrector (Motion's `addScaleCorrector` entry), given to `WardicProvider`'s
202
+ * `scaleCorrectors` by the value key it corrects: `correct(latest, { target, treeScale, projectionDelta })`
203
+ * turns the element's value into the one to write while a layout animation scales it (`target` the
204
+ * box it's drawn into, `treeScale` its ancestors' scale, `projectionDelta` its delta, Motion's
205
+ * shapes), written under `applyTo`'s keys when given, else its own. `latest` is the element's own
206
+ * value for the key (from its `style` or an animation), else its Own value at its first measure.
207
+ */
208
+ export type WardicScaleCorrector = ProjectionSystem.ScaleCorrector;
209
+ /** A layout box (Motion's `Box`): each axis's `min` and `max`, in the page's pixels. */
210
+ export type WardicLayoutBox = Box.Box;
211
+ /**
212
+ * A **Transform template** (Motion's `transformTemplate`): `(values, generated) => transform`.
213
+ *
214
+ * - **At rest and animating:** `values` holds the element's transform keys in their units, as
215
+ * Motion's do (`x: "10px"`, `rotate: "45deg"`, `scale: 1.5`), and `generated` is the transform
216
+ * Wardic would draw, `""` when every key is at its identity. It's called with no transform key too.
217
+ * - **While a layout animation moves it:** `values` holds every value as it is (`x: 10`), and
218
+ * `generated` is the projection's transform. Once the flight lands, it's called as at rest.
219
+ * - **Held for a Measure pass:** every value as it is, and `""`.
220
+ */
221
+ export type WardicTransformTemplate = DomRenderer.TransformTemplate;
222
+ /** The motion props every element takes, whatever its Features: {@link WardConfig}'s base group (#516). */
223
+ export interface WardBaseConfig {
224
+ /**
225
+ * Where the element starts: values, a `variants` name, or `false` to start at `animate`, so nothing
226
+ * animates as it mounts. On a server-rendered page, the element arrives in the HTML at `initial`.
227
+ *
228
+ * @example <w.div initial={{ opacity: 0, y: 12 }} />
229
+ */
230
+ readonly initial?: WardicVariant | Config.WardicVariantLabels | false;
231
+ /**
232
+ * Where the element animates to: values or a `variants` name. Change it, and the element animates
233
+ * from wherever it is to the new target. Or animation controls from `createAnimationControls()`,
234
+ * which set the target when you call `start` or `set`.
235
+ *
236
+ * @example <w.div animate={{ opacity: open() ? 1 : 0 }} />
237
+ */
238
+ readonly animate?: WardicVariant | Config.WardicVariantLabels | Config.WardicAnimationControls;
239
+ /**
240
+ * Named targets that `initial`, `animate`, `exit` and the `while*` props can name instead of giving
241
+ * values. A variant can carry its own `transition`, or be a function of `custom`. Children with
242
+ * `variants` follow their parent's names, staggered by its `transition`.
243
+ *
244
+ * @example <w.div variants={{ hidden: { opacity: 0 }, shown: { opacity: 1 } }} />
245
+ */
246
+ readonly variants?: Config.WardicVariants;
247
+ /**
248
+ * The value passed to this element's function variants. When it changes, they're resolved again,
249
+ * and the element animates to what they give. A leaving element uses `<AnimatePresence custom>`
250
+ * instead, if given.
251
+ */
252
+ readonly custom?: any;
253
+ /**
254
+ * Which child of an `<AnimatePresence>` this is, as React's `key` tells Motion. A child that comes
255
+ * back while one with its key is still leaving takes over from it, starting where it's drawn. Only
256
+ * on the presence's child itself; never written to the page.
257
+ */
258
+ readonly key?: string | number;
259
+ /**
260
+ * `false` keeps an element with `variants` out of its parent's: it doesn't follow its names or take
261
+ * part in its stagger, and passes none of them on to its own children.
262
+ */
263
+ readonly inherit?: boolean;
264
+ /**
265
+ * How the element moves to a target: a spring (`stiffness`, `damping`, `mass`, or `duration` and
266
+ * `bounce`), a tween (`duration`, `ease`), keyframes' `times`, or `inertia`, with `delay`, `repeat`
267
+ * and, for variants, `staggerChildren` and `when`. A value's own (`opacity: {…}`) or `layout`'s apply
268
+ * to it alone. Without one, each value gets Motion's default.
269
+ *
270
+ * @example <w.div transition={{ type: "spring", stiffness: 300, damping: 20 }} />
271
+ * @see https://wardic.dev/guides/transitions
272
+ */
273
+ readonly transition?: WardicTransition;
274
+ /**
275
+ * Where the element animates as it leaves an `<AnimatePresence>`: values or a `variants` name. The
276
+ * element stays on the page until it has played.
277
+ *
278
+ * @example <w.div exit={{ opacity: 0, scale: 0.9 }} />
279
+ */
280
+ readonly exit?: WardicVariant | Config.WardicVariantLabels;
281
+ /**
282
+ * Called when an animation of the element starts, with what it animates to: the variant name, or
283
+ * the values. Not for a layout animation, which has its own. Solid 1's.
284
+ */
285
+ readonly onAnimationStart?: (definition: Config.WardicAnimationDefinition) => void;
286
+ /**
287
+ * Called when that animation lands, with the same definition, once every value it moves has
288
+ * settled. Not for one interrupted by a new target. Solid 1; on Solid 2, the element's ward gives
289
+ * `next("settled")`.
290
+ */
291
+ readonly onAnimationComplete?: (definition: Config.WardicAnimationDefinition) => void;
292
+ /**
293
+ * Called once a frame in which the element's values changed, with every value it holds (`x` as a
294
+ * number). The object is reused: read it during the call, or copy it. For one value, `ward.read(key)`
295
+ * on Solid 2, or `ward.value(key)` on Solid 1, costs less.
296
+ */
297
+ readonly onUpdate?: (latest: Readonly<Record<string, number | string>>) => void;
298
+ /**
299
+ * Builds the element's whole `transform` from its values and the one Wardic would draw, wherever
300
+ * it's drawn: at rest, animating, on the server and during a layout animation.
301
+ *
302
+ * @example <w.div transformTemplate={(_, generated) => `translate(-50%, -50%) ${generated}`} />
303
+ */
304
+ readonly transformTemplate?: WardicTransformTemplate;
305
+ /**
306
+ * `false`: on a server-rendered page, this element's entrance waits for the JavaScript instead of
307
+ * playing from the first paint. The provider's `appear` sets it for every element.
308
+ *
309
+ * @see https://wardic.dev/guides/server-rendering
310
+ */
311
+ readonly appear?: boolean;
312
+ }
313
+ /** The motion props the `hover` Feature reads: {@link WardConfig}'s `hover` group (#516). */
314
+ export interface WardHoverConfig {
315
+ /**
316
+ * Where the element animates while the pointer is over it, and back when it leaves: values or a
317
+ * `variants` name, which children with `variants` follow too. Needs the `hover` Feature.
318
+ *
319
+ * @example <w.div whileHover={{ scale: 1.05 }} />
320
+ */
321
+ readonly whileHover?: WardicVariant | Config.WardicVariantLabels;
322
+ /** Called when the pointer comes over the element (a touch never hovers). Solid 1; Solid 2's ward gives `"hoverStart"`. */
323
+ readonly onHoverStart?: (event: PointerEvent, info: WardicPointInfo) => void;
324
+ /** Called when the pointer leaves the element. Solid 1; Solid 2's ward gives `"hoverEnd"`. */
325
+ readonly onHoverEnd?: (event: PointerEvent, info: WardicPointInfo) => void;
326
+ }
327
+ /** The motion props the `press` Feature reads: {@link WardConfig}'s `press` group (#516). */
328
+ export interface WardPressConfig {
329
+ /**
330
+ * Where the element animates while it's pressed, by a pointer or by Enter or Space while it has
331
+ * focus. Needs the `press` Feature.
332
+ *
333
+ * @example <w.div whileTap={{ scale: 0.95 }} />
334
+ */
335
+ readonly whileTap?: WardicVariant | Config.WardicVariantLabels;
336
+ /**
337
+ * Whether a press on this element also counts as a press of its ancestors. `{ tap: false }` keeps
338
+ * it to this element: a pressable parent doesn't play its `whileTap` or hear the tap.
339
+ */
340
+ readonly propagate?: WardicPropagate;
341
+ /**
342
+ * Called when a press begins on the element: a pointer going down, or Enter or Space while it has
343
+ * focus (`info.input` says which). Solid 1; Solid 2's ward gives `"pressStart"`.
344
+ */
345
+ readonly onTapStart?: (event: WardicPressEvent, info: WardicPressInfo) => void;
346
+ /** 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"`. */
347
+ readonly onTap?: (event: WardicPressEvent, info: WardicPressInfo) => void;
348
+ /**
349
+ * Called when that press ends anywhere else, or is cancelled. A press a drag took over is neither a
350
+ * tap nor a cancel. Solid 1; Solid 2's ward gives `"tapCancel"`.
351
+ */
352
+ readonly onTapCancel?: (event: WardicPressEvent, info: WardicPressInfo) => void;
353
+ }
354
+ /** The motion props the `focus` Feature reads: {@link WardConfig}'s `focus` group (#516). */
355
+ export interface WardFocusConfig {
356
+ /**
357
+ * Where the element animates while it has the keyboard's focus (as `:focus-visible` shows it, not
358
+ * a click's). Needs the `focus` Feature.
359
+ */
360
+ readonly whileFocus?: WardicVariant | Config.WardicVariantLabels;
361
+ }
362
+ /** The motion props the `inView` Feature reads: {@link WardConfig}'s `inView` group (#516). */
363
+ export interface WardInViewConfig {
364
+ /**
365
+ * Where the element animates while it's in view, as `viewport` defines it. Needs the `inView`
366
+ * Feature.
367
+ *
368
+ * @example <w.div whileInView={{ opacity: 1 }} viewport={{ once: true }} />
369
+ */
370
+ readonly whileInView?: WardicVariant | Config.WardicVariantLabels;
371
+ /**
372
+ * What "in view" means for `whileInView` and the viewport callbacks: `root`, a scrolling container
373
+ * (the window if none); `margin`, grown around it, as CSS `rootMargin`; `amount` of the element that
374
+ * must show, `"some"`, `"all"` or 0 to 1; and `once`, to stay in view after the first entry.
375
+ */
376
+ readonly viewport?: WardicViewport;
377
+ /** Called when the element comes into view, as `viewport` defines it, with the browser's `IntersectionObserverEntry`. Solid 1; Solid 2's ward gives `"viewportEnter"`. */
378
+ readonly onViewportEnter?: (entry: IntersectionObserverEntry) => void;
379
+ /** Called when the element leaves the view. With `viewport.once`, never after the first entry. Solid 1; Solid 2's ward gives `"viewportLeave"`. */
380
+ readonly onViewportLeave?: (entry: IntersectionObserverEntry) => void;
381
+ }
382
+ /** The motion props the `pan` Feature reads: {@link WardConfig}'s `pan` group (#516). */
383
+ export interface WardPanConfig {
384
+ /**
385
+ * Called when a pointer goes down on the element, ready to pan. A pan moves nothing itself: read
386
+ * its offset and velocity in `onPan`. On a touch screen, give the element a `touch-action`, such as
387
+ * `pan-y` for a sideways pan, or the page's scroll takes the gesture. Solid 1; Solid 2's ward gives
388
+ * `"panSessionStart"`.
389
+ */
390
+ readonly onPanSessionStart?: (event: PointerEvent, info: WardicPointInfo) => void;
391
+ /** Called when a pan starts, past its threshold. Solid 1; Solid 2's ward gives `"panStart"`. */
392
+ readonly onPanStart?: (event: PointerEvent, info: WardicDragInfo) => void;
393
+ /** Called as the pan moves: at its start, and each move after. Solid 1; Solid 2's ward gives `"pan"`. */
394
+ readonly onPan?: (event: PointerEvent, info: WardicDragInfo) => void;
395
+ /** Called when a pan that started ends, or is cancelled. Solid 1; Solid 2's ward gives `"panEnd"`. */
396
+ readonly onPanEnd?: (event: PointerEvent, info: WardicDragInfo) => void;
397
+ }
398
+ /** The motion props the `drag` Feature reads: {@link WardConfig}'s `drag` group (#516). */
399
+ export interface WardDragConfig {
400
+ /**
401
+ * Makes the element draggable: `true` on both axes, `"x"` or `"y"` on one. On release it carries on
402
+ * at the speed it was let go, a Fling, and slows to a stop. Needs the `drag` Feature.
403
+ *
404
+ * The element gets `touch-action`, `user-select: none` and `draggable="false"`, so a touch drag
405
+ * isn't a scroll; its own `style` can override them. Of nested draggables, the innermost drags. With
406
+ * `layout`, the element moves within its layout and returns to its place on release.
407
+ *
408
+ * @example <w.div drag="x" dragConstraints={{ left: 0, right: 200 }} />
409
+ */
410
+ readonly drag?: boolean | "x" | "y";
411
+ /**
412
+ * Where the element animates while it's dragged, and back once it's let go.
413
+ *
414
+ * @example <w.div whileDrag={{ scale: 1.1 }} />
415
+ */
416
+ readonly whileDrag?: WardicVariant | Config.WardicVariantLabels;
417
+ /**
418
+ * Keeps the element within bounds: `{ top, left, right, bottom }` in pixels from where it started
419
+ * (an edge left out is unbounded), or a container element, given as an accessor, that it stays
420
+ * inside. A Fling past an edge springs back to it.
421
+ *
422
+ * @example <w.div dragConstraints={() => frame} />
423
+ */
424
+ readonly dragConstraints?: WardicDragConstraints;
425
+ /**
426
+ * How far the element can be pulled past `dragConstraints`, 0 to 1: 0 stops it at the edge.
427
+ * Default `0.35`, Motion's.
428
+ */
429
+ readonly dragElastic?: number;
430
+ /**
431
+ * With a container in `dragConstraints`: called with the bounds measured against it, at each
432
+ * measure. Return other bounds to use them instead, such as with a margin, or nothing to keep these.
433
+ */
434
+ readonly onMeasureDragConstraints?: WardicMeasureDragConstraints;
435
+ /** `false` stops the element where it's let go, instead of carrying on at the speed it was let go. Default `true`. */
436
+ readonly dragMomentum?: boolean;
437
+ /** Springs the element back to where it started when it's let go. */
438
+ readonly dragSnapToOrigin?: boolean;
439
+ /**
440
+ * How the element carries on after it's let go: Motion's inertia options (`power`, `timeConstant`,
441
+ * `bounceStiffness`, `bounceDamping`, `min`, `max`…), over Motion's defaults.
442
+ */
443
+ readonly dragTransition?: WardicDragTransition;
444
+ /** `true` lets a draggable ancestor drag along with this element, instead of only the innermost dragging. */
445
+ readonly dragPropagation?: boolean;
446
+ /**
447
+ * Waits until a drag has moved 10 px, then keeps it to the axis it moved on. A sideways swipe inside
448
+ * a sheet you drag down swipes, and a downward one drags the sheet. `onDirectionLock` says which.
449
+ */
450
+ readonly dragDirectionLock?: boolean;
451
+ /**
452
+ * Drag controls from `createDragControls()`: their `start(event)` begins this element's drag from a
453
+ * press somewhere else, such as a handle.
454
+ */
455
+ readonly dragControls?: WardicDragControls;
456
+ /**
457
+ * `false`: pressing the element itself doesn't drag it; only its `dragControls` do. It then gets
458
+ * none of the drag's touch and selection styles, so a list whose items drag by a handle still
459
+ * scrolls by touch. Default `true`.
460
+ */
461
+ readonly dragListener?: boolean;
462
+ /** Called when a drag of the element starts. Solid 1; Solid 2's ward gives `"dragStart"`. */
463
+ readonly onDragStart?: (event: PointerEvent, info: WardicDragInfo) => void;
464
+ /** Called as the drag moves: at its start, and each move after. Solid 1; Solid 2's ward gives `"drag"`. */
465
+ readonly onDrag?: (event: PointerEvent, info: WardicDragInfo) => void;
466
+ /** Called when the drag is let go. Solid 1; Solid 2's ward gives `"dragEnd"`. */
467
+ readonly onDragEnd?: (event: PointerEvent, info: WardicDragInfo) => void;
468
+ /** 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"`. */
469
+ readonly onDragTransitionEnd?: () => void;
470
+ /** With `dragDirectionLock`: called with the axis a drag locked to, before `onDragStart`. Solid 1; Solid 2's ward gives `"directionLock"`. */
471
+ readonly onDirectionLock?: (axis: "x" | "y") => void;
472
+ }
473
+ /** The motion props the `layout` Feature reads: {@link WardConfig}'s `layout` group (#516). */
474
+ export interface WardLayoutConfig {
475
+ /**
476
+ * Animates the element's layout: when its size or place on the page changes, by its own layout or
477
+ * its siblings', it moves there smoothly instead of jumping. `"position"` or `"size"` animates only
478
+ * that part, `"x"` or `"y"` one axis, and `"preserve-aspect"` its size only when the aspect ratio
479
+ * changes. Needs the `layout` Feature.
480
+ *
481
+ * @see https://wardic.dev/guides/layout
482
+ */
483
+ readonly layout?: boolean | "position" | "size" | "preserve-aspect" | "x" | "y";
484
+ /**
485
+ * A value whose change makes the element look for a layout change. In Solid nothing re-renders, so
486
+ * give it what your layout depends on, such as a signal's value; a size change is seen on its own.
487
+ *
488
+ * @example <w.div layoutDependency={open()} />
489
+ */
490
+ readonly layoutDependency?: unknown;
491
+ /**
492
+ * A shared-layout id: when an element with this id mounts as another with it leaves or hides, the
493
+ * new one animates from where the old one was, crossfading between them. Needs the `layout` Feature.
494
+ *
495
+ * @example <w.span layoutId="underline" />
496
+ */
497
+ readonly layoutId?: string;
498
+ /**
499
+ * Marks a scrolling element that is itself a layout element, so its descendants' layout animations
500
+ * aren't moved by its scroll. Every other scroll, `position: sticky` included, is accounted for
501
+ * without it. With no `layout` or `layoutId`, the element animates no layout of its own: it moves to a
502
+ * new place at once, as Motion's.
503
+ */
504
+ readonly layoutScroll?: boolean;
505
+ /**
506
+ * Makes the element a root for the layout animations inside it: it never animates its own layout,
507
+ * and its descendants' are measured against it. With `layout` too, it stays at its new place while a
508
+ * parent's layout animation runs. Alone, it moves with that animation, as Motion's.
509
+ *
510
+ * @example <w.div layout layoutRoot>...</w.div>
511
+ */
512
+ readonly layoutRoot?: boolean;
513
+ /**
514
+ * Where in its parent's box a layout element anchors as the parent changes size: 0 to 1 on each
515
+ * axis, top-left `{ x: 0, y: 0 }` by default. `false` measures it against the page instead.
516
+ */
517
+ readonly layoutAnchor?: {
518
+ readonly x: number;
519
+ readonly y: number;
520
+ } | false;
521
+ /**
522
+ * Whether this element crossfades with the one it takes a `layoutId` over from. Default `true`.
523
+ * `false` hides the old one as the move starts, and this one keeps its own opacity.
524
+ */
525
+ readonly layoutCrossfade?: boolean;
526
+ /**
527
+ * Called when a layout animation of the element starts moving. Not when there's nothing to move.
528
+ * Solid 1; Solid 2's ward gives `"layoutStart"`.
529
+ */
530
+ readonly onLayoutAnimationStart?: () => void;
531
+ /**
532
+ * Called when a layout animation of the element lands. Not for one interrupted or cut short, so a
533
+ * start isn't always followed by a complete: `animateLayout`'s `onSettled` tells a change's end
534
+ * however it went. Solid 1; Solid 2's ward gives `"layoutComplete"`.
535
+ */
536
+ readonly onLayoutAnimationComplete?: () => void;
537
+ /** Called as each layout measure of this layout element begins, before it's measured. */
538
+ readonly onBeforeLayoutMeasure?: () => void;
539
+ /**
540
+ * Called with this layout element's box each time it's measured, and its box before (`undefined`
541
+ * the first time): each axis's `min` and `max` in page pixels, its transforms left out.
542
+ */
543
+ readonly onLayoutMeasure?: (box: WardicLayoutBox, prev: WardicLayoutBox | undefined) => void;
544
+ }
545
+ /**
546
+ * The motion props a Wardic element takes, and the config a ward is made with: what it animates,
547
+ * when, how, and what it tells you. Motion's props, by Motion's names.
548
+ *
549
+ * @see https://wardic.dev/reference/solid/elements/props
550
+ */
551
+ export interface WardConfig extends Config.SpineConfig, WardBaseConfig, WardHoverConfig, WardPressConfig, WardFocusConfig, WardInViewConfig, WardPanConfig, WardDragConfig, WardLayoutConfig {
552
+ }
553
+ /**
554
+ * Each Feature's motion props, by its name (#516, ADR-0067 *Amendment (#516)*): what a **Wardic
555
+ * instance**'s elements take for the Features it has, beside {@link WardBaseConfig}. `colors` and
556
+ * `scroll` add none. Solid 1's; Solid 2's are these without Solid 1's callbacks.
557
+ */
558
+ export interface WardFeatureConfigs extends Record<Feature.PropFeature, object> {
559
+ readonly hover: WardHoverConfig;
560
+ readonly press: WardPressConfig;
561
+ readonly focus: WardFocusConfig;
562
+ readonly inView: WardInViewConfig;
563
+ readonly pan: WardPanConfig;
564
+ readonly drag: WardDragConfig;
565
+ readonly layout: WardLayoutConfig;
566
+ }
567
+ //# sourceMappingURL=WardConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WardConfig.d.ts","sourceRoot":"","sources":["../../src/unstable/WardConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,KAAK,GAAG,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,MAAM,8BAA8B,CAAA;AAC3D,OAAO,KAAK,KAAK,GAAG,MAAM,SAAS,CAAA;AACnC,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAA;AAC5C,OAAO,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file":"WardConfig.js","sourceRoot":"","sources":["../../src/unstable/WardConfig.ts"],"names":[],"mappings":"AAyJA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Every **Feature** (#511, ADR-0067 decision 2): what a **Complete element** has, and so what its forms
3
+ * (`wardic.*`, `wardic.create`, `createWard`, `use:wardic`, Solid 2's `ward()`) import. A Slim element's
4
+ * forms never do.
5
+ *
6
+ * Unstable, for Wardic's own packages: public, with no semver promise.
7
+ *
8
+ * @module
9
+ */
10
+ import type * as Feature from "../Feature.ts";
11
+ import * as Colors from "./Colors.ts";
12
+ import * as Drag from "./Drag.ts";
13
+ import * as Focus from "./Focus.ts";
14
+ import * as Hover from "./Hover.ts";
15
+ import * as InView from "./InView.ts";
16
+ import * as Layout from "./Layout.ts";
17
+ import * as Pan from "./Pan.ts";
18
+ import * as Press from "./Press.ts";
19
+ export declare const ALL: readonly [typeof Colors.colors, typeof Layout.layout, typeof Hover.hover, typeof Press.press, typeof Focus.focus, typeof InView.inView, typeof Pan.pan, typeof Drag.drag];
20
+ /** Every Feature: what an element has unless it's a Wardic instance's (#516). */
21
+ export type EveryFeature = typeof ALL;
22
+ /** The names of every Feature that adds props (#516): what an element has unless it's a Wardic instance's. */
23
+ export type EveryFeatureName = Feature.PropFeatureNames<EveryFeature>;
24
+ //# sourceMappingURL=All.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"All.d.ts","sourceRoot":"","sources":["../../../src/unstable/features/All.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAGnC,eAAO,MAAM,GAAG,EAAE,SAAS,CAAC,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,KAAK,EAAE,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,CAAC,GAAG,EAAE,OAAO,IAAI,CAAC,IAAI,CASzL,CAAA;AAED,iFAAiF;AAEjF,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,CAAA;AAErC,8GAA8G;AAC9G,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAA"}
@@ -0,0 +1,20 @@
1
+ import * as Colors from "./Colors.js";
2
+ import * as Drag from "./Drag.js";
3
+ import * as Focus from "./Focus.js";
4
+ import * as Hover from "./Hover.js";
5
+ import * as InView from "./InView.js";
6
+ import * as Layout from "./Layout.js";
7
+ import * as Pan from "./Pan.js";
8
+ import * as Press from "./Press.js";
9
+ // A tuple, so a Wardic instance's types keep each Feature's name (#516).
10
+ export const ALL = [
11
+ Colors.colors,
12
+ Layout.layout,
13
+ Hover.hover,
14
+ Press.press,
15
+ Focus.focus,
16
+ InView.inView,
17
+ Pan.pan,
18
+ Drag.drag,
19
+ ];
20
+ //# sourceMappingURL=All.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"All.js","sourceRoot":"","sources":["../../../src/unstable/features/All.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,yEAAyE;AACzE,MAAM,CAAC,MAAM,GAAG,GAA8K;IAC5L,MAAM,CAAC,MAAM;IACb,MAAM,CAAC,MAAM;IACb,KAAK,CAAC,KAAK;IACX,KAAK,CAAC,KAAK;IACX,KAAK,CAAC,KAAK;IACX,MAAM,CAAC,MAAM;IACb,GAAG,CAAC,GAAG;IACP,IAAI,CAAC,IAAI;CACV,CAAA"}