@purr-react-styled-components/components.loading-ellipsis 0.0.4 → 0.0.6

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/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),p=require("clsx"),s=require("styled-components"),c=s.keyframes(["0%{transform:scale(0);}100%{transform:scale(1);}"]),a=n=>s.keyframes(["0%{transform:translate(0,0);}100%{transform:",";}"],`translate(${5*n/3}px, 0)`),d=s.keyframes(["0%{transform:scale(1);}100%{transform:scale(0);}"]),l={Container:s.span.withConfig({displayName:"_style__Container",componentId:"sc-1ktgpxe-0"})(["display:flex;align-items:center;justify-content:center;width:",";height:",";"],({$fullScreen:n})=>n?"100vw":"100%",({$fullScreen:n})=>n?"100vh":"100%"),Spinner:s.span.withConfig({displayName:"_style__Spinner",componentId:"sc-1ktgpxe-1"})(["display:flex;position:relative;width:",";height:",";span{position:absolute;width:",";height:",";border-radius:50%;background:",";}span:nth-child(1){left:",";animation:"," 0.6s infinite;}span:nth-child(2){left:",";animation:"," 0.6s infinite;}span:nth-child(3){left:",";animation:"," 0.6s infinite;}span:nth-child(4){left:",";animation:"," 0.6s infinite;}"],({$size:n})=>`${17*n/3}px`,({$size:n})=>`${n}px`,({$size:n})=>`${n}px`,({$size:n})=>`${n}px`,({$color:n})=>n,({$size:n})=>`${2*n/3}px`,c,({$size:n})=>`${2*n/3}px`,({$size:n})=>a(n),({$size:n})=>`${7*n/3}px`,({$size:n})=>a(n),({$size:n})=>`${4*n}px`,d)},f=({size:n=12,color:e="#00bfff",fullScreen:t=!1,className:o,htmlAttributes:r})=>i.jsx(l.Container,{...r,$fullScreen:t,className:p("loading-ellipsis",`loading-ellipsis--size-${n}`,`loading-ellipsis--color-${e}`,t&&"loading-ellipsis--fullScreen",o),children:i.jsxs(l.Spinner,{$size:n,$color:e,className:"loading-ellipsis-inner",children:[i.jsx("span",{}),i.jsx("span",{}),i.jsx("span",{}),i.jsx("span",{})]})});exports.LoadingEllipsis=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),p=require("clsx"),s=require("styled-components"),c=s.keyframes(["0%{transform:scale(0);}100%{transform:scale(1);}"]),a=n=>s.keyframes(["0%{transform:translate(0,0);}100%{transform:",";}"],`translate(${5*n/3}px, 0)`),d=s.keyframes(["0%{transform:scale(1);}100%{transform:scale(0);}"]),l={Container:s.span.withConfig({displayName:"_style__Container",componentId:"sc-1ktgpxe-0"})(["display:flex;align-items:center;justify-content:center;width:",";height:",";"],({$fullScreen:n})=>n?"100vw":"100%",({$fullScreen:n})=>n?"100vh":"100%"),Spinner:s.span.withConfig({displayName:"_style__Spinner",componentId:"sc-1ktgpxe-1"})(["display:flex;position:relative;width:",";height:",";span{position:absolute;width:",";height:",";border-radius:50%;background:",";}span:nth-child(1){left:",";animation:"," 0.6s infinite;}span:nth-child(2){left:",";animation:"," 0.6s infinite;}span:nth-child(3){left:",";animation:"," 0.6s infinite;}span:nth-child(4){left:",";animation:"," 0.6s infinite;}"],({$size:n})=>`${17*n/3}px`,({$size:n})=>`${n}px`,({$size:n})=>`${n}px`,({$size:n})=>`${n}px`,({$color:n})=>n,({$size:n})=>`${2*n/3}px`,c,({$size:n})=>`${2*n/3}px`,({$size:n})=>a(n),({$size:n})=>`${7*n/3}px`,({$size:n})=>a(n),({$size:n})=>`${4*n}px`,d)},f=({size:n=12,color:e="#000000",fullScreen:t=!1,className:o,htmlAttributes:r})=>i.jsx(l.Container,{...r,$fullScreen:t,className:p("loading-ellipsis",`loading-ellipsis--size-${n}`,`loading-ellipsis--color-${e}`,t&&"loading-ellipsis--fullScreen",o),children:i.jsxs(l.Spinner,{$size:n,$color:e,className:"loading-ellipsis-inner",children:[i.jsx("span",{}),i.jsx("span",{}),i.jsx("span",{}),i.jsx("span",{})]})});exports.LoadingEllipsis=f;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jsx as i, jsxs as f } from "react/jsx-runtime";
2
- import c from "clsx";
1
+ import { jsx as i, jsxs as c } from "react/jsx-runtime";
2
+ import d from "clsx";
3
3
  import a, { keyframes as s } from "styled-components";
4
- const d = /* @__PURE__ */ s(["0%{transform:scale(0);}100%{transform:scale(1);}"]), o = (n) => s(["0%{transform:translate(0,0);}100%{transform:", ";}"], `translate(${5 * n / 3}px, 0)`), m = /* @__PURE__ */ s(["0%{transform:scale(1);}100%{transform:scale(0);}"]), l = {
4
+ const m = /* @__PURE__ */ s(["0%{transform:scale(0);}100%{transform:scale(1);}"]), o = (n) => s(["0%{transform:translate(0,0);}100%{transform:", ";}"], `translate(${5 * n / 3}px, 0)`), f = /* @__PURE__ */ s(["0%{transform:scale(1);}100%{transform:scale(0);}"]), l = {
5
5
  Container: a.span.withConfig({
6
6
  displayName: "_style__Container",
7
7
  componentId: "sc-1ktgpxe-0"
@@ -25,7 +25,7 @@ const d = /* @__PURE__ */ s(["0%{transform:scale(0);}100%{transform:scale(1);}"]
25
25
  $color: n
26
26
  }) => n, ({
27
27
  $size: n
28
- }) => `${2 * n / 3}px`, d, ({
28
+ }) => `${2 * n / 3}px`, m, ({
29
29
  $size: n
30
30
  }) => `${2 * n / 3}px`, ({
31
31
  $size: n
@@ -35,14 +35,14 @@ const d = /* @__PURE__ */ s(["0%{transform:scale(0);}100%{transform:scale(1);}"]
35
35
  $size: n
36
36
  }) => o(n), ({
37
37
  $size: n
38
- }) => `${4 * n}px`, m)
38
+ }) => `${4 * n}px`, f)
39
39
  }, $ = ({
40
40
  size: n = 12,
41
- color: t = "#00bfff",
41
+ color: t = "#000000",
42
42
  fullScreen: e = !1,
43
43
  className: p,
44
44
  htmlAttributes: r
45
- }) => /* @__PURE__ */ i(l.Container, { ...r, $fullScreen: e, className: c("loading-ellipsis", `loading-ellipsis--size-${n}`, `loading-ellipsis--color-${t}`, e && "loading-ellipsis--fullScreen", p), children: /* @__PURE__ */ f(l.Spinner, { $size: n, $color: t, className: "loading-ellipsis-inner", children: [
45
+ }) => /* @__PURE__ */ i(l.Container, { ...r, $fullScreen: e, className: d("loading-ellipsis", `loading-ellipsis--size-${n}`, `loading-ellipsis--color-${t}`, e && "loading-ellipsis--fullScreen", p), children: /* @__PURE__ */ c(l.Spinner, { $size: n, $color: t, className: "loading-ellipsis-inner", children: [
46
46
  /* @__PURE__ */ i("span", {}),
47
47
  /* @__PURE__ */ i("span", {}),
48
48
  /* @__PURE__ */ i("span", {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purr-react-styled-components/components.loading-ellipsis",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "react": "*",
26
26
  "styled-components": "*",
27
27
  "clsx": "*",
28
- "@purr-core/utils.definitions": "0.0.7"
28
+ "@purr-core/utils.definitions": "0.0.9"
29
29
  },
30
30
  "author": "@DinhThienPhuc",
31
31
  "license": "ISC",