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

@progress/kendo-react-buttons

Package Overview
Dependencies
Maintainers
1
Versions
1290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-react-buttons - npm Package Compare versions

Comparing version 0.4.0-dev.201802141312 to 0.4.0-dev.201802150802

9

dist/cdn/js/kendo-react-buttons.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.KendoReactButtons=t(require("react")):e.KendoReactButtons=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.Button=n.default;var o=r(15);t.ButtonGroup=o.default},function(e,t,r){"use strict";function n(e){var t=e.imageUrl,r=e.icon,n=e.iconClass,o=e.imageAlt;if(t)return s.createElement("img",{role:"presentation",className:"k-image",alt:o,src:t});if(r){var i=c("k-icon","k-i-"+r);return s.createElement("span",{role:"presentation",className:i})}return n?s.createElement("span",{role:"presentation",className:n}):null}var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),u=r(3),c=r(13),l=r(14),p=l.default.styles,f=function(e){function t(t){var r=e.call(this,t)||this;return r.state={active:r.props.selected===!0&&r.props.togglable===!0},r.handleClick=r.handleClick.bind(r),r}return o(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({active:e.selected===!0&&this.props.togglable===!0})},t.prototype.render=function(){var e=this.props,t=e.children,r=e.look,o=e.primary,u=(e.selected,e.togglable),l=e.icon,f=e.iconClass,d=e.imageUrl,y=e.imageAlt,h=e.className,v=(e.onClick,a(e,["children","look","primary","selected","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),m=c([p.button],(O={},O[p[""+r]]="default"!==r,O[p.primary]=o,O[p["state-disabled"]]=this.props.disabled,O[p["state-active"]]=this.state.active,O[p["button-icon"]]=void 0===t,O),[p[""+this.props.dir]],h),b={className:m,onClick:this.handleClick,role:u?"checkbox":"button","aria-disabled":this.props.disabled||void 0,"aria-checked":this.state.active},g=n({icon:l,iconClass:f,imageUrl:d,imageAlt:y});return s.createElement("button",i({},b,v),g,t);var O},t.prototype.activate=function(){this.props.togglable&&this.setState({active:!this.state.active})},t.prototype.handleClick=function(e){this.activate(),this.props.onClick&&this.props.onClick.call(void 0,e)},t}(s.Component);f.propTypes={children:u.oneOfType([u.arrayOf(u.element),u.string]),look:u.oneOf(["default","bare","flat","outline"]),primary:u.bool,selected:u.bool,togglable:u.bool,icon:u.string,iconClass:u.string,imageUrl:u.string,imageAlt:u.string},f.defaultProps={look:"default",primary:!1,selected:!1,togglable:!1},t.default=f},function(t,r){t.exports=e},function(e,t,r){(function(t){if("production"!==t.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},i=!0;e.exports=r(5)(o,i)}else e.exports=r(12)()}).call(t,r(4))},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===n||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){h&&d&&(h=!1,d.length?y=d.concat(y):v=-1,y.length&&s())}function s(){if(!h){var e=o(a);h=!0;for(var t=y.length;t;){for(d=y,y=[];++v<t;)d&&d[v].run();v=-1,t=y.length}d=null,h=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,p,f=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{p="function"==typeof clearTimeout?clearTimeout:n}catch(e){p=n}}();var d,y=[],h=!1,v=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];y.push(new u(e,t)),1!==y.length||h||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=c,f.addListener=c,f.once=c,f.off=c,f.removeListener=c,f.removeAllListeners=c,f.emit=c,f.prependListener=c,f.prependOnceListener=c,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,r){(function(t){"use strict";var n=r(6),o=r(7),i=r(8),a=r(9),s=r(10),u=r(11);e.exports=function(e,r){function c(e){var t=e&&(R&&e[R]||e[A]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function f(e){function n(n,c,l,f,d,y,h){if(f=f||C,y=y||l,h!==s)if(r)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=f+":"+l;!a[v]&&u<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",y,f),a[v]=!0,u++)}return null==c[l]?n?new p(null===c[l]?"The "+d+" `"+y+"` is marked as required "+("in `"+f+"`, but its value is `null`."):"The "+d+" `"+y+"` is marked as required in "+("`"+f+"`, but its value is `undefined`.")):null:e(c,l,f,d,y)}if("production"!==t.env.NODE_ENV)var a={},u=0;var c=n.bind(null,!1);return c.isRequired=n.bind(null,!0),c}function d(e){function t(t,r,n,o,i,a){var s=t[r],u=E(s);if(u!==e){var c=T(s);return new p("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+n+"`, expected ")+("`"+e+"`."))}return null}return f(t)}function y(){return f(n.thatReturnsNull)}function h(e){function t(t,r,n,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a)){var u=E(a);return new p("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected an array."))}for(var c=0;c<a.length;c++){var l=e(a,c,n,o,i+"["+c+"]",s);if(l instanceof Error)return l}return null}return f(t)}function v(){function t(t,r,n,o,i){var a=t[r];if(!e(a)){var s=E(a);return new p("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return f(t)}function m(e){function t(t,r,n,o,i){if(!(t[r]instanceof e)){var a=e.name||C,s=P(t[r]);return new p("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected ")+("instance of `"+a+"`."))}return null}return f(t)}function b(e){function r(t,r,n,o,i){for(var a=t[r],s=0;s<e.length;s++)if(l(a,e[s]))return null;var u=JSON.stringify(e);return new p("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+n+"`, expected one of "+u+"."))}return Array.isArray(e)?f(r):("production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,n.thatReturnsNull)}function g(e){function t(t,r,n,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=t[r],u=E(a);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected an object."));for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,n,o,i+"."+c,s);if(l instanceof Error)return l}return null}return f(t)}function O(e){function r(t,r,n,o,i){for(var a=0;a<e.length;a++){var u=e[a];if(null==u(t,r,n,o,i,s))return null}return new p("Invalid "+o+" `"+i+"` supplied to "+("`"+n+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,n.thatReturnsNull;for(var o=0;o<e.length;o++){var a=e[o];if("function"!=typeof a)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",N(a),o),n.thatReturnsNull}return f(r)}function w(){function e(e,t,r,n,o){return k(e[t])?null:new p("Invalid "+n+" `"+o+"` supplied to "+("`"+r+"`, expected a ReactNode."))}return f(e)}function _(e){function t(t,r,n,o,i){var a=t[r],u=E(a);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` "+("supplied to `"+n+"`, expected `object`."));for(var c in e){var l=e[c];if(l){var f=l(a,c,n,o,i+"."+c,s);if(f)return f}}return null}return f(t)}function j(e){function t(t,r,n,o,i){var u=t[r],c=E(u);if("object"!==c)return new p("Invalid "+o+" `"+i+"` of type `"+c+"` "+("supplied to `"+n+"`, expected `object`."));var l=a({},t[r],e);for(var f in l){var d=e[f];if(!d)return new p("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=d(u,f,n,o,i+"."+f,s);if(y)return y}return null}return f(t)}function k(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(k);if(null===t||e(t))return!0;var r=c(t);if(!r)return!1;var n,o=r.call(t);if(r!==t.entries){for(;!(n=o.next()).done;)if(!k(n.value))return!1}else for(;!(n=o.next()).done;){var i=n.value;if(i&&!k(i[1]))return!1}return!0;default:return!1}}function x(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function E(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":x(t,e)?"symbol":t}function T(e){if("undefined"==typeof e||null===e)return""+e;var t=E(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function N(e){var t=T(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function P(e){return e.constructor&&e.constructor.name?e.constructor.name:C}var R="function"==typeof Symbol&&Symbol.iterator,A="@@iterator",C="<<anonymous>>",S={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:y(),arrayOf:h,element:v(),instanceOf:m,node:w(),objectOf:g,oneOf:b,oneOfType:O,shape:_,exact:j};return p.prototype=Error.prototype,S.checkPropTypes=u,S.PropTypes=S,S}}).call(t,r(4))},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){"use strict";function r(e,t,r,o,i,a,s,u){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],p=0;c=new Error(t.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=r}).call(t,r(4))},function(e,t,r){(function(t){"use strict";var n=r(6),o=n;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];i.apply(void 0,[t].concat(n))}}}e.exports=o}).call(t,r(4))},function(e,t){/*
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.KendoReactButtons=t(require("react")):e.KendoReactButtons=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.Button=n.default;var o=r(18);t.ButtonGroup=o.default},function(e,t,r){"use strict";function n(e){var t=e.imageUrl,r=e.icon,n=e.iconClass,o=e.imageAlt;if(t)return s.createElement("img",{role:"presentation",className:"k-image",alt:o,src:t});if(r){var i=c.classNames("k-icon","k-i-"+r);return s.createElement("span",{role:"presentation",className:i})}return n?s.createElement("span",{role:"presentation",className:n}):null}var o=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),u=r(3),c=r(13),l=r(17),f=l.default.styles,p=function(e){function t(t){var r=e.call(this,t)||this;return r.state={active:r.props.selected===!0&&r.props.togglable===!0},r.handleClick=r.handleClick.bind(r),r}return o(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState({active:e.selected===!0&&this.props.togglable===!0})},t.prototype.render=function(){var e=this.props,t=e.children,r=e.look,o=e.primary,u=(e.selected,e.togglable),l=e.icon,p=e.iconClass,d=e.imageUrl,y=e.imageAlt,v=e.className,h=(e.onClick,a(e,["children","look","primary","selected","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),m=c.classNames([f.button],(O={},O[f[""+r]]="default"!==r,O[f.primary]=o,O[f["state-disabled"]]=this.props.disabled,O[f["state-active"]]=this.state.active,O[f["button-icon"]]=void 0===t,O),[f[""+this.props.dir]],v),b={className:m,onClick:this.handleClick,role:u?"checkbox":"button","aria-disabled":this.props.disabled||void 0,"aria-checked":this.state.active},g=n({icon:l,iconClass:p,imageUrl:d,imageAlt:y});return s.createElement("button",i({},b,h),g,t);var O},t.prototype.activate=function(){this.props.togglable&&this.setState({active:!this.state.active})},t.prototype.handleClick=function(e){this.activate(),this.props.onClick&&this.props.onClick.call(void 0,e)},t}(s.Component);p.propTypes={children:u.oneOfType([u.arrayOf(u.element),u.string]),look:u.oneOf(["default","bare","flat","outline"]),primary:u.bool,selected:u.bool,togglable:u.bool,icon:u.string,iconClass:u.string,imageUrl:u.string,imageAlt:u.string},p.defaultProps={look:"default",primary:!1,selected:!1,togglable:!1},t.default=p},function(t,r){t.exports=e},function(e,t,r){(function(t){if("production"!==t.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},i=!0;e.exports=r(5)(o,i)}else e.exports=r(12)()}).call(t,r(4))},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?y=d.concat(y):h=-1,y.length&&s())}function s(){if(!v){var e=o(a);v=!0;for(var t=y.length;t;){for(d=y,y=[];++h<t;)d&&d[h].run();h=-1,t=y.length}d=null,v=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,f,p=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(e){f=n}}();var d,y=[],v=!1,h=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];y.push(new u(e,t)),1!==y.length||v||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,r){(function(t){"use strict";var n=r(6),o=r(7),i=r(8),a=r(9),s=r(10),u=r(11);e.exports=function(e,r){function c(e){var t=e&&(R&&e[R]||e[S]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e){this.message=e,this.stack=""}function p(e){function n(n,c,l,p,d,y,v){if(p=p||A,y=y||l,v!==s)if(r)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var h=p+":"+l;!a[h]&&u<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",y,p),a[h]=!0,u++)}return null==c[l]?n?new f(null===c[l]?"The "+d+" `"+y+"` is marked as required "+("in `"+p+"`, but its value is `null`."):"The "+d+" `"+y+"` is marked as required in "+("`"+p+"`, but its value is `undefined`.")):null:e(c,l,p,d,y)}if("production"!==t.env.NODE_ENV)var a={},u=0;var c=n.bind(null,!1);return c.isRequired=n.bind(null,!0),c}function d(e){function t(t,r,n,o,i,a){var s=t[r],u=T(s);if(u!==e){var c=x(s);return new f("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+n+"`, expected ")+("`"+e+"`."))}return null}return p(t)}function y(){return p(n.thatReturnsNull)}function v(e){function t(t,r,n,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a)){var u=T(a);return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected an array."))}for(var c=0;c<a.length;c++){var l=e(a,c,n,o,i+"["+c+"]",s);if(l instanceof Error)return l}return null}return p(t)}function h(){function t(t,r,n,o,i){var a=t[r];if(!e(a)){var s=T(a);return new f("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return p(t)}function m(e){function t(t,r,n,o,i){if(!(t[r]instanceof e)){var a=e.name||A,s=P(t[r]);return new f("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+n+"`, expected ")+("instance of `"+a+"`."))}return null}return p(t)}function b(e){function r(t,r,n,o,i){for(var a=t[r],s=0;s<e.length;s++)if(l(a,e[s]))return null;var u=JSON.stringify(e);return new f("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+n+"`, expected one of "+u+"."))}return Array.isArray(e)?p(r):("production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,n.thatReturnsNull)}function g(e){function t(t,r,n,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=t[r],u=T(a);if("object"!==u)return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected an object."));for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,n,o,i+"."+c,s);if(l instanceof Error)return l}return null}return p(t)}function O(e){function r(t,r,n,o,i){for(var a=0;a<e.length;a++){var u=e[a];if(null==u(t,r,n,o,i,s))return null}return new f("Invalid "+o+" `"+i+"` supplied to "+("`"+n+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,n.thatReturnsNull;for(var o=0;o<e.length;o++){var a=e[o];if("function"!=typeof a)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",N(a),o),n.thatReturnsNull}return p(r)}function w(){function e(e,t,r,n,o){return k(e[t])?null:new f("Invalid "+n+" `"+o+"` supplied to "+("`"+r+"`, expected a ReactNode."))}return p(e)}function _(e){function t(t,r,n,o,i){var a=t[r],u=T(a);if("object"!==u)return new f("Invalid "+o+" `"+i+"` of type `"+u+"` "+("supplied to `"+n+"`, expected `object`."));for(var c in e){var l=e[c];if(l){var p=l(a,c,n,o,i+"."+c,s);if(p)return p}}return null}return p(t)}function j(e){function t(t,r,n,o,i){var u=t[r],c=T(u);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type `"+c+"` "+("supplied to `"+n+"`, expected `object`."));var l=a({},t[r],e);for(var p in l){var d=e[p];if(!d)return new f("Invalid "+o+" `"+i+"` key `"+p+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=d(u,p,n,o,i+"."+p,s);if(y)return y}return null}return p(t)}function k(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(k);if(null===t||e(t))return!0;var r=c(t);if(!r)return!1;var n,o=r.call(t);if(r!==t.entries){for(;!(n=o.next()).done;)if(!k(n.value))return!1}else for(;!(n=o.next()).done;){var i=n.value;if(i&&!k(i[1]))return!1}return!0;default:return!1}}function E(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function T(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":E(t,e)?"symbol":t}function x(e){if("undefined"==typeof e||null===e)return""+e;var t=T(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function N(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function P(e){return e.constructor&&e.constructor.name?e.constructor.name:A}var R="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",A="<<anonymous>>",C={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:y(),arrayOf:v,element:h(),instanceOf:m,node:w(),objectOf:g,oneOf:b,oneOfType:O,shape:_,exact:j};return f.prototype=Error.prototype,C.checkPropTypes=u,C.PropTypes=C,C}}).call(t,r(4))},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){"use strict";function r(e,t,r,o,i,a,s,u){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=r}).call(t,r(4))},function(e,t,r){(function(t){"use strict";var n=r(6),o=n;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];i.apply(void 0,[t].concat(n))}}}e.exports=o}).call(t,r(4))},function(e,t){/*
object-assign

@@ -6,7 +6,2 @@ (c) Sindre Sorhus

*/
"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function n(){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;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=n()?Object.assign:function(e,t){for(var n,s,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)i.call(n,l)&&(u[l]=n[l]);if(o){s=o(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(u[s[p]]=n[s[p]])}}return u}},function(e,t){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},function(e,t,r){(function(t){"use strict";function n(e,r,n,u,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var p;try{o("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",n,l,typeof e[l]),p=e[l](r,l,u,n,null,a)}catch(e){p=e}if(i(!p||p instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",n,l,typeof p),p instanceof Error&&!(p.message in s)){s[p.message]=!0;var f=c?c():"";i(!1,"Failed %s type: %s%s",n,p.message,null!=f?f:"")}}}if("production"!==t.env.NODE_ENV)var o=r(7),i=r(8),a=r(10),s={};e.exports=n}).call(t,r(4))},function(e,t,r){"use strict";var n=r(6),o=r(7),i=r(10);e.exports=function(){function e(e,t,r,n,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){var n,o;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n))e.push(r.apply(null,n));else if("object"===o)for(var a in n)i.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(n=[],o=function(){return r}.apply(t,n),!(void 0!==o&&(e.exports=o)))}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){},n={button:"k-button",bare:"k-bare",flat:"k-flat",outline:"k-outline",primary:"k-primary","state-active":"k-state-active","button-icon":"k-button-icon","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"};t.default={noop:r,styles:n}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=r(3),s=r(13),u=r(14),c=u.default.styles,l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return n(t,e),t.prototype.mapButtons=function(e){var t=this,r=i.Children.count(e);return i.Children.map(e,function(e,n){return i.isValidElement(e)?t.renderButton(e,n,n===r-1):e})},t.prototype.renderButton=function(e,t,r){var n=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1,a=s((l={},l[c["group-start"]]=n?r:0===t,l[c["group-end"]]=n?0===t:r,l)),u=o({},e.props,{className:a,style:{width:""+this.props.width},disabled:this.props.disabled||void 0});return i.cloneElement(e,u,e.props.children);var l},t.prototype.render=function(){var e=this,t=this.mapButtons(this.props.children),r=s([c["button-group"]],(a={},a[c["state-disabled"]]=this.props.disabled,a[c["button-group-stretched"]]=!!this.props.width,a),this.props.className),n={className:r,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled||void 0,"aria-multiselectable":!0};return i.createElement("div",o({ref:function(t){e._element=t}},n,{className:r}),t);var a},t}(i.Component);l.propTypes={children:a.arrayOf(a.element),className:a.string,disabled:a.bool,width:a.string,dir:a.string},l.defaultProps={disabled:!1},t.default=l}])});
"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function n(){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;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=n()?Object.assign:function(e,t){for(var n,s,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)i.call(n,l)&&(u[l]=n[l]);if(o){s=o(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},function(e,t,r){(function(t){"use strict";function n(e,r,n,u,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{o("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",n,l,typeof e[l]),f=e[l](r,l,u,n,null,a)}catch(e){f=e}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",n,l,typeof f),f instanceof Error&&!(f.message in s)){s[f.message]=!0;var p=c?c():"";i(!1,"Failed %s type: %s%s",n,f.message,null!=p?p:"")}}}if("production"!==t.env.NODE_ENV)var o=r(7),i=r(8),a=r(10),s={};e.exports=n}).call(t,r(4))},function(e,t,r){"use strict";var n=r(6),o=r(7),i=r(10);e.exports=function(){function e(e,t,r,n,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(14);t.classNames=n.classNames;var o=r(15);t.guid=o.guid;var i=r(16);t.noop=i.noop},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.filter(function(e){return e!==!0&&!!e}).map(function(e){return Array.isArray(e)?t.classNames.apply(void 0,e):"object"==typeof e?Object.keys(e).map(function(t,r){return e[r]||e[t]&&t||null}).filter(function(e){return null!==e}).join(" "):e}).filter(function(e){return!!e}).join(" ")}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e,t,r="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(r+="-"),r+=(12===e?4:16===e?3&t|8:t).toString(16);return r};t.guid=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){};t.noop=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={button:"k-button",bare:"k-bare",flat:"k-flat",outline:"k-outline",primary:"k-primary","state-active":"k-state-active","button-icon":"k-button-icon","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"};t.default={styles:r}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=r(3),s=r(13),u=r(17),c=u.default.styles,l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return n(t,e),t.prototype.mapButtons=function(e){var t=this,r=i.Children.count(e);return i.Children.map(e,function(e,n){return i.isValidElement(e)?t.renderButton(e,n,n===r-1):e})},t.prototype.renderButton=function(e,t,r){var n=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1,a=s.classNames((l={},l[c["group-start"]]=n?r:0===t,l[c["group-end"]]=n?0===t:r,l)),u=o({},e.props,{className:a,style:{width:""+this.props.width},disabled:this.props.disabled||void 0});return i.cloneElement(e,u,e.props.children);var l},t.prototype.render=function(){var e=this,t=this.mapButtons(this.props.children),r=s.classNames([c["button-group"]],(a={},a[c["state-disabled"]]=this.props.disabled,a[c["button-group-stretched"]]=!!this.props.width,a),this.props.className),n={className:r,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled||void 0,"aria-multiselectable":!0};return i.createElement("div",o({ref:function(t){e._element=t}},n,{className:r}),t);var a},t}(i.Component);l.propTypes={children:a.arrayOf(a.element),className:a.string,disabled:a.bool,width:a.string,dir:a.string},l.defaultProps={disabled:!1},t.default=l}])});

@@ -30,3 +30,3 @@ var __extends = (this && this.__extends) || (function () {

import * as PropTypes from 'prop-types';
import * as classNames from 'classnames';
import { classNames } from '@progress/kendo-react-common';
import util from './util';

@@ -33,0 +33,0 @@ var styles = util.styles;

@@ -21,3 +21,3 @@ var __extends = (this && this.__extends) || (function () {

import * as PropTypes from 'prop-types';
import * as classNames from 'classnames';
import { classNames } from '@progress/kendo-react-common';
import util from './util';

@@ -24,0 +24,0 @@ var styles = util.styles;

declare const _default: {
noop: () => void;
styles: {

@@ -4,0 +3,0 @@ button: string;

/**
* @hidden
*/
var noop = function () { };
/**
* @hidden
*/
var styles = {

@@ -28,5 +24,4 @@ button: 'k-button',

export default {
noop: noop,
styles: styles
};
//# sourceMappingURL=util.js.map

@@ -32,3 +32,3 @@ "use strict";

var PropTypes = require("prop-types");
var classNames = require("classnames");
var kendo_react_common_1 = require("@progress/kendo-react-common");
var util_1 = require("./util");

@@ -45,3 +45,3 @@ var styles = util_1.default.styles;

else if (icon) {
var iconClasses = classNames('k-icon', 'k-i-' + icon);
var iconClasses = kendo_react_common_1.classNames('k-icon', 'k-i-' + icon);
return (React.createElement("span", { role: "presentation", className: iconClasses }));

@@ -72,3 +72,3 @@ }

var _a = this.props, children = _a.children, look = _a.look, primary = _a.primary, selected = _a.selected, togglable = _a.togglable, icon = _a.icon, iconClass = _a.iconClass, imageUrl = _a.imageUrl, imageAlt = _a.imageAlt, className = _a.className, onClick = _a.onClick, htmlAttributes = __rest(_a, ["children", "look", "primary", "selected", "togglable", "icon", "iconClass", "imageUrl", "imageAlt", "className", "onClick"]);
var buttonClasses = classNames([styles.button], (_b = {},
var buttonClasses = kendo_react_common_1.classNames([styles.button], (_b = {},
_b[styles["" + look]] = look !== 'default',

@@ -75,0 +75,0 @@ _b[styles.primary] = primary,

@@ -23,3 +23,3 @@ "use strict";

var PropTypes = require("prop-types");
var classNames = require("classnames");
var kendo_react_common_1 = require("@progress/kendo-react-common");
var util_1 = require("./util");

@@ -51,3 +51,3 @@ var styles = util_1.default.styles;

: (this._element && (getComputedStyle(this._element).direction === 'rtl') || false);
var buttonClasses = classNames((_a = {},
var buttonClasses = kendo_react_common_1.classNames((_a = {},
_a[styles['group-start']] = rtl ? isLast : index === 0,

@@ -63,3 +63,3 @@ _a[styles['group-end']] = rtl ? index === 0 : isLast,

var buttons = this.mapButtons(this.props.children);
var groupClasses = classNames([styles['button-group']], (_a = {},
var groupClasses = kendo_react_common_1.classNames([styles['button-group']], (_a = {},
_a[styles['state-disabled']] = this.props.disabled,

@@ -66,0 +66,0 @@ _a[styles['button-group-stretched']] = !!this.props.width,

declare const _default: {
noop: () => void;
styles: {

@@ -4,0 +3,0 @@ button: string;

@@ -6,6 +6,2 @@ "use strict";

*/
var noop = function () { };
/**
* @hidden
*/
var styles = {

@@ -31,5 +27,4 @@ button: 'k-button',

exports.default = {
noop: noop,
styles: styles
};
//# sourceMappingURL=util.js.map

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

System.register("@progress/kendo-react-buttons",["react","classnames","prop-types"],function(t){var e,r,o;function n(t){return t.__useDefault?t.default:t}return{setters:[function(t){e=n(t)},function(t){r=n(t)},function(t){o=n(t)}],execute:function(){!function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.m=t,r.c=e,r.p="",r(0)}([function(e,r,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=o(1);r.Button=n.default;var i=o(6);r.ButtonGroup=i.default,function(e){for(var r in e)t(r,e[r])}(r)},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&(r[o[n]]=t[o[n]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(2),l=r(3),c=r(4),p=r(5).default.styles;var u=function(t){function e(e){var r=t.call(this,e)||this;return r.state={active:!0===r.props.selected&&!0===r.props.togglable},r.handleClick=r.handleClick.bind(r),r}return n(e,t),e.prototype.componentWillReceiveProps=function(t){this.setState({active:!0===t.selected&&!0===this.props.togglable})},e.prototype.render=function(){var t,e=this.props,r=e.children,o=e.look,n=e.primary,l=(e.selected,e.togglable),u=e.icon,d=e.iconClass,f=e.imageUrl,h=e.imageAlt,b=e.className,g=(e.onClick,s(e,["children","look","primary","selected","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),m={className:c([p.button],((t={})[p[""+o]]="default"!==o,t[p.primary]=n,t[p["state-disabled"]]=this.props.disabled,t[p["state-active"]]=this.state.active,t[p["button-icon"]]=void 0===r,t),[p[""+this.props.dir]],b),onClick:this.handleClick,role:l?"checkbox":"button","aria-disabled":this.props.disabled||void 0,"aria-checked":this.state.active},y=function(t){var e=t.imageUrl,r=t.icon,o=t.iconClass,n=t.imageAlt;if(e)return a.createElement("img",{role:"presentation",className:"k-image",alt:n,src:e});if(r){var i=c("k-icon","k-i-"+r);return a.createElement("span",{role:"presentation",className:i})}return o?a.createElement("span",{role:"presentation",className:o}):null}({icon:u,iconClass:d,imageUrl:f,imageAlt:h});return a.createElement("button",i({},m,g),y,r)},e.prototype.activate=function(){this.props.togglable&&this.setState({active:!this.state.active})},e.prototype.handleClick=function(t){this.activate(),this.props.onClick&&this.props.onClick.call(void 0,t)},e}(a.Component);u.propTypes={children:l.oneOfType([l.arrayOf(l.element),l.string]),look:l.oneOf(["default","bare","flat","outline"]),primary:l.bool,selected:l.bool,togglable:l.bool,icon:l.string,iconClass:l.string,imageUrl:l.string,imageAlt:l.string},u.defaultProps={look:"default",primary:!1,selected:!1,togglable:!1},e.default=u},function(t,r){t.exports=e},function(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={noop:function(){},styles:{button:"k-button",bare:"k-bare",flat:"k-flat",outline:"k-outline",primary:"k-primary","state-active":"k-state-active","button-icon":"k-button-icon","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"}}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var s=r(2),a=r(3),l=r(4),c=r(5).default.styles,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._element=null,e}return n(e,t),e.prototype.mapButtons=function(t){var e=this,r=s.Children.count(t);return s.Children.map(t,function(t,o){return s.isValidElement(t)?e.renderButton(t,o,o===r-1):t})},e.prototype.renderButton=function(t,e,r){var o,n=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1,a=l(((o={})[c["group-start"]]=n?r:0===e,o[c["group-end"]]=n?0===e:r,o)),p=i({},t.props,{className:a,style:{width:""+this.props.width},disabled:this.props.disabled||void 0});return s.cloneElement(t,p,t.props.children)},e.prototype.render=function(){var t,e=this,r=this.mapButtons(this.props.children),o=l([c["button-group"]],((t={})[c["state-disabled"]]=this.props.disabled,t[c["button-group-stretched"]]=!!this.props.width,t),this.props.className),n={className:o,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled||void 0,"aria-multiselectable":!0};return s.createElement("div",i({ref:function(t){e._element=t}},n,{className:o}),r)},e}(s.Component);p.propTypes={children:a.arrayOf(a.element),className:a.string,disabled:a.bool,width:a.string,dir:a.string},p.defaultProps={disabled:!1},e.default=p}])}}});
System.register("@progress/kendo-react-buttons",["react","prop-types","@progress/kendo-react-common"],function(t){var e,r,o;function n(t){return t.__useDefault?t.default:t}return{setters:[function(t){e=n(t)},function(t){r=n(t)},function(t){o=n(t)}],execute:function(){!function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.m=t,r.c=e,r.p="",r(0)}([function(e,r,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=o(1);r.Button=n.default;var s=o(6);r.ButtonGroup=s.default,function(e){for(var r in e)t(r,e[r])}(r)},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__assign||Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},i=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&(r[o[n]]=t[o[n]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(2),l=r(3),c=r(4),p=r(5).default.styles;var u=function(t){function e(e){var r=t.call(this,e)||this;return r.state={active:!0===r.props.selected&&!0===r.props.togglable},r.handleClick=r.handleClick.bind(r),r}return n(e,t),e.prototype.componentWillReceiveProps=function(t){this.setState({active:!0===t.selected&&!0===this.props.togglable})},e.prototype.render=function(){var t,e=this.props,r=e.children,o=e.look,n=e.primary,l=(e.selected,e.togglable),u=e.icon,d=e.iconClass,f=e.imageUrl,h=e.imageAlt,b=e.className,m=(e.onClick,i(e,["children","look","primary","selected","togglable","icon","iconClass","imageUrl","imageAlt","className","onClick"])),g={className:c.classNames([p.button],((t={})[p[""+o]]="default"!==o,t[p.primary]=n,t[p["state-disabled"]]=this.props.disabled,t[p["state-active"]]=this.state.active,t[p["button-icon"]]=void 0===r,t),[p[""+this.props.dir]],b),onClick:this.handleClick,role:l?"checkbox":"button","aria-disabled":this.props.disabled||void 0,"aria-checked":this.state.active},y=function(t){var e=t.imageUrl,r=t.icon,o=t.iconClass,n=t.imageAlt;if(e)return a.createElement("img",{role:"presentation",className:"k-image",alt:n,src:e});if(r){var s=c.classNames("k-icon","k-i-"+r);return a.createElement("span",{role:"presentation",className:s})}return o?a.createElement("span",{role:"presentation",className:o}):null}({icon:u,iconClass:d,imageUrl:f,imageAlt:h});return a.createElement("button",s({},g,m),y,r)},e.prototype.activate=function(){this.props.togglable&&this.setState({active:!this.state.active})},e.prototype.handleClick=function(t){this.activate(),this.props.onClick&&this.props.onClick.call(void 0,t)},e}(a.Component);u.propTypes={children:l.oneOfType([l.arrayOf(l.element),l.string]),look:l.oneOf(["default","bare","flat","outline"]),primary:l.bool,selected:l.bool,togglable:l.bool,icon:l.string,iconClass:l.string,imageUrl:l.string,imageAlt:l.string},u.defaultProps={look:"default",primary:!1,selected:!1,togglable:!1},e.default=u},function(t,r){t.exports=e},function(t,e){t.exports=r},function(t,e){t.exports=o},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={styles:{button:"k-button",bare:"k-bare",flat:"k-flat",outline:"k-outline",primary:"k-primary","state-active":"k-state-active","button-icon":"k-button-icon","state-disabled":"k-state-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"}}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__assign||Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var i=r(2),a=r(3),l=r(4),c=r(5).default.styles,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._element=null,e}return n(e,t),e.prototype.mapButtons=function(t){var e=this,r=i.Children.count(t);return i.Children.map(t,function(t,o){return i.isValidElement(t)?e.renderButton(t,o,o===r-1):t})},e.prototype.renderButton=function(t,e,r){var o,n=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1,a=l.classNames(((o={})[c["group-start"]]=n?r:0===e,o[c["group-end"]]=n?0===e:r,o)),p=s({},t.props,{className:a,style:{width:""+this.props.width},disabled:this.props.disabled||void 0});return i.cloneElement(t,p,t.props.children)},e.prototype.render=function(){var t,e=this,r=this.mapButtons(this.props.children),o=l.classNames([c["button-group"]],((t={})[c["state-disabled"]]=this.props.disabled,t[c["button-group-stretched"]]=!!this.props.width,t),this.props.className),n={className:o,style:{width:""+this.props.width},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled||void 0,"aria-multiselectable":!0};return i.createElement("div",s({ref:function(t){e._element=t}},n,{className:o}),r)},e}(i.Component);p.propTypes={children:a.arrayOf(a.element),className:a.string,disabled:a.bool,width:a.string,dir:a.string},p.defaultProps={disabled:!1},e.default=p}])}}});
{
"name": "@progress/kendo-react-buttons",
"version": "0.4.0-dev.201802141312",
"version": "0.4.0-dev.201802150802",
"description": "Kendo UI for React Buttons package",

@@ -30,8 +30,5 @@ "repository": {

"dependencies": {
"classnames": "^2.1.5",
"@progress/kendo-react-common": "0.4.0-dev.201802150802",
"prop-types": "^15.6.0"
},
"devDependencies": {
"@types/classnames": "^2.2.0"
},
"@progress": {

@@ -38,0 +35,0 @@ "friendlyName": "Buttons",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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