Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

essy-react-controls

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

essy-react-controls - npm Package Compare versions

Comparing version 1.0.50 to 1.0.51

2

index.js

@@ -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,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||"&nbsp;"}}),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),s=t(2),c=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(s.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?s.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)if(o.a.isValidElement(g))e.push(g);else{const a=h||(S?[12,12]:[16,16]);e.push(o.a.createElement(c.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:s.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:s,text:c}){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",s&&"sm")},o.a.createElement("div",{className:"btns"},o.a.createElement(b,{disabled:e||a,onClick:l,small:s,text:c}),o.a.createElement(b,{arrow:!0,onClick:()=>d(!u),small:s})),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:s,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=s.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},s),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(c.Icon,{className:x?"active":"inactive",height:20,icon:c.icons.EyeIcon,width:20})):null,!k&&o.a.createElement("div",{className:"invalid",dangerouslySetInnerHTML:{__html:r||"&nbsp;"}}),u.length?o.a.createElement("div",{className:"note"},u):null)}function h({autoComplete:e,disabled:a,focusOnMount:t,inputRef:l,invalid:r,label:s,note:c,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",s&&"label")},s&&o.a.createElement("label",null,s),y?o.a.createElement("textarea",E):o.a.createElement("input",E),!h&&"string"==typeof r&&o.a.createElement("div",{className:"invalid"},r),c.length?o.a.createElement("div",{className:"note"},c):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:s.fnNoOp,onFocus:s.fnNoOp,onKeyDown:s.fnNoOp,passwordShow:!1,textarea:!1,type:"text",validator:s.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:s.fnNoOp,onFocus:s.fnNoOp,onKeyDown:s.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:s.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.50",
"version": "1.0.51",
"description": "React control components.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc