@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.
@@ -0,0 +1,6 @@
1
+ import './assets/animation-rpq5162S.css';const n = "_Animation_zlutr_1", t = {
2
+ Animation: n
3
+ };
4
+ export {
5
+ t as c
6
+ };
@@ -1,34 +1,34 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { withBaseAnimationDefaults as m } from "../utils/default-props.js";
3
- import { useAnimationLifecycle as r } from "../hook/use-animation-lifecycle/use-animation-lifecycle.hook.js";
4
- import { m as s } from "../../proxy-Cx6n7mT2.js";
5
- const u = (a) => {
6
- const t = m(a), e = r({
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
- }), i = {
11
+ }), n = {
10
12
  height: 0,
11
13
  opacity: 0
12
- }, n = { height: "auto", opacity: 1 };
13
- return !e.shouldRender && !t.keepMount ? null : /* @__PURE__ */ o(
14
- s.div,
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: e.getInitialState(i, n),
17
- animate: e.getAnimateState(i, n),
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: e.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
- u as AnimationFadeGrow
33
+ A as AnimationFadeGrow
34
34
  };
@@ -1,33 +1,34 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { withBaseAnimationDefaults as m } from "../utils/default-props.js";
3
- import { useAnimationLifecycle as l } from "../hook/use-animation-lifecycle/use-animation-lifecycle.hook.js";
4
- import { m as r } from "../../proxy-Cx6n7mT2.js";
5
- const p = (i) => {
6
- const t = m(i), e = l({
7
- condition: i.condition,
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
- }), n = {
11
+ }), e = {
10
12
  opacity: 0,
11
13
  scale: 0.95
12
14
  }, a = { opacity: 1, scale: 1 };
13
- return !e.shouldRender && !t.keepMount ? null : /* @__PURE__ */ o(
14
- r.div,
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: e.getInitialState(n, a),
17
- animate: e.getAnimateState(n, a),
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: e.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
- p as AnimationFadeScale
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 r } from "../hook/use-animation-lifecycle/use-animation-lifecycle.hook.js";
4
- import { m as l } from "../../proxy-Cx6n7mT2.js";
5
- const u = (a) => {
6
- const t = m(a), i = r({
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
- }), e = {
11
+ }), n = {
10
12
  x: (t.direction ?? "ltr") === "ltr" ? "-100%" : "100%",
11
13
  opacity: 0
12
- }, n = { x: 0, opacity: 1 };
13
- return !i.shouldRender && !t.keepMount ? null : /* @__PURE__ */ o(
14
- l.div,
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(e, n),
17
- animate: i.getAnimateState(e, n),
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
- u as AnimationFadeSlide
34
+ A as AnimationFadeSlide
33
35
  };
@@ -0,0 +1 @@
1
+ ._Animation_zlutr_1{overflow:hidden}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.4.3",
4
+ "version": "1.4.4",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",