@xanui/core 1.2.71 → 1.3.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.
- package/Iframe/index.cjs +1 -2
- package/Iframe/index.cjs.map +1 -1
- package/Iframe/index.d.ts +2 -1
- package/Iframe/index.js +1 -2
- package/Iframe/index.js.map +1 -1
- package/Transition/index.cjs +40 -97
- package/Transition/index.cjs.map +1 -1
- package/Transition/index.d.ts +13 -18
- package/Transition/index.js +41 -98
- package/Transition/index.js.map +1 -1
- package/Transition/variants.cjs +92 -171
- package/Transition/variants.cjs.map +1 -1
- package/Transition/variants.d.ts +65 -83
- package/Transition/variants.js +93 -170
- package/Transition/variants.js.map +1 -1
- package/animate/easing.cjs +59 -0
- package/animate/easing.cjs.map +1 -0
- package/animate/easing.d.ts +13 -0
- package/animate/easing.js +57 -0
- package/animate/easing.js.map +1 -0
- package/animate/index.cjs +104 -0
- package/animate/index.cjs.map +1 -0
- package/animate/index.d.ts +19 -0
- package/animate/index.js +99 -0
- package/animate/index.js.map +1 -0
- package/hooks/useTransition.cjs +98 -0
- package/hooks/useTransition.cjs.map +1 -0
- package/hooks/useTransition.d.ts +23 -0
- package/hooks/useTransition.js +96 -0
- package/hooks/useTransition.js.map +1 -0
- package/hooks/useTransitionGroup.cjs +95 -0
- package/hooks/useTransitionGroup.cjs.map +1 -0
- package/hooks/useTransitionGroup.d.ts +32 -0
- package/hooks/useTransitionGroup.js +93 -0
- package/hooks/useTransitionGroup.js.map +1 -0
- package/index.cjs +16 -11
- package/index.cjs.map +1 -1
- package/index.d.ts +5 -2
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/hooks/useAnimation.cjs +0 -44
- package/hooks/useAnimation.cjs.map +0 -1
- package/hooks/useAnimation.d.ts +0 -20
- package/hooks/useAnimation.js +0 -39
- package/hooks/useAnimation.js.map +0 -1
package/Transition/variants.cjs
CHANGED
|
@@ -1,209 +1,132 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
'use strict';
|
|
2
3
|
|
|
3
|
-
const getY = (
|
|
4
|
-
const getX = (
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const getY = (el) => (el ? Math.min(el.getBoundingClientRect().height / 2, 40) : 20);
|
|
5
|
+
const getX = (el) => (el ? Math.min(el.getBoundingClientRect().width / 2, 40) : 20);
|
|
6
|
+
// ------------------ Variants ------------------
|
|
7
|
+
const slideDown = (el) => {
|
|
8
|
+
const y = getY(el);
|
|
7
9
|
return {
|
|
8
|
-
from: {
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
to: {
|
|
12
|
-
transform: `translateY(0)`,
|
|
13
|
-
}
|
|
10
|
+
from: { y: -y },
|
|
11
|
+
to: { y: 0 },
|
|
12
|
+
onUpdate: ({ y }) => (el.style.transform = `translateY(${y}px)`),
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
|
-
const slideUp = (
|
|
17
|
-
const y = getY(
|
|
15
|
+
const slideUp = (el) => {
|
|
16
|
+
const y = getY(el);
|
|
18
17
|
return {
|
|
19
|
-
from: {
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
to: {
|
|
23
|
-
transform: `translateY(0)`,
|
|
24
|
-
}
|
|
18
|
+
from: { y },
|
|
19
|
+
to: { y: 0 },
|
|
20
|
+
onUpdate: ({ y }) => (el.style.transform = `translateY(${y}px)`),
|
|
25
21
|
};
|
|
26
22
|
};
|
|
27
|
-
const slideRight = (
|
|
28
|
-
const x = getX(
|
|
23
|
+
const slideRight = (el) => {
|
|
24
|
+
const x = getX(el);
|
|
29
25
|
return {
|
|
30
|
-
from: {
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
to: {
|
|
34
|
-
transform: `translateX(0)`,
|
|
35
|
-
}
|
|
26
|
+
from: { x: -x },
|
|
27
|
+
to: { x: 0 },
|
|
28
|
+
onUpdate: ({ x }) => (el.style.transform = `translateX(${x}px)`),
|
|
36
29
|
};
|
|
37
30
|
};
|
|
38
|
-
const slideLeft = (
|
|
39
|
-
const x = getX(
|
|
31
|
+
const slideLeft = (el) => {
|
|
32
|
+
const x = getX(el);
|
|
40
33
|
return {
|
|
41
|
-
from: {
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
to: {
|
|
45
|
-
transform: `translateX(0)`,
|
|
46
|
-
}
|
|
34
|
+
from: { x },
|
|
35
|
+
to: { x: 0 },
|
|
36
|
+
onUpdate: ({ x }) => (el.style.transform = `translateX(${x}px)`),
|
|
47
37
|
};
|
|
48
38
|
};
|
|
49
|
-
const
|
|
50
|
-
from: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
pointerEvents: 'none',
|
|
54
|
-
transformOrigin: "top"
|
|
55
|
-
},
|
|
56
|
-
to: {
|
|
57
|
-
transform: "scaleY(1)",
|
|
58
|
-
opacity: 1,
|
|
59
|
-
transformOrigin: "top"
|
|
60
|
-
}
|
|
39
|
+
const fade = (el) => ({
|
|
40
|
+
from: { opacity: 0 },
|
|
41
|
+
to: { opacity: 1 },
|
|
42
|
+
onUpdate: ({ opacity }) => (el.style.opacity = opacity),
|
|
61
43
|
});
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
transform: "scaleY(0.8)",
|
|
65
|
-
transformOrigin: "bottom",
|
|
66
|
-
opacity: 0,
|
|
67
|
-
pointerEvents: 'none'
|
|
68
|
-
},
|
|
69
|
-
to: {
|
|
70
|
-
transform: "scaleY(1)",
|
|
71
|
-
transformOrigin: "bottom",
|
|
72
|
-
opacity: 1
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
const fade = () => {
|
|
44
|
+
const fadeDown = (el) => {
|
|
45
|
+
const y = getY(el);
|
|
76
46
|
return {
|
|
77
|
-
from: {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
opacity: 1
|
|
47
|
+
from: { y: -y, scale: 0.98, opacity: 0 },
|
|
48
|
+
to: { y: 0, scale: 1, opacity: 1 },
|
|
49
|
+
onUpdate: ({ y, scale, opacity }) => {
|
|
50
|
+
el.style.transform = `translateY(${y}px) scale(${scale})`;
|
|
51
|
+
el.style.opacity = String(opacity);
|
|
83
52
|
}
|
|
84
53
|
};
|
|
85
54
|
};
|
|
86
|
-
const
|
|
87
|
-
const y = getY(
|
|
55
|
+
const fadeUp = (el) => {
|
|
56
|
+
const y = getY(el);
|
|
88
57
|
return {
|
|
89
|
-
from: {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
to: {
|
|
95
|
-
transform: `translateY(0) scale(1)`,
|
|
96
|
-
opacity: 1
|
|
58
|
+
from: { y, scale: 0.98, opacity: 0 },
|
|
59
|
+
to: { y: 0, scale: 1, opacity: 1 },
|
|
60
|
+
onUpdate: ({ y, scale, opacity }) => {
|
|
61
|
+
el.style.transform = `translateY(${y}px) scale(${scale})`;
|
|
62
|
+
el.style.opacity = String(opacity);
|
|
97
63
|
}
|
|
98
64
|
};
|
|
99
65
|
};
|
|
100
|
-
const
|
|
101
|
-
const
|
|
66
|
+
const fadeRight = (el) => {
|
|
67
|
+
const x = getX(el);
|
|
102
68
|
return {
|
|
103
|
-
from: {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
to: {
|
|
109
|
-
transform: `translateY(0) scale(1)`,
|
|
110
|
-
opacity: 1
|
|
69
|
+
from: { x: -x, scale: 0.98, opacity: 0 },
|
|
70
|
+
to: { x: 0, scale: 1, opacity: 1 },
|
|
71
|
+
onUpdate: ({ x, scale, opacity }) => {
|
|
72
|
+
el.style.transform = `translateX(${x}px) scale(${scale})`;
|
|
73
|
+
el.style.opacity = String(opacity);
|
|
111
74
|
}
|
|
112
75
|
};
|
|
113
76
|
};
|
|
114
|
-
const
|
|
115
|
-
const x = getX(
|
|
77
|
+
const fadeLeft = (el) => {
|
|
78
|
+
const x = getX(el);
|
|
116
79
|
return {
|
|
117
|
-
from: {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
to: {
|
|
123
|
-
transform: `translateX(0) scale(1)`,
|
|
124
|
-
opacity: 1
|
|
80
|
+
from: { x, scale: 0.98, opacity: 0 },
|
|
81
|
+
to: { x: 0, scale: 1, opacity: 1 },
|
|
82
|
+
onUpdate: ({ x, scale, opacity }) => {
|
|
83
|
+
el.style.transform = `translateX(${x}px) scale(${scale})`;
|
|
84
|
+
el.style.opacity = String(opacity);
|
|
125
85
|
}
|
|
126
86
|
};
|
|
127
87
|
};
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
};
|
|
155
|
-
const zoom = () => {
|
|
156
|
-
return {
|
|
157
|
-
from: {
|
|
158
|
-
transform: "scale(.8)",
|
|
159
|
-
transformOrigin: "center",
|
|
160
|
-
opacity: 0,
|
|
161
|
-
pointerEvents: 'none'
|
|
162
|
-
},
|
|
163
|
-
to: {
|
|
164
|
-
transform: "scale(1)",
|
|
165
|
-
transformOrigin: "center",
|
|
166
|
-
opacity: 1
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
const zoomOver = () => {
|
|
171
|
-
return {
|
|
172
|
-
from: {
|
|
173
|
-
transform: "scale(1.2)",
|
|
174
|
-
transformOrigin: "center",
|
|
175
|
-
opacity: 0,
|
|
176
|
-
pointerEvents: 'none'
|
|
177
|
-
},
|
|
178
|
-
to: {
|
|
179
|
-
transform: "scale(1)",
|
|
180
|
-
transformOrigin: "center",
|
|
181
|
-
opacity: 1
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
const collapseVertical = (rect) => {
|
|
88
|
+
const zoom = (el) => ({
|
|
89
|
+
from: { scale: 0.8, opacity: 0 },
|
|
90
|
+
to: { scale: 1, opacity: 1 },
|
|
91
|
+
onUpdate: ({ scale, opacity }) => {
|
|
92
|
+
el.style.transform = `scale(${scale})`;
|
|
93
|
+
el.style.opacity = String(opacity);
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
const zoomOver = (el) => ({
|
|
97
|
+
from: { scale: 1.2, opacity: 0 },
|
|
98
|
+
to: { scale: 1, opacity: 1 },
|
|
99
|
+
onUpdate: ({ scale, opacity }) => {
|
|
100
|
+
el.style.transform = `scale(${scale})`;
|
|
101
|
+
el.style.opacity = String(opacity);
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
const grow = (el) => ({
|
|
105
|
+
from: { scaleX: 0.8, scaleY: 0.6, opacity: 0 },
|
|
106
|
+
to: { scaleX: 1, scaleY: 1, opacity: 1 },
|
|
107
|
+
onUpdate: ({ scaleX, scaleY, opacity }) => {
|
|
108
|
+
el.style.transform = `scale(${scaleX}, ${scaleY})`;
|
|
109
|
+
el.style.opacity = String(opacity);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const collapseVertical = (el) => {
|
|
113
|
+
const height = el.getBoundingClientRect().height;
|
|
186
114
|
return {
|
|
187
|
-
from: {
|
|
188
|
-
|
|
189
|
-
|
|
115
|
+
from: { maxHeight: 0 },
|
|
116
|
+
to: { maxHeight: height },
|
|
117
|
+
onUpdate: ({ maxHeight }) => {
|
|
118
|
+
el.style.maxHeight = `${maxHeight}px`;
|
|
190
119
|
},
|
|
191
|
-
to: {
|
|
192
|
-
maxHeight: rect.height + "px",
|
|
193
|
-
overflow: "hidden"
|
|
194
|
-
}
|
|
195
120
|
};
|
|
196
121
|
};
|
|
197
|
-
const collapseHorizontal = (
|
|
122
|
+
const collapseHorizontal = (el) => {
|
|
123
|
+
const width = el.getBoundingClientRect().width;
|
|
198
124
|
return {
|
|
199
|
-
from: {
|
|
200
|
-
|
|
201
|
-
|
|
125
|
+
from: { width: 0 },
|
|
126
|
+
to: { width },
|
|
127
|
+
onUpdate: ({ width }) => {
|
|
128
|
+
el.style.width = `${width}px`;
|
|
202
129
|
},
|
|
203
|
-
to: {
|
|
204
|
-
width: rect.width + "px",
|
|
205
|
-
overflow: "hidden"
|
|
206
|
-
}
|
|
207
130
|
};
|
|
208
131
|
};
|
|
209
132
|
|
|
@@ -215,8 +138,6 @@ exports.fadeLeft = fadeLeft;
|
|
|
215
138
|
exports.fadeRight = fadeRight;
|
|
216
139
|
exports.fadeUp = fadeUp;
|
|
217
140
|
exports.grow = grow;
|
|
218
|
-
exports.scaleYDown = scaleYDown;
|
|
219
|
-
exports.scaleYUp = scaleYUp;
|
|
220
141
|
exports.slideDown = slideDown;
|
|
221
142
|
exports.slideLeft = slideLeft;
|
|
222
143
|
exports.slideRight = slideRight;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variants.cjs","sources":["../../src/Transition/variants.ts"],"sourcesContent":["\nconst getY = (
|
|
1
|
+
{"version":3,"file":"variants.cjs","sources":["../../src/Transition/variants.ts"],"sourcesContent":["\"use client\"\nconst getY = (el?: HTMLElement) => (el ? Math.min(el.getBoundingClientRect().height / 2, 40) : 20)\nconst getX = (el?: HTMLElement) => (el ? Math.min(el.getBoundingClientRect().width / 2, 40) : 20)\n\n// ------------------ Variants ------------------\n\nexport const slideDown = (el: HTMLElement) => {\n const y = getY(el)\n return {\n from: { y: -y },\n to: { y: 0 },\n onUpdate: ({ y }: any) => (el.style.transform = `translateY(${y}px)`),\n }\n}\n\nexport const slideUp = (el: HTMLElement) => {\n const y = getY(el)\n return {\n from: { y },\n to: { y: 0 },\n onUpdate: ({ y }: any) => (el.style.transform = `translateY(${y}px)`),\n }\n}\n\nexport const slideRight = (el: HTMLElement) => {\n const x = getX(el)\n return {\n from: { x: -x },\n to: { x: 0 },\n onUpdate: ({ x }: any) => (el.style.transform = `translateX(${x}px)`),\n }\n}\n\nexport const slideLeft = (el: HTMLElement) => {\n const x = getX(el)\n return {\n from: { x },\n to: { x: 0 },\n onUpdate: ({ x }: any) => (el.style.transform = `translateX(${x}px)`),\n }\n}\n\nexport const fade = (el: HTMLElement) => ({\n from: { opacity: 0 },\n to: { opacity: 1 },\n onUpdate: ({ opacity }: any) => (el.style.opacity = opacity),\n})\n\nexport const fadeDown = (el: HTMLElement) => {\n const y = getY(el)\n return {\n from: { y: -y, scale: 0.98, opacity: 0 },\n to: { y: 0, scale: 1, opacity: 1 },\n onUpdate: ({ y, scale, opacity }: any) => {\n el.style.transform = `translateY(${y}px) scale(${scale})`\n el.style.opacity = String(opacity)\n }\n }\n}\n\nexport const fadeUp = (el: HTMLElement) => {\n const y = getY(el)\n return {\n from: { y, scale: 0.98, opacity: 0 },\n to: { y: 0, scale: 1, opacity: 1 },\n onUpdate: ({ y, scale, opacity }: any) => {\n el.style.transform = `translateY(${y}px) scale(${scale})`\n el.style.opacity = String(opacity)\n }\n }\n}\n\nexport const fadeRight = (el: HTMLElement) => {\n const x = getX(el)\n return {\n from: { x: -x, scale: 0.98, opacity: 0 },\n to: { x: 0, scale: 1, opacity: 1 },\n onUpdate: ({ x, scale, opacity }: any) => {\n el.style.transform = `translateX(${x}px) scale(${scale})`\n el.style.opacity = String(opacity)\n }\n }\n}\n\nexport const fadeLeft = (el: HTMLElement) => {\n const x = getX(el)\n return {\n from: { x, scale: 0.98, opacity: 0 },\n to: { x: 0, scale: 1, opacity: 1 },\n onUpdate: ({ x, scale, opacity }: any) => {\n el.style.transform = `translateX(${x}px) scale(${scale})`\n el.style.opacity = String(opacity)\n }\n }\n}\n\nexport const zoom = (el: HTMLElement) => ({\n from: { scale: 0.8, opacity: 0 },\n to: { scale: 1, opacity: 1 },\n onUpdate: ({ scale, opacity }: any) => {\n el.style.transform = `scale(${scale})`\n el.style.opacity = String(opacity)\n },\n})\n\nexport const zoomOver = (el: HTMLElement) => ({\n from: { scale: 1.2, opacity: 0 },\n to: { scale: 1, opacity: 1 },\n onUpdate: ({ scale, opacity }: any) => {\n el.style.transform = `scale(${scale})`\n el.style.opacity = String(opacity)\n },\n})\n\nexport const grow = (el: HTMLElement) => ({\n from: { scaleX: 0.8, scaleY: 0.6, opacity: 0 },\n to: { scaleX: 1, scaleY: 1, opacity: 1 },\n onUpdate: ({ scaleX, scaleY, opacity }: any) => {\n el.style.transform = `scale(${scaleX}, ${scaleY})`\n el.style.opacity = String(opacity)\n }\n})\n\nexport const collapseVertical = (el: HTMLElement) => {\n const height = el.getBoundingClientRect().height\n return {\n from: { maxHeight: 0 },\n to: { maxHeight: height },\n onUpdate: ({ maxHeight }: any) => {\n el.style.maxHeight = `${maxHeight}px`\n },\n }\n}\n\nexport const collapseHorizontal = (el: HTMLElement) => {\n const width = el.getBoundingClientRect().width\n return {\n from: { width: 0 },\n to: { width },\n onUpdate: ({ width }: any) => {\n el.style.width = `${width}px`\n },\n }\n}"],"names":[],"mappings":";;;AACA;AACA;AAEA;AAEO;AACH;;AAEI;AACA;AACA;;AAER;AAEO;AACH;;;AAGI;AACA;;AAER;AAEO;AACH;;AAEI;AACA;AACA;;AAER;AAEO;AACH;;;AAGI;AACA;;AAER;;AAGI;AACA;AACA;AACH;AAEM;AACH;;AAEI;AACA;;;;;;AAMR;AAEO;AACH;;;AAGI;;;;;;AAMR;AAEO;AACH;;AAEI;AACA;;;;;;AAMR;AAEO;AACH;;;AAGI;;;;;;AAMR;;;;;;;;AASC;;;;;;;;AASA;;AAGG;AACA;;;;;AAKH;AAEM;;;AAGC;AACA;AACA;;;;AAIR;AAEO;;;AAGC;;AAEA;;;;AAIR;;;;;;;;;;;;;;;"}
|
package/Transition/variants.d.ts
CHANGED
|
@@ -1,170 +1,152 @@
|
|
|
1
|
-
declare const slideDown: (
|
|
1
|
+
declare const slideDown: (el: HTMLElement) => {
|
|
2
2
|
from: {
|
|
3
|
-
|
|
3
|
+
y: number;
|
|
4
4
|
};
|
|
5
5
|
to: {
|
|
6
|
-
|
|
6
|
+
y: number;
|
|
7
7
|
};
|
|
8
|
+
onUpdate: ({ y }: any) => string;
|
|
8
9
|
};
|
|
9
|
-
declare const slideUp: (
|
|
10
|
+
declare const slideUp: (el: HTMLElement) => {
|
|
10
11
|
from: {
|
|
11
|
-
|
|
12
|
+
y: number;
|
|
12
13
|
};
|
|
13
14
|
to: {
|
|
14
|
-
|
|
15
|
+
y: number;
|
|
15
16
|
};
|
|
17
|
+
onUpdate: ({ y }: any) => string;
|
|
16
18
|
};
|
|
17
|
-
declare const slideRight: (
|
|
19
|
+
declare const slideRight: (el: HTMLElement) => {
|
|
18
20
|
from: {
|
|
19
|
-
|
|
21
|
+
x: number;
|
|
20
22
|
};
|
|
21
23
|
to: {
|
|
22
|
-
|
|
24
|
+
x: number;
|
|
23
25
|
};
|
|
26
|
+
onUpdate: ({ x }: any) => string;
|
|
24
27
|
};
|
|
25
|
-
declare const slideLeft: (
|
|
28
|
+
declare const slideLeft: (el: HTMLElement) => {
|
|
26
29
|
from: {
|
|
27
|
-
|
|
30
|
+
x: number;
|
|
28
31
|
};
|
|
29
32
|
to: {
|
|
30
|
-
|
|
33
|
+
x: number;
|
|
31
34
|
};
|
|
35
|
+
onUpdate: ({ x }: any) => string;
|
|
32
36
|
};
|
|
33
|
-
declare const
|
|
37
|
+
declare const fade: (el: HTMLElement) => {
|
|
34
38
|
from: {
|
|
35
|
-
transform: string;
|
|
36
39
|
opacity: number;
|
|
37
|
-
pointerEvents: string;
|
|
38
|
-
transformOrigin: string;
|
|
39
40
|
};
|
|
40
41
|
to: {
|
|
41
|
-
transform: string;
|
|
42
42
|
opacity: number;
|
|
43
|
-
transformOrigin: string;
|
|
44
43
|
};
|
|
44
|
+
onUpdate: ({ opacity }: any) => any;
|
|
45
45
|
};
|
|
46
|
-
declare const
|
|
46
|
+
declare const fadeDown: (el: HTMLElement) => {
|
|
47
47
|
from: {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
y: number;
|
|
49
|
+
scale: number;
|
|
50
50
|
opacity: number;
|
|
51
|
-
pointerEvents: string;
|
|
52
51
|
};
|
|
53
52
|
to: {
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
y: number;
|
|
54
|
+
scale: number;
|
|
56
55
|
opacity: number;
|
|
57
56
|
};
|
|
57
|
+
onUpdate: ({ y, scale, opacity }: any) => void;
|
|
58
58
|
};
|
|
59
|
-
declare const
|
|
59
|
+
declare const fadeUp: (el: HTMLElement) => {
|
|
60
60
|
from: {
|
|
61
|
+
y: number;
|
|
62
|
+
scale: number;
|
|
61
63
|
opacity: number;
|
|
62
|
-
pointerEvents: string;
|
|
63
64
|
};
|
|
64
65
|
to: {
|
|
66
|
+
y: number;
|
|
67
|
+
scale: number;
|
|
65
68
|
opacity: number;
|
|
66
69
|
};
|
|
70
|
+
onUpdate: ({ y, scale, opacity }: any) => void;
|
|
67
71
|
};
|
|
68
|
-
declare const
|
|
72
|
+
declare const fadeRight: (el: HTMLElement) => {
|
|
69
73
|
from: {
|
|
70
|
-
|
|
74
|
+
x: number;
|
|
75
|
+
scale: number;
|
|
71
76
|
opacity: number;
|
|
72
|
-
pointerEvents: string;
|
|
73
77
|
};
|
|
74
78
|
to: {
|
|
75
|
-
|
|
79
|
+
x: number;
|
|
80
|
+
scale: number;
|
|
76
81
|
opacity: number;
|
|
77
82
|
};
|
|
83
|
+
onUpdate: ({ x, scale, opacity }: any) => void;
|
|
78
84
|
};
|
|
79
|
-
declare const
|
|
85
|
+
declare const fadeLeft: (el: HTMLElement) => {
|
|
80
86
|
from: {
|
|
81
|
-
|
|
87
|
+
x: number;
|
|
88
|
+
scale: number;
|
|
82
89
|
opacity: number;
|
|
83
|
-
pointerEvents: string;
|
|
84
90
|
};
|
|
85
91
|
to: {
|
|
86
|
-
|
|
92
|
+
x: number;
|
|
93
|
+
scale: number;
|
|
87
94
|
opacity: number;
|
|
88
95
|
};
|
|
96
|
+
onUpdate: ({ x, scale, opacity }: any) => void;
|
|
89
97
|
};
|
|
90
|
-
declare const
|
|
98
|
+
declare const zoom: (el: HTMLElement) => {
|
|
91
99
|
from: {
|
|
92
|
-
|
|
100
|
+
scale: number;
|
|
93
101
|
opacity: number;
|
|
94
|
-
pointerEvents: string;
|
|
95
102
|
};
|
|
96
103
|
to: {
|
|
97
|
-
|
|
104
|
+
scale: number;
|
|
98
105
|
opacity: number;
|
|
99
106
|
};
|
|
107
|
+
onUpdate: ({ scale, opacity }: any) => void;
|
|
100
108
|
};
|
|
101
|
-
declare const
|
|
109
|
+
declare const zoomOver: (el: HTMLElement) => {
|
|
102
110
|
from: {
|
|
103
|
-
|
|
111
|
+
scale: number;
|
|
104
112
|
opacity: number;
|
|
105
|
-
pointerEvents: string;
|
|
106
113
|
};
|
|
107
114
|
to: {
|
|
108
|
-
|
|
115
|
+
scale: number;
|
|
109
116
|
opacity: number;
|
|
110
117
|
};
|
|
118
|
+
onUpdate: ({ scale, opacity }: any) => void;
|
|
111
119
|
};
|
|
112
|
-
declare const grow: () => {
|
|
120
|
+
declare const grow: (el: HTMLElement) => {
|
|
113
121
|
from: {
|
|
114
|
-
|
|
122
|
+
scaleX: number;
|
|
123
|
+
scaleY: number;
|
|
115
124
|
opacity: number;
|
|
116
|
-
pointerEvents: string;
|
|
117
125
|
};
|
|
118
126
|
to: {
|
|
119
|
-
|
|
127
|
+
scaleX: number;
|
|
128
|
+
scaleY: number;
|
|
120
129
|
opacity: number;
|
|
121
130
|
};
|
|
131
|
+
onUpdate: ({ scaleX, scaleY, opacity }: any) => void;
|
|
122
132
|
};
|
|
123
|
-
declare const
|
|
133
|
+
declare const collapseVertical: (el: HTMLElement) => {
|
|
124
134
|
from: {
|
|
125
|
-
|
|
126
|
-
transformOrigin: string;
|
|
127
|
-
opacity: number;
|
|
128
|
-
pointerEvents: string;
|
|
129
|
-
};
|
|
130
|
-
to: {
|
|
131
|
-
transform: string;
|
|
132
|
-
transformOrigin: string;
|
|
133
|
-
opacity: number;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
declare const zoomOver: () => {
|
|
137
|
-
from: {
|
|
138
|
-
transform: string;
|
|
139
|
-
transformOrigin: string;
|
|
140
|
-
opacity: number;
|
|
141
|
-
pointerEvents: string;
|
|
142
|
-
};
|
|
143
|
-
to: {
|
|
144
|
-
transform: string;
|
|
145
|
-
transformOrigin: string;
|
|
146
|
-
opacity: number;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
declare const collapseVertical: (rect: DOMRect) => {
|
|
150
|
-
from: {
|
|
151
|
-
maxHeight: string;
|
|
152
|
-
overflow: string;
|
|
135
|
+
maxHeight: number;
|
|
153
136
|
};
|
|
154
137
|
to: {
|
|
155
|
-
maxHeight:
|
|
156
|
-
overflow: string;
|
|
138
|
+
maxHeight: number;
|
|
157
139
|
};
|
|
140
|
+
onUpdate: ({ maxHeight }: any) => void;
|
|
158
141
|
};
|
|
159
|
-
declare const collapseHorizontal: (
|
|
142
|
+
declare const collapseHorizontal: (el: HTMLElement) => {
|
|
160
143
|
from: {
|
|
161
|
-
width:
|
|
162
|
-
overflow: string;
|
|
144
|
+
width: number;
|
|
163
145
|
};
|
|
164
146
|
to: {
|
|
165
|
-
width:
|
|
166
|
-
overflow: string;
|
|
147
|
+
width: number;
|
|
167
148
|
};
|
|
149
|
+
onUpdate: ({ width }: any) => void;
|
|
168
150
|
};
|
|
169
151
|
|
|
170
|
-
export { collapseHorizontal, collapseVertical, fade, fadeDown, fadeLeft, fadeRight, fadeUp, grow,
|
|
152
|
+
export { collapseHorizontal, collapseVertical, fade, fadeDown, fadeLeft, fadeRight, fadeUp, grow, slideDown, slideLeft, slideRight, slideUp, zoom, zoomOver };
|