@purr-react-styled-components/components.loading-ripple 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 +1 -1
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("clsx"),t=require("styled-components"),r=i=>t.keyframes(["0%{top:","px;left:","px;width:0;height:0;opacity:0;}4.9%{top:","px;left:","px;width:0;height:0;opacity:0;}5%{top:","px;left:","px;width:0;height:0;opacity:1;}100%{top:0px;left:0px;width:","px;height:","px;opacity:0;}"],i*.5,i*.5,i*.5,i*.5,i*.5,i*.5,i,i),l={Container:t.span.withConfig({displayName:"_style__Container",componentId:"sc-1wjgbyx-0"})(["display:flex;align-items:center;justify-content:center;width:",";height:",";"],({$fullScreen:i})=>i?"100vw":"100%",({$fullScreen:i})=>i?"100vh":"100%"),Ripple:t.span.withConfig({displayName:"_style__Ripple",componentId:"sc-1wjgbyx-1"})(["display:inline-block;position:relative;width:",";height:",";span{position:absolute;border:4px solid ",";opacity:1;border-radius:50%;animation:"," 1s cubic-bezier(0,0.2,0.8,1) infinite;}span:nth-child(2){animation-delay:-0.5s;}"],({$size:i})=>`${i+8}px`,({$size:i})=>`${i+8}px`,({$color:i})=>i,({$size:i})=>r(i))},c=({size:i=80,color:p="#
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("clsx"),t=require("styled-components"),r=i=>t.keyframes(["0%{top:","px;left:","px;width:0;height:0;opacity:0;}4.9%{top:","px;left:","px;width:0;height:0;opacity:0;}5%{top:","px;left:","px;width:0;height:0;opacity:1;}100%{top:0px;left:0px;width:","px;height:","px;opacity:0;}"],i*.5,i*.5,i*.5,i*.5,i*.5,i*.5,i,i),l={Container:t.span.withConfig({displayName:"_style__Container",componentId:"sc-1wjgbyx-0"})(["display:flex;align-items:center;justify-content:center;width:",";height:",";"],({$fullScreen:i})=>i?"100vw":"100%",({$fullScreen:i})=>i?"100vh":"100%"),Ripple:t.span.withConfig({displayName:"_style__Ripple",componentId:"sc-1wjgbyx-1"})(["display:inline-block;position:relative;width:",";height:",";span{position:absolute;border:4px solid ",";opacity:1;border-radius:50%;animation:"," 1s cubic-bezier(0,0.2,0.8,1) infinite;}span:nth-child(2){animation-delay:-0.5s;}"],({$size:i})=>`${i+8}px`,({$size:i})=>`${i+8}px`,({$color:i})=>i,({$size:i})=>r(i))},c=({size:i=80,color:p="#000000",fullScreen:n=!1,className:o,htmlAttributes:a})=>e.jsx(l.Container,{...a,$fullScreen:n,className:s("loading-ripple",`loading-ripple--size-${i}`,`loading-ripple--color-${p}`,n&&"loading-ripple--fullScreen",o),children:e.jsxs(l.Ripple,{$size:i,$color:p,className:"loading-ripple-inner",children:[e.jsx("span",{}),e.jsx("span",{})]})});exports.LoadingRipple=c;
|
package/dist/index.js
CHANGED
|
@@ -22,9 +22,9 @@ const c = (i) => d(["0%{top:", "px;left:", "px;width:0;height:0;opacity:0;}4.9%{
|
|
|
22
22
|
}) => i, ({
|
|
23
23
|
$size: i
|
|
24
24
|
}) => c(i))
|
|
25
|
-
},
|
|
25
|
+
}, g = ({
|
|
26
26
|
size: i = 80,
|
|
27
|
-
color: t = "#
|
|
27
|
+
color: t = "#000000",
|
|
28
28
|
fullScreen: e = !1,
|
|
29
29
|
className: l,
|
|
30
30
|
htmlAttributes: a
|
|
@@ -33,5 +33,5 @@ const c = (i) => d(["0%{top:", "px;left:", "px;width:0;height:0;opacity:0;}4.9%{
|
|
|
33
33
|
/* @__PURE__ */ p("span", {})
|
|
34
34
|
] }) });
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
g as LoadingRipple
|
|
37
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purr-react-styled-components/components.loading-ripple",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
28
|
+
"@purr-core/utils.definitions": "0.0.9"
|
|
29
29
|
},
|
|
30
30
|
"author": "@DinhThienPhuc",
|
|
31
31
|
"license": "ISC",
|