react-bootstrap-button-loader
Version:
React ButtonLoader with Bootstrap flavor
1 lines • 1.95 kB
JavaScript
module.exports=function(e){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}var t={};return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=4)}([function(e,n){e.exports=require("react")},function(e,n){e.exports=require("prop-types")},function(e,n,t){"use strict";function r(){return r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},r.apply(this,arguments)}function o(e,n){if(null==e)return{};var t,r,o=i(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function i(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}function l(e){var n=e.spinColor,t=void 0===n?"#fff":n,i=e.spinConfig,l=void 0===i?{length:4,lines:15,radius:3,width:2}:i,p=e.spinAlignment,u=void 0===p?"left":p,s=o(e,["spinColor","spinConfig","spinAlignment"]),c={display:"inline-block",height:"11px",position:"relative",width:"16px"},d={display:"inline-block",float:u+" !important",padding:"0 10px"};return a.a.createElement("div",r({style:d},s),a.a.createElement("div",{style:c},a.a.createElement(f.a,r({},l,{color:t,loaded:!1}))))}Object.defineProperty(n,"__esModule",{value:!0});var p=t(0),a=t.n(p),u=t(1),s=t.n(u),c=t(3),f=t.n(c),d={spinColor:s.a.string,spinConfig:s.a.object,spinAlignment:s.a.string};l.propTypes=d,n.default=l},function(e,n){e.exports=require("react-loader")},function(e,n,t){e.exports=t(2)}]);