@arthurzakharov/ui-kit 1.0.31 → 1.0.32

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.
@@ -8,6 +8,6 @@ export interface FadeScaleProps extends PropsWithChildren {
8
8
  ease?: Easing | Easing[];
9
9
  duration?: number;
10
10
  delay?: number;
11
- suppressFirstAnimation?: boolean;
11
+ animateOnStart?: boolean;
12
12
  }
13
13
  export declare const FadeScale: (props: FadeScaleProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,32 +1,32 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
- import { useRef as p, useEffect as d } from "react";
2
+ import { useRef as d, useEffect as p } from "react";
3
3
  import { m as y } from "../../../proxy-BfgGIllg.js";
4
4
  const R = (t) => {
5
5
  const {
6
- children: n,
7
- name: a,
6
+ children: a,
7
+ name: n,
8
8
  condition: r,
9
- ease: s = "easeInOut",
10
- type: i = "tween",
11
- className: o = "",
9
+ ease: i = "easeInOut",
10
+ type: o = "tween",
11
+ className: s = "",
12
12
  duration: c = 0.125,
13
13
  delay: m = 0,
14
- suppressFirstAnimation: l = !1
15
- } = t, e = p(l);
16
- if (d(() => {
14
+ animateOnStart: l = !1
15
+ } = t, e = d(l);
16
+ if (p(() => {
17
17
  e.current = !0;
18
18
  }, []), !r) return null;
19
- const u = e.current ? !1 : { opacity: 0, scale: 0.95 };
19
+ const u = e.current ? { opacity: 0, scale: 0.95 } : !1;
20
20
  return /* @__PURE__ */ f(
21
21
  y.div,
22
22
  {
23
23
  initial: u,
24
24
  animate: { opacity: 1, scale: 1 },
25
- transition: { ease: s, duration: c, delay: m, type: i },
26
- className: o,
27
- children: n
25
+ transition: { ease: i, duration: c, delay: m, type: o },
26
+ className: s,
27
+ children: a
28
28
  },
29
- a
29
+ n
30
30
  );
31
31
  };
32
32
  export {
@@ -9,6 +9,6 @@ export interface FadeSlideProps extends PropsWithChildren {
9
9
  ease?: Easing | Easing[];
10
10
  duration?: number;
11
11
  delay?: number;
12
- suppressFirstAnimation?: boolean;
12
+ animateOnStart?: boolean;
13
13
  }
14
14
  export declare const FadeSlide: (props: FadeSlideProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,35 +1,35 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useRef as p, useEffect as y } from "react";
3
3
  import { m as h } from "../../../proxy-BfgGIllg.js";
4
- const F = (i) => {
4
+ const O = (n) => {
5
5
  const {
6
- children: n,
7
- name: r,
6
+ children: r,
7
+ name: i,
8
8
  condition: o,
9
- direction: s = "ltr",
10
- ease: a = "easeInOut",
9
+ direction: a = "ltr",
10
+ ease: s = "easeInOut",
11
11
  type: c = "tween",
12
12
  className: d = "",
13
13
  duration: l = 0.125,
14
14
  delay: m = 0,
15
- suppressFirstAnimation: u = !1
16
- } = i, e = p(u);
15
+ animateOnStart: f = !1
16
+ } = n, e = p(f);
17
17
  if (y(() => {
18
18
  e.current = !0;
19
19
  }, []), !o) return null;
20
- const f = e.current ? !1 : { x: s === "ltr" ? "-100%" : "100%", opacity: 0 };
20
+ const u = e.current ? { x: a === "ltr" ? "-100%" : "100%", opacity: 0 } : !1;
21
21
  return /* @__PURE__ */ t("div", { style: { overflow: "hidden" }, children: /* @__PURE__ */ t(
22
22
  h.div,
23
23
  {
24
- initial: f,
24
+ initial: u,
25
25
  animate: { x: 0, opacity: 1 },
26
- transition: { ease: a, duration: l, delay: m, type: c },
26
+ transition: { ease: s, duration: l, delay: m, type: c },
27
27
  className: d,
28
- children: n
28
+ children: r
29
29
  },
30
- r
30
+ i
31
31
  ) });
32
32
  };
33
33
  export {
34
- F as FadeSlide
34
+ O as FadeSlide
35
35
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.31",
4
+ "version": "1.0.32",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",