visualfries 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,291 +10,117 @@ export declare class AnimationPresetsRegister {
10
10
  tweens: {
11
11
  method: "set" | "to" | "from" | "fromTo";
12
12
  vars: {
13
- duration?: string | number | boolean | {
14
- fromData: string;
15
- mode: "cycle" | "useFallback" | "clamp";
16
- fallbackValue?: any;
17
- } | {
18
- type: "byIndex";
19
- expression: string;
20
- fallbackValue?: any;
21
- } | null | undefined;
22
- from?: import("zod").objectOutputType<{
23
- opacity: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
24
- fromData: import("zod").ZodString;
25
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
26
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
27
- }, "strip", import("zod").ZodTypeAny, {
13
+ [x: string]: any;
14
+ from?: {
15
+ [x: string]: string | number | boolean | {
28
16
  fromData: string;
29
17
  mode: "cycle" | "useFallback" | "clamp";
30
18
  fallbackValue?: any;
31
- }, {
32
- fromData: string;
33
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
34
- fallbackValue?: any;
35
- }>, import("zod").ZodObject<{
36
- type: import("zod").ZodLiteral<"byIndex">;
37
- expression: import("zod").ZodString;
38
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
39
- }, "strip", import("zod").ZodTypeAny, {
19
+ } | {
40
20
  type: "byIndex";
41
21
  expression: string;
42
22
  fallbackValue?: any;
43
- }, {
44
- type: "byIndex";
45
- expression: string;
46
- fallbackValue?: any;
47
- }>]>>;
48
- x: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
49
- fromData: import("zod").ZodString;
50
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
51
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
52
- }, "strip", import("zod").ZodTypeAny, {
23
+ } | null;
24
+ opacity?: string | number | boolean | {
53
25
  fromData: string;
54
26
  mode: "cycle" | "useFallback" | "clamp";
55
27
  fallbackValue?: any;
56
- }, {
57
- fromData: string;
58
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
59
- fallbackValue?: any;
60
- }>, import("zod").ZodObject<{
61
- type: import("zod").ZodLiteral<"byIndex">;
62
- expression: import("zod").ZodString;
63
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
64
- }, "strip", import("zod").ZodTypeAny, {
65
- type: "byIndex";
66
- expression: string;
67
- fallbackValue?: any;
68
- }, {
28
+ } | {
69
29
  type: "byIndex";
70
30
  expression: string;
71
31
  fallbackValue?: any;
72
- }>]>>;
73
- y: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
74
- fromData: import("zod").ZodString;
75
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
76
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
77
- }, "strip", import("zod").ZodTypeAny, {
32
+ } | null | undefined;
33
+ x?: string | number | boolean | {
78
34
  fromData: string;
79
35
  mode: "cycle" | "useFallback" | "clamp";
80
36
  fallbackValue?: any;
81
- }, {
82
- fromData: string;
83
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
84
- fallbackValue?: any;
85
- }>, import("zod").ZodObject<{
86
- type: import("zod").ZodLiteral<"byIndex">;
87
- expression: import("zod").ZodString;
88
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
89
- }, "strip", import("zod").ZodTypeAny, {
90
- type: "byIndex";
91
- expression: string;
92
- fallbackValue?: any;
93
- }, {
37
+ } | {
94
38
  type: "byIndex";
95
39
  expression: string;
96
40
  fallbackValue?: any;
97
- }>]>>;
98
- scale: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
99
- fromData: import("zod").ZodString;
100
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
101
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
102
- }, "strip", import("zod").ZodTypeAny, {
41
+ } | null | undefined;
42
+ y?: string | number | boolean | {
103
43
  fromData: string;
104
44
  mode: "cycle" | "useFallback" | "clamp";
105
45
  fallbackValue?: any;
106
- }, {
107
- fromData: string;
108
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
109
- fallbackValue?: any;
110
- }>, import("zod").ZodObject<{
111
- type: import("zod").ZodLiteral<"byIndex">;
112
- expression: import("zod").ZodString;
113
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
114
- }, "strip", import("zod").ZodTypeAny, {
115
- type: "byIndex";
116
- expression: string;
117
- fallbackValue?: any;
118
- }, {
46
+ } | {
119
47
  type: "byIndex";
120
48
  expression: string;
121
49
  fallbackValue?: any;
122
- }>]>>;
123
- scaleX: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
124
- fromData: import("zod").ZodString;
125
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
126
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
127
- }, "strip", import("zod").ZodTypeAny, {
50
+ } | null | undefined;
51
+ scale?: string | number | boolean | {
128
52
  fromData: string;
129
53
  mode: "cycle" | "useFallback" | "clamp";
130
54
  fallbackValue?: any;
131
- }, {
132
- fromData: string;
133
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
134
- fallbackValue?: any;
135
- }>, import("zod").ZodObject<{
136
- type: import("zod").ZodLiteral<"byIndex">;
137
- expression: import("zod").ZodString;
138
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
139
- }, "strip", import("zod").ZodTypeAny, {
55
+ } | {
140
56
  type: "byIndex";
141
57
  expression: string;
142
58
  fallbackValue?: any;
143
- }, {
144
- type: "byIndex";
145
- expression: string;
146
- fallbackValue?: any;
147
- }>]>>;
148
- scaleY: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
149
- fromData: import("zod").ZodString;
150
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
151
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
152
- }, "strip", import("zod").ZodTypeAny, {
59
+ } | null | undefined;
60
+ scaleX?: string | number | boolean | {
153
61
  fromData: string;
154
62
  mode: "cycle" | "useFallback" | "clamp";
155
63
  fallbackValue?: any;
156
- }, {
157
- fromData: string;
158
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
159
- fallbackValue?: any;
160
- }>, import("zod").ZodObject<{
161
- type: import("zod").ZodLiteral<"byIndex">;
162
- expression: import("zod").ZodString;
163
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
164
- }, "strip", import("zod").ZodTypeAny, {
165
- type: "byIndex";
166
- expression: string;
167
- fallbackValue?: any;
168
- }, {
64
+ } | {
169
65
  type: "byIndex";
170
66
  expression: string;
171
67
  fallbackValue?: any;
172
- }>]>>;
173
- rotation: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
174
- fromData: import("zod").ZodString;
175
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
176
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
177
- }, "strip", import("zod").ZodTypeAny, {
68
+ } | null | undefined;
69
+ scaleY?: string | number | boolean | {
178
70
  fromData: string;
179
71
  mode: "cycle" | "useFallback" | "clamp";
180
72
  fallbackValue?: any;
181
- }, {
182
- fromData: string;
183
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
184
- fallbackValue?: any;
185
- }>, import("zod").ZodObject<{
186
- type: import("zod").ZodLiteral<"byIndex">;
187
- expression: import("zod").ZodString;
188
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
189
- }, "strip", import("zod").ZodTypeAny, {
190
- type: "byIndex";
191
- expression: string;
192
- fallbackValue?: any;
193
- }, {
73
+ } | {
194
74
  type: "byIndex";
195
75
  expression: string;
196
76
  fallbackValue?: any;
197
- }>]>>;
198
- width: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
199
- fromData: import("zod").ZodString;
200
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
201
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
202
- }, "strip", import("zod").ZodTypeAny, {
77
+ } | null | undefined;
78
+ rotation?: string | number | boolean | {
203
79
  fromData: string;
204
80
  mode: "cycle" | "useFallback" | "clamp";
205
81
  fallbackValue?: any;
206
- }, {
207
- fromData: string;
208
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
209
- fallbackValue?: any;
210
- }>, import("zod").ZodObject<{
211
- type: import("zod").ZodLiteral<"byIndex">;
212
- expression: import("zod").ZodString;
213
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
214
- }, "strip", import("zod").ZodTypeAny, {
82
+ } | {
215
83
  type: "byIndex";
216
84
  expression: string;
217
85
  fallbackValue?: any;
218
- }, {
219
- type: "byIndex";
220
- expression: string;
221
- fallbackValue?: any;
222
- }>]>>;
223
- height: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
224
- fromData: import("zod").ZodString;
225
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
226
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
227
- }, "strip", import("zod").ZodTypeAny, {
86
+ } | null | undefined;
87
+ width?: string | number | boolean | {
228
88
  fromData: string;
229
89
  mode: "cycle" | "useFallback" | "clamp";
230
90
  fallbackValue?: any;
231
- }, {
232
- fromData: string;
233
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
234
- fallbackValue?: any;
235
- }>, import("zod").ZodObject<{
236
- type: import("zod").ZodLiteral<"byIndex">;
237
- expression: import("zod").ZodString;
238
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
239
- }, "strip", import("zod").ZodTypeAny, {
91
+ } | {
240
92
  type: "byIndex";
241
93
  expression: string;
242
94
  fallbackValue?: any;
243
- }, {
244
- type: "byIndex";
245
- expression: string;
246
- fallbackValue?: any;
247
- }>]>>;
248
- color: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
249
- fromData: import("zod").ZodString;
250
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
251
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
252
- }, "strip", import("zod").ZodTypeAny, {
95
+ } | null | undefined;
96
+ height?: string | number | boolean | {
253
97
  fromData: string;
254
98
  mode: "cycle" | "useFallback" | "clamp";
255
99
  fallbackValue?: any;
256
- }, {
257
- fromData: string;
258
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
259
- fallbackValue?: any;
260
- }>, import("zod").ZodObject<{
261
- type: import("zod").ZodLiteral<"byIndex">;
262
- expression: import("zod").ZodString;
263
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
264
- }, "strip", import("zod").ZodTypeAny, {
100
+ } | {
265
101
  type: "byIndex";
266
102
  expression: string;
267
103
  fallbackValue?: any;
268
- }, {
104
+ } | null | undefined;
105
+ color?: string | number | boolean | {
106
+ fromData: string;
107
+ mode: "cycle" | "useFallback" | "clamp";
108
+ fallbackValue?: any;
109
+ } | {
269
110
  type: "byIndex";
270
111
  expression: string;
271
112
  fallbackValue?: any;
272
- }>]>>;
273
- }, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull, import("zod").ZodObject<{
274
- fromData: import("zod").ZodString;
275
- mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["cycle", "useFallback", "clamp"]>>>;
276
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
277
- }, "strip", import("zod").ZodTypeAny, {
113
+ } | null | undefined;
114
+ } | undefined;
115
+ duration?: string | number | boolean | {
278
116
  fromData: string;
279
117
  mode: "cycle" | "useFallback" | "clamp";
280
118
  fallbackValue?: any;
281
- }, {
282
- fromData: string;
283
- mode?: "cycle" | "useFallback" | "clamp" | undefined;
284
- fallbackValue?: any;
285
- }>, import("zod").ZodObject<{
286
- type: import("zod").ZodLiteral<"byIndex">;
287
- expression: import("zod").ZodString;
288
- fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
289
- }, "strip", import("zod").ZodTypeAny, {
290
- type: "byIndex";
291
- expression: string;
292
- fallbackValue?: any;
293
- }, {
119
+ } | {
294
120
  type: "byIndex";
295
121
  expression: string;
296
122
  fallbackValue?: any;
297
- }>]>, "strip"> | undefined;
123
+ } | null | undefined;
298
124
  ease?: string | undefined;
299
125
  delay?: string | number | boolean | {
300
126
  fromData: string;
@@ -307,33 +133,31 @@ export declare class AnimationPresetsRegister {
307
133
  } | null | undefined;
308
134
  stagger?: number | {
309
135
  type?: "fromData" | undefined;
310
- from?: string | number | undefined;
311
- ease?: string | undefined;
312
136
  dataKey?: string | undefined;
313
137
  referencePoint?: "tweenStart" | undefined;
314
138
  each?: number | undefined;
139
+ from?: string | number | undefined;
315
140
  grid?: [number | "auto", number | "auto"] | undefined;
316
141
  axis?: "x" | "y" | undefined;
142
+ ease?: string | undefined;
317
143
  amount?: number | undefined;
318
144
  } | undefined;
319
- } & {
320
- [k: string]: any;
321
145
  };
322
146
  position?: string | number | {
323
147
  anchor: string;
324
- alignTween: "center" | "start" | "end";
148
+ alignTween: "start" | "end" | "center";
325
149
  offset: string;
326
150
  anchorPoint?: "start" | "end" | undefined;
327
151
  } | undefined;
328
152
  }[];
329
153
  id?: string | undefined;
154
+ target?: string | undefined;
330
155
  position?: string | number | {
331
156
  anchor: string;
332
- alignTween: "center" | "start" | "end";
157
+ alignTween: "start" | "end" | "center";
333
158
  offset: string;
334
159
  anchorPoint?: "start" | "end" | undefined;
335
160
  } | undefined;
336
- target?: string | undefined;
337
161
  }[];
338
162
  presetId?: string | undefined;
339
163
  version?: string | undefined;
@@ -342,8 +166,8 @@ export declare class AnimationPresetsRegister {
342
166
  data?: Record<string, any> | undefined;
343
167
  setup?: ({
344
168
  type: "style";
345
- properties: {} & {
346
- [k: string]: string | number | boolean | {
169
+ properties: {
170
+ [x: string]: string | number | boolean | {
347
171
  fromData: string;
348
172
  mode: "cycle" | "useFallback" | "clamp";
349
173
  fallbackValue?: any;