New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jouwomgeving/ui-button

Package Overview
Dependencies
Maintainers
4
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jouwomgeving/ui-button - npm Package Compare versions

Comparing version 0.0.2-alpha.99db6118 to 0.0.2-alpha.9b5c0cd8

2

dist/bundle.js

@@ -1,1 +0,1 @@

module.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,e,n){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1157)}({1077:function(t,e){"use strict";var n=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null};t.exports=n},1078:function(t,e){"use strict";function n(t,e,n){if(!t)return null;var o={};for(var i in t)r.call(t,i)&&(o[i]=e.call(n,t[i],i,t));return o}var r=Object.prototype.hasOwnProperty;t.exports=n},1079:function(t,e){"use strict";function n(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+t).replace(e,function(t){return n[t]});return"$"+r}function r(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+r).replace(e,function(t){return n[t]})}var o={escape:n,unescape:r};t.exports=o},1080:function(t,e,n){"use strict";var r=n(91),o=(n(77),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},u=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},a=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},l=function(t,e,n,r,o){var i=this;if(i.instancePool.length){var u=i.instancePool.pop();return i.call(u,t,e,n,r,o),u}return new i(t,e,n,r,o)},s=function(t){var e=this;t instanceof e?void 0:r("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},c=10,f=o,p=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||f,n.poolSize||(n.poolSize=c),n.release=s,n},d={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:u,fourArgumentPooler:a,fiveArgumentPooler:l};t.exports=d},1081:function(t,e,n){"use strict";var r=n(168),o=n(1082),i=n(378),u=n(1083),a=n(1084),l=n(40),s=n(1086),c=n(1087),f=n(1088),p=(n(78),l.createElement),d=l.createFactory,y=l.cloneElement,v=r,h={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:f},Component:i,createElement:p,cloneElement:y,isValidElement:l.isValidElement,PropTypes:s,createClass:u.createClass,createFactory:d,createMixin:function(t){return t},DOM:a,version:c,__spread:v};t.exports=h},1082:function(t,e,n){"use strict";function r(t){return(""+t).replace(g,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var r=t.func,o=t.context;r.call(o,e,t.count++)}function u(t,e,n){if(null==t)return t;var r=o.getPooled(e,n);m(t,i,r),o.release(r)}function a(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function l(t,e,n){var o=t.result,i=t.keyPrefix,u=t.func,a=t.context,l=u.call(a,e,t.count++);Array.isArray(l)?s(l,o,n,h.thatReturnsArgument):null!=l&&(v.isValidElement(l)&&(l=v.cloneAndReplaceKey(l,i+(!l.key||e&&e.key===l.key?"":r(l.key)+"/")+n)),o.push(l))}function s(t,e,n,o,i){var u="";null!=n&&(u=r(n)+"/");var s=a.getPooled(e,u,o,i);m(t,l,s),a.release(s)}function c(t,e,n){if(null==t)return t;var r=[];return s(t,r,null,e,n),r}function f(t,e,n){return null}function p(t,e){return m(t,f,null)}function d(t){var e=[];return s(t,e,null,h.thatReturnsArgument),e}var y=n(1080),v=n(40),h=n(167),m=n(1089),b=y.twoArgumentPooler,E=y.fourArgumentPooler,g=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},y.addPoolingTo(o,b),a.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},y.addPoolingTo(a,E);var x={forEach:u,map:c,mapIntoWithKeyPrefixInternal:s,count:p,toArray:d};t.exports=x},1083:function(t,e,n){"use strict";function r(t,e){var n=_.hasOwnProperty(e)?_[e]:null;O.hasOwnProperty(e)&&(n!==g.OVERRIDE_BASE?f("73",e):void 0),t&&(n!==g.DEFINE_MANY&&n!==g.DEFINE_MANY_MERGED?f("74",e):void 0)}function o(t,e){if(e){"function"==typeof e?f("75"):void 0,y.isValidElement(e)?f("76"):void 0;var n=t.prototype,o=n.__reactAutoBindPairs;e.hasOwnProperty(E)&&P.mixins(t,e.mixins);for(var i in e)if(e.hasOwnProperty(i)&&i!==E){var u=e[i],s=n.hasOwnProperty(i);if(r(s,i),P.hasOwnProperty(i))P[i](t,u);else{var c=_.hasOwnProperty(i),p="function"==typeof u,d=p&&!c&&!s&&e.autobind!==!1;if(d)o.push(i,u),n[i]=u;else if(s){var v=_[i];!c||v!==g.DEFINE_MANY_MERGED&&v!==g.DEFINE_MANY?f("77",v,i):void 0,v===g.DEFINE_MANY_MERGED?n[i]=a(n[i],u):v===g.DEFINE_MANY&&(n[i]=l(n[i],u))}else n[i]=u}}}}function i(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in P;o?f("78",n):void 0;var i=n in t;i?f("79",n):void 0,t[n]=r}}}function u(t,e){t&&e&&"object"==typeof t&&"object"==typeof e?void 0:f("80");for(var n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?f("81",n):void 0,t[n]=e[n]);return t}function a(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return u(o,n),u(o,r),o}}function l(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function s(t,e){var n=e.bind(t);return n}function c(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=s(t,o)}}var f=n(91),p=n(168),d=n(378),y=n(40),v=(n(1085),n(381),n(380)),h=n(376),m=(n(77),n(377)),b=n(1077),E=(n(78),b({mixins:null})),g=m({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),x=[],_={mixins:g.DEFINE_MANY,statics:g.DEFINE_MANY,propTypes:g.DEFINE_MANY,contextTypes:g.DEFINE_MANY,childContextTypes:g.DEFINE_MANY,getDefaultProps:g.DEFINE_MANY_MERGED,getInitialState:g.DEFINE_MANY_MERGED,getChildContext:g.DEFINE_MANY_MERGED,render:g.DEFINE_ONCE,componentWillMount:g.DEFINE_MANY,componentDidMount:g.DEFINE_MANY,componentWillReceiveProps:g.DEFINE_MANY,shouldComponentUpdate:g.DEFINE_ONCE,componentWillUpdate:g.DEFINE_MANY,componentDidUpdate:g.DEFINE_MANY,componentWillUnmount:g.DEFINE_MANY,updateComponent:g.OVERRIDE_BASE},P={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)o(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=p({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=p({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=a(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=p({},t.propTypes,e)},statics:function(t,e){i(t,e)},autobind:function(){}},O={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},w=function(){};p(w.prototype,d.prototype,O);var A={createClass:function(t){var e=function(t,n,r){this.__reactAutoBindPairs.length&&c(this),this.props=t,this.context=n,this.refs=h,this.updater=r||v,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!=typeof o||Array.isArray(o)?f("82",e.displayName||"ReactCompositeComponent"):void 0,this.state=o};e.prototype=new w,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],x.forEach(o.bind(null,e)),o(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.prototype.render?void 0:f("83");for(var n in _)e.prototype[n]||(e.prototype[n]=null);return e},injection:{injectMixin:function(t){x.push(t)}}};t.exports=A},1084:function(t,e,n){"use strict";function r(t){return o.createFactory(t)}var o=n(40),i=n(1078),u=i({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);t.exports=u},1085:function(t,e,n){"use strict";var r=n(377),o=r({prop:null,context:null,childContext:null});t.exports=o},1086:function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function o(t){function e(e,n,r,o,i,u){if(o=o||O,u=u||r,null==n[r]){var a=x[i];return e?new Error("Required "+a+" `"+u+"` was not specified in "+("`"+o+"`.")):null}return t(n,r,o,i,u)}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function i(t){function e(e,n,r,o,i){var u=e[n],a=m(u);if(a!==t){var l=x[o],s=b(u);return new Error("Invalid "+l+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return o(e)}function u(){return o(_.thatReturns(null))}function a(t){function e(e,n,r,o,i){if("function"!=typeof t)return new Error("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u)){var a=x[o],l=m(u);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<u.length;s++){var c=t(u,s,r,o,i+"["+s+"]");if(c instanceof Error)return c}return null}return o(e)}function l(){function t(t,e,n,r,o){if(!g.isValidElement(t[e])){var i=x[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return o(t)}function s(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var u=x[o],a=t.name||O,l=E(e[n]);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return o(e)}function c(t){function e(e,n,o,i,u){for(var a=e[n],l=0;l<t.length;l++)if(r(a,t[l]))return null;var s=x[i],c=JSON.stringify(t);return new Error("Invalid "+s+" `"+u+"` of value `"+a+"` "+("supplied to `"+o+"`, expected one of "+c+"."))}return o(Array.isArray(t)?e:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function f(t){function e(e,n,r,o,i){if("function"!=typeof t)return new Error("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],a=m(u);if("object"!==a){var l=x[o];return new Error("Invalid "+l+" `"+i+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an object."))}for(var s in u)if(u.hasOwnProperty(s)){var c=t(u,s,r,o,i+"."+s);if(c instanceof Error)return c}return null}return o(e)}function p(t){function e(e,n,r,o,i){for(var u=0;u<t.length;u++){var a=t[u];if(null==a(e,n,r,o,i))return null}var l=x[o];return new Error("Invalid "+l+" `"+i+"` supplied to "+("`"+r+"`."))}return o(Array.isArray(t)?e:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function d(){function t(t,e,n,r,o){if(!v(t[e])){var i=x[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return o(t)}function y(t){function e(e,n,r,o,i){var u=e[n],a=m(u);if("object"!==a){var l=x[o];return new Error("Invalid "+l+" `"+i+"` of type `"+a+"` "+("supplied to `"+r+"`, expected `object`."))}for(var s in t){var c=t[s];if(c){var f=c(u,s,r,o,i+"."+s);if(f)return f}}return null}return o(e)}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||g.isValidElement(t))return!0;var e=P(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function h(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":h(e,t)?"symbol":e}function b(t){var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function E(t){return t.constructor&&t.constructor.name?t.constructor.name:O}var g=n(40),x=n(381),_=n(167),P=n(383),O="<<anonymous>>",w={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:u(),arrayOf:a,element:l(),instanceOf:s,node:d(),objectOf:f,oneOf:c,oneOfType:p,shape:y};t.exports=w},1087:function(t,e){"use strict";t.exports="15.2.0"},1088:function(t,e,n){"use strict";function r(t){return i.isValidElement(t)?void 0:o("23"),t}var o=n(91),i=n(40);n(77);t.exports=r},1089:function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?s.escape(t.key):e.toString(36)}function o(t,e,n,i){var p=typeof t;if("undefined"!==p&&"boolean"!==p||(t=null),null===t||"string"===p||"number"===p||a.isValidElement(t))return n(i,t,""===e?c+r(t,0):e),1;var d,y,v=0,h=""===e?c:e+f;if(Array.isArray(t))for(var m=0;m<t.length;m++)d=t[m],y=h+r(d,m),v+=o(d,y,n,i);else{var b=l(t);if(b){var E,g=b.call(t);if(b!==t.entries)for(var x=0;!(E=g.next()).done;)d=E.value,y=h+r(d,x++),v+=o(d,y,n,i);else for(;!(E=g.next()).done;){var _=E.value;_&&(d=_[1],y=h+s.escape(_[0])+f+r(d,0),v+=o(d,y,n,i))}}else if("object"===p){var P="",O=String(t);u("31","[object Object]"===O?"object with keys {"+Object.keys(t).join(", ")+"}":O,P)}}return v}function i(t,e,n){return null==t?0:o(t,"",e,n)}var u=n(91),a=(n(379),n(40)),l=n(383),s=(n(77),n(1079)),c=(n(78),"."),f=":";t.exports=i},1090:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1094),i=r(o),u=n(1092),a=r(u),l=function(t){var e=(0,a.default)(t);return function(n,r){return(0,i.default)(!1,e,t,n,r)}};e.default=l},1091:function(t,e){"use strict";e.__esModule=!0;var n=function(t){return Boolean(t&&t.prototype&&"object"==typeof t.prototype.isReactComponent)};e.default=n},1092:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1091),i=r(o),u=function(t){return Boolean(!("function"!=typeof t||(0,i.default)(t)||t.defaultProps||t.contextTypes||t.propTypes))};e.default=u},1093:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(384),i=r(o),u=n(1090),a=r(u),l=function(t){return function(e){var n=(0,a.default)(e);return function(e){return n(t(e))}}};e.default=(0,i.default)(l,"mapProps")},1094:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(169),u=r(i),a=function(t,e,n,r,i){if(!t&&e)return n(i?o({},r,{children:i}):r);var a=n;return i?u.default.createElement(a,r,i):u.default.createElement(a,r)};e.default=a},1095:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(384),u=r(i),a=n(1093),l=r(a),s=function(t){return(0,l.default)(function(e){return o({},e,"function"==typeof t?t(e):t)})};e.default=(0,u.default)(s,"withProps")},1157:function(t,e,n){t.exports=n(418)},167:function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},168:function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,u,a=n(t),l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var s in r)o.call(r,s)&&(a[s]=r[s]);if(Object.getOwnPropertySymbols){u=Object.getOwnPropertySymbols(r);for(var c=0;c<u.length;c++)i.call(r,u[c])&&(a[u[c]]=r[u[c]])}}return a}},169:function(t,e,n){"use strict";t.exports=n(1081)},374:function(t,e){t.exports={Button:"styles---Button---25D3lXM0v3","Button-content":"styles---Button-content---asVnwoKVUB",disabled:"styles---disabled---3PoLxXbX54","Button-prefix":"styles---Button-prefix---2euxsm0f9H","Button-suffix":"styles---Button-suffix---2gXk2xDd2X",primary:"styles---primary---2056tWq_dO",secondary:"styles---secondary---2Z3NI1Cc1l",Group:"styles---Group---3t-HwF1Tyd","Group-item":"styles---Group-item---xJZUVqgF9W",horizontal:"styles---horizontal---1pcjxyKpP6",vertical:"styles---vertical---3BrjxVdYND"}},375:function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(this&&this[r]||r);else if(Array.isArray(r))t.push(n.apply(this,r));else if("object"===o)for(var u in r)i.call(r,u)&&r[u]&&t.push(this&&this[u]||u)}}return t.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=n:(r=[],o=function(){return n}.apply(e,r),!(void 0!==o&&(t.exports=o)))}()},376:function(t,e,n){"use strict";var r={};t.exports=r},377:function(t,e,n){"use strict";var r=n(77),o=function(t){var e,n={};t instanceof Object&&!Array.isArray(t)?void 0:r(!1);for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=o},378:function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=u,this.updater=n||i}var o=n(91),i=n(380),u=(n(382),n(376));n(77),n(78);r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t?o("85"):void 0,this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};t.exports=r},379:function(t,e){"use strict";var n={current:null};t.exports=n},380:function(t,e,n){"use strict";function r(t,e){}var o=(n(78),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){r(t,"forceUpdate")},enqueueReplaceState:function(t,e){r(t,"replaceState")},enqueueSetState:function(t,e){r(t,"setState")}});t.exports=o},381:function(t,e,n){"use strict";var r={};t.exports=r},382:function(t,e,n){"use strict";var r=!1;t.exports=r},383:function(t,e){"use strict";function n(t){var e=t&&(r&&t[r]||t[o]);if("function"==typeof e)return e}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=n},384:function(t,e,n){"use strict";e.__esModule=!0;var r=function(t,e){arguments.length<=2||void 0===arguments[2]||arguments[2],!(arguments.length<=3||void 0===arguments[3])&&arguments[3];return t};e.default=r},40:function(t,e,n){"use strict";function r(t){return void 0!==t.ref}function o(t){return void 0!==t.key}var i=n(168),u=n(379),a=(n(78),n(382),Object.prototype.hasOwnProperty),l="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,s={key:!0,ref:!0,__self:!0,__source:!0},c=function(t,e,n,r,o,i,u){var a={$$typeof:l,type:t,key:e,ref:n,props:u,_owner:i};return a};c.createElement=function(t,e,n){var i,l={},f=null,p=null,d=null,y=null;if(null!=e){r(e)&&(p=e.ref),o(e)&&(f=""+e.key),d=void 0===e.__self?null:e.__self,y=void 0===e.__source?null:e.__source;for(i in e)a.call(e,i)&&!s.hasOwnProperty(i)&&(l[i]=e[i])}var v=arguments.length-2;if(1===v)l.children=n;else if(v>1){for(var h=Array(v),m=0;m<v;m++)h[m]=arguments[m+2];l.children=h}if(t&&t.defaultProps){var b=t.defaultProps;for(i in b)void 0===l[i]&&(l[i]=b[i])}return c(t,f,p,d,y,u.current,l)},c.createFactory=function(t){var e=c.createElement.bind(null,t);return e.type=t,e},c.cloneAndReplaceKey=function(t,e){var n=c(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},c.cloneElement=function(t,e,n){var l,f=i({},t.props),p=t.key,d=t.ref,y=t._self,v=t._source,h=t._owner;if(null!=e){r(e)&&(d=e.ref,h=u.current),o(e)&&(p=""+e.key);var m;t.type&&t.type.defaultProps&&(m=t.type.defaultProps);for(l in e)a.call(e,l)&&!s.hasOwnProperty(l)&&(void 0===e[l]&&void 0!==m?f[l]=m[l]:f[l]=e[l])}var b=arguments.length-2;if(1===b)f.children=n;else if(b>1){for(var E=Array(b),g=0;g<b;g++)E[g]=arguments[g+2];f.children=E}return c(t.type,p,d,y,v,h,f)},c.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===l},c.REACT_ELEMENT_TYPE=l,t.exports=c},418:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=n(423),i=r(o),u=n(424),a=r(u);t.exports={"default":i.default,Button:i.default,Group:a.default}},423:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(169),i=r(o),u=n(375),a=r(u),l=n(1095),s=r(l),c=n(374),f=r(c),p=a.default.bind(f.default),d=(0,s.default)(function(t){var e=t.prefix,n=t.suffix;return{prefix:e?i.default.createElement("span",{className:f.default["Button-prefix"]},e):null,suffix:n?i.default.createElement("span",{className:f.default["Button-suffix"]},n):null}}),y=d(function(t){var e=t.type,n=t.label,r=t.disabled,o=t.onClick,u=t.prefix,a=t.suffix;return i.default.createElement("div",{role:"button",onClick:o,disabled:r,tabIndex:"0",className:p("Button",e,{disabled:r})},u,i.default.createElement("span",{className:p("Button-content",{disabled:r})},n),a)});y.propTypes={type:o.PropTypes.oneOf(["primary","secondary","success","error"]).isRequired,label:o.PropTypes.string,disabled:o.PropTypes.bool,onClick:o.PropTypes.func,suffix:o.PropTypes.element,prefix:o.PropTypes.element},y.defaultProps={type:"primary",disabled:!1},e.default=y},424:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=t.children,n=t.direction;return u.default.createElement("div",{className:f("Group",n)},u.default.Children.map(e,function(t,e){return u.default.createElement("div",{key:e,className:f("Group-item",n)},t)}))}Object.defineProperty(e,"__esModule",{value:!0});var i=n(169),u=r(i),a=n(375),l=r(a),s=n(374),c=r(s),f=l.default.bind(c.default);o.propTypes={children:i.PropTypes.any,direction:i.PropTypes.oneOf(["vertical","horizontal"])},o.defaultProps={direction:"vertical"},e.default=o},77:function(t,e,n){"use strict";function r(t,e,n,r,o,i,u,a){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,u,a],c=0;l=new Error(e.replace(/%s/g,function(){return s[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}t.exports=r},78:function(t,e,n){"use strict";var r=n(167),o=r;t.exports=o},91:function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=n}});
module.exports=function(e){function t(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,t,r){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1944)}({0:function(e,t){e.exports=require("react")},1612:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(1616),o=n(u),l=r(1614),s=n(l),a=function(e){var t=(0,s.default)(e);return function(r,n){return(0,o.default)(!1,t,e,r,n)}};t.default=a},1613:function(e,t){"use strict";t.__esModule=!0;var r=function(e){return Boolean(e&&e.prototype&&"object"==typeof e.prototype.isReactComponent)};t.default=r},1614:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(1613),o=n(u),l=function(e){return Boolean(!("function"!=typeof e||(0,o.default)(e)||e.defaultProps||e.contextTypes||e.propTypes))};t.default=l},1615:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(314),o=n(u),l=r(1612),s=n(l),a=function(e){return function(t){var r=(0,s.default)(t);return function(t){return r(e(t))}}};t.default=(0,o.default)(a,"mapProps")},1616:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(0),l=n(o),s=function(e,t,r,n,o){if(!e&&t)return r(o?u({},n,{children:o}):n);var s=r;return o?l.default.createElement(s,n,o):l.default.createElement(s,n)};t.default=s},1617:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(314),l=n(o),s=r(1615),a=n(s),i=function(e){return(0,a.default)(function(t){return u({},t,"function"==typeof e?e(t):e)})};t.default=(0,l.default)(i,"withProps")},1944:function(e,t,r){e.exports=r(408)},309:function(e,t){e.exports={Button:"styles---Button---25D3lXM0v3","Button-content":"styles---Button-content---asVnwoKVUB",disabled:"styles---disabled---3PoLxXbX54","Button-prefix":"styles---Button-prefix---2euxsm0f9H","Button-suffix":"styles---Button-suffix---2gXk2xDd2X",primary:"styles---primary---2056tWq_dO",secondary:"styles---secondary---2Z3NI1Cc1l",Group:"styles---Group---3t-HwF1Tyd","Group-item":"styles---Group-item---xJZUVqgF9W",horizontal:"styles---horizontal---1pcjxyKpP6",vertical:"styles---vertical---3BrjxVdYND"}},313:function(e,t,r){var n,u;!function(){"use strict";function r(){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(this&&this[n]||n);else if(Array.isArray(n))e.push(r.apply(this,n));else if("object"===u)for(var l in n)o.call(n,l)&&n[l]&&e.push(this&&this[l]||l)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(n=[],u=function(){return r}.apply(t,n),!(void 0!==u&&(e.exports=u)))}()},314:function(e,t,r){"use strict";t.__esModule=!0;var n=function(e,t){arguments.length<=2||void 0===arguments[2]||arguments[2],!(arguments.length<=3||void 0===arguments[3])&&arguments[3];return e};t.default=n},408:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var u=r(421),o=n(u),l=r(422),s=n(l);e.exports={"default":o.default,Button:o.default,Group:s.default}},421:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(0),o=n(u),l=r(313),s=n(l),a=r(1617),i=n(a),f=r(309),c=n(f),d=s.default.bind(c.default),p=(0,i.default)(function(e){var t=e.prefix,r=e.suffix;return{prefix:t?o.default.createElement("span",{className:c.default["Button-prefix"]},t):null,suffix:r?o.default.createElement("span",{className:c.default["Button-suffix"]},r):null}}),y=p(function(e){var t=e.type,r=e.label,n=e.disabled,u=e.onClick,l=e.prefix,s=e.suffix;return o.default.createElement("div",{role:"button",onClick:u,disabled:n,tabIndex:"0",className:d("Button",t,{disabled:n})},l,o.default.createElement("span",{className:d("Button-content",{disabled:n})},r),s)});y.propTypes={type:u.PropTypes.oneOf(["primary","secondary","success","error"]).isRequired,label:u.PropTypes.string,disabled:u.PropTypes.bool,onClick:u.PropTypes.func,suffix:u.PropTypes.element,prefix:u.PropTypes.element},y.defaultProps={type:"primary",disabled:!1},t.default=y},422:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.children,r=e.direction;return l.default.createElement("div",{className:c("Group",r)},l.default.Children.map(t,function(e,t){return l.default.createElement("div",{key:t,className:c("Group-item",r)},e)}))}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),l=n(o),s=r(313),a=n(s),i=r(309),f=n(i),c=a.default.bind(f.default);u.propTypes={children:o.PropTypes.any,direction:o.PropTypes.oneOf(["vertical","horizontal"])},u.defaultProps={direction:"vertical"},t.default=u}});
{
"name": "@jouwomgeving/ui-button",
"version": "0.0.2-alpha.99db6118",
"version": "0.0.2-alpha.9b5c0cd8",
"license": "MIT",

@@ -18,3 +18,3 @@ "author": "Jouw Omgeving B.V. (https://www.jouwomgeving.nl/)",

"devDependencies": {
"@jouwomgeving/ui-icon": "^0.0.1-alpha.99db6118"
"@jouwomgeving/ui-icon": "^0.0.1-alpha.9b5c0cd8"
},

@@ -21,0 +21,0 @@ "dependencies": {

@@ -24,6 +24,5 @@ import React from 'react';

const wrapper = shallow(<Button onClick={onClick} />);
wrapper.find('button').simulate('click');
wrapper.simulate('click');
expect(onClick).to.have.property('callCount', 1);
});
});
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Button from '../../../';
import Button from '../../../index';
import Icon from '@jouwomgeving/ui-icon';

@@ -62,3 +62,8 @@

label="Prefix"
prefix={(<SelectedIcon size={18} />)}
prefix={(
<SelectedIcon
color="currentColor"
size={18}
/>
)}
/>

@@ -75,3 +80,8 @@ );

label="Suffix"
suffix={(<SelectedIcon size={18} />)}
suffix={(
<SelectedIcon
size={18}
color="currentColor"
/>
)}
/>

@@ -78,0 +88,0 @@ );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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