earthnut 0.1.5 → 0.1.7-alpha.0
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/705/index.cjs +7 -0
- package/705/index.mjs +7 -0
- package/BackgroundRipple/index.cjs +7 -1
- package/BackgroundRipple/index.mjs +7 -1
- package/Layout/index.cjs +7 -1
- package/Layout/index.mjs +6 -0
- package/LazyBackgroundRipple/index.cjs +7 -0
- package/LazyBackgroundRipple/index.mjs +7 -0
- package/README.md +1 -1
- package/components/button/button.d.ts +6 -0
- package/components/button/index.d.ts +6 -0
- package/components/index.d.ts +11 -2
- package/components/layout/EnLayoutContent.d.ts +6 -0
- package/components/layout/content.d.ts +6 -0
- package/components/layout/footer.d.ts +6 -0
- package/components/layout/generate-class.d.ts +6 -0
- package/components/layout/get-value.d.ts +6 -0
- package/components/layout/header.d.ts +6 -0
- package/components/layout/index.d.ts +6 -0
- package/components/layout/layout.d.ts +6 -0
- package/components/layout/sideBar.d.ts +6 -0
- package/components/layout/types.d.ts +6 -0
- package/components/marquee/MarqueeEle.d.ts +6 -0
- package/components/marquee/index.d.ts +6 -0
- package/components/marquee/type.d.ts +6 -0
- package/components/menu/index.d.ts +6 -0
- package/components/menu/menu.d.ts +6 -0
- package/components/ripples/Content.d.ts +8 -0
- package/components/ripples/LazyRippleEle.d.ts +51 -0
- package/components/ripples/RipplesEle.d.ts +10 -2
- package/components/ripples/index.d.ts +7 -0
- package/components/ripples/types.d.ts +6 -0
- package/components/ripples/useOptionUpdate.d.ts +8 -2
- package/customHooks/index.d.ts +7 -0
- package/customHooks/useAnimationFrame.d.ts +6 -0
- package/customHooks/useInputIsComposing.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/create-background-color.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/create-linear-gradient.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/default-background/_createImageData.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/default-background/circleDataList.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/default-background/createDefault.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/default-background/index.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/load-image.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/run-side.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/type.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/utils/bind-image.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/utils/create-canvas-element.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/utils/create-image-by-src.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/utils/get-background-style.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/utils/hide-css-background.d.ts +6 -0
- package/customHooks/useRipples/buildBackground/utils/restore-css-background.d.ts +6 -0
- package/customHooks/useRipples/callback/can-side.d.ts +6 -0
- package/customHooks/useRipples/callback/destroy.d.ts +6 -0
- package/customHooks/useRipples/callback/drop.d.ts +6 -0
- package/customHooks/useRipples/callback/extract-url.d.ts +6 -0
- package/customHooks/useRipples/callback/fade.d.ts +6 -0
- package/customHooks/useRipples/callback/get-new-image.d.ts +6 -0
- package/customHooks/useRipples/callback/reload-background.d.ts +6 -0
- package/customHooks/useRipples/callback/scale.d.ts +6 -0
- package/customHooks/useRipples/index.d.ts +8 -2
- package/customHooks/useRipples/init/index.d.ts +6 -0
- package/customHooks/useRipples/init/initEvent.d.ts +6 -0
- package/customHooks/useRipples/init/initShaders.d.ts +6 -0
- package/customHooks/useRipples/init/initTexture.d.ts +6 -0
- package/customHooks/useRipples/render/computeTextureBoundaries.d.ts +6 -0
- package/customHooks/useRipples/render/draw.d.ts +6 -0
- package/customHooks/useRipples/render/drawQuad.d.ts +6 -0
- package/customHooks/useRipples/render/dropAtPointer.d.ts +6 -0
- package/customHooks/useRipples/render/index.d.ts +6 -0
- package/customHooks/useRipples/render/swapBufferIndices.d.ts +6 -0
- package/customHooks/useRipples/render/update.d.ts +6 -0
- package/customHooks/useRipples/rippersData/defaultData.d.ts +6 -0
- package/customHooks/useRipples/rippersData/fadeData.d.ts +6 -0
- package/customHooks/useRipples/rippersData/index.d.ts +6 -0
- package/customHooks/useRipples/rippersData/loadConfig.d.ts +6 -0
- package/customHooks/useRipples/rippersData/renderData.d.ts +6 -0
- package/customHooks/useRipples/rippersData/useOptions.d.ts +6 -0
- package/customHooks/useRipples/rippersData/vertexSource.d.ts +6 -0
- package/customHooks/useRipples/ripple.html.d.ts +6 -0
- package/customHooks/useRipples/ripplesClass.d.ts +6 -0
- package/customHooks/useRipples/tools.d.ts +6 -0
- package/customHooks/useRipples/types.d.ts +8 -9
- package/customHooks/useRipples/use-lazy-ripple.d.ts +13 -0
- package/customHooks/useTimeId.d.ts +7 -1
- package/dog.d.ts +6 -0
- package/index.cjs +7 -1
- package/index.d.ts +8 -4
- package/index.mjs +7 -1
- package/package.json +16 -5
- package/useAnimationFrame/index.cjs +6 -0
- package/useAnimationFrame/index.mjs +6 -0
- package/useInputIsComposing/index.cjs +6 -0
- package/useInputIsComposing/index.mjs +6 -0
- package/useLazyRipples/index.cjs +7 -0
- package/useLazyRipples/index.mjs +7 -0
- package/useRipples/index.cjs +7 -1
- package/useRipples/index.mjs +7 -1
- package/useTimeId/index.cjs +7 -1
- package/useTimeId/index.mjs +7 -1
- package/index.js.LICENSE.txt +0 -79
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@LazyBackgroundRipple/index.mjs
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
7
|
+
"use client";import*as e from"a-js-tools";import*as t from"a-type-of-js";import*as r from"react";import*as n from"a-element-inline-style";var o,i,a={98:(e,t,r)=>{var n;r.d(t,{U:()=>o});var o=r(291).I4.div(n||(n=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: relative;\n top: 0px;\n left: 0px;\n z-index: 1;\n width: 100%;\n height: 100%;\n min-width: 1px;\n min-height: 1px;\n contain: layout paint style;\n will-change: transform, opacity;\n"])))},161:(t,r,n)=>{t.exports=(e=>{var t={};return n.d(t,e),t})({debounce:()=>e.debounce,enArr:()=>e.enArr,getRandomInt:()=>e.getRandomInt,getRandomString:()=>e.getRandomString})},224:(e,t,r)=>{r.d(t,{k:()=>l});var n=r(362),o=r(649);r(713);function i(e){"@babel/helpers - typeof";return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=(0,o.useRef)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t));(0,o.useEffect)(function(){t&&e.current&&Object.keys(e.current.defaults).forEach(function(o){var i,s,c=t[o],u=(i=c,s=r.current[o],(0,n.isArray)(i)&&(0,n.isArray)(s)&&(i.length!==s.length||!i.every(function(e){return i[e]===s[e]}))||(!(0,n.isArray)(i)||!(0,n.isArray)(s))&&i!==s);e.current&&u&&(r.current[o]=(0,n.isArray)(c)?a(c):t[o],e.current.set(o,c))})},[t])}},291:(e,t,r)=>{r.d(t,{I4:()=>Yt});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.create;function o(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var i=r(649),a=r(945),s=r.n(a),c="-ms-",u="-moz-",l="-webkit-",f="comm",p="rule",d="decl",h="@keyframes",y=Math.abs,m=String.fromCharCode,v=Object.assign;function g(e){return e.trim()}function b(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,r){return e.replace(t,r)}function w(e,t,r){return e.indexOf(t,r)}function O(e,t){return 0|e.charCodeAt(t)}function P(e,t,r){return e.slice(t,r)}function j(e){return e.length}function I(e){return e.length}function A(e,t){return t.push(e),e}function x(e,t){return e.filter(function(e){return!b(e,t)})}var E=1,C=1,k=0,_=0,R=0,$="";function N(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:E,column:C,length:a,return:"",siblings:s}}function D(e,t){return v(N("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function T(e){for(;e.root;)e=D(e.root,{children:[e]});A(e,e.siblings)}function z(){return R=_>0?O($,--_):0,C--,10===R&&(C=1,E--),R}function F(){return R=_<k?O($,_++):0,C++,10===R&&(C=1,E++),R}function M(){return O($,_)}function B(){return _}function G(e,t){return P($,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function W(e){return E=C=1,k=j($=e),_=0,[]}function H(e){return $="",e}function Y(e){return g(G(_-1,Z(91===e?e+2:40===e?e+1:e)))}function U(e){for(;(R=M())&&R<33;)F();return L(e)>2||L(R)>3?"":" "}function q(e,t){for(;--t&&F()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return G(e,B()+(t<6&&32==M()&&32==F()))}function Z(e){for(;F();)switch(R){case e:return _;case 34:case 39:34!==e&&39!==e&&Z(R);break;case 40:41===e&&Z(e);break;case 92:F()}return _}function V(e,t){for(;F()&&e+R!==57&&(e+R!==84||47!==M()););return"/*"+G(t,_-1)+"*"+m(47===e?e:F())}function J(e){for(;!L(M());)F();return G(e,_)}function K(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Q(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case d:return e.return=e.return||e.value;case f:return"";case h:return e.return=e.value+"{"+K(e.children,n)+"}";case p:if(!j(e.value=e.props.join(",")))return""}return j(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function X(e,t,r){switch(function(e,t){return 45^O(e,0)?(((t<<2^O(e,0))<<2^O(e,1))<<2^O(e,2))<<2^O(e,3):0}(e,t)){case 5103:return l+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return l+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+u+e+c+e+e;case 5936:switch(O(e,t+11)){case 114:return l+e+c+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return l+e+c+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return l+e+c+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return l+e+c+e+e;case 6165:return l+e+c+"flex-"+e+e;case 5187:return l+e+S(e,/(\w+).+(:[^]+)/,l+"box-$1$2"+c+"flex-$1$2")+e;case 5443:return l+e+c+"flex-item-"+S(e,/flex-|-self/g,"")+(b(e,/flex-|baseline/)?"":c+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return l+e+c+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return l+e+c+S(e,"shrink","negative")+e;case 5292:return l+e+c+S(e,"basis","preferred-size")+e;case 6060:return l+"box-"+S(e,"-grow","")+l+e+c+S(e,"grow","positive")+e;case 4554:return l+S(e,/([^-])(transform)/g,"$1"+l+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,l+"$1"),/(image-set)/,l+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,l+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,l+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+l+e+e;case 4200:if(!b(e,/flex-|baseline/))return c+"grid-column-align"+P(e,t)+e;break;case 2592:case 3360:return c+S(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,b(e.props,/grid-\w+-end/)})?~w(e+(r=r[t].value),"span",0)?e:c+S(e,"-start","")+e+c+"grid-row-span:"+(~w(r,"span",0)?b(r,/\d+/):+b(r,/\d+/)-+b(e,/\d+/))+";":c+S(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return b(e.props,/grid-\w+-start/)})?e:c+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,l+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(j(e)-1-t>6)switch(O(e,t+1)){case 109:if(45!==O(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+l+"$2-$3$1"+u+(108==O(e,t+3)?"$3":"$2-$3"))+e;case 115:return~w(e,"stretch",0)?X(S(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return c+r+":"+n+s+(o?c+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===O(e,t+6))return S(e,":",":"+l)+e;break;case 6444:switch(O(e,45===O(e,14)?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+l+(45===O(e,14)?"inline-":"")+"box$3$1"+l+"$2$3$1"+c+"$2box$3")+e;case 100:return S(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case d:return void(e.return=X(e.value,e.length,r));case h:return K([D(e,{value:S(e.value,"@","@"+l)})],n);case p:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(b(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":T(D(e,{props:[S(t,/:(read-\w+)/,":-moz-$1")]})),T(D(e,{props:[t]})),v(e,{props:x(r,n)});break;case"::placeholder":T(D(e,{props:[S(t,/:(plac\w+)/,":"+l+"input-$1")]})),T(D(e,{props:[S(t,/:(plac\w+)/,":-moz-$1")]})),T(D(e,{props:[S(t,/:(plac\w+)/,c+"input-$1")]})),T(D(e,{props:[t]})),v(e,{props:x(r,n)})}return""})}}function te(e){return H(re("",null,null,null,[""],e=W(e),0,[0],e))}function re(e,t,r,n,o,i,a,s,c){for(var u=0,l=0,f=a,p=0,d=0,h=0,v=1,g=1,b=1,P=0,I="",x=o,E=i,C=n,k=I;g;)switch(h=P,P=F()){case 40:if(108!=h&&58==O(k,f-1)){-1!=w(k+=S(Y(P),"&","&\f"),"&\f",y(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:k+=Y(P);break;case 9:case 10:case 13:case 32:k+=U(h);break;case 92:k+=q(B()-1,7);continue;case 47:switch(M()){case 42:case 47:A(oe(V(F(),B()),t,r,c),c);break;default:k+="/"}break;case 123*v:s[u++]=j(k)*b;case 125*v:case 59:case 0:switch(P){case 0:case 125:g=0;case 59+l:-1==b&&(k=S(k,/\f/g,"")),d>0&&j(k)-f&&A(d>32?ie(k+";",n,r,f-1,c):ie(S(k," ","")+";",n,r,f-2,c),c);break;case 59:k+=";";default:if(A(C=ne(k,t,r,u,l,o,s,I,x=[],E=[],f,i),i),123===P)if(0===l)re(k,t,C,C,x,i,f,s,E);else switch(99===p&&110===O(k,3)?100:p){case 100:case 108:case 109:case 115:re(e,C,C,n&&A(ne(e,C,C,0,0,o,s,I,o,x=[],f,E),E),o,E,f,s,n?x:E);break;default:re(k,C,C,C,[""],E,0,s,E)}}u=l=d=0,v=b=1,I=k="",f=a;break;case 58:f=1+j(k),d=h;default:if(v<1)if(123==P)--v;else if(125==P&&0==v++&&125==z())continue;switch(k+=m(P),P*v){case 38:b=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(j(k)-1)*b,b=1;break;case 64:45===M()&&(k+=Y(F())),p=M(),l=f=j(I=k+=J(B())),P++;break;case 45:45===h&&2==j(k)&&(v=0)}}return i}function ne(e,t,r,n,o,i,a,s,c,u,l,f){for(var d=o-1,h=0===o?i:[""],m=I(h),v=0,b=0,w=0;v<n;++v)for(var O=0,j=P(e,d+1,d=y(b=a[v])),A=e;O<m;++O)(A=g(b>0?h[O]+" "+j:S(j,/&\f/g,h[O])))&&(c[w++]=A);return N(e,t,r,0===o?p:s,c,u,l,f)}function oe(e,t,r,n){return N(e,t,r,f,m(R),P(e,2,-2),0,n)}function ie(e,t,r,n,o){return N(e,t,r,d,P(e,0,n),P(e,n+1,-1),n,o)}var ae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="active",ue="data-styled-version",le="6.1.19",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"undefined"!=typeof document,de=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),he=(new Set,Object.freeze([])),ye=Object.freeze({});function me(e,t,r){return void 0===r&&(r=ye),e.theme!==r.theme&&e.theme||t||r.theme}var ve=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function Se(e){return e.replace(ge,"-").replace(be,"")}var we=/(a)(d)/gi,Oe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pe(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Oe(t%52)+r;return(Oe(t%52)+r).replace(we,"$1-$2")}var je,Ie=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ae=function(e){return Ie(5381,e)};function xe(e){return Pe(Ae(e)>>>0)}function Ee(e){return e.displayName||e.name||"Component"}function Ce(e){return"string"==typeof e&&!0}var ke="function"==typeof Symbol&&Symbol.for,_e=ke?Symbol.for("react.memo"):60115,Re=ke?Symbol.for("react.forward_ref"):60112,$e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ne={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},De={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Te=((je={})[Re]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},je[_e]=De,je);function ze(e){return("type"in(t=e)&&t.type.$$typeof)===_e?De:"$$typeof"in e?Te[e.$$typeof]:$e;var t}var Fe=Object.defineProperty,Me=Object.getOwnPropertyNames,Be=Object.getOwnPropertySymbols,Ge=Object.getOwnPropertyDescriptor,Le=Object.getPrototypeOf,We=Object.prototype;function He(e,t,r){if("string"!=typeof t){if(We){var n=Le(t);n&&n!==We&&He(e,n,r)}var o=Me(t);Be&&(o=o.concat(Be(t)));for(var i=ze(e),a=ze(t),s=0;s<o.length;++s){var c=o[s];if(!(c in Ne||r&&r[c]||a&&c in a||i&&c in i)){var u=Ge(t,c);try{Fe(e,c,u)}catch(e){}}}}return e}function Ye(e){return"function"==typeof e}function Ue(e){return"object"==typeof e&&"styledComponentId"in e}function qe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ze(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ve(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Je(e,t,r){if(void 0===r&&(r=!1),!r&&!Ve(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Je(e[n],t[n]);else if(Ve(t))for(var n in t)e[n]=Je(e[n],t[n]);return e}function Ke(e,t){Object.defineProperty(e,"toString",{value:t})}function Qe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Xe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Qe(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(fe);return t},e}(),et=new Map,tt=new Map,rt=1,nt=function(e){if(et.has(e))return et.get(e);for(;tt.has(rt);)rt++;var t=rt++;return et.set(e,t),tt.set(t,e),t},ot=function(e,t){rt=t+1,et.set(e,t),tt.set(t,e)},it="style[".concat(se,"][").concat(ue,'="').concat(le,'"]'),at=new RegExp("^".concat(se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),st=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},ct=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(fe),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var c=s.match(at);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ot(l,u),st(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},ut=function(e){for(var t=document.querySelectorAll(it),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(se)!==ce&&(ct(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function lt(){return r.nc}var ft=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(se,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(se,ce),n.setAttribute(ue,le);var a=lt();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},pt=function(){function e(e){this.element=ft(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Qe(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),dt=function(){function e(e){this.element=ft(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ht=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),yt=pe,mt={isServer:!pe,useCSSOMInjection:!de},vt=function(){function e(e,t,r){void 0===e&&(e=ye),void 0===t&&(t={});var o=this;this.options=n(n({},mt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&pe&&yt&&(yt=!1,ut(this)),Ke(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return tt.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(se,".g").concat(r,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(c,'"}').concat(fe)},i=0;i<r;i++)o(i);return n}(o)})}return e.registerId=function(e){return nt(e)},e.prototype.rehydrate=function(){!this.server&&pe&&ut(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new ht(r):t?new pt(r):new dt(r)}(this.options),new Xe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(nt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(nt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),gt=/&/g,bt=/^\s*\/\/.*$/gm;function St(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=St(e.children,t)),e})}function wt(e){var t,r,n,o=void 0===e?ye:e,i=o.options,a=void 0===i?ye:i,s=o.plugins,c=void 0===s?he:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push(function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(gt,r).replace(n,u))}),a.prefix&&l.push(ee),l.push(Q);var f=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var c=e.replace(bt,""),u=te(i||o?"".concat(i," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=St(u,a.namespace));var f,p,d,h=[];return K(u,(f=l.concat((d=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&d(e)})),p=I(f),function(e,t,r,n){for(var o="",i=0;i<p;i++)o+=f[i](e,t,r,n)||"";return o})),h};return f.hash=c.length?c.reduce(function(e,t){return t.name||Qe(15),Ie(e,t.name)},5381).toString():"",f}var Ot=new vt,Pt=wt(),jt=i.default.createContext({shouldForwardProp:void 0,styleSheet:Ot,stylis:Pt}),It=(jt.Consumer,i.default.createContext(void 0));function At(){return(0,i.useContext)(jt)}function xt(e){var t=(0,i.useState)(e.stylisPlugins),r=t[0],n=t[1],o=At().styleSheet,a=(0,i.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,o]),c=(0,i.useMemo)(function(){return wt({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,i.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,i.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:c}},[e.shouldForwardProp,a,c]);return i.default.createElement(jt.Provider,{value:u},i.default.createElement(It.Provider,{value:c},e.children))}var Et=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Pt);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ke(this,function(){throw Qe(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Pt),this.name+e.hash},e}(),Ct=function(e){return e>="A"&&e<="Z"};function kt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Ct(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var _t=function(e){return null==e||!1===e||""===e},Rt=function(e){var t,r,n=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!_t(a)&&(Array.isArray(a)&&a.isCss||Ye(a)?n.push("".concat(kt(i),":"),a,";"):Ve(a)?n.push.apply(n,o(o(["".concat(i," {")],Rt(a),!1),["}"],!1)):n.push("".concat(kt(i),": ").concat((t=i,null==(r=a)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ae||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function $t(e,t,r,n){return _t(e)?[]:Ue(e)?[".".concat(e.styledComponentId)]:Ye(e)?!Ye(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:$t(e(t),t,r,n):e instanceof Et?r?(e.inject(r,n),[e.getName(n)]):[e]:Ve(e)?Rt(e):Array.isArray(e)?Array.prototype.concat.apply(he,e.map(function(e){return $t(e,t,r,n)})):[e.toString()];var o}function Nt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ye(r)&&!Ue(r))return!1}return!0}var Dt=Ae(le),Tt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Nt(e),this.componentId=t,this.baseHash=Ie(Dt,t),this.baseStyle=r,vt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=qe(n,this.staticRulesId);else{var o=Ze($t(this.rules,e,t,r)),i=Pe(Ie(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=qe(n,i),this.staticRulesId=i}else{for(var s=Ie(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var f=Ze($t(l,e,t,r));s=Ie(s,f+u),c+=f}}if(c){var p=Pe(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),n=qe(n,p)}}return n},e}(),zt=i.default.createContext(void 0);zt.Consumer;var Ft={};new Set;function Mt(e,t,r){var o=Ue(e),a=e,s=!Ce(e),c=t.attrs,u=void 0===c?he:c,l=t.componentId,f=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Se(e);Ft[r]=(Ft[r]||0)+1;var n="".concat(r,"-").concat(xe(le+r+Ft[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,p=t.displayName,d=void 0===p?function(e){return Ce(e)?"styled.".concat(e):"Styled(".concat(Ee(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Se(t.displayName),"-").concat(t.componentId):t.componentId||f,y=o&&a.attrs?a.attrs.concat(u).filter(Boolean):u,m=t.shouldForwardProp;if(o&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return v(e,t)&&g(e,t)}}else m=v}var b=new Tt(r,h,o?a.componentStyle:void 0);function S(e,t){return function(e,t,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,l=e.target,f=i.default.useContext(zt),p=At(),d=e.shouldForwardProp||p.shouldForwardProp,h=me(t,f,s)||ye,y=function(e,t,r){for(var o,i=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=Ye(o=e[a])?o(i):o;for(var c in s)i[c]="className"===c?qe(i[c],s[c]):"style"===c?n(n({},i[c]),s[c]):s[c]}return t.className&&(i.className=qe(i.className,t.className)),i}(o,t,h),m=y.as||l,v={};for(var g in y)void 0===y[g]||"$"===g[0]||"as"===g||"theme"===g&&y.theme===h||("forwardedAs"===g?v.as=y.forwardedAs:d&&!d(g,m)||(v[g]=y[g]));var b=function(e,t){var r=At();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,y),S=qe(c,u);return b&&(S+=" "+b),y.className&&(S+=" "+y.className),v[Ce(m)&&!ve.has(m)?"class":"className"]=S,r&&(v.ref=r),(0,i.createElement)(m,v)}(w,e,t)}S.displayName=d;var w=i.default.forwardRef(S);return w.attrs=y,w.componentStyle=b,w.displayName=d,w.shouldForwardProp=m,w.foldedComponentIds=o?qe(a.foldedComponentIds,a.styledComponentId):"",w.styledComponentId=h,w.target=o?a.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Je(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Ke(w,function(){return".".concat(w.styledComponentId)}),s&&He(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Bt(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Gt=function(e){return Object.assign(e,{isCss:!0})};function Lt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ye(e)||Ve(e))return Gt($t(Bt(he,o([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?$t(n):Gt($t(Bt(n,t)))}function Wt(e,t,r){if(void 0===r&&(r=ye),!t)throw Qe(1,t);var i=function(n){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,r,Lt.apply(void 0,o([n],i,!1)))};return i.attrs=function(o){return Wt(e,t,n(n({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Wt(e,t,n(n({},r),o))},i}var Ht=function(e){return Wt(Mt,e)},Yt=Ht;ve.forEach(function(e){Yt[e]=Ht(e)});!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Nt(e),vt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var o=n(Ze($t(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&vt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=lt(),n=Ze([r&&'nonce="'.concat(r,'"'),"".concat(se,'="true"'),"".concat(ue,'="').concat(le,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Qe(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Qe(2);var r=e.instance.toString();if(!r)return[];var o=((t={})[se]="",t[ue]=le,t.dangerouslySetInnerHTML={__html:r},t),a=lt();return a&&(o.nonce=a),[i.default.createElement("style",n({},o,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new vt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Qe(2);return i.default.createElement(xt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Qe(3)}})(),"__sc-".concat(se,"__")},362:(e,r,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({isArray:()=>t.isArray,isBoolean:()=>t.isBoolean,isBusinessEmptyString:()=>t.isBusinessEmptyString,isEmptyArray:()=>t.isEmptyArray,isFalse:()=>t.isFalse,isNull:()=>t.isNull,isString:()=>t.isString,isUndefined:()=>t.isUndefined,isZero:()=>t.isZero})},634:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(649);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(){var e=o((0,n.useState)(),2),t=e[0],i=e[1],a=o((0,n.useState)(!1),2),s=a[0],c=a[1],u=o((0,n.useState)(null),2),l=u[0],f=u[1];return(0,n.useEffect)(function(){c(!0),r.e(705).then(r.bind(r,705)).then(function(e){i(e.useRipples)}).catch(function(e){f(e)}).finally(function(){c(!1)})},[]),{hook:t,isLoading:s,error:l}}},649:(e,t,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({createElement:()=>r.createElement,default:()=>r.default,forwardRef:()=>r.forwardRef,useContext:()=>r.useContext,useEffect:()=>r.useEffect,useImperativeHandle:()=>r.useImperativeHandle,useMemo:()=>r.useMemo,useRef:()=>r.useRef,useState:()=>r.useState})},666:(e,t,r)=>{e.exports=(e=>{var t={};return r.d(t,e),t})({setStyle:()=>n.setStyle})},713:()=>{function e(t){"@babel/helpers - typeof";return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}function r(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}new(function(){return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(){};return Object.setPrototypeOf(t,this),Object.defineProperties(t,{info:{value:function(){},configurable:!1,writable:!1},warn:{value:function(){},configurable:!1,writable:!1},error:{value:function(){},configurable:!1,writable:!1},type:{value:!1,configurable:!1,writable:!1}}),t},[{key:"clear",value:function(){}}])}())({name:"earthnut",type:!1})},945:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.m=a,c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,r)=>(c.f[r](e,t),t),[])),c.u=e=>e+"/index.mjs",c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o={731:0,839:0},i=e=>{var t,r,{__webpack_esm_ids__:n,__webpack_esm_modules__:i,__webpack_esm_runtime__:a}=e,s=0;for(t in i)c.o(i,t)&&(c.m[t]=i[t]);for(a&&a(c);s<n.length;s++)r=n[s],c.o(o,r)&&o[r]&&o[r][0](),o[n[s]]=0},c.f.j=(e,t)=>{var r=c.o(o,e)?o[e]:void 0;if(0!==r)if(r)t.push(r[1]);else{var n=import("../"+c.u(e)).then(i,t=>{throw 0!==o[e]&&(o[e]=void 0),t});n=Promise.race([n,new Promise(t=>r=o[e]=[t])]),t.push(r[1]=n)}},c.nc=void 0;var u={};c.d(u,{H:()=>w});var l=c(649),f=c(224),p=c(362),d=c(98),h=c(634);function y(e){"@babel/helpers - typeof";return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}var m=["children","style","option"];function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function S(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=(0,l.forwardRef)(function(e,t){var r=e.children,n=e.style,o=e.option,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,m),a=(0,l.useRef)(null),s=(0,h.D)().hook,c=(0,l.useRef)(null);return(0,f.k)(c,o),(0,l.useImperativeHandle)(t,function(){return{toggleState:function(){var e;null==c||null===(e=c.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null==c||null===(t=c.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null==c||null===(e=c.current)||void 0===e||e.pause()},set:function(e){if(!(0,p.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var o,i=t[r];null==c||null===(o=c.current)||void 0===o||o.set(i,e[i])}}}}),(0,l.useEffect)(function(){s&&(c.current=s(a,o).current)},[s]),l.default.createElement(d.U,v({style:b({backgroundRepeat:"round"},n)},i),l.default.createElement("canvas",{ref:a,"data-earthnut-ui":"canvas",width:0,height:0}),r)});w.displayName="en-lazy-background-ripple";const O=u.H;export{O as LazyBackgroundRipple};
|
package/README.md
CHANGED
package/components/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/index.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
7
|
+
import { RippleEle } from './ripples';
|
|
8
|
+
export { BackgroundRipple, LazyBackgroundRipple } from './ripples';
|
|
9
|
+
export { Layout, LayoutContent, LayoutHeader, LayoutFooter, LayoutSideBar, EnLayout, EnLayoutContent, EnLayoutFooter, EnLayoutHeader, EnLayoutSideBar, } from './layout';
|
|
3
10
|
export type { LayoutProps, LayoutSideBarProps, LayoutHeaderProps, LayoutFooterProps, } from './layout';
|
|
11
|
+
export type { Ripples, BackgroundRipplesProps, RipplesOptions, RippleImgUrl, } from '../customHooks/useRipples/index';
|
|
12
|
+
export type { RippleEle };
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/layout/EnLayoutContent.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import { EnLayoutContentProps } from './types';
|
|
2
8
|
/** 元始的外壳 */
|
|
3
9
|
export declare const EnLayoutContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, EnLayoutContentProps>> & string;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/layout/index.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
export { Layout, Layout as EnLayout, LayoutContent, LayoutContent as EnLayoutContent, LayoutHeader, LayoutHeader as EnLayoutHeader, LayoutFooter, LayoutFooter as EnLayoutFooter, LayoutSideBar, LayoutSideBar as EnLayoutSideBar, } from './layout';
|
|
2
8
|
export type { LayoutProps, LayoutSideBarProps, LayoutHeaderProps, LayoutFooterProps, } from './types';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/layout/layout.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import * as React from 'react';
|
|
2
8
|
import { InternalValueH as LayoutHeader } from './header';
|
|
3
9
|
import { InternalValueS as LayoutSideBar } from './sideBar';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/ripples/Content.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
7
|
+
/** 内容组件 */
|
|
8
|
+
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/ripples/LazyRippleEle.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
7
|
+
/****************************************************************************
|
|
8
|
+
* @Author earthnut
|
|
9
|
+
* @Email earthnut.dev@outlook.com
|
|
10
|
+
* @ProjectName website
|
|
11
|
+
* @FileName index.tsx
|
|
12
|
+
* @CreateDate 周四 12/12/2024
|
|
13
|
+
* @Description 涟漪
|
|
14
|
+
****************************************************************************/
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import { RipplesOptions } from '../../customHooks/useRipples/types';
|
|
17
|
+
import { RippleEle } from './types';
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* ### 一个 ripple 背景组件
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* *需要为该组件或父组件设置背景,否则即便的渲染了,效果不明显*
|
|
24
|
+
*
|
|
25
|
+
* 参数 props 属性:
|
|
26
|
+
* - children 内嵌的 ReactNode
|
|
27
|
+
* - style 更改显示的样式
|
|
28
|
+
* - option 初始化 ripples 的原始数据
|
|
29
|
+
* @param props 使用参数
|
|
30
|
+
* @version 0.0.1
|
|
31
|
+
* @see https://earthnut.dev/earthnut/lazy-background-ripple
|
|
32
|
+
* @example
|
|
33
|
+
* 使用:
|
|
34
|
+
*
|
|
35
|
+
* ```ts
|
|
36
|
+
* import { BackgroundRipple } from 'earthnut/BackgroundRipple';
|
|
37
|
+
* // 也可以全量导入
|
|
38
|
+
* // import { BackgroundRipple } from 'earthnut';
|
|
39
|
+
* ...
|
|
40
|
+
* const animationFrameId = useAnimationFrame();
|
|
41
|
+
*
|
|
42
|
+
* return <BackgroundRipple>
|
|
43
|
+
* ...
|
|
44
|
+
* </BackgroundRipple>
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
declare const LazyBackgroundRipple: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
49
|
+
option?: RipplesOptions;
|
|
50
|
+
} & React.RefAttributes<RippleEle>>;
|
|
51
|
+
export { LazyBackgroundRipple };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/ripples/RipplesEle.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import React from 'react';
|
|
2
|
-
import {
|
|
8
|
+
import { RipplesOptions } from '../../customHooks/useRipples/types';
|
|
3
9
|
import { RippleEle } from './types';
|
|
4
10
|
/**
|
|
5
11
|
*
|
|
@@ -31,5 +37,7 @@ import { RippleEle } from './types';
|
|
|
31
37
|
* ```
|
|
32
38
|
*
|
|
33
39
|
*/
|
|
34
|
-
declare const BackgroundRipple: React.ForwardRefExoticComponent<
|
|
40
|
+
declare const BackgroundRipple: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
41
|
+
option?: RipplesOptions;
|
|
42
|
+
} & React.RefAttributes<RippleEle>>;
|
|
35
43
|
export { BackgroundRipple };
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/ripples/index.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import { RippleEle } from './types';
|
|
2
8
|
export { BackgroundRipple } from './RipplesEle';
|
|
9
|
+
export { LazyBackgroundRipple } from './LazyRippleEle';
|
|
3
10
|
export type { Ripples, BackgroundRipplesProps, RipplesOptions, RippleImgUrl, } from '../../customHooks/useRipples/index';
|
|
4
11
|
export type { RippleEle };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@components/ripples/useOptionUpdate.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
7
|
+
import { Ripples, RipplesOptions } from '../../customHooks';
|
|
2
8
|
/**
|
|
3
9
|
* 更新参数数据
|
|
4
10
|
*/
|
|
5
|
-
export declare function useOptionUpdate(ripplesRef: React.RefObject<Ripples | null>,
|
|
11
|
+
export declare function useOptionUpdate(ripplesRef: React.RefObject<Ripples | null>, option: RipplesOptions | undefined): void;
|
package/customHooks/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/index.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
export { useInputIsComposing } from './useInputIsComposing';
|
|
2
8
|
export { useTimeId } from './useTimeId';
|
|
3
9
|
export { useAnimationFrameId } from './useAnimationFrame';
|
|
4
10
|
export { useRipples } from './useRipples/index';
|
|
11
|
+
export { useLazyRipples } from './useRipples/use-lazy-ripple';
|
|
5
12
|
export type { Ripples, BackgroundRipplesProps, RipplesOptions, RippleImgUrl, } from './useRipples/index';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useAnimationFrame.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
/****************************************************************************
|
|
2
8
|
* @Author earthnut
|
|
3
9
|
* @Email earthnut.dev@outlook.com
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useInputIsComposing.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
/****************************************************************************
|
|
2
8
|
* @Author earthnut
|
|
3
9
|
* @Email earthnut.dev@outlook.com
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useRipples/buildBackground/create-background-color.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import { Ripples } from '../ripplesClass';
|
|
2
8
|
/** 构建背景色 */
|
|
3
9
|
export declare function createBackgroundColor(this: Ripples): void;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useRipples/buildBackground/create-linear-gradient.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import { Ripples } from '../ripplesClass';
|
|
2
8
|
/** 构建渐变背景色图 */
|
|
3
9
|
export declare function createLinearGradient(this: Ripples): void;
|
package/customHooks/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
/** 通过尺寸创建一个默认图 */
|
|
2
8
|
export declare function createCanvasElementBySize(width: number, height: number): HTMLCanvasElement;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useRipples/buildBackground/default-background/createDefault.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
/** 构建默认的背景图 */
|
|
2
8
|
export declare function createDefault(width: number, height: number): ImageData;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useRipples/buildBackground/utils/bind-image.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import { Ripples } from '../../ripplesClass';
|
|
2
8
|
import { DrawImage } from '../../rippersData/fadeData';
|
|
3
9
|
/** 绑定图片 */
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useRipples/buildBackground/utils/create-canvas-element.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import { Ripples } from 'components/ripples';
|
|
2
8
|
/** 根据给出的 html 数据构建一个 canvas */
|
|
3
9
|
export declare function createCanvasElement(this: Ripples, img: CanvasImageSource): HTMLCanvasElement;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useRipples/buildBackground/utils/create-image-by-src.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
/** 根据给出的 src 获取一个 img 对象 */
|
|
2
8
|
export declare function createImageBySrc(src: string, width: number, height: number): HTMLImageElement;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* earthnut@customHooks/useRipples/buildBackground/utils/get-background-style.d.ts
|
|
4
|
+
* Copyright (c) 2025 earthnut.dev
|
|
5
|
+
* 请在项目根参看详细许可证明
|
|
6
|
+
*/
|
|
1
7
|
import { OriginStyle } from '../type';
|
|
2
8
|
/** 获取元素的样式 */
|
|
3
9
|
export declare function getBackgroundStyles(element: HTMLElement): OriginStyle;
|