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.1.2 to 0.1.3-dev.201801101534

2

dist/systemjs/kendo-react-buttons.js

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

System.register("@progress/kendo-react-buttons",["react","prop-types","classnames"],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++){e=arguments[r];for(var n in e)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=r},function(t,e){t.exports=o},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++){e=arguments[r];for(var n in e)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","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++){e=arguments[r];for(var n in e)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++){e=arguments[r];for(var n in e)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}])}}});
{
"name": "@progress/kendo-react-buttons",
"version": "0.1.2",
"version": "0.1.3-dev.201801101534",
"description": "Kendo UI for React Buttons package",

@@ -5,0 +5,0 @@ "repository": {

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