@arthurzakharov/ui-kit 1.4.3 → 1.4.4
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/dist/animation.module-DQXuL9kR.js +6 -0
- package/dist/animations/animation-fade-grow/animation-fade-grow.component.js +16 -16
- package/dist/animations/animation-fade-scale/animation-fade-scale.component.js +16 -15
- package/dist/animations/animation-fade-slide/animation-fade-slide.component.js +15 -13
- package/dist/assets/animation-rpq5162S.css +1 -0
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import m from "clsx";
|
|
3
|
+
import { withBaseAnimationDefaults as r } from "../utils/default-props.js";
|
|
4
|
+
import { useAnimationLifecycle as s } from "../hook/use-animation-lifecycle/use-animation-lifecycle.hook.js";
|
|
5
|
+
import { c } from "../../animation.module-DQXuL9kR.js";
|
|
6
|
+
import { m as l } from "../../proxy-Cx6n7mT2.js";
|
|
7
|
+
const A = (a) => {
|
|
8
|
+
const t = r(a), i = s({
|
|
7
9
|
condition: t.condition,
|
|
8
10
|
animateOnStart: t.animateOnStart
|
|
9
|
-
}),
|
|
11
|
+
}), n = {
|
|
10
12
|
height: 0,
|
|
11
13
|
opacity: 0
|
|
12
|
-
},
|
|
13
|
-
return !
|
|
14
|
-
|
|
14
|
+
}, e = { height: "auto", opacity: 1 };
|
|
15
|
+
return !i.shouldRender && !t.keepMount ? null : /* @__PURE__ */ o("div", { className: m(c.Animation, t.className), children: /* @__PURE__ */ o(
|
|
16
|
+
l.div,
|
|
15
17
|
{
|
|
16
|
-
initial:
|
|
17
|
-
animate:
|
|
18
|
+
initial: i.getInitialState(n, e),
|
|
19
|
+
animate: i.getAnimateState(n, e),
|
|
18
20
|
transition: {
|
|
19
21
|
ease: t.ease,
|
|
20
22
|
duration: t.duration,
|
|
21
23
|
delay: t.delay,
|
|
22
24
|
type: t.type
|
|
23
25
|
},
|
|
24
|
-
onAnimationComplete:
|
|
25
|
-
style: { overflow: "hidden" },
|
|
26
|
-
className: t.className,
|
|
26
|
+
onAnimationComplete: i.onAnimationComplete,
|
|
27
27
|
children: t.children
|
|
28
28
|
},
|
|
29
29
|
t.name
|
|
30
|
-
);
|
|
30
|
+
) });
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
A as AnimationFadeGrow
|
|
34
34
|
};
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import m from "clsx";
|
|
3
|
+
import { withBaseAnimationDefaults as r } from "../utils/default-props.js";
|
|
4
|
+
import { useAnimationLifecycle as s } from "../hook/use-animation-lifecycle/use-animation-lifecycle.hook.js";
|
|
5
|
+
import { c } from "../../animation.module-DQXuL9kR.js";
|
|
6
|
+
import { m as l } from "../../proxy-Cx6n7mT2.js";
|
|
7
|
+
const S = (n) => {
|
|
8
|
+
const t = r(n), i = s({
|
|
9
|
+
condition: n.condition,
|
|
8
10
|
animateOnStart: t.animateOnStart
|
|
9
|
-
}),
|
|
11
|
+
}), e = {
|
|
10
12
|
opacity: 0,
|
|
11
13
|
scale: 0.95
|
|
12
14
|
}, a = { opacity: 1, scale: 1 };
|
|
13
|
-
return !
|
|
14
|
-
|
|
15
|
+
return !i.shouldRender && !t.keepMount ? null : /* @__PURE__ */ o("div", { className: m(c.Animation, t.className), children: /* @__PURE__ */ o(
|
|
16
|
+
l.div,
|
|
15
17
|
{
|
|
16
|
-
initial:
|
|
17
|
-
animate:
|
|
18
|
+
initial: i.getInitialState(e, a),
|
|
19
|
+
animate: i.getAnimateState(e, a),
|
|
18
20
|
transition: {
|
|
19
21
|
ease: t.ease,
|
|
20
22
|
duration: t.duration,
|
|
21
23
|
delay: t.delay,
|
|
22
24
|
type: t.type
|
|
23
25
|
},
|
|
24
|
-
onAnimationComplete:
|
|
25
|
-
className: i.className,
|
|
26
|
+
onAnimationComplete: i.onAnimationComplete,
|
|
26
27
|
children: t.children
|
|
27
28
|
},
|
|
28
29
|
t.name
|
|
29
|
-
);
|
|
30
|
+
) });
|
|
30
31
|
};
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
S as AnimationFadeScale
|
|
33
34
|
};
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import r from "clsx";
|
|
2
3
|
import { withBaseAnimationDefaults as m } from "../utils/default-props.js";
|
|
3
|
-
import { useAnimationLifecycle as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { useAnimationLifecycle as l } from "../hook/use-animation-lifecycle/use-animation-lifecycle.hook.js";
|
|
5
|
+
import { c as s } from "../../animation.module-DQXuL9kR.js";
|
|
6
|
+
import { m as d } from "../../proxy-Cx6n7mT2.js";
|
|
7
|
+
const A = (a) => {
|
|
8
|
+
const t = m(a), i = l({
|
|
7
9
|
condition: t.condition,
|
|
8
10
|
animateOnStart: t.animateOnStart
|
|
9
|
-
}),
|
|
11
|
+
}), n = {
|
|
10
12
|
x: (t.direction ?? "ltr") === "ltr" ? "-100%" : "100%",
|
|
11
13
|
opacity: 0
|
|
12
|
-
},
|
|
13
|
-
return !i.shouldRender && !t.keepMount ? null : /* @__PURE__ */ o(
|
|
14
|
-
|
|
14
|
+
}, e = { x: 0, opacity: 1 };
|
|
15
|
+
return !i.shouldRender && !t.keepMount ? null : /* @__PURE__ */ o("div", { className: r(s.Animation, t.className), children: /* @__PURE__ */ o(
|
|
16
|
+
d.div,
|
|
15
17
|
{
|
|
16
|
-
initial: i.getInitialState(
|
|
17
|
-
animate: i.getAnimateState(
|
|
18
|
+
initial: i.getInitialState(n, e),
|
|
19
|
+
animate: i.getAnimateState(n, e),
|
|
18
20
|
transition: {
|
|
19
21
|
ease: t.ease,
|
|
20
22
|
duration: t.duration,
|
|
21
23
|
delay: t.delay,
|
|
22
24
|
type: t.type
|
|
23
25
|
},
|
|
26
|
+
style: { overflow: "hidden" },
|
|
24
27
|
onAnimationComplete: i.onAnimationComplete,
|
|
25
|
-
className: t.className,
|
|
26
28
|
children: t.children
|
|
27
29
|
},
|
|
28
30
|
t.name
|
|
29
|
-
);
|
|
31
|
+
) });
|
|
30
32
|
};
|
|
31
33
|
export {
|
|
32
|
-
|
|
34
|
+
A as AnimationFadeSlide
|
|
33
35
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Animation_zlutr_1{overflow:hidden}
|