maquinaweb-ui 2.75.0 → 2.75.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 (175) hide show
  1. package/dist/actions.js +0 -1
  2. package/dist/actions.js.map +1 -1
  3. package/dist/analytics/core.d.ts.map +1 -1
  4. package/dist/analytics/core.js +0 -1
  5. package/dist/analytics/core.js.map +1 -1
  6. package/dist/analytics/delegated-clicks.d.ts.map +1 -1
  7. package/dist/analytics/delegated-clicks.js +0 -1
  8. package/dist/analytics/delegated-clicks.js.map +1 -1
  9. package/dist/analytics/provider.d.ts +2 -2
  10. package/dist/analytics/provider.d.ts.map +1 -1
  11. package/dist/analytics/provider.js +0 -1
  12. package/dist/analytics/provider.js.map +1 -1
  13. package/dist/analytics/types.d.ts.map +1 -1
  14. package/dist/analytics.js +0 -1
  15. package/dist/container-animation/container-animation.d.ts +2 -2
  16. package/dist/container-animation/container-animation.d.ts.map +1 -1
  17. package/dist/container-animation/container-animation.js +1 -2
  18. package/dist/container-animation/container-animation.js.map +1 -1
  19. package/dist/container-animation.js +0 -1
  20. package/dist/date-field/DateField.d.ts +2 -2
  21. package/dist/date-field/DateField.d.ts.map +1 -1
  22. package/dist/date-field/DateField.js +0 -1
  23. package/dist/date-field/DateField.js.map +1 -1
  24. package/dist/date-field.js +0 -1
  25. package/dist/date-hour-field/DateHourField.d.ts +2 -2
  26. package/dist/date-hour-field/DateHourField.d.ts.map +1 -1
  27. package/dist/date-hour-field/DateHourField.js +0 -1
  28. package/dist/date-hour-field/DateHourField.js.map +1 -1
  29. package/dist/date-hour-field/time-wheel-column.js.map +1 -1
  30. package/dist/date-hour-field.js +0 -1
  31. package/dist/input-suggest/input-suggest.d.ts +2 -2
  32. package/dist/input-suggest/input-suggest.d.ts.map +1 -1
  33. package/dist/input-suggest/input-suggest.js +6 -7
  34. package/dist/input-suggest/input-suggest.js.map +1 -1
  35. package/dist/input-suggest.js +0 -1
  36. package/dist/kanban-dnd/constants.js +1 -4
  37. package/dist/kanban-dnd/constants.js.map +1 -1
  38. package/dist/kanban-dnd/context.d.ts +0 -4
  39. package/dist/kanban-dnd/context.d.ts.map +1 -1
  40. package/dist/kanban-dnd/context.js +0 -1
  41. package/dist/kanban-dnd/context.js.map +1 -1
  42. package/dist/kanban-dnd/drag-preview.js +4 -4
  43. package/dist/kanban-dnd/drag-preview.js.map +1 -1
  44. package/dist/kanban-dnd/drop-animation.js.map +1 -1
  45. package/dist/kanban-dnd/kanban-card-item.d.ts +2 -2
  46. package/dist/kanban-dnd/kanban-card-item.d.ts.map +1 -1
  47. package/dist/kanban-dnd/kanban-card-item.js +0 -1
  48. package/dist/kanban-dnd/kanban-card-item.js.map +1 -1
  49. package/dist/kanban-dnd/kanban-dnd-monitor.d.ts +2 -2
  50. package/dist/kanban-dnd/kanban-dnd-monitor.d.ts.map +1 -1
  51. package/dist/kanban-dnd/kanban-dnd-monitor.js +0 -1
  52. package/dist/kanban-dnd/kanban-dnd-monitor.js.map +1 -1
  53. package/dist/kanban-dnd/kanban-dropzone.d.ts +2 -2
  54. package/dist/kanban-dnd/kanban-dropzone.d.ts.map +1 -1
  55. package/dist/kanban-dnd/kanban-dropzone.js +0 -1
  56. package/dist/kanban-dnd/kanban-dropzone.js.map +1 -1
  57. package/dist/kanban-dnd/kanban-selector.d.ts +2 -2
  58. package/dist/kanban-dnd/kanban-selector.d.ts.map +1 -1
  59. package/dist/kanban-dnd/kanban-selector.js +0 -1
  60. package/dist/kanban-dnd/kanban-selector.js.map +1 -1
  61. package/dist/kanban-dnd/move-cards.d.ts.map +1 -1
  62. package/dist/kanban-dnd/move-cards.js.map +1 -1
  63. package/dist/kanban-dnd/types.d.ts.map +1 -1
  64. package/dist/kanban-dnd/use-kanban-column-dnd.d.ts.map +1 -1
  65. package/dist/kanban-dnd/use-kanban-column-dnd.js +0 -1
  66. package/dist/kanban-dnd/use-kanban-column-dnd.js.map +1 -1
  67. package/dist/kanban-dnd/use-kanban-selector-auto-scroll.js.map +1 -1
  68. package/dist/kanban-dnd.d.ts +0 -1
  69. package/dist/kanban-dnd.js +0 -1
  70. package/dist/landing-text/client-landing-text.js +0 -1
  71. package/dist/landing-text/client-landing-text.js.map +1 -1
  72. package/dist/landing-text/landing-content.d.ts +0 -2
  73. package/dist/landing-text/landing-content.d.ts.map +1 -1
  74. package/dist/landing-text/landing-content.js.map +1 -1
  75. package/dist/landing-text/landing-text.d.ts +2 -2
  76. package/dist/landing-text/landing-text.d.ts.map +1 -1
  77. package/dist/landing-text/landing-text.js +1 -1
  78. package/dist/landing-text/landing-text.js.map +1 -1
  79. package/dist/landing-text/server-landing-text.d.ts +2 -2
  80. package/dist/landing-text/server-landing-text.d.ts.map +1 -1
  81. package/dist/landing-text/server-landing-text.js +1 -1
  82. package/dist/landing-text/server-landing-text.js.map +1 -1
  83. package/dist/landing-text/types.d.ts.map +1 -1
  84. package/dist/node_modules/framer-motion/dist/es/utils/use-in-view.js +0 -1
  85. package/dist/node_modules/framer-motion/dist/es/utils/use-in-view.js.map +1 -1
  86. package/dist/node_modules/framer-motion/dist/types/index.d.ts +4 -0
  87. package/dist/node_modules/framer-motion/dist/types.d-DOCC-kZB.d.ts +1 -0
  88. package/dist/node_modules/motion/dist/react.d.ts +2 -0
  89. package/dist/node_modules/motion-dom/dist/index.d.ts +1001 -0
  90. package/dist/node_modules/motion-dom/dist/index.d.ts.map +1 -0
  91. package/dist/node_modules/motion-utils/dist/index.d.ts +17 -0
  92. package/dist/node_modules/motion-utils/dist/index.d.ts.map +1 -0
  93. package/dist/page-header/page-header.d.ts +2 -2
  94. package/dist/page-header/page-header.d.ts.map +1 -1
  95. package/dist/page-header/page-header.js.map +1 -1
  96. package/dist/page-header.js +0 -1
  97. package/dist/remote-selector/remote-selector.d.ts +3 -3
  98. package/dist/remote-selector/remote-selector.d.ts.map +1 -1
  99. package/dist/remote-selector/remote-selector.js +3 -4
  100. package/dist/remote-selector/remote-selector.js.map +1 -1
  101. package/dist/remote-selector.js +0 -1
  102. package/dist/server-infinite-scroll/server-infinite-scroll-items.d.ts +2 -2
  103. package/dist/server-infinite-scroll/server-infinite-scroll-items.d.ts.map +1 -1
  104. package/dist/server-infinite-scroll/server-infinite-scroll-items.js.map +1 -1
  105. package/dist/server-infinite-scroll/server-infinite-scroll-list.d.ts +2 -2
  106. package/dist/server-infinite-scroll/server-infinite-scroll-list.d.ts.map +1 -1
  107. package/dist/server-infinite-scroll/server-infinite-scroll-list.js +6 -7
  108. package/dist/server-infinite-scroll/server-infinite-scroll-list.js.map +1 -1
  109. package/dist/server-infinite-scroll/server-infinite-scroll-observer.d.ts +2 -2
  110. package/dist/server-infinite-scroll/server-infinite-scroll-observer.d.ts.map +1 -1
  111. package/dist/server-infinite-scroll/server-infinite-scroll-observer.js +0 -1
  112. package/dist/server-infinite-scroll/server-infinite-scroll-observer.js.map +1 -1
  113. package/dist/server-infinite-scroll/server-infinite-scroll.d.ts +2 -2
  114. package/dist/server-infinite-scroll/server-infinite-scroll.d.ts.map +1 -1
  115. package/dist/server-infinite-scroll/types.d.ts.map +1 -1
  116. package/dist/split-text-poor/split-text-poor.d.ts.map +1 -1
  117. package/dist/split-text-poor/split-text-poor.js +1 -2
  118. package/dist/split-text-poor/split-text-poor.js.map +1 -1
  119. package/dist/split-text-poor.js +0 -1
  120. package/dist/src/hooks/get-mask-options.js.map +1 -1
  121. package/dist/src/hooks/is-server.js +1 -2
  122. package/dist/src/hooks/is-server.js.map +1 -1
  123. package/dist/src/hooks/use-money-input.js +1 -3
  124. package/dist/src/hooks/use-money-input.js.map +1 -1
  125. package/dist/src/hooks/with-mask.d.ts +0 -1
  126. package/dist/src/hooks/with-mask.d.ts.map +1 -1
  127. package/dist/src/hooks/with-mask.js +2 -2
  128. package/dist/src/hooks/with-mask.js.map +1 -1
  129. package/dist/text-field/TextField.d.ts +5 -5
  130. package/dist/text-field/TextField.d.ts.map +1 -1
  131. package/dist/text-field/TextField.js +8 -9
  132. package/dist/text-field/TextField.js.map +1 -1
  133. package/dist/text-field.js +0 -1
  134. package/dist/toggle-field/ToggleField.d.ts.map +1 -1
  135. package/dist/toggle-field/ToggleField.js +1 -2
  136. package/dist/toggle-field/ToggleField.js.map +1 -1
  137. package/dist/toggle-field/ToggleGroup.d.ts +6 -6
  138. package/dist/toggle-field/ToggleGroup.d.ts.map +1 -1
  139. package/dist/toggle-field/ToggleGroup.js +2 -3
  140. package/dist/toggle-field/ToggleGroup.js.map +1 -1
  141. package/dist/toggle-field.js +0 -1
  142. package/dist/ui/badge.js +1 -1
  143. package/dist/ui/badge.js.map +1 -1
  144. package/dist/ui/button.js +1 -1
  145. package/dist/ui/button.js.map +1 -1
  146. package/dist/ui/calendar.js +8 -9
  147. package/dist/ui/calendar.js.map +1 -1
  148. package/dist/ui/checkbox.js +1 -2
  149. package/dist/ui/checkbox.js.map +1 -1
  150. package/dist/ui/command.js +5 -6
  151. package/dist/ui/command.js.map +1 -1
  152. package/dist/ui/content-help.js.map +1 -1
  153. package/dist/ui/form.js +4 -5
  154. package/dist/ui/form.js.map +1 -1
  155. package/dist/ui/input-date-field.js +1 -1
  156. package/dist/ui/input-date-field.js.map +1 -1
  157. package/dist/ui/input-help.js +0 -1
  158. package/dist/ui/input-help.js.map +1 -1
  159. package/dist/ui/input.js +1 -1
  160. package/dist/ui/input.js.map +1 -1
  161. package/dist/ui/label.js +1 -2
  162. package/dist/ui/label.js.map +1 -1
  163. package/dist/ui/popover.js +1 -2
  164. package/dist/ui/popover.js.map +1 -1
  165. package/dist/ui/scroll-area.js +1 -2
  166. package/dist/ui/scroll-area.js.map +1 -1
  167. package/dist/ui/selector.d.ts +0 -2
  168. package/dist/ui/selector.d.ts.map +1 -1
  169. package/dist/ui/selector.js +3 -4
  170. package/dist/ui/selector.js.map +1 -1
  171. package/dist/ui/tooltip.js +2 -3
  172. package/dist/ui/tooltip.js.map +1 -1
  173. package/dist/ui/tree-item-renderer.js +1 -3
  174. package/dist/ui/tree-item-renderer.js.map +1 -1
  175. package/package.json +16 -16
@@ -0,0 +1,1001 @@
1
+ import { Easing, EasingFunction } from "../../motion-utils/dist/index.js";
2
+
3
+ //#region node_modules/motion-dom/dist/index.d.ts
4
+ interface SVGAttributes {
5
+ accentHeight?: AnyResolvedKeyframe | undefined;
6
+ accumulate?: "none" | "sum" | undefined;
7
+ additive?: "replace" | "sum" | undefined;
8
+ alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit" | undefined;
9
+ allowReorder?: "no" | "yes" | undefined;
10
+ alphabetic?: AnyResolvedKeyframe | undefined;
11
+ amplitude?: AnyResolvedKeyframe | undefined;
12
+ arabicForm?: "initial" | "medial" | "terminal" | "isolated" | undefined;
13
+ ascent?: AnyResolvedKeyframe | undefined;
14
+ attributeName?: string | undefined;
15
+ attributeType?: string | undefined;
16
+ autoReverse?: boolean | undefined;
17
+ azimuth?: AnyResolvedKeyframe | undefined;
18
+ baseFrequency?: AnyResolvedKeyframe | undefined;
19
+ baselineShift?: AnyResolvedKeyframe | undefined;
20
+ baseProfile?: AnyResolvedKeyframe | undefined;
21
+ bbox?: AnyResolvedKeyframe | undefined;
22
+ begin?: AnyResolvedKeyframe | undefined;
23
+ bias?: AnyResolvedKeyframe | undefined;
24
+ by?: AnyResolvedKeyframe | undefined;
25
+ calcMode?: AnyResolvedKeyframe | undefined;
26
+ capHeight?: AnyResolvedKeyframe | undefined;
27
+ clip?: AnyResolvedKeyframe | undefined;
28
+ clipPath?: string | undefined;
29
+ clipPathUnits?: AnyResolvedKeyframe | undefined;
30
+ clipRule?: AnyResolvedKeyframe | undefined;
31
+ colorInterpolation?: AnyResolvedKeyframe | undefined;
32
+ colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit" | undefined;
33
+ colorProfile?: AnyResolvedKeyframe | undefined;
34
+ colorRendering?: AnyResolvedKeyframe | undefined;
35
+ contentScriptType?: AnyResolvedKeyframe | undefined;
36
+ contentStyleType?: AnyResolvedKeyframe | undefined;
37
+ cursor?: AnyResolvedKeyframe | undefined;
38
+ cx?: AnyResolvedKeyframe | undefined;
39
+ cy?: AnyResolvedKeyframe | undefined;
40
+ d?: string | undefined;
41
+ decelerate?: AnyResolvedKeyframe | undefined;
42
+ descent?: AnyResolvedKeyframe | undefined;
43
+ diffuseConstant?: AnyResolvedKeyframe | undefined;
44
+ direction?: AnyResolvedKeyframe | undefined;
45
+ display?: AnyResolvedKeyframe | undefined;
46
+ divisor?: AnyResolvedKeyframe | undefined;
47
+ dominantBaseline?: AnyResolvedKeyframe | undefined;
48
+ dur?: AnyResolvedKeyframe | undefined;
49
+ dx?: AnyResolvedKeyframe | undefined;
50
+ dy?: AnyResolvedKeyframe | undefined;
51
+ edgeMode?: AnyResolvedKeyframe | undefined;
52
+ elevation?: AnyResolvedKeyframe | undefined;
53
+ enableBackground?: AnyResolvedKeyframe | undefined;
54
+ end?: AnyResolvedKeyframe | undefined;
55
+ exponent?: AnyResolvedKeyframe | undefined;
56
+ externalResourcesRequired?: boolean | undefined;
57
+ fill?: string | undefined;
58
+ fillOpacity?: AnyResolvedKeyframe | undefined;
59
+ fillRule?: "nonzero" | "evenodd" | "inherit" | undefined;
60
+ filter?: string | undefined;
61
+ filterRes?: AnyResolvedKeyframe | undefined;
62
+ filterUnits?: AnyResolvedKeyframe | undefined;
63
+ floodColor?: AnyResolvedKeyframe | undefined;
64
+ floodOpacity?: AnyResolvedKeyframe | undefined;
65
+ focusable?: boolean | "auto" | undefined;
66
+ fontFamily?: string | undefined;
67
+ fontSize?: AnyResolvedKeyframe | undefined;
68
+ fontSizeAdjust?: AnyResolvedKeyframe | undefined;
69
+ fontStretch?: AnyResolvedKeyframe | undefined;
70
+ fontStyle?: AnyResolvedKeyframe | undefined;
71
+ fontVariant?: AnyResolvedKeyframe | undefined;
72
+ fontWeight?: AnyResolvedKeyframe | undefined;
73
+ format?: AnyResolvedKeyframe | undefined;
74
+ fr?: AnyResolvedKeyframe | undefined;
75
+ from?: AnyResolvedKeyframe | undefined;
76
+ fx?: AnyResolvedKeyframe | undefined;
77
+ fy?: AnyResolvedKeyframe | undefined;
78
+ g1?: AnyResolvedKeyframe | undefined;
79
+ g2?: AnyResolvedKeyframe | undefined;
80
+ glyphName?: AnyResolvedKeyframe | undefined;
81
+ glyphOrientationHorizontal?: AnyResolvedKeyframe | undefined;
82
+ glyphOrientationVertical?: AnyResolvedKeyframe | undefined;
83
+ glyphRef?: AnyResolvedKeyframe | undefined;
84
+ gradientTransform?: string | undefined;
85
+ gradientUnits?: string | undefined;
86
+ hanging?: AnyResolvedKeyframe | undefined;
87
+ horizAdvX?: AnyResolvedKeyframe | undefined;
88
+ horizOriginX?: AnyResolvedKeyframe | undefined;
89
+ href?: string | undefined;
90
+ ideographic?: AnyResolvedKeyframe | undefined;
91
+ imageRendering?: AnyResolvedKeyframe | undefined;
92
+ in2?: AnyResolvedKeyframe | undefined;
93
+ in?: string | undefined;
94
+ intercept?: AnyResolvedKeyframe | undefined;
95
+ k1?: AnyResolvedKeyframe | undefined;
96
+ k2?: AnyResolvedKeyframe | undefined;
97
+ k3?: AnyResolvedKeyframe | undefined;
98
+ k4?: AnyResolvedKeyframe | undefined;
99
+ k?: AnyResolvedKeyframe | undefined;
100
+ kernelMatrix?: AnyResolvedKeyframe | undefined;
101
+ kernelUnitLength?: AnyResolvedKeyframe | undefined;
102
+ kerning?: AnyResolvedKeyframe | undefined;
103
+ keyPoints?: AnyResolvedKeyframe | undefined;
104
+ keySplines?: AnyResolvedKeyframe | undefined;
105
+ keyTimes?: AnyResolvedKeyframe | undefined;
106
+ lengthAdjust?: AnyResolvedKeyframe | undefined;
107
+ letterSpacing?: AnyResolvedKeyframe | undefined;
108
+ lightingColor?: AnyResolvedKeyframe | undefined;
109
+ limitingConeAngle?: AnyResolvedKeyframe | undefined;
110
+ local?: AnyResolvedKeyframe | undefined;
111
+ markerEnd?: string | undefined;
112
+ markerHeight?: AnyResolvedKeyframe | undefined;
113
+ markerMid?: string | undefined;
114
+ markerStart?: string | undefined;
115
+ markerUnits?: AnyResolvedKeyframe | undefined;
116
+ markerWidth?: AnyResolvedKeyframe | undefined;
117
+ mask?: string | undefined;
118
+ maskContentUnits?: AnyResolvedKeyframe | undefined;
119
+ maskUnits?: AnyResolvedKeyframe | undefined;
120
+ mathematical?: AnyResolvedKeyframe | undefined;
121
+ mode?: AnyResolvedKeyframe | undefined;
122
+ numOctaves?: AnyResolvedKeyframe | undefined;
123
+ offset?: AnyResolvedKeyframe | undefined;
124
+ opacity?: AnyResolvedKeyframe | undefined;
125
+ operator?: AnyResolvedKeyframe | undefined;
126
+ order?: AnyResolvedKeyframe | undefined;
127
+ orient?: AnyResolvedKeyframe | undefined;
128
+ orientation?: AnyResolvedKeyframe | undefined;
129
+ origin?: AnyResolvedKeyframe | undefined;
130
+ overflow?: AnyResolvedKeyframe | undefined;
131
+ overlinePosition?: AnyResolvedKeyframe | undefined;
132
+ overlineThickness?: AnyResolvedKeyframe | undefined;
133
+ paintOrder?: AnyResolvedKeyframe | undefined;
134
+ panose1?: AnyResolvedKeyframe | undefined;
135
+ path?: string | undefined;
136
+ pathLength?: AnyResolvedKeyframe | undefined;
137
+ patternContentUnits?: string | undefined;
138
+ patternTransform?: AnyResolvedKeyframe | undefined;
139
+ patternUnits?: string | undefined;
140
+ pointerEvents?: AnyResolvedKeyframe | undefined;
141
+ points?: string | undefined;
142
+ pointsAtX?: AnyResolvedKeyframe | undefined;
143
+ pointsAtY?: AnyResolvedKeyframe | undefined;
144
+ pointsAtZ?: AnyResolvedKeyframe | undefined;
145
+ preserveAlpha?: boolean | undefined;
146
+ preserveAspectRatio?: string | undefined;
147
+ primitiveUnits?: AnyResolvedKeyframe | undefined;
148
+ r?: AnyResolvedKeyframe | undefined;
149
+ radius?: AnyResolvedKeyframe | undefined;
150
+ refX?: AnyResolvedKeyframe | undefined;
151
+ refY?: AnyResolvedKeyframe | undefined;
152
+ renderingIntent?: AnyResolvedKeyframe | undefined;
153
+ repeatCount?: AnyResolvedKeyframe | undefined;
154
+ repeatDur?: AnyResolvedKeyframe | undefined;
155
+ requiredExtensions?: AnyResolvedKeyframe | undefined;
156
+ requiredFeatures?: AnyResolvedKeyframe | undefined;
157
+ restart?: AnyResolvedKeyframe | undefined;
158
+ result?: string | undefined;
159
+ rotate?: AnyResolvedKeyframe | undefined;
160
+ rx?: AnyResolvedKeyframe | undefined;
161
+ ry?: AnyResolvedKeyframe | undefined;
162
+ scale?: AnyResolvedKeyframe | undefined;
163
+ seed?: AnyResolvedKeyframe | undefined;
164
+ shapeRendering?: AnyResolvedKeyframe | undefined;
165
+ slope?: AnyResolvedKeyframe | undefined;
166
+ spacing?: AnyResolvedKeyframe | undefined;
167
+ specularConstant?: AnyResolvedKeyframe | undefined;
168
+ specularExponent?: AnyResolvedKeyframe | undefined;
169
+ speed?: AnyResolvedKeyframe | undefined;
170
+ spreadMethod?: string | undefined;
171
+ startOffset?: AnyResolvedKeyframe | undefined;
172
+ stdDeviation?: AnyResolvedKeyframe | undefined;
173
+ stemh?: AnyResolvedKeyframe | undefined;
174
+ stemv?: AnyResolvedKeyframe | undefined;
175
+ stitchTiles?: AnyResolvedKeyframe | undefined;
176
+ stopColor?: string | undefined;
177
+ stopOpacity?: AnyResolvedKeyframe | undefined;
178
+ strikethroughPosition?: AnyResolvedKeyframe | undefined;
179
+ strikethroughThickness?: AnyResolvedKeyframe | undefined;
180
+ string?: AnyResolvedKeyframe | undefined;
181
+ stroke?: string | undefined;
182
+ strokeDasharray?: AnyResolvedKeyframe | undefined;
183
+ strokeDashoffset?: AnyResolvedKeyframe | undefined;
184
+ strokeLinecap?: "butt" | "round" | "square" | "inherit" | undefined;
185
+ strokeLinejoin?: "miter" | "round" | "bevel" | "inherit" | undefined;
186
+ strokeMiterlimit?: AnyResolvedKeyframe | undefined;
187
+ strokeOpacity?: AnyResolvedKeyframe | undefined;
188
+ strokeWidth?: AnyResolvedKeyframe | undefined;
189
+ surfaceScale?: AnyResolvedKeyframe | undefined;
190
+ systemLanguage?: AnyResolvedKeyframe | undefined;
191
+ tableValues?: AnyResolvedKeyframe | undefined;
192
+ targetX?: AnyResolvedKeyframe | undefined;
193
+ targetY?: AnyResolvedKeyframe | undefined;
194
+ textAnchor?: string | undefined;
195
+ textDecoration?: AnyResolvedKeyframe | undefined;
196
+ textLength?: AnyResolvedKeyframe | undefined;
197
+ textRendering?: AnyResolvedKeyframe | undefined;
198
+ to?: AnyResolvedKeyframe | undefined;
199
+ transform?: string | undefined;
200
+ u1?: AnyResolvedKeyframe | undefined;
201
+ u2?: AnyResolvedKeyframe | undefined;
202
+ underlinePosition?: AnyResolvedKeyframe | undefined;
203
+ underlineThickness?: AnyResolvedKeyframe | undefined;
204
+ unicode?: AnyResolvedKeyframe | undefined;
205
+ unicodeBidi?: AnyResolvedKeyframe | undefined;
206
+ unicodeRange?: AnyResolvedKeyframe | undefined;
207
+ unitsPerEm?: AnyResolvedKeyframe | undefined;
208
+ vAlphabetic?: AnyResolvedKeyframe | undefined;
209
+ values?: string | undefined;
210
+ vectorEffect?: AnyResolvedKeyframe | undefined;
211
+ version?: string | undefined;
212
+ vertAdvY?: AnyResolvedKeyframe | undefined;
213
+ vertOriginX?: AnyResolvedKeyframe | undefined;
214
+ vertOriginY?: AnyResolvedKeyframe | undefined;
215
+ vHanging?: AnyResolvedKeyframe | undefined;
216
+ vIdeographic?: AnyResolvedKeyframe | undefined;
217
+ viewBox?: string | undefined;
218
+ viewTarget?: AnyResolvedKeyframe | undefined;
219
+ visibility?: AnyResolvedKeyframe | undefined;
220
+ vMathematical?: AnyResolvedKeyframe | undefined;
221
+ widths?: AnyResolvedKeyframe | undefined;
222
+ wordSpacing?: AnyResolvedKeyframe | undefined;
223
+ writingMode?: AnyResolvedKeyframe | undefined;
224
+ x1?: AnyResolvedKeyframe | undefined;
225
+ x2?: AnyResolvedKeyframe | undefined;
226
+ x?: AnyResolvedKeyframe | undefined;
227
+ xChannelSelector?: string | undefined;
228
+ xHeight?: AnyResolvedKeyframe | undefined;
229
+ xlinkActuate?: string | undefined;
230
+ xlinkArcrole?: string | undefined;
231
+ xlinkHref?: string | undefined;
232
+ xlinkRole?: string | undefined;
233
+ xlinkShow?: string | undefined;
234
+ xlinkTitle?: string | undefined;
235
+ xlinkType?: string | undefined;
236
+ xmlBase?: string | undefined;
237
+ xmlLang?: string | undefined;
238
+ xmlns?: string | undefined;
239
+ xmlnsXlink?: string | undefined;
240
+ xmlSpace?: string | undefined;
241
+ y1?: AnyResolvedKeyframe | undefined;
242
+ y2?: AnyResolvedKeyframe | undefined;
243
+ y?: AnyResolvedKeyframe | undefined;
244
+ yChannelSelector?: string | undefined;
245
+ z?: AnyResolvedKeyframe | undefined;
246
+ zoomAndPan?: string | undefined;
247
+ }
248
+ /**
249
+ * An update function. It accepts a timestamp used to advance the animation.
250
+ */
251
+ type Update$1 = (timestamp: number) => void;
252
+ /**
253
+ * Drivers accept a update function and call it at an interval. This interval
254
+ * could be a synchronous loop, a setInterval, or tied to the device's framerate.
255
+ */
256
+ interface DriverControls {
257
+ start: (keepAlive?: boolean) => void;
258
+ stop: () => void;
259
+ now: () => number;
260
+ }
261
+ type Driver = (update: Update$1) => DriverControls;
262
+ /**
263
+ * Temporary subset of VisualElement until VisualElement is
264
+ * moved to motion-dom
265
+ */
266
+ type AnyResolvedKeyframe = string | number;
267
+ interface ProgressTimeline {
268
+ currentTime: null | {
269
+ value: number;
270
+ };
271
+ cancel?: VoidFunction;
272
+ }
273
+ interface TimelineWithFallback {
274
+ timeline?: ProgressTimeline;
275
+ rangeStart?: string;
276
+ rangeEnd?: string;
277
+ observe: (animation: AnimationPlaybackControls) => VoidFunction;
278
+ }
279
+ /**
280
+ * Methods to control an animation.
281
+ */
282
+ interface AnimationPlaybackControls {
283
+ /**
284
+ * The current time of the animation, in seconds.
285
+ */
286
+ time: number;
287
+ /**
288
+ * The playback speed of the animation.
289
+ * 1 = normal speed, 2 = double speed, 0.5 = half speed.
290
+ */
291
+ speed: number;
292
+ /**
293
+ * The start time of the animation, in milliseconds.
294
+ */
295
+ startTime: number | null;
296
+ /**
297
+ * The state of the animation.
298
+ *
299
+ * This is currently for internal use only.
300
+ */
301
+ state: AnimationPlayState;
302
+ duration: number;
303
+ /**
304
+ * The duration of the animation, including any delay.
305
+ */
306
+ iterationDuration: number;
307
+ /**
308
+ * Stops the animation at its current state, and prevents it from
309
+ * resuming when the animation is played again.
310
+ */
311
+ stop: () => void;
312
+ /**
313
+ * Plays the animation.
314
+ */
315
+ play: () => void;
316
+ /**
317
+ * Pauses the animation.
318
+ */
319
+ pause: () => void;
320
+ /**
321
+ * Completes the animation and applies the final state.
322
+ */
323
+ complete: () => void;
324
+ /**
325
+ * Cancels the animation and applies the initial state.
326
+ */
327
+ cancel: () => void;
328
+ /**
329
+ * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
330
+ *
331
+ * This is currently for internal use only.
332
+ */
333
+ attachTimeline: (timeline: TimelineWithFallback) => VoidFunction;
334
+ finished: Promise<any>;
335
+ }
336
+ type AnimationPlaybackControlsWithThen = AnimationPlaybackControls & {
337
+ then: (onResolve: VoidFunction, onReject?: VoidFunction) => Promise<void>;
338
+ };
339
+ interface AnimationState$1<V> {
340
+ value: V;
341
+ done: boolean;
342
+ }
343
+ interface KeyframeGenerator<V> {
344
+ calculatedDuration: null | number;
345
+ next: (t: number) => AnimationState$1<V>;
346
+ velocity?: (t: number) => number;
347
+ toString: () => string;
348
+ }
349
+ interface ValueAnimationOptions<V extends AnyResolvedKeyframe = number> extends ValueAnimationTransition {
350
+ keyframes: V[];
351
+ element?: any;
352
+ name?: string;
353
+ motionValue?: MotionValue<V>;
354
+ from?: any;
355
+ isHandoff?: boolean;
356
+ allowFlatten?: boolean;
357
+ finalKeyframe?: V;
358
+ }
359
+ type GeneratorFactoryFunction = (options: ValueAnimationOptions<any>) => KeyframeGenerator<any>;
360
+ interface GeneratorFactory extends GeneratorFactoryFunction {
361
+ applyToOptions?: (options: Transition) => Transition;
362
+ }
363
+ type AnimationGeneratorName = "decay" | "spring" | "keyframes" | "tween" | "inertia";
364
+ type AnimationGeneratorType = GeneratorFactory | AnimationGeneratorName | false;
365
+ interface AnimationPlaybackLifecycles<V> {
366
+ onUpdate?: (latest: V) => void;
367
+ onPlay?: () => void;
368
+ onComplete?: () => void;
369
+ onRepeat?: () => void;
370
+ onStop?: () => void;
371
+ }
372
+ interface ValueAnimationTransition<V = any> extends ValueTransition, AnimationPlaybackLifecycles<V> {
373
+ isSync?: boolean;
374
+ }
375
+ type RepeatType = "loop" | "reverse" | "mirror";
376
+ interface AnimationPlaybackOptions {
377
+ /**
378
+ * The number of times to repeat the transition. Set to `Infinity` for perpetual repeating.
379
+ *
380
+ * Without setting `repeatType`, this will loop the animation.
381
+ *
382
+ * @public
383
+ */
384
+ repeat?: number;
385
+ /**
386
+ * How to repeat the animation. This can be either:
387
+ *
388
+ * "loop": Repeats the animation from the start
389
+ *
390
+ * "reverse": Alternates between forward and backwards playback
391
+ *
392
+ * "mirror": Switches `from` and `to` alternately
393
+ *
394
+ * @public
395
+ */
396
+ repeatType?: RepeatType;
397
+ /**
398
+ * When repeating an animation, `repeatDelay` will set the
399
+ * duration of the time to wait, in seconds, between each repetition.
400
+ *
401
+ * @public
402
+ */
403
+ repeatDelay?: number;
404
+ }
405
+ interface VelocityOptions {
406
+ velocity?: number;
407
+ /**
408
+ * End animation if absolute speed (in units per second) drops below this
409
+ * value and delta is smaller than `restDelta`. Set to `0.01` by default.
410
+ *
411
+ * @public
412
+ */
413
+ restSpeed?: number;
414
+ /**
415
+ * End animation if distance is below this value and speed is below
416
+ * `restSpeed`. When animation ends, spring gets "snapped" to. Set to
417
+ * `0.01` by default.
418
+ *
419
+ * @public
420
+ */
421
+ restDelta?: number;
422
+ }
423
+ interface DurationSpringOptions {
424
+ /**
425
+ * The total duration of the animation. Set to `0.3` by default.
426
+ *
427
+ * @public
428
+ */
429
+ duration?: number;
430
+ /**
431
+ * If visualDuration is set, this will override duration.
432
+ *
433
+ * The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target.
434
+ *
435
+ * In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after.
436
+ *
437
+ * This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations.
438
+ *
439
+ * @public
440
+ */
441
+ visualDuration?: number;
442
+ /**
443
+ * `bounce` determines the "bounciness" of a spring animation.
444
+ *
445
+ * `0` is no bounce, and `1` is extremely bouncy.
446
+ *
447
+ * If `duration` is set, this defaults to `0.25`.
448
+ *
449
+ * Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set.
450
+ *
451
+ * @public
452
+ */
453
+ bounce?: number;
454
+ }
455
+ interface SpringOptions extends DurationSpringOptions, VelocityOptions {
456
+ /**
457
+ * Stiffness of the spring. Higher values will create more sudden movement.
458
+ * Set to `100` by default.
459
+ *
460
+ * @public
461
+ */
462
+ stiffness?: number;
463
+ /**
464
+ * Strength of opposing force. If set to 0, spring will oscillate
465
+ * indefinitely. Set to `10` by default.
466
+ *
467
+ * @public
468
+ */
469
+ damping?: number;
470
+ /**
471
+ * Mass of the moving object. Higher values will result in more lethargic
472
+ * movement. Set to `1` by default.
473
+ *
474
+ * @public
475
+ */
476
+ mass?: number;
477
+ }
478
+ /**
479
+ * @deprecated Use SpringOptions instead
480
+ */
481
+ interface DecayOptions extends VelocityOptions {
482
+ keyframes?: number[];
483
+ /**
484
+ * A higher power value equals a further target. Set to `0.8` by default.
485
+ *
486
+ * @public
487
+ */
488
+ power?: number;
489
+ /**
490
+ * Adjusting the time constant will change the duration of the
491
+ * deceleration, thereby affecting its feel. Set to `700` by default.
492
+ *
493
+ * @public
494
+ */
495
+ timeConstant?: number;
496
+ /**
497
+ * A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid.
498
+ *
499
+ * @public
500
+ */
501
+ modifyTarget?: (v: number) => number;
502
+ }
503
+ interface InertiaOptions extends DecayOptions {
504
+ /**
505
+ * If `min` or `max` is set, this affects the stiffness of the bounce
506
+ * spring. Higher values will create more sudden movement. Set to `500` by
507
+ * default.
508
+ *
509
+ * @public
510
+ */
511
+ bounceStiffness?: number;
512
+ /**
513
+ * If `min` or `max` is set, this affects the damping of the bounce spring.
514
+ * If set to `0`, spring will oscillate indefinitely. Set to `10` by
515
+ * default.
516
+ *
517
+ * @public
518
+ */
519
+ bounceDamping?: number;
520
+ /**
521
+ * Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value).
522
+ *
523
+ * @public
524
+ */
525
+ min?: number;
526
+ /**
527
+ * Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value).
528
+ *
529
+ * @public
530
+ */
531
+ max?: number;
532
+ }
533
+ interface AnimationOrchestrationOptions {
534
+ /**
535
+ * Delay the animation by this duration (in seconds). Defaults to `0`.
536
+ *
537
+ * @public
538
+ */
539
+ delay?: number;
540
+ /**
541
+ * Describes the relationship between the transition and its children. Set
542
+ * to `false` by default.
543
+ *
544
+ * @remarks
545
+ * When using variants, the transition can be scheduled in relation to its
546
+ * children with either `"beforeChildren"` to finish this transition before
547
+ * starting children transitions, `"afterChildren"` to finish children
548
+ * transitions before starting this transition.
549
+ *
550
+ * @public
551
+ */
552
+ when?: false | "beforeChildren" | "afterChildren" | string;
553
+ /**
554
+ * When using variants, children animations will start after this duration
555
+ * (in seconds). You can add the `transition` property to both the `motion.div` and the
556
+ * `variant` directly. Adding it to the `variant` generally offers more flexibility,
557
+ * as it allows you to customize the delay per visual state.
558
+ *
559
+ * @public
560
+ */
561
+ delayChildren?: number | DynamicOption<number>;
562
+ /**
563
+ * When using variants, animations of child components can be staggered by this
564
+ * duration (in seconds).
565
+ *
566
+ * For instance, if `staggerChildren` is `0.01`, the first child will be
567
+ * delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so
568
+ * on.
569
+ *
570
+ * The calculated stagger delay will be added to `delayChildren`.
571
+ *
572
+ * @deprecated - Use `delayChildren: stagger(interval)` instead.
573
+ */
574
+ staggerChildren?: number;
575
+ /**
576
+ * The direction in which to stagger children.
577
+ *
578
+ * A value of `1` staggers from the first to the last while `-1`
579
+ * staggers from the last to the first.
580
+ *
581
+ * @deprecated - Use `delayChildren: stagger(interval, { from: "last" })` instead.
582
+ */
583
+ staggerDirection?: number;
584
+ }
585
+ interface KeyframeOptions {
586
+ /**
587
+ * The total duration of the animation. Set to `0.3` by default.
588
+ *
589
+ * @public
590
+ */
591
+ duration?: number;
592
+ ease?: Easing | Easing[];
593
+ times?: number[];
594
+ }
595
+ interface ValueTransition extends AnimationOrchestrationOptions, AnimationPlaybackOptions, Omit<SpringOptions, "keyframes">, Omit<InertiaOptions, "keyframes">, KeyframeOptions {
596
+ /**
597
+ * Delay the animation by this duration (in seconds). Defaults to `0`.
598
+ *
599
+ * @public
600
+ */
601
+ delay?: number;
602
+ /**
603
+ * The duration of time already elapsed in the animation. Set to `0` by
604
+ * default.
605
+ */
606
+ elapsed?: number;
607
+ driver?: Driver;
608
+ /**
609
+ * Type of animation to use.
610
+ *
611
+ * - "tween": Duration-based animation with ease curve
612
+ * - "spring": Physics or duration-based spring animation
613
+ * - false: Use an instant animation
614
+ */
615
+ type?: AnimationGeneratorType;
616
+ /**
617
+ * The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes.
618
+ *
619
+ * @public
620
+ */
621
+ duration?: number;
622
+ autoplay?: boolean;
623
+ startTime?: number;
624
+ from?: any;
625
+ /**
626
+ * If true, this transition will shallow-merge with its parent transition
627
+ * instead of replacing it. Inner keys win.
628
+ *
629
+ * @public
630
+ */
631
+ inherit?: boolean;
632
+ }
633
+ /**
634
+ * @deprecated Use KeyframeOptions instead
635
+ */
636
+ type SVGForcedAttrTransitions = { [K in keyof SVGForcedAttrProperties]: ValueTransition };
637
+ type SVGPathTransitions = { [K in keyof SVGPathProperties]: ValueTransition };
638
+ type SVGTransitions = { [K in keyof Omit<SVGAttributes, "from">]: ValueTransition };
639
+ interface VariableTransitions {
640
+ [key: `--${string}`]: ValueTransition;
641
+ }
642
+ type StyleTransitions = { [K in keyof CSSStyleDeclarationWithTransform]?: ValueTransition };
643
+ type CSSPropertyKeys = { [K in keyof CSSStyleDeclaration as K extends string ? CSSStyleDeclaration[K] extends AnyResolvedKeyframe ? K : never : never]: CSSStyleDeclaration[K] };
644
+ interface CSSStyleDeclarationWithTransform extends Omit<CSSPropertyKeys, "direction" | "transition" | "x" | "y" | "z"> {
645
+ x: number | string;
646
+ y: number | string;
647
+ z: number | string;
648
+ originX: number;
649
+ originY: number;
650
+ originZ: number;
651
+ translateX: number | string;
652
+ translateY: number | string;
653
+ translateZ: number | string;
654
+ rotateX: number | string;
655
+ rotateY: number | string;
656
+ rotateZ: number | string;
657
+ scaleX: number;
658
+ scaleY: number;
659
+ scaleZ: number;
660
+ skewX: number | string;
661
+ skewY: number | string;
662
+ transformPerspective: number;
663
+ }
664
+ type TransitionWithValueOverrides<V> = ValueAnimationTransition<V> & StyleTransitions & SVGPathTransitions & SVGForcedAttrTransitions & SVGTransitions & VariableTransitions & {
665
+ default?: ValueTransition;
666
+ layout?: ValueTransition;
667
+ };
668
+ type Transition<V = any> = ValueAnimationTransition<V> | TransitionWithValueOverrides<V>;
669
+ type DynamicOption<T> = (i: number, total: number) => T;
670
+ interface TransformProperties {
671
+ x?: AnyResolvedKeyframe;
672
+ y?: AnyResolvedKeyframe;
673
+ z?: AnyResolvedKeyframe;
674
+ translateX?: AnyResolvedKeyframe;
675
+ translateY?: AnyResolvedKeyframe;
676
+ translateZ?: AnyResolvedKeyframe;
677
+ rotate?: AnyResolvedKeyframe;
678
+ rotateX?: AnyResolvedKeyframe;
679
+ rotateY?: AnyResolvedKeyframe;
680
+ rotateZ?: AnyResolvedKeyframe;
681
+ scale?: AnyResolvedKeyframe;
682
+ scaleX?: AnyResolvedKeyframe;
683
+ scaleY?: AnyResolvedKeyframe;
684
+ scaleZ?: AnyResolvedKeyframe;
685
+ skew?: AnyResolvedKeyframe;
686
+ skewX?: AnyResolvedKeyframe;
687
+ skewY?: AnyResolvedKeyframe;
688
+ originX?: AnyResolvedKeyframe;
689
+ originY?: AnyResolvedKeyframe;
690
+ originZ?: AnyResolvedKeyframe;
691
+ perspective?: AnyResolvedKeyframe;
692
+ transformPerspective?: AnyResolvedKeyframe;
693
+ }
694
+ interface SVGForcedAttrProperties {
695
+ attrX?: number;
696
+ attrY?: number;
697
+ attrScale?: number;
698
+ }
699
+ interface SVGPathProperties {
700
+ pathLength?: number;
701
+ pathOffset?: number;
702
+ pathSpacing?: number;
703
+ }
704
+ /**
705
+ * @public
706
+ */
707
+ type Subscriber<T> = (v: T) => void;
708
+ /**
709
+ * @public
710
+ */
711
+ type PassiveEffect<T> = (v: T, safeSetter: (v: T) => void) => void;
712
+ type StartAnimation = (complete: () => void) => AnimationPlaybackControlsWithThen | undefined;
713
+ interface MotionValueEventCallbacks<V> {
714
+ animationStart: () => void;
715
+ animationComplete: () => void;
716
+ animationCancel: () => void;
717
+ change: (latestValue: V) => void;
718
+ destroy: () => void;
719
+ }
720
+ interface ResolvedValues {
721
+ [key: string]: AnyResolvedKeyframe;
722
+ }
723
+ interface Owner {
724
+ current: HTMLElement | unknown;
725
+ getProps: () => {
726
+ onUpdate?: (latest: ResolvedValues) => void;
727
+ transformTemplate?: (transform: TransformProperties, generatedTransform: string) => string;
728
+ };
729
+ }
730
+ interface AccelerateConfig {
731
+ factory: (animation: AnimationPlaybackControlsWithThen) => VoidFunction;
732
+ times: number[];
733
+ keyframes: any[];
734
+ ease?: EasingFunction | EasingFunction[];
735
+ duration: number;
736
+ isTransformed?: boolean;
737
+ }
738
+ interface MotionValueOptions {
739
+ owner?: Owner;
740
+ }
741
+ /**
742
+ * `MotionValue` is used to track the state and velocity of motion values.
743
+ *
744
+ * @public
745
+ */
746
+ declare class MotionValue<V = any> {
747
+ /**
748
+ * If a MotionValue has an owner, it was created internally within Motion
749
+ * and therefore has no external listeners. It is therefore safe to animate via WAAPI.
750
+ */
751
+ owner?: Owner;
752
+ /**
753
+ * The current state of the `MotionValue`.
754
+ */
755
+ private current;
756
+ /**
757
+ * The previous state of the `MotionValue`.
758
+ */
759
+ private prev;
760
+ /**
761
+ * The previous state of the `MotionValue` at the end of the previous frame.
762
+ */
763
+ private prevFrameValue;
764
+ /**
765
+ * The last time the `MotionValue` was updated.
766
+ */
767
+ updatedAt: number;
768
+ /**
769
+ * The time `prevFrameValue` was updated.
770
+ */
771
+ prevUpdatedAt: number | undefined;
772
+ private stopPassiveEffect?;
773
+ /**
774
+ * Whether the passive effect is active.
775
+ */
776
+ isEffectActive?: boolean;
777
+ /**
778
+ * A reference to the currently-controlling animation.
779
+ */
780
+ animation?: AnimationPlaybackControlsWithThen;
781
+ /**
782
+ * A list of MotionValues whose values are computed from this one.
783
+ * This is a rough start to a proper signal-like dirtying system.
784
+ */
785
+ private dependents;
786
+ /**
787
+ * Tracks whether this value should be removed
788
+ */
789
+ liveStyle?: boolean;
790
+ /**
791
+ * Scroll timeline acceleration metadata. When set, VisualElement
792
+ * can create a native WAAPI animation attached to a scroll timeline
793
+ * instead of driving updates through JS.
794
+ */
795
+ accelerate?: AccelerateConfig;
796
+ /**
797
+ * @param init - The initiating value
798
+ * @param config - Optional configuration options
799
+ *
800
+ * - `transformer`: A function to transform incoming values with.
801
+ */
802
+ constructor(init: V, options?: MotionValueOptions);
803
+ setCurrent(current: V): void;
804
+ setPrevFrameValue(prevFrameValue?: V | undefined): void;
805
+ /**
806
+ * Adds a function that will be notified when the `MotionValue` is updated.
807
+ *
808
+ * It returns a function that, when called, will cancel the subscription.
809
+ *
810
+ * When calling `onChange` inside a React component, it should be wrapped with the
811
+ * `useEffect` hook. As it returns an unsubscribe function, this should be returned
812
+ * from the `useEffect` function to ensure you don't add duplicate subscribers..
813
+ *
814
+ * ```jsx
815
+ * export const MyComponent = () => {
816
+ * const x = useMotionValue(0)
817
+ * const y = useMotionValue(0)
818
+ * const opacity = useMotionValue(1)
819
+ *
820
+ * useEffect(() => {
821
+ * function updateOpacity() {
822
+ * const maxXY = Math.max(x.get(), y.get())
823
+ * const newOpacity = transform(maxXY, [0, 100], [1, 0])
824
+ * opacity.set(newOpacity)
825
+ * }
826
+ *
827
+ * const unsubscribeX = x.on("change", updateOpacity)
828
+ * const unsubscribeY = y.on("change", updateOpacity)
829
+ *
830
+ * return () => {
831
+ * unsubscribeX()
832
+ * unsubscribeY()
833
+ * }
834
+ * }, [])
835
+ *
836
+ * return <motion.div style={{ x }} />
837
+ * }
838
+ * ```
839
+ *
840
+ * @param subscriber - A function that receives the latest value.
841
+ * @returns A function that, when called, will cancel this subscription.
842
+ *
843
+ * @deprecated
844
+ */
845
+ onChange(subscription: Subscriber<V>): () => void;
846
+ /**
847
+ * An object containing a SubscriptionManager for each active event.
848
+ */
849
+ private events;
850
+ on<EventName extends keyof MotionValueEventCallbacks<V>>(eventName: EventName, callback: MotionValueEventCallbacks<V>[EventName]): VoidFunction;
851
+ clearListeners(): void;
852
+ /**
853
+ * Attaches a passive effect to the `MotionValue`.
854
+ */
855
+ attach(passiveEffect: PassiveEffect<V>, stopPassiveEffect: VoidFunction): void;
856
+ /**
857
+ * Sets the state of the `MotionValue`.
858
+ *
859
+ * @remarks
860
+ *
861
+ * ```jsx
862
+ * const x = useMotionValue(0)
863
+ * x.set(10)
864
+ * ```
865
+ *
866
+ * @param latest - Latest value to set.
867
+ * @param render - Whether to notify render subscribers. Defaults to `true`
868
+ *
869
+ * @public
870
+ */
871
+ set(v: V): void;
872
+ setWithVelocity(prev: V, current: V, delta: number): void;
873
+ /**
874
+ * Set the state of the `MotionValue`, stopping any active animations,
875
+ * effects, and resets velocity to `0`.
876
+ */
877
+ jump(v: V, endAnimation?: boolean): void;
878
+ dirty(): void;
879
+ addDependent(dependent: MotionValue): void;
880
+ removeDependent(dependent: MotionValue): void;
881
+ updateAndNotify: (v: V) => void;
882
+ /**
883
+ * Returns the latest state of `MotionValue`
884
+ *
885
+ * @returns - The latest state of `MotionValue`
886
+ *
887
+ * @public
888
+ */
889
+ get(): NonNullable<V>;
890
+ /**
891
+ * @public
892
+ */
893
+ getPrevious(): V | undefined;
894
+ /**
895
+ * Returns the latest velocity of `MotionValue`
896
+ *
897
+ * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
898
+ *
899
+ * @public
900
+ */
901
+ getVelocity(): number;
902
+ hasAnimated: boolean;
903
+ /**
904
+ * Registers a new animation to control this `MotionValue`. Only one
905
+ * animation can drive a `MotionValue` at one time.
906
+ *
907
+ * ```jsx
908
+ * value.start()
909
+ * ```
910
+ *
911
+ * @param animation - A function that starts the provided animation
912
+ */
913
+ start(startAnimation: StartAnimation): Promise<void>;
914
+ /**
915
+ * Stop the currently active animation.
916
+ *
917
+ * @public
918
+ */
919
+ stop(): void;
920
+ /**
921
+ * Returns `true` if this value is currently animating.
922
+ *
923
+ * @public
924
+ */
925
+ isAnimating(): boolean;
926
+ private clearAnimation;
927
+ /**
928
+ * Destroy and clean up subscribers to this `MotionValue`.
929
+ *
930
+ * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
931
+ * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
932
+ * created a `MotionValue` via the `motionValue` function.
933
+ *
934
+ * @public
935
+ */
936
+ destroy(): void;
937
+ }
938
+ declare const optimizedAppearDataAttribute: "data-framer-appear-id";
939
+ type Process = (data: FrameData) => void;
940
+ type Schedule = (process: Process, keepAlive?: boolean, immediate?: boolean) => Process;
941
+ type StepId = "setup" | "read" | "resolveKeyframes" | "preUpdate" | "update" | "preRender" | "render" | "postRender";
942
+ type Batcher = { [key in StepId]: Schedule };
943
+ interface FrameData {
944
+ delta: number;
945
+ timestamp: number;
946
+ isProcessing: boolean;
947
+ }
948
+ /**
949
+ * Expose only the needed part of the VisualElement interface to
950
+ * ensure React types don't end up in the generic DOM bundle.
951
+ */
952
+ interface WithAppearProps {
953
+ props: {
954
+ [optimizedAppearDataAttribute]?: string;
955
+ values?: {
956
+ [key: string]: MotionValue<number> | MotionValue<string>;
957
+ };
958
+ };
959
+ }
960
+ type HandoffFunction = (storeId: string, valueName: string, frame: Batcher) => number | null;
961
+ /**
962
+ * The window global object acts as a bridge between our inline script
963
+ * triggering the optimized appear animations, and Motion.
964
+ */
965
+ declare global {
966
+ interface Window {
967
+ MotionHandoffAnimation?: HandoffFunction;
968
+ MotionHandoffMarkAsComplete?: (elementId: string) => void;
969
+ MotionHandoffIsComplete?: (elementId: string) => boolean;
970
+ MotionHasOptimisedAnimation?: (elementId?: string, valueName?: string) => boolean;
971
+ MotionCancelOptimisedAnimation?: (elementId?: string, valueName?: string, frame?: Batcher, canResume?: boolean) => void;
972
+ MotionCheckAppearSync?: (visualElement: WithAppearProps, valueName: string, value: MotionValue) => VoidFunction | void;
973
+ MotionIsMounted?: boolean;
974
+ }
975
+ }
976
+ declare global {
977
+ interface Window {
978
+ ScrollTimeline: ScrollTimeline;
979
+ ViewTimeline: ViewTimeline;
980
+ }
981
+ }
982
+ declare class ScrollTimeline implements ProgressTimeline {
983
+ constructor(options: ScrollOptions);
984
+ currentTime: null | {
985
+ value: number;
986
+ };
987
+ cancel?: VoidFunction;
988
+ }
989
+ declare class ViewTimeline implements ProgressTimeline {
990
+ constructor(options: {
991
+ subject: Element;
992
+ axis?: string;
993
+ });
994
+ currentTime: null | {
995
+ value: number;
996
+ };
997
+ cancel?: VoidFunction;
998
+ }
999
+ //#endregion
1000
+ export { type AccelerateConfig, type AnimationGeneratorName, type AnimationGeneratorType, type AnimationOrchestrationOptions, type AnimationPlaybackControls, type AnimationPlaybackControlsWithThen, type AnimationPlaybackLifecycles, type AnimationPlaybackOptions, type AnyResolvedKeyframe, type Batcher, type CSSStyleDeclarationWithTransform, type DecayOptions, type DurationSpringOptions, type DynamicOption, type FrameData, type GeneratorFactory, type GeneratorFactoryFunction, type HandoffFunction, type InertiaOptions, type KeyframeGenerator, type KeyframeOptions, MotionValue, type MotionValueEventCallbacks, type MotionValueOptions, type Owner, type PassiveEffect, type Process, type ProgressTimeline, type RepeatType, type SVGAttributes, type SVGForcedAttrProperties, type SVGForcedAttrTransitions, type SVGPathProperties, type SVGPathTransitions, type SVGTransitions, type Schedule, type SpringOptions, type StartAnimation, type StepId, type StyleTransitions, type Subscriber, type TimelineWithFallback, type TransformProperties, type Transition, type TransitionWithValueOverrides, type ValueAnimationOptions, type ValueAnimationTransition, type ValueTransition, type VariableTransitions, type VelocityOptions, type WithAppearProps, optimizedAppearDataAttribute };
1001
+ //# sourceMappingURL=index.d.ts.map