xtreme-ui 0.0.89 → 0.0.90

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Lottie.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Lottie/Lottie.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAe,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,MAAM,yGAqCjB,CAAC"}
1
+ {"version":3,"file":"Lottie.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Lottie/Lottie.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAe,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,MAAM,yGAsCjB,CAAC"}
@@ -1,42 +1,43 @@
1
1
  "use client";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
- import { forwardRef as n, useState as d, useEffect as y } from "react";
4
- import { DotLottieReact as L } from "@lottiefiles/dotlottie-react";
5
- import x from "clsx";
3
+ import { forwardRef as d, useState as y, useEffect as L } from "react";
4
+ import { DotLottieReact as x } from "@lottiefiles/dotlottie-react";
5
+ import z from "clsx";
6
6
  import r from "./lottie.module.scss.js";
7
- import { ELottieSize as z } from "./types.js";
8
- const N = n((s) => {
7
+ import { ELottieSize as N } from "./types.js";
8
+ const S = d((s, l) => {
9
9
  const {
10
- className: l,
11
- src: a,
10
+ className: a,
11
+ src: m,
12
12
  size: e = "default",
13
- autoPlay: m = !0,
14
- loop: c = !0,
15
- speed: p = 1
16
- } = s, [t, f] = d(null), o = `${typeof e == "number" ? e : z[e]}px`, u = x(r.lottieWrapper, l);
17
- return y(() => {
13
+ autoPlay: c = !0,
14
+ loop: p = !0,
15
+ speed: f = 1
16
+ } = s, [t, u] = y(null), o = `${typeof e == "number" ? e : N[e]}px`, n = z(r.lottieWrapper, a);
17
+ return L(() => {
18
18
  o && (t == null || t.resize());
19
19
  }, [t, o]), /* @__PURE__ */ i(
20
20
  "div",
21
21
  {
22
- className: u,
22
+ ref: l,
23
+ className: n,
23
24
  style: { "--lottieSize": o },
24
25
  children: /* @__PURE__ */ i(
25
- L,
26
+ x,
26
27
  {
27
28
  className: r.lottie,
28
- dotLottieRefCallback: f,
29
- src: a,
30
- autoplay: m,
31
- loop: c,
32
- speed: p,
29
+ dotLottieRefCallback: u,
30
+ src: m,
31
+ autoplay: c,
32
+ loop: p,
33
+ speed: f,
33
34
  marker: "lottie"
34
35
  }
35
36
  )
36
37
  }
37
38
  );
38
39
  });
39
- N.displayName = "Lottie";
40
+ S.displayName = "Lottie";
40
41
  export {
41
- N as Lottie
42
+ S as Lottie
42
43
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtreme-ui",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "type": "module",
5
5
  "description": "Collection of reusable components that can be used in web projects",
6
6
  "main": "dist/index.js",