essy-react-controls
Advanced tools
Comparing version 1.0.49 to 1.0.50
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){var a={};function t(n){if(a[n])return a[n].exports;var o=a[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var o in e)t.d(n,o,function(a){return e[a]}.bind(null,o));return n},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=6)}([function(e,a){e.exports=require("prop-types")},function(e,a){e.exports=require("react")},function(e,a){e.exports=require("essy-util-misc")},function(e,a){e.exports=require("essy-util-ui")},function(e,a){e.exports=require("essy-react-icons")},function(e,a){e.exports=require("essy-react-hooks")},function(e,a,t){"use strict";t.r(a),t.d(a,"Button",(function(){return b})),t.d(a,"ButtonGroup",(function(){return p})),t.d(a,"ButtonSplit",(function(){return y})),t.d(a,"Checkbox",(function(){return v})),t.d(a,"Input",(function(){return g})),t.d(a,"InputBasic",(function(){return h})),t.d(a,"SpikeLoader",(function(){return d})),t.d(a,"SpikeLoaderMask",(function(){return k})),t.d(a,"Toggle",(function(){return E}));var n=t(1),o=t.n(n),l=t(0),r=t.n(l),i=t(3),c=t(2),s=t(4);const u={small:8,medium:10,large:12};function d({small:e,medium:a,text:t,white:n}){const l=u[e?"small":a?"medium":"large"];return o.a.createElement("div",{className:Object(i.classNames)("erc-spike-loader",e&&"small",a&&"medium",n&&"white")},t.length?o.a.createElement("div",{className:"erc-spike-loader-text"},t):null,o.a.createElement("div",{className:"erc-spike-loader-icon"},Object(c.getArray)(l).map((e,a)=>o.a.createElement("div",{key:a}))))}function m(){return(m=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function b({active:e,alt:a,arrow:t,block:n,border:l,btnRef:r,cancel:u,children:b,clear:p,disabled:f,disabledClass:y,icon:v,iconSize:g,id:h,inverse:k,light:E,loading:x,minWidth:N,onClick:O,onMouseEnter:C,onMouseLeave:w,outline:j,secondary:R,small:q,style:S,text:M,title:T,warning:B,xsmall:I}){const P={className:Object(i.classNames)("erc-btn",e&&"active",a&&"alt",t&&"arrow",n&&"block",l&&"border",u&&"cancel",p&&"clear",y&&"disabled",k&&"inverse",E&&"light",void 0!==x&&"loader",j&&"outline",!a&&!p&&!R&&!B&&"primary",R&&"secondary",q&&"sm",N&&"min-width",B&&"warning",I&&"x-sm"),disabled:f||x,onClick:y?c.fnIdentity:O,...r&&{ref:r},...h&&{id:h},...C&&{onMouseEnter:C},...w&&{onMouseLeave:w},...S&&{style:S},...T&&{title:T}};return o.a.createElement("button",P,function(){const e=[];if(x)return o.a.createElement(d,m({key:"0"},q?{small:q}:{medium:!0}));if(v){const a=g||(q?[12,12]:[16,16]);e.push(o.a.createElement(s.Icon,{key:"1",height:a[1],icon:v,width:a[0]}))}if(M&&e.push(o.a.createElement("span",{key:"2",className:"text"},M)),t)e.push(o.a.createElement("span",{key:"3",className:"arrow"}));else if(b)return b;return e}())}function p({onClick:e,options:a,value:t}){const n=a.some(e=>!!e.labelAbove);return t=Array.isArray(t)?t:[t],o.a.createElement("div",{className:"erc-btn-group"+(n?" labels":"")},a.map((a,n)=>o.a.createElement(b,{key:n,border:!0,onClick:()=>e(a.value),primary:t.includes(a.value),secondary:!t.includes(a.value)},a.label,a.labelAbove&&o.a.createElement("span",{className:"erc-btn-group-label"},a.labelAbove))))}d.defaultProps={medium:!1,small:!1,text:"",white:!1},d.propTypes={medium:r.a.bool,small:r.a.bool,text:r.a.string,white:r.a.bool},b.defaultProps={active:!1,alt:!1,arrow:!1,block:!1,border:!1,cancel:!1,clear:!1,disabled:!1,icon:!1,inverse:!1,light:!1,minWidth:!1,onClick:c.fnIdentity,outline:!1,secondary:!1,small:!1,warning:!1,xsmall:!1},b.propTypes={active:r.a.bool,alt:r.a.bool,arrow:r.a.bool,block:r.a.bool,border:r.a.bool,btnRef:r.a.object,cancel:r.a.bool,clear:r.a.bool,disabled:r.a.bool,disabledClass:r.a.bool,icon:r.a.oneOfType([r.a.object,r.a.bool]),iconSize:r.a.array,id:r.a.string,inverse:r.a.bool,light:r.a.bool,loading:r.a.bool,minWidth:r.a.bool,onClick:r.a.func,onMouseEnter:r.a.func,onMouseLeave:r.a.func,outline:r.a.bool,secondary:r.a.bool,small:r.a.bool,style:r.a.object,text:r.a.string,title:r.a.string,warning:r.a.bool,xsmall:r.a.bool},p.propTypes={onClick:r.a.func.isRequired,options:r.a.array.isRequired,value:r.a.oneOfType([r.a.array,r.a.number,r.a.string]).isRequired};var f=t(5);function y({disabled:e,disabledBtn:a,items:t,onClick:l,onClickItem:r,small:c,text:s}){const[u,d]=Object(n.useState)(!1),m=Object(n.useCallback)(()=>d(!1),[]);return Object(f.useEventListener)(document,"click",m,u),o.a.createElement("div",{className:Object(i.classNames)("erc-btn-split",c&&"sm")},o.a.createElement("div",{className:"btns"},o.a.createElement(b,{disabled:e||a,onClick:l,small:c,text:s}),o.a.createElement(b,{arrow:!0,onClick:()=>d(!u),small:c})),u&&o.a.createElement("div",{className:"erc-btn-split-menu"},t.map((e,a)=>o.a.createElement("div",{key:a,className:"erc-btn-split-item",onClick:()=>function(e,a){d(!1),r(e,a)}(e,a)},e))))}function v({checked:e,children:a,className:t,indeterminate:n,onChange:l}){return o.a.createElement("label",{className:Object(i.classNames)("erc-checkbox",t)},o.a.createElement("input",{className:"erc-checkbox-default",checked:e,onChange:e=>l(e.target.checked),ref:e=>e&&(e.indeterminate=!!n),type:"checkbox"}),o.a.createElement("span",{className:"erc-checkbox-custom"}),o.a.createElement("span",{className:"erc-checkbox-content"},a))}function g({autoComplete:e,disabled:a,focusOnMount:t,inputRef:l,invalid:r,label:c,note:u,onBlur:d,onChange:m,onFocus:b,onKeyDown:p,passwordShow:f,textarea:y,type:v,validator:g,value:h}){l=l||Object(n.useRef)();const[k,E]=Object(n.useState)(!1),[x,N]=Object(n.useState)(!1),O=c.replace(/\s/g,""),C={disabled:a,name:O,onBlur:()=>w(!1),onChange:e=>m(e.target.value),onFocus:()=>w(!0),onKeyDown:p,type:x?"text":v,ref:l,value:h,...!e&&{autoComplete:"off"}};function w(e){e||d(),E(e),b(e)}return Object(n.useEffect)(()=>{t&&l.current.focus()},[]),o.a.createElement("div",{className:Object(i.classNames)("erc-input",a&&"disabled",k&&"focused",r&&!k&&"invalid",y&&"textarea",h.length&&"value")},o.a.createElement("label",{htmlFor:O},c),y?o.a.createElement("textarea",C):o.a.createElement("input",C),f&&h.length?o.a.createElement("div",{className:"icon-wrap",onClick:()=>N(!x)},o.a.createElement(s.Icon,{className:x?"active":"inactive",height:20,icon:s.icons.EyeIcon,width:20})):null,!k&&o.a.createElement("div",{className:"invalid",dangerouslySetInnerHTML:{__html:r||" "}}),u.length?o.a.createElement("div",{className:"note"},u):null)}function h({autoComplete:e,disabled:a,focusOnMount:t,inputRef:l,invalid:r,label:c,note:s,onBlur:u,onChange:d,onFocus:m,onKeyDown:b,placeholder:p,small:f,textarea:y,type:v,value:g}){l=l||Object(n.useRef)();const[h,k]=Object(n.useState)(!1),E={disabled:a,name:p?p.replace(/\s/g,""):"noname",onBlur:()=>x(!1),onChange:e=>d(e.target.value),onFocus:()=>x(!0),onKeyDown:b,placeholder:p,ref:l,type:v,value:g,...!e&&{autoComplete:"off"}};function x(e){e||u(),k(e),m(e)}return Object(n.useEffect)(()=>{t&&l.current.focus()},[]),o.a.createElement("div",{className:Object(i.classNames)("erc-input-basic",f&&"sm",r&&!h&&"invalid",c&&"label")},c&&o.a.createElement("label",null,c),y?o.a.createElement("textarea",E):o.a.createElement("input",E),!h&&"string"==typeof r&&o.a.createElement("div",{className:"invalid"},r),s.length?o.a.createElement("div",{className:"note"},s):null)}function k(e){return o.a.createElement("div",{className:"erc-spike-loader-mask"},o.a.createElement(d,e))}function E({disabled:e,error:a,on:t,onClick:n,text:l,white:r}){return o.a.createElement("div",{className:Object(i.classNames)("erc-toggle",t&&"on",a&&"error",r&&"white",e&&"disabled"),onClick:e?()=>{}:n},o.a.createElement("div",{className:"track"},o.a.createElement("div",{className:"knob"})),o.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:l}}))}y.defaultProps={disabled:!1,disabledBtn:!1,small:!1},y.propTypes={disabled:r.a.bool,disabledBtn:r.a.bool,items:r.a.array.isRequired,onClick:r.a.func.isRequired,onClickItem:r.a.func.isRequired,small:r.a.bool,text:r.a.string.isRequired},v.propTypes={checked:r.a.bool.isRequired,className:r.a.string,indeterminate:r.a.bool,onChange:r.a.func.isRequired},g.defaultProps={autoComplete:!0,disabled:!1,invalid:!1,note:"",onBlur:c.fnNoOp,onFocus:c.fnNoOp,onKeyDown:c.fnNoOp,passwordShow:!1,textarea:!1,type:"text",validator:c.fnNoOp},g.propTypes={autoComplete:r.a.bool,disabled:r.a.bool,focusOnMount:r.a.bool,invalid:r.a.oneOfType([r.a.bool,r.a.string]),inputRef:r.a.object,label:r.a.string.isRequired,note:r.a.string,onBlur:r.a.func,onChange:r.a.func.isRequired,onFocus:r.a.func,onKeyDown:r.a.func,passwordShow:r.a.bool,textarea:r.a.bool,type:r.a.string,validator:r.a.func,value:r.a.string.isRequired},h.defaultProps={autoComplete:!0,disabled:!1,invalid:!1,note:"",onBlur:c.fnNoOp,onFocus:c.fnNoOp,onKeyDown:c.fnNoOp,placeholder:"",type:"text"},h.propTypes={autoComplete:r.a.bool,disabled:r.a.bool,focusOnMount:r.a.bool,inputRef:r.a.object,invalid:r.a.oneOfType([r.a.bool,r.a.string]),label:r.a.string,note:r.a.string,onBlur:r.a.func,onChange:r.a.func.isRequired,onFocus:r.a.func,onKeyDown:r.a.func,placeholder:r.a.string,small:r.a.bool,textarea:r.a.bool,type:r.a.string,value:r.a.string.isRequired},E.defaultProps={disabled:!1,error:!1,on:!1,onClick:c.fnIdentity,text:"",white:!1},E.propTypes={disabled:r.a.bool,error:r.a.bool,on:r.a.bool,onClick:r.a.func,text:r.a.string,white:r.a.bool}}]); | ||
module.exports=function(e){var a={};function t(n){if(a[n])return a[n].exports;var o=a[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var o in e)t.d(n,o,function(a){return e[a]}.bind(null,o));return n},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=6)}([function(e,a){e.exports=require("prop-types")},function(e,a){e.exports=require("react")},function(e,a){e.exports=require("essy-util-misc")},function(e,a){e.exports=require("essy-util-ui")},function(e,a){e.exports=require("essy-react-icons")},function(e,a){e.exports=require("essy-react-hooks")},function(e,a,t){"use strict";t.r(a),t.d(a,"Button",(function(){return b})),t.d(a,"ButtonGroup",(function(){return p})),t.d(a,"ButtonSplit",(function(){return y})),t.d(a,"Checkbox",(function(){return v})),t.d(a,"Input",(function(){return g})),t.d(a,"InputBasic",(function(){return h})),t.d(a,"SpikeLoader",(function(){return d})),t.d(a,"SpikeLoaderMask",(function(){return k})),t.d(a,"Toggle",(function(){return E}));var n=t(1),o=t.n(n),l=t(0),r=t.n(l),i=t(3),c=t(2),s=t(4);const u={small:8,medium:10,large:12};function d({small:e,medium:a,text:t,white:n}){const l=u[e?"small":a?"medium":"large"];return o.a.createElement("div",{className:Object(i.classNames)("erc-spike-loader",e&&"small",a&&"medium",n&&"white")},t.length?o.a.createElement("div",{className:"erc-spike-loader-text"},t):null,o.a.createElement("div",{className:"erc-spike-loader-icon"},Object(c.getArray)(l).map((e,a)=>o.a.createElement("div",{key:a}))))}function m(){return(m=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function b({active:e,alt:a,arrow:t,block:n,border:l,btnRef:r,cancel:u,children:b,className:p,clear:f,disabled:y,disabledClass:v,icon:g,iconSize:h,id:k,inverse:E,light:x,loading:N,minWidth:O,onClick:C,onMouseEnter:w,onMouseLeave:j,outline:R,secondary:q,small:S,style:M,text:T,title:B,warning:I,xsmall:P}){const _={className:Object(i.classNames)("erc-btn",e&&"active",a&&"alt",t&&"arrow",n&&"block",l&&"border",u&&"cancel",p&&p,f&&"clear",v&&"disabled",E&&"inverse",x&&"light",void 0!==N&&"loader",R&&"outline",!a&&!f&&!q&&!I&&"primary",q&&"secondary",S&&"sm",O&&"min-width",I&&"warning",P&&"x-sm"),disabled:y||N,onClick:v?c.fnIdentity:C,...r&&{ref:r},...k&&{id:k},...w&&{onMouseEnter:w},...j&&{onMouseLeave:j},...M&&{style:M},...B&&{title:B}};return o.a.createElement("button",_,function(){const e=[];if(N)return o.a.createElement(d,m({key:"0"},S?{small:S}:{medium:!0}));if(g){const a=h||(S?[12,12]:[16,16]);e.push(o.a.createElement(s.Icon,{key:"1",height:a[1],icon:g,width:a[0]}))}if(T&&e.push(o.a.createElement("span",{key:"2",className:"text"},T)),t)e.push(o.a.createElement("span",{key:"3",className:"arrow"}));else if(b)return b;return e}())}function p({onClick:e,options:a,value:t}){const n=a.some(e=>!!e.labelAbove);return t=Array.isArray(t)?t:[t],o.a.createElement("div",{className:"erc-btn-group"+(n?" labels":"")},a.map((a,n)=>o.a.createElement(b,{key:n,border:!0,onClick:()=>e(a.value),primary:t.includes(a.value),secondary:!t.includes(a.value)},a.label,a.labelAbove&&o.a.createElement("span",{className:"erc-btn-group-label"},a.labelAbove))))}d.defaultProps={medium:!1,small:!1,text:"",white:!1},d.propTypes={medium:r.a.bool,small:r.a.bool,text:r.a.string,white:r.a.bool},b.defaultProps={active:!1,alt:!1,arrow:!1,block:!1,border:!1,cancel:!1,clear:!1,disabled:!1,icon:!1,inverse:!1,light:!1,minWidth:!1,onClick:c.fnIdentity,outline:!1,secondary:!1,small:!1,warning:!1,xsmall:!1},b.propTypes={active:r.a.bool,alt:r.a.bool,arrow:r.a.bool,block:r.a.bool,border:r.a.bool,btnRef:r.a.object,cancel:r.a.bool,className:r.a.string,clear:r.a.bool,disabled:r.a.bool,disabledClass:r.a.bool,icon:r.a.oneOfType([r.a.object,r.a.bool]),iconSize:r.a.array,id:r.a.string,inverse:r.a.bool,light:r.a.bool,loading:r.a.bool,minWidth:r.a.bool,onClick:r.a.func,onMouseEnter:r.a.func,onMouseLeave:r.a.func,outline:r.a.bool,secondary:r.a.bool,small:r.a.bool,style:r.a.object,text:r.a.string,title:r.a.string,warning:r.a.bool,xsmall:r.a.bool},p.propTypes={onClick:r.a.func.isRequired,options:r.a.array.isRequired,value:r.a.oneOfType([r.a.array,r.a.number,r.a.string]).isRequired};var f=t(5);function y({disabled:e,disabledBtn:a,items:t,onClick:l,onClickItem:r,small:c,text:s}){const[u,d]=Object(n.useState)(!1),m=Object(n.useCallback)(()=>d(!1),[]);return Object(f.useEventListener)(document,"click",m,u),o.a.createElement("div",{className:Object(i.classNames)("erc-btn-split",c&&"sm")},o.a.createElement("div",{className:"btns"},o.a.createElement(b,{disabled:e||a,onClick:l,small:c,text:s}),o.a.createElement(b,{arrow:!0,onClick:()=>d(!u),small:c})),u&&o.a.createElement("div",{className:"erc-btn-split-menu"},t.map((e,a)=>o.a.createElement("div",{key:a,className:"erc-btn-split-item",onClick:()=>function(e,a){d(!1),r(e,a)}(e,a)},e))))}function v({checked:e,children:a,className:t,indeterminate:n,onChange:l}){return o.a.createElement("label",{className:Object(i.classNames)("erc-checkbox",t)},o.a.createElement("input",{className:"erc-checkbox-default",checked:e,onChange:e=>l(e.target.checked),ref:e=>e&&(e.indeterminate=!!n),type:"checkbox"}),o.a.createElement("span",{className:"erc-checkbox-custom"}),o.a.createElement("span",{className:"erc-checkbox-content"},a))}function g({autoComplete:e,disabled:a,focusOnMount:t,inputRef:l,invalid:r,label:c,note:u,onBlur:d,onChange:m,onFocus:b,onKeyDown:p,passwordShow:f,textarea:y,type:v,validator:g,value:h}){l=l||Object(n.useRef)();const[k,E]=Object(n.useState)(!1),[x,N]=Object(n.useState)(!1),O=c.replace(/\s/g,""),C={disabled:a,name:O,onBlur:()=>w(!1),onChange:e=>m(e.target.value),onFocus:()=>w(!0),onKeyDown:p,type:x?"text":v,ref:l,value:h,...!e&&{autoComplete:"off"}};function w(e){e||d(),E(e),b(e)}return Object(n.useEffect)(()=>{t&&l.current.focus()},[]),o.a.createElement("div",{className:Object(i.classNames)("erc-input",a&&"disabled",k&&"focused",r&&!k&&"invalid",y&&"textarea",h.length&&"value")},o.a.createElement("label",{htmlFor:O},c),y?o.a.createElement("textarea",C):o.a.createElement("input",C),f&&h.length?o.a.createElement("div",{className:"icon-wrap",onClick:()=>N(!x)},o.a.createElement(s.Icon,{className:x?"active":"inactive",height:20,icon:s.icons.EyeIcon,width:20})):null,!k&&o.a.createElement("div",{className:"invalid",dangerouslySetInnerHTML:{__html:r||" "}}),u.length?o.a.createElement("div",{className:"note"},u):null)}function h({autoComplete:e,disabled:a,focusOnMount:t,inputRef:l,invalid:r,label:c,note:s,onBlur:u,onChange:d,onFocus:m,onKeyDown:b,placeholder:p,small:f,textarea:y,type:v,value:g}){l=l||Object(n.useRef)();const[h,k]=Object(n.useState)(!1),E={disabled:a,name:p?p.replace(/\s/g,""):"noname",onBlur:()=>x(!1),onChange:e=>d(e.target.value),onFocus:()=>x(!0),onKeyDown:b,placeholder:p,ref:l,type:v,value:g,...!e&&{autoComplete:"off"}};function x(e){e||u(),k(e),m(e)}return Object(n.useEffect)(()=>{t&&l.current.focus()},[]),o.a.createElement("div",{className:Object(i.classNames)("erc-input-basic",f&&"sm",r&&!h&&"invalid",c&&"label")},c&&o.a.createElement("label",null,c),y?o.a.createElement("textarea",E):o.a.createElement("input",E),!h&&"string"==typeof r&&o.a.createElement("div",{className:"invalid"},r),s.length?o.a.createElement("div",{className:"note"},s):null)}function k(e){return o.a.createElement("div",{className:"erc-spike-loader-mask"},o.a.createElement(d,e))}function E({disabled:e,error:a,on:t,onClick:n,text:l,white:r}){return o.a.createElement("div",{className:Object(i.classNames)("erc-toggle",t&&"on",a&&"error",r&&"white",e&&"disabled"),onClick:e?()=>{}:n},o.a.createElement("div",{className:"track"},o.a.createElement("div",{className:"knob"})),o.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:l}}))}y.defaultProps={disabled:!1,disabledBtn:!1,small:!1},y.propTypes={disabled:r.a.bool,disabledBtn:r.a.bool,items:r.a.array.isRequired,onClick:r.a.func.isRequired,onClickItem:r.a.func.isRequired,small:r.a.bool,text:r.a.string.isRequired},v.propTypes={checked:r.a.bool.isRequired,className:r.a.string,indeterminate:r.a.bool,onChange:r.a.func.isRequired},g.defaultProps={autoComplete:!0,disabled:!1,invalid:!1,note:"",onBlur:c.fnNoOp,onFocus:c.fnNoOp,onKeyDown:c.fnNoOp,passwordShow:!1,textarea:!1,type:"text",validator:c.fnNoOp},g.propTypes={autoComplete:r.a.bool,disabled:r.a.bool,focusOnMount:r.a.bool,invalid:r.a.oneOfType([r.a.bool,r.a.string]),inputRef:r.a.object,label:r.a.string.isRequired,note:r.a.string,onBlur:r.a.func,onChange:r.a.func.isRequired,onFocus:r.a.func,onKeyDown:r.a.func,passwordShow:r.a.bool,textarea:r.a.bool,type:r.a.string,validator:r.a.func,value:r.a.string.isRequired},h.defaultProps={autoComplete:!0,disabled:!1,invalid:!1,note:"",onBlur:c.fnNoOp,onFocus:c.fnNoOp,onKeyDown:c.fnNoOp,placeholder:"",type:"text"},h.propTypes={autoComplete:r.a.bool,disabled:r.a.bool,focusOnMount:r.a.bool,inputRef:r.a.object,invalid:r.a.oneOfType([r.a.bool,r.a.string]),label:r.a.string,note:r.a.string,onBlur:r.a.func,onChange:r.a.func.isRequired,onFocus:r.a.func,onKeyDown:r.a.func,placeholder:r.a.string,small:r.a.bool,textarea:r.a.bool,type:r.a.string,value:r.a.string.isRequired},E.defaultProps={disabled:!1,error:!1,on:!1,onClick:c.fnIdentity,text:"",white:!1},E.propTypes={disabled:r.a.bool,error:r.a.bool,on:r.a.bool,onClick:r.a.func,text:r.a.string,white:r.a.bool}}]); |
{ | ||
"name": "essy-react-controls", | ||
"version": "1.0.49", | ||
"version": "1.0.50", | ||
"description": "React control components.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
41494