react-awesome-skeleton
Advanced tools
Comparing version 0.0.27 to 0.0.28
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("SkeletonPlugin",[],t):"object"==typeof exports?exports.SkeletonPlugin=t():e.SkeletonPlugin=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=2)}([function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){var r; | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("SkeletonPlugin",[],t):"object"==typeof exports?exports.SkeletonPlugin=t():e.SkeletonPlugin=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=2)}([function(e,t,r){"use strict";e.exports=r(3)},function(e,t,r){var n; | ||
/*! | ||
@@ -6,3 +6,3 @@ Copyright (c) 2017 Jed Watson. | ||
http://jedwatson.github.io/classnames | ||
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict"; | ||
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var u=typeof n;if("string"===u||"number"===u)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===u)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){e.exports=r(6)},function(e,t,r){"use strict"; | ||
/** @license React v16.11.0 | ||
@@ -15,3 +15,3 @@ * react.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var r=n(4),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113;o&&Symbol.for("react.suspense_list");var A=o?Symbol.for("react.memo"):60115,h=o?Symbol.for("react.lazy"):60116;o&&Symbol.for("react.fundamental"),o&&Symbol.for("react.responder"),o&&Symbol.for("react.scope");var y="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function v(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||k}function m(){}function b(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||k}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var x=b.prototype=new m;x.constructor=b,r(x,v.prototype),x.isPureReactComponent=!0;var w={current:null},j={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,o={},i=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:a,type:e,key:i,ref:l,props:o,_owner:j.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var B=/\/+/g,$=[];function P(e,t,n,r){if($.length){var o=$.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function U(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>$.length&&$.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case a:case i:s=!0}}if(s)return r(o,t,""===n?"."+N(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+N(l=t[c],c);s+=e(l,u,r,o)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=y&&t[y]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(l=t.next()).done;)s+=e(l=l.value,u=n+N(l,c++),r,o);else if("object"===l)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return s}(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function q(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?I(e,r,n,(function(e){return e})):null!=e&&(E(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(B,"$&/")+"/")+n)),r.push(e))}function I(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(B,"$&/")+"/"),R(e,q,t=P(t,a,r,o)),U(t)}function W(){var e=w.current;if(null===e)throw Error(g(321));return e}var z={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return I(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,M,t=P(null,null,t,n)),U(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return I(e,t,null,(function(e){return e})),t},only:function(e){if(!E(e))throw Error(g(143));return e}},createRef:function(){return{current:null}},Component:v,PureComponent:b,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:h,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:A,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return W().useCallback(e,t)},useContext:function(e,t){return W().useContext(e,t)},useEffect:function(e,t){return W().useEffect(e,t)},useImperativeHandle:function(e,t,n){return W().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return W().useLayoutEffect(e,t)},useMemo:function(e,t){return W().useMemo(e,t)},useReducer:function(e,t,n){return W().useReducer(e,t,n)},useRef:function(e){return W().useRef(e)},useState:function(e){return W().useState(e)},Fragment:l,Profiler:c,StrictMode:s,Suspense:d,createElement:_,cloneElement:function(e,t,n){if(null==e)throw Error(g(267,e));var o=r({},e.props),i=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=j.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!O.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:a,type:e.type,key:i,ref:l,props:o,_owner:s}},createFactory:function(e){var t=_.bind(null,e);return t.type=e,t},isValidElement:E,version:"16.11.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:w,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:r}},D={default:z},F=D&&z||D;e.exports=F.default||F},function(e,t,n){"use strict"; | ||
*/var n=r(4),o="function"==typeof Symbol&&Symbol.for,u=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113;o&&Symbol.for("react.suspense_list");var d=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116;o&&Symbol.for("react.fundamental"),o&&Symbol.for("react.responder"),o&&Symbol.for("react.scope");var h="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function j(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||v}function O(){}function S(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||v}j.prototype.isReactComponent={},j.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},j.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=j.prototype;var w=S.prototype=new O;w.constructor=S,n(w,j.prototype),w.isPureReactComponent=!0;var x={current:null},_={current:null},k=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function $(e,t,r){var n,o={},i=null,c=null;if(null!=t)for(n in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,n)&&!C.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+2];o.children=a}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===o[n]&&(o[n]=l[n]);return{$$typeof:u,type:e,key:i,ref:c,props:o,_owner:_.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var P=/\/+/g,R=[];function A(e,t,r,n){if(R.length){var o=R.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.push(e)}function q(e,t,r){return null==e?0:function e(t,r,n,o){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var l=!1;if(null===t)l=!0;else switch(c){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case u:case i:l=!0}}if(l)return n(o,t,""===r?"."+M(t,0):r),1;if(l=0,r=""===r?".":r+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s=r+M(c=t[a],a);l+=e(c,s,n,o)}else if(null===t||"object"!=typeof t?s=null:s="function"==typeof(s=h&&t[h]||t["@@iterator"])?s:null,"function"==typeof s)for(t=s.call(t),a=0;!(c=t.next()).done;)l+=e(c=c.value,s=r+M(c,a++),n,o);else if("object"===c)throw n=""+t,Error(b(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return l}(e,"",t,r)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function U(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?T(e,n,r,(function(e){return e})):null!=e&&(E(e)&&(e=function(e,t){return{$$typeof:u,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+r)),n.push(e))}function T(e,t,r,n,o){var u="";null!=r&&(u=(""+r).replace(P,"$&/")+"/"),q(e,U,t=A(t,u,n,o)),N(t)}function F(){var e=x.current;if(null===e)throw Error(b(321));return e}var L={Children:{map:function(e,t,r){if(null==e)return e;var n=[];return T(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;q(e,I,t=A(null,null,t,r)),N(t)},count:function(e){return q(e,(function(){return null}),null)},toArray:function(e){var t=[];return T(e,t,null,(function(e){return e})),t},only:function(e){if(!E(e))throw Error(b(143));return e}},createRef:function(){return{current:null}},Component:j,PureComponent:S,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return F().useCallback(e,t)},useContext:function(e,t){return F().useContext(e,t)},useEffect:function(e,t){return F().useEffect(e,t)},useImperativeHandle:function(e,t,r){return F().useImperativeHandle(e,t,r)},useDebugValue:function(){},useLayoutEffect:function(e,t){return F().useLayoutEffect(e,t)},useMemo:function(e,t){return F().useMemo(e,t)},useReducer:function(e,t,r){return F().useReducer(e,t,r)},useRef:function(e){return F().useRef(e)},useState:function(e){return F().useState(e)},Fragment:c,Profiler:a,StrictMode:l,Suspense:y,createElement:$,cloneElement:function(e,t,r){if(null==e)throw Error(b(267,e));var o=n({},e.props),i=e.key,c=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(c=t.ref,l=_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)k.call(t,s)&&!C.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==a?a[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){a=Array(s);for(var f=0;f<s;f++)a[f]=arguments[f+2];o.children=a}return{$$typeof:u,type:e.type,key:i,ref:c,props:o,_owner:l}},createFactory:function(e){var t=$.bind(null,e);return t.type=e,t},isValidElement:E,version:"16.11.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:x,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:n}},z={default:L},D=z&&L||z;e.exports=D.default||D},function(e,t,r){"use strict"; | ||
/* | ||
@@ -21,3 +21,3 @@ object-assign | ||
@license MIT | ||
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){l=r(n);for(var f=0;f<l.length;f++)a.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){(e.exports=n(6)(!0)).push([e.i,"@keyframes skeleton-avatar-loading{0%{background-position:100% 50%}100%{background-position:0% 50%}}.skeleton{display:flex;width:100%}.skeleton .skeleton-avatar{background:#f2f2f2;display:inline-block;width:32px;height:32px;line-height:32px}.skeleton .skeleton-avatar-circle{border-radius:50%}.skeleton .skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.skeleton .skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.skeleton-content{flex:1 1}.skeleton-content .skeleton-title{width:100%;height:20;margin-top:20;background-color:#f2f2f2}.skeleton-content .skeleton-paragraph{padding:0}.skeleton-content .skeleton-paragraph>li{width:100%;height:20;list-style:none;background-color:#f2f2f2}.skeleton-content .skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.skeleton-content .skeleton-paragraph>li+li{margin-top:16px}.skeleton.skeleton-active .skeleton-content .skeleton-title,.skeleton.skeleton-active .skeleton-content .skeleton-paragraph>li{background:linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);background-size:400% 100%;animation:skeleton-avatar-loading 1.4s ease infinite}.skeleton.skeleton-active .skeleton-avatar{background:linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);background-size:400% 100%;animation:skeleton-avatar-loading 1.4s ease infinite}\n","",{version:3,sources:["index.scss"],names:[],mappings:"AAAA,mCAAmC,GAAG,4BAA4B,CAAC,KAAK,0BAA0B,CAAC,CAAC,UAAU,YAAY,CAAC,UAAU,CAAC,2BAA2B,kBAAkB,CAAC,oBAAoB,CAAC,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,kCAAkC,iBAAiB,CAAC,8BAA8B,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,8BAA8B,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,kBAAkB,QAAM,CAAC,kCAAkC,UAAU,CAAC,SAAS,CAAC,aAAa,CAAC,wBAAwB,CAAC,sCAAsC,SAAS,CAAC,yCAAyC,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,wBAAwB,CAAC,yFAAyF,SAAS,CAAC,4CAA4C,eAAe,CAAC,+HAA+H,wEAAwE,CAAC,yBAAyB,CAAC,oDAAoD,CAAC,2CAA2C,wEAAwE,CAAC,yBAAyB,CAAC,oDAAoD",file:"index.scss",sourcesContent:["@keyframes skeleton-avatar-loading{0%{background-position:100% 50%}100%{background-position:0% 50%}}.skeleton{display:flex;width:100%}.skeleton .skeleton-avatar{background:#f2f2f2;display:inline-block;width:32px;height:32px;line-height:32px}.skeleton .skeleton-avatar-circle{border-radius:50%}.skeleton .skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.skeleton .skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.skeleton-content{flex:1}.skeleton-content .skeleton-title{width:100%;height:20;margin-top:20;background-color:#f2f2f2}.skeleton-content .skeleton-paragraph{padding:0}.skeleton-content .skeleton-paragraph>li{width:100%;height:20;list-style:none;background-color:#f2f2f2}.skeleton-content .skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.skeleton-content .skeleton-paragraph>li+li{margin-top:16px}.skeleton.skeleton-active .skeleton-content .skeleton-title,.skeleton.skeleton-active .skeleton-content .skeleton-paragraph>li{background:linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);background-size:400% 100%;animation:skeleton-avatar-loading 1.4s ease infinite}.skeleton.skeleton-active .skeleton-avatar{background:linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);background-size:400% 100%;animation:skeleton-avatar-loading 1.4s ease infinite}\n"]}])},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}var i,l,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var i=0;i<e.length;i++){var l=e[i];null!=l[0]&&r[l[0]]||(n&&!l[2]?l[2]=n:n&&(l[2]="(".concat(l[2],") and (").concat(n,")")),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=(n(5),n(1)),a=n.n(o);class i extends r.Component{constructor(){super(...arguments),this.getWidth=e=>{const{width:t,rows:n=2}=this.props;return Array.isArray(t)?t[e]:n-1===e?t:void 0}}render(){const{rows:e,className:t,style:n,prefixCls:o}=this.props,i=[...Array(e)].map((e,t)=>r.createElement("li",{key:t,style:{width:this.getWidth(t)}}));return r.createElement("ul",{className:a()(o,t),style:n},i)}}var l=i;var s=({className:e,width:t,style:n,prefixCls:o})=>r.createElement("h3",{className:a()(o,e),style:Object.assign({width:t},n)});class c extends r.Component{render(){const{prefixCls:e,className:t,style:n,size:o,shape:i,order:l}=this.props,s=a()({[`${e}-lg`]:"large"===o,[`${e}-sm`]:"small"===o}),c=a()({[`${e}-circle`]:"circle"===i,[`${e}-square`]:"square"===i}),u="number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},f={order:l};return r.createElement("span",{className:a()(e,t,s,c),style:Object.assign(Object.assign(Object.assign({},u),n),f)})}}c.defaultProps={size:"large",order:0};var u=c;const f=r.createContext(null).Consumer;function p(e){return e&&"object"==typeof e?e:{}}class d extends r.Component{constructor(){super(...arguments),this.renderSkeleton=()=>{const{prefixCls:e="homework-skeleton",active:t,title:n,paragraph:o,avatar:i,className:c,children:f,loading:d}=this.props;if(d||!("loading"in this.props)){const f=!!i,d=!!n,A=!!o;let h,y;if(f){const t=Object.assign(Object.assign({prefixCls:`${e}-avatar`},function(e,t){return e&&!t?{shape:"square"}:{shape:"circle"}}(d,A)),p(i));h=r.createElement(u,Object.assign({},t))}if(d||A){let t,a;if(d){const o=Object.assign(Object.assign({prefixCls:`${e}-title`},function(e,t){let n={};return e&&t&&(n.width="50%"),!e&&t&&(n.width="35%"),n}(f,A)),p(n));t=r.createElement(s,Object.assign({},o))}if(A){const t=Object.assign(Object.assign({prefixCls:`${e}-paragraph`},function(e,t){let n={};return e&&t||(n.width="65%"),n.rows=!e&&t?3:2,n}(f,d)),p(o));a=r.createElement(l,Object.assign({},t))}y=r.createElement("div",{className:`${e}-content`},t,a)}const g=a()(e,c,{[`${e}-with-avatar`]:f,[`${e}-active`]:t});return r.createElement("div",{className:g},h,y)}return f}}render(){return r.createElement(f,null,this.renderSkeleton)}}d.defaultProps={avatar:!1,title:!0,paragraph:!0};var A=d;t.default=A}])})); | ||
*/var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,c,l=i(e),a=1;a<arguments.length;a++){for(var s in r=Object(arguments[a]))o.call(r,s)&&(l[s]=r[s]);if(n){c=n(r);for(var f=0;f<c.length;f++)u.call(r,c[f])&&(l[c[f]]=r[c[f]])}}return l}},function(e,t,r){},function(e,t,r){"use strict";r.r(t);var n=r(0),o=(r(5),r(1)),u=r.n(o);class i extends n.Component{constructor(){super(...arguments),this.getWidth=e=>{const{width:t,rows:r=2}=this.props;return Array.isArray(t)?t[e]:r-1===e?t:void 0}}render(){const{rows:e,className:t,style:r,prefixCls:o}=this.props,i=[...Array(e)].map((e,t)=>n.createElement("li",{key:t,style:{width:this.getWidth(t)}}));return n.createElement("ul",{className:u()(o,t),style:r},i)}}var c=i;var l=({className:e,width:t,style:r,prefixCls:o})=>n.createElement("h3",{className:u()(o,e),style:Object.assign({width:t},r)});class a extends n.Component{render(){const{prefixCls:e,className:t,style:r,size:o,shape:i,order:c}=this.props,l=u()({[`${e}-lg`]:"large"===o,[`${e}-sm`]:"small"===o}),a=u()({[`${e}-circle`]:"circle"===i,[`${e}-square`]:"square"===i}),s="number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},f={order:c};return n.createElement("span",{className:u()(e,t,l,a),style:Object.assign(Object.assign(Object.assign({},s),r),f)})}}a.defaultProps={size:"large",order:0};var s=a;const f=n.createContext(null).Consumer;function p(e){return e&&"object"==typeof e?e:{}}class y extends n.Component{constructor(){super(...arguments),this.renderSkeleton=()=>{const{prefixCls:e="homework-skeleton",active:t,title:r,paragraph:o,avatar:i,className:a,children:f,loading:y}=this.props;if(y||!("loading"in this.props)){const f=!!i,y=!!r,d=!!o;let m,h;if(f){const t=Object.assign(Object.assign({prefixCls:`${e}-avatar`},function(e,t){return e&&!t?{shape:"square"}:{shape:"circle"}}(y,d)),p(i));m=n.createElement(s,Object.assign({},t))}if(y||d){let t,u;if(y){const o=Object.assign(Object.assign({prefixCls:`${e}-title`},function(e,t){let r={};return e&&t&&(r.width="50%"),!e&&t&&(r.width="35%"),r}(f,d)),p(r));t=n.createElement(l,Object.assign({},o))}if(d){const t=Object.assign(Object.assign({prefixCls:`${e}-paragraph`},function(e,t){let r={};return e&&t||(r.width="65%"),r.rows=!e&&t?3:2,r}(f,y)),p(o));u=n.createElement(c,Object.assign({},t))}h=n.createElement("div",{className:`${e}-content`},t,u)}const b=u()(e,a,{[`${e}-with-avatar`]:f,[`${e}-active`]:t});return n.createElement("div",{className:b},m,h)}return f}}render(){return n.createElement(f,null,this.renderSkeleton)}}y.defaultProps={avatar:!1,title:!0,paragraph:!0};var d=y;t.default=d}])})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "react-awesome-skeleton", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"description": " better loading effect", | ||
@@ -30,4 +30,3 @@ "main": "dist/index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -34,0 +33,0 @@ "@babel/cli": "^7.6.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14
280490
129
1