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

@rei/cdr-button

Package Overview
Dependencies
Maintainers
8
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rei/cdr-button - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0-alpha.0

6

CHANGELOG.md

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

<a name="1.0.1-alpha.1"></a>
## 1.0.1-alpha.1 (2018-09-13)
<a name="1.0.3"></a>
## 1.0.3 (2018-11-17)

@@ -9,2 +9,3 @@

* **button cta:** import cdr-icon css for components packaged with an icon ([6bb2233](https://github.com/rei/rei-cedar/commit/6bb2233))
* **button cta accordion:** bump version from alpha ([fe1c8f0](https://github.com/rei/rei-cedar/commit/fe1c8f0))

@@ -19,2 +20,3 @@

* **18.9.1 release:** release adds support for cdr-icon and updates the peer-dependancies of compone ([5a6da2c](https://github.com/rei/rei-cedar/commit/5a6da2c))
* **accordion button cta:** bump versions to match alpha release ([c7f21bb](https://github.com/rei/rei-cedar/commit/c7f21bb))

@@ -21,0 +23,0 @@ * **all components:** change package name prefixes from cedar-* to cdr-* ([dad0dfb](https://github.com/rei/rei-cedar/commit/dad0dfb)), closes [#354](https://github.com/rei/rei-cedar/issues/354)

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

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@rei/cdr-icon")):"function"==typeof define&&define.amd?define("CdrButton",["@rei/cdr-icon"],n):"object"==typeof exports?exports.CdrButton=n(require("@rei/cdr-icon")):t.CdrButton=n(t["@rei/cdr-icon"])}("undefined"!=typeof self?self:this,function(t){return function(t){var n={};function o(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=n,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="/",o(o.s=11)}([function(t,n,o){"use strict";var e=o(12),r=o(2),s=o(15),i=(o(16),o(1));var u=Object(i.a)(r.a,e.a,e.b,!1,function(t){this.$style=s.default.locals||s.default},null,null);n.a=u.exports},function(t,n,o){"use strict";n.a=function(t,n,o,e,r,s,i,u){var a,c="function"==typeof t?t.options:t;n&&(c.render=n,c.staticRenderFns=o,c._compiled=!0);e&&(c.functional=!0);s&&(c._scopeId="data-v-"+s);i?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=a):r&&(a=u?function(){r.call(this,this.$root.$options.shadowRoot)}:r);if(a)if(c.functional){c._injectStyles=a;var l=c.render;c.render=function(t,n){return a.call(n),l(t,n)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:c}}},function(t,n,o){"use strict";var e=o(3);n.a=e.a},function(t,n,o){"use strict";var e=o(14);n.a={name:"CdrButton",mixins:[e.a],props:{tag:{type:String,default:"button",validator:function(t){return["button","a"].indexOf(t)>=0||!1}},type:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0||!1}},onClick:{type:Function,default:function(){return function(){return null}}},fullWidth:{type:Boolean,default:!1,validator:function(t){return"boolean"==typeof t}},size:{type:String,default:"medium",validator:function(t){return["small","medium","large"].indexOf(t)>=0||!1}},responsiveSize:{type:Array},iconOnly:{type:Boolean,default:!1},onDark:{type:Boolean,default:!1}},computed:{baseClass:function(){return"cdr-button"},sizeClass:function(){return this.iconOnly?null:this.modifyClassName(this.baseClass,this.size)},responsiveClass:function(){var t=this,n=[];return this.responsiveSize&&!this.iconOnly&&this.responsiveSize.forEach(function(o){n.push(t.modifyClassName(t.baseClass,o))}),n.join(" ")},iconClass:function(){var t=[];return this.$slots.icon&&this.$slots.default&&t.push(this.modifyClassName(this.baseClass,"has-icon")),this.iconOnly&&(t.push(this.modifyClassName(this.baseClass,"icon-only")),this.onDark&&t.push(this.modifyClassName(this.baseClass,"on-dark"))),t.join(" ")},fullWidthClass:function(){return this.fullWidth&&!this.iconOnly?this.modifyClassName(this.baseClass,"full-width"):null}}}},function(t,n){t.exports={"cdr-button":"cdr-button_1.0.3","cdr-button--secondary":"cdr-button--secondary_1.0.3","cdr-button--large":"cdr-button--large_1.0.3","cdr-button--has-icon":"cdr-button--has-icon_1.0.3","cdr-button--medium":"cdr-button--medium_1.0.3","cdr-button--small":"cdr-button--small_1.0.3","cdr-button--full-width":"cdr-button--full-width_1.0.3","cdr-button--icon-only":"cdr-button--icon-only_1.0.3","cdr-button--on-dark":"cdr-button--on-dark_1.0.3","cdr-button--small@xs":"cdr-button--small@xs_1.0.3","cdr-button--medium@xs":"cdr-button--medium@xs_1.0.3","cdr-button--large@xs":"cdr-button--large@xs_1.0.3","cdr-button--small@sm":"cdr-button--small@sm_1.0.3","cdr-button--medium@sm":"cdr-button--medium@sm_1.0.3","cdr-button--large@sm":"cdr-button--large@sm_1.0.3","cdr-button--small@md":"cdr-button--small@md_1.0.3","cdr-button--medium@md":"cdr-button--medium@md_1.0.3","cdr-button--large@md":"cdr-button--large@md_1.0.3","cdr-button--small@lg":"cdr-button--small@lg_1.0.3","cdr-button--medium@lg":"cdr-button--medium@lg_1.0.3","cdr-button--large@lg":"cdr-button--large@lg_1.0.3"}},function(t,n){},function(t,n,o){"use strict";var e=o(7);n.a=e.a},function(t,n,o){"use strict";var e=o(8),r=(o.n(e),o(0));n.a={name:"CdrCloseButton",components:{IconXLg:e.IconXLg,CdrButton:r.a},extends:r.a}},function(n,o){n.exports=t},function(t,n,o){"use strict";var e=o(10);n.a=e.a},function(t,n,o){"use strict";var e=o(8),r=(o.n(e),o(0));n.a={name:"CdrPlayButton",components:{IconPlay:e.IconPlay,CdrButton:r.a},extends:r.a}},function(t,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=o(0);o.d(n,"CdrButton",function(){return e.a});var r=o(17);o.d(n,"CdrCloseButton",function(){return r.a});var s=o(20);o.d(n,"CdrPlayButton",function(){return s.a})},function(t,n,o){"use strict";var e=o(13);o.d(n,"a",function(){return e.a}),o.d(n,"b",function(){return e.b})},function(t,n,o){"use strict";o.d(n,"a",function(){return e}),o.d(n,"b",function(){return r});var e=function(){var t=this,n=t.$createElement;return(t._self._c||n)(t.tag,{tag:"component",class:[t.modifierClass,t.sizeClass,t.fullWidthClass,t.responsiveClass,t.iconClass],attrs:{type:"button"===t.tag?t.type:null},on:{click:t.onClick}},[t._t("icon"),t._v(" "),t._t("default")],2)},r=[]},function(t,n,o){"use strict";n.a={props:{modifier:String},computed:{modifierClass:function(){var t=this,n=this.baseClass,o=this.modifier?this.modifier.split(" "):[],e=[];return this.$style?(e.push(this.moduleClass(n)),e=e.concat(o.map(function(o){return t.modifyClassName(n,o)}))):(e.push(""+n),e=e.concat(o.map(function(o){return t.modifyClassName(n,o)}))),e.join(" ")}},methods:{moduleClass:function(t){return this.$style[""+t]},modifyClassName:function(t,n){return this.$style?this.moduleClass(t+"--"+n):t+"--"+n}}}},function(t,n,o){"use strict";var e=o(4),r=o.n(e);n.default=r.a},function(t,n,o){"use strict";var e=o(5);o.n(e).a},function(t,n,o){"use strict";var e=o(18),r=o(6),s=o(1),i=Object(s.a)(r.a,e.a,e.b,!1,null,null,null);n.a=i.exports},function(t,n,o){"use strict";var e=o(19);o.d(n,"a",function(){return e.a}),o.d(n,"b",function(){return e.b})},function(t,n,o){"use strict";o.d(n,"a",function(){return e}),o.d(n,"b",function(){return r});var e=function(){var t=this.$createElement,n=this._self._c||t;return n("cdr-button",{attrs:{"icon-only":!0,"on-dark":this.onDark,"aria-label":"Close"}},[n("icon-x-lg",{staticClass:"cdr-button__icon",attrs:{slot:"icon"},slot:"icon"})],1)},r=[]},function(t,n,o){"use strict";var e=o(21),r=o(9),s=o(1),i=Object(s.a)(r.a,e.a,e.b,!1,null,null,null);n.a=i.exports},function(t,n,o){"use strict";var e=o(22);o.d(n,"a",function(){return e.a}),o.d(n,"b",function(){return e.b})},function(t,n,o){"use strict";o.d(n,"a",function(){return e}),o.d(n,"b",function(){return r});var e=function(){var t=this.$createElement,n=this._self._c||t;return n("cdr-button",{attrs:{"icon-only":!0,"on-dark":this.onDark,"aria-label":"Play"}},[n("icon-play",{staticClass:"cdr-button__icon",attrs:{slot:"icon"},slot:"icon"})],1)},r=[]}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@rei/cdr-icon")):"function"==typeof define&&define.amd?define("CdrButton",["@rei/cdr-icon"],n):"object"==typeof exports?exports.CdrButton=n(require("@rei/cdr-icon")):t.CdrButton=n(t["@rei/cdr-icon"])}("undefined"!=typeof self?self:this,function(t){return function(t){var n={};function r(o){if(n[o])return n[o].exports;var e=n[o]={i:o,l:!1,exports:{}};return t[o].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=t,r.c=n,r.d=function(t,n,o){r.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="/",r(r.s=12)}([function(t,n,r){"use strict";var o=r(13),e=r(2),a=r(18),u=(r(19),r(1));var s=Object(u.a)(e.a,o.a,o.b,!1,function(t){this.$style=a.default.locals||a.default},null,null);n.a=s.exports},function(t,n,r){"use strict";n.a=function(t,n,r,o,e,a,u,s){var i,c="function"==typeof t?t.options:t;n&&(c.render=n,c.staticRenderFns=r,c._compiled=!0);o&&(c.functional=!0);a&&(c._scopeId="data-v-"+a);u?(i=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},c._ssrRegister=i):e&&(i=s?function(){e.call(this,this.$root.$options.shadowRoot)}:e);if(i)if(c.functional){c._injectStyles=i;var l=c.render;c.render=function(t,n){return i.call(n),l(t,n)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,i):[i]}return{exports:t,options:c}}},function(t,n,r){"use strict";var o=r(3);n.a=o.a},function(t,n,r){"use strict";var o=r(15),e=r(16);n.a={name:"CdrButton",mixins:[o.a,e.a],props:{tag:{type:String,default:"button",validator:function(t){return["button","a"].indexOf(t)>=0||!1}},type:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0||!1}},onClick:{type:Function,default:function(){return function(){return null}}},fullWidth:{type:Boolean,default:!1,validator:function(t){return"boolean"==typeof t}},iconOnly:{type:Boolean,default:!1},onDark:{type:Boolean,default:!1}},computed:{baseClass:function(){return"cdr-button"},buttonSizeClass:function(){return this.iconOnly?null:this.sizeClass},iconClass:function(){var t=[];return this.$slots.icon&&this.$slots.default&&t.push(this.modifyClassName(this.baseClass,"has-icon")),this.iconOnly&&(t.push(this.modifyClassName(this.baseClass,"icon-only")),this.onDark&&t.push(this.modifyClassName(this.baseClass,"on-dark"))),t.join(" ")},fullWidthClass:function(){return this.fullWidth&&!this.iconOnly?this.modifyClassName(this.baseClass,"full-width"):null}}}},function(t,n,r){"use strict";n.a={methods:{buildClass:function(t){var n=this,r="cdr";this.baseClass&&(r=this.baseClass);var o=r,e=this[t]?this[t].split(" "):[],a=[];return this.$style?(a.push(this.moduleClass(o)),a=a.concat(e.map(function(t){return n.modifyClassName(o,t)}))):(a.push(""+o),a=a.concat(e.map(function(t){return n.modifyClassName(o,t)}))),a.join(" ")},moduleClass:function(t){return this.$style[""+t]},modifyClassName:function(t,n){return this.$style?this.moduleClass(t+"--"+n):t+"--"+n}}}},function(t,n){t.exports={"cdr-button":"cdr-button_2.0.0-alpha.0","cdr-button--secondary":"cdr-button--secondary_2.0.0-alpha.0","cdr-button--large":"cdr-button--large_2.0.0-alpha.0","cdr-button--has-icon":"cdr-button--has-icon_2.0.0-alpha.0","cdr-button--medium":"cdr-button--medium_2.0.0-alpha.0","cdr-button--small":"cdr-button--small_2.0.0-alpha.0","cdr-button--full-width":"cdr-button--full-width_2.0.0-alpha.0","cdr-button--icon-only":"cdr-button--icon-only_2.0.0-alpha.0","cdr-button--on-dark":"cdr-button--on-dark_2.0.0-alpha.0","cdr-button--small@xs":"cdr-button--small@xs_2.0.0-alpha.0","cdr-button--medium@xs":"cdr-button--medium@xs_2.0.0-alpha.0","cdr-button--large@xs":"cdr-button--large@xs_2.0.0-alpha.0","cdr-button--small@sm":"cdr-button--small@sm_2.0.0-alpha.0","cdr-button--medium@sm":"cdr-button--medium@sm_2.0.0-alpha.0","cdr-button--large@sm":"cdr-button--large@sm_2.0.0-alpha.0","cdr-button--small@md":"cdr-button--small@md_2.0.0-alpha.0","cdr-button--medium@md":"cdr-button--medium@md_2.0.0-alpha.0","cdr-button--large@md":"cdr-button--large@md_2.0.0-alpha.0","cdr-button--small@lg":"cdr-button--small@lg_2.0.0-alpha.0","cdr-button--medium@lg":"cdr-button--medium@lg_2.0.0-alpha.0","cdr-button--large@lg":"cdr-button--large@lg_2.0.0-alpha.0"}},function(t,n){},function(t,n,r){"use strict";var o=r(8);n.a=o.a},function(t,n,r){"use strict";var o=r(9),e=(r.n(o),r(0));n.a={name:"CdrCloseButton",components:{IconXLg:o.IconXLg,CdrButton:e.a},extends:e.a}},function(n,r){n.exports=t},function(t,n,r){"use strict";var o=r(11);n.a=o.a},function(t,n,r){"use strict";var o=r(9),e=(r.n(o),r(0));n.a={name:"CdrPlayButton",components:{IconPlay:o.IconPlay,CdrButton:e.a},extends:e.a}},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=r(0);r.d(n,"CdrButton",function(){return o.a});var e=r(20);r.d(n,"CdrCloseButton",function(){return e.a});var a=r(23);r.d(n,"CdrPlayButton",function(){return a.a})},function(t,n,r){"use strict";var o=r(14);r.d(n,"a",function(){return o.a}),r.d(n,"b",function(){return o.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return o}),r.d(n,"b",function(){return e});var o=function(){var t=this,n=t.$createElement;return(t._self._c||n)(t.tag,{tag:"component",class:[t.modifierClass,t.buttonSizeClass,t.fullWidthClass,t.iconClass],attrs:{type:"button"===t.tag?t.type:null},on:{click:t.onClick}},[t._t("icon"),t._v(" "),t._t("default")],2)},e=[]},function(t,n,r){"use strict";var o=r(4);n.a={mixins:[o.a],props:{modifier:String},computed:{modifierClass:function(){return this.buildClass("modifier")}}}},function(t,n,r){"use strict";var o=r(17),e=r(4);n.a={mixins:[e.a],props:{size:{type:String,default:"medium",validator:function(t){return Object(o.a)(t,["small","medium","large"])}}},computed:{sizeClass:function(){return this.buildClass("size")}}}},function(t,n,r){"use strict";n.a=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.split(" ").every(function(t){var o=n.some(function(n){return r?t===n||t===n+"@xs"||t===n+"@sm"||t===n+"@md"||t===n+"@lg":t===n});return o||console.error("Invalid prop value: "+t),o})}},function(t,n,r){"use strict";var o=r(5),e=r.n(o);n.default=e.a},function(t,n,r){"use strict";var o=r(6);r.n(o).a},function(t,n,r){"use strict";var o=r(21),e=r(7),a=r(1),u=Object(a.a)(e.a,o.a,o.b,!1,null,null,null);n.a=u.exports},function(t,n,r){"use strict";var o=r(22);r.d(n,"a",function(){return o.a}),r.d(n,"b",function(){return o.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return o}),r.d(n,"b",function(){return e});var o=function(){var t=this.$createElement,n=this._self._c||t;return n("cdr-button",{attrs:{"icon-only":!0,"on-dark":this.onDark,"aria-label":"Close"}},[n("icon-x-lg",{staticClass:"cdr-button__icon",attrs:{slot:"icon"},slot:"icon"})],1)},e=[]},function(t,n,r){"use strict";var o=r(24),e=r(10),a=r(1),u=Object(a.a)(e.a,o.a,o.b,!1,null,null,null);n.a=u.exports},function(t,n,r){"use strict";var o=r(25);r.d(n,"a",function(){return o.a}),r.d(n,"b",function(){return o.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return o}),r.d(n,"b",function(){return e});var o=function(){var t=this.$createElement,n=this._self._c||t;return n("cdr-button",{attrs:{"icon-only":!0,"on-dark":this.onDark,"aria-label":"Play"}},[n("icon-play",{staticClass:"cdr-button__icon",attrs:{slot:"icon"},slot:"icon"})],1)},e=[]}])});

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

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("CdrButton",[],n):"object"==typeof exports?exports.CdrButton=n():t.CdrButton=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s=4)}([function(t,n,e){"use strict";var o=e(1);n.a=o.a},function(t,n,e){"use strict";var o=e(8);n.a={name:"CdrButton",mixins:[o.a],props:{tag:{type:String,default:"button",validator:function(t){return["button","a"].indexOf(t)>=0||!1}},type:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0||!1}},onClick:{type:Function,default:function(){return function(){return null}}},fullWidth:{type:Boolean,default:!1,validator:function(t){return"boolean"==typeof t}},size:{type:String,default:"medium",validator:function(t){return["small","medium","large"].indexOf(t)>=0||!1}},responsiveSize:{type:Array},iconOnly:{type:Boolean,default:!1},onDark:{type:Boolean,default:!1}},computed:{baseClass:function(){return"cdr-button"},sizeClass:function(){return this.iconOnly?null:this.modifyClassName(this.baseClass,this.size)},responsiveClass:function(){var t=this,n=[];return this.responsiveSize&&!this.iconOnly&&this.responsiveSize.forEach(function(e){n.push(t.modifyClassName(t.baseClass,e))}),n.join(" ")},iconClass:function(){var t=[];return this.$slots.icon&&this.$slots.default&&t.push(this.modifyClassName(this.baseClass,"has-icon")),this.iconOnly&&(t.push(this.modifyClassName(this.baseClass,"icon-only")),this.onDark&&t.push(this.modifyClassName(this.baseClass,"on-dark"))),t.join(" ")},fullWidthClass:function(){return this.fullWidth&&!this.iconOnly?this.modifyClassName(this.baseClass,"full-width"):null}}}},function(t,n){t.exports={"cdr-button":"cdr-button_1.0.3","cdr-button--secondary":"cdr-button--secondary_1.0.3","cdr-button--large":"cdr-button--large_1.0.3","cdr-button--has-icon":"cdr-button--has-icon_1.0.3","cdr-button--medium":"cdr-button--medium_1.0.3","cdr-button--small":"cdr-button--small_1.0.3","cdr-button--full-width":"cdr-button--full-width_1.0.3","cdr-button--icon-only":"cdr-button--icon-only_1.0.3","cdr-button--on-dark":"cdr-button--on-dark_1.0.3","cdr-button--small@xs":"cdr-button--small@xs_1.0.3","cdr-button--medium@xs":"cdr-button--medium@xs_1.0.3","cdr-button--large@xs":"cdr-button--large@xs_1.0.3","cdr-button--small@sm":"cdr-button--small@sm_1.0.3","cdr-button--medium@sm":"cdr-button--medium@sm_1.0.3","cdr-button--large@sm":"cdr-button--large@sm_1.0.3","cdr-button--small@md":"cdr-button--small@md_1.0.3","cdr-button--medium@md":"cdr-button--medium@md_1.0.3","cdr-button--large@md":"cdr-button--large@md_1.0.3","cdr-button--small@lg":"cdr-button--small@lg_1.0.3","cdr-button--medium@lg":"cdr-button--medium@lg_1.0.3","cdr-button--large@lg":"cdr-button--large@lg_1.0.3"}},function(t,n){},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(5);function s(t){t.component("cdr-button",o.a)}"undefined"!=typeof window&&window.Vue&&window.Vue.use(s),n.default=s},function(t,n,e){"use strict";var o=e(6),s=e(0),r=e(9),i=(e(10),e(11));var u=Object(i.a)(s.a,o.a,o.b,!1,function(t){this.$style=r.default.locals||r.default},null,null);n.a=u.exports},function(t,n,e){"use strict";var o=e(7);e.d(n,"a",function(){return o.a}),e.d(n,"b",function(){return o.b})},function(t,n,e){"use strict";e.d(n,"a",function(){return o}),e.d(n,"b",function(){return s});var o=function(){var t=this,n=t.$createElement;return(t._self._c||n)(t.tag,{tag:"component",class:[t.modifierClass,t.sizeClass,t.fullWidthClass,t.responsiveClass,t.iconClass],attrs:{type:"button"===t.tag?t.type:null},on:{click:t.onClick}},[t._t("icon"),t._v(" "),t._t("default")],2)},s=[]},function(t,n,e){"use strict";n.a={props:{modifier:String},computed:{modifierClass:function(){var t=this,n=this.baseClass,e=this.modifier?this.modifier.split(" "):[],o=[];return this.$style?(o.push(this.moduleClass(n)),o=o.concat(e.map(function(e){return t.modifyClassName(n,e)}))):(o.push(""+n),o=o.concat(e.map(function(e){return t.modifyClassName(n,e)}))),o.join(" ")}},methods:{moduleClass:function(t){return this.$style[""+t]},modifyClassName:function(t,n){return this.$style?this.moduleClass(t+"--"+n):t+"--"+n}}}},function(t,n,e){"use strict";var o=e(2),s=e.n(o);n.default=s.a},function(t,n,e){"use strict";var o=e(3);e.n(o).a},function(t,n,e){"use strict";n.a=function(t,n,e,o,s,r,i,u){var a,l="function"==typeof t?t.options:t;n&&(l.render=n,l.staticRenderFns=e,l._compiled=!0);o&&(l.functional=!0);r&&(l._scopeId="data-v-"+r);i?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=a):s&&(a=u?function(){s.call(this,this.$root.$options.shadowRoot)}:s);if(a)if(l.functional){l._injectStyles=a;var c=l.render;l.render=function(t,n){return a.call(n),c(t,n)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:l}}}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("CdrButton",[],n):"object"==typeof exports?exports.CdrButton=n():t.CdrButton=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s=5)}([function(t,n,e){"use strict";var o=e(1);n.a=o.a},function(t,n,e){"use strict";var o=e(9),r=e(10);n.a={name:"CdrButton",mixins:[o.a,r.a],props:{tag:{type:String,default:"button",validator:function(t){return["button","a"].indexOf(t)>=0||!1}},type:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0||!1}},onClick:{type:Function,default:function(){return function(){return null}}},fullWidth:{type:Boolean,default:!1,validator:function(t){return"boolean"==typeof t}},iconOnly:{type:Boolean,default:!1},onDark:{type:Boolean,default:!1}},computed:{baseClass:function(){return"cdr-button"},buttonSizeClass:function(){return this.iconOnly?null:this.sizeClass},iconClass:function(){var t=[];return this.$slots.icon&&this.$slots.default&&t.push(this.modifyClassName(this.baseClass,"has-icon")),this.iconOnly&&(t.push(this.modifyClassName(this.baseClass,"icon-only")),this.onDark&&t.push(this.modifyClassName(this.baseClass,"on-dark"))),t.join(" ")},fullWidthClass:function(){return this.fullWidth&&!this.iconOnly?this.modifyClassName(this.baseClass,"full-width"):null}}}},function(t,n,e){"use strict";n.a={methods:{buildClass:function(t){var n=this,e="cdr";this.baseClass&&(e=this.baseClass);var o=e,r=this[t]?this[t].split(" "):[],s=[];return this.$style?(s.push(this.moduleClass(o)),s=s.concat(r.map(function(t){return n.modifyClassName(o,t)}))):(s.push(""+o),s=s.concat(r.map(function(t){return n.modifyClassName(o,t)}))),s.join(" ")},moduleClass:function(t){return this.$style[""+t]},modifyClassName:function(t,n){return this.$style?this.moduleClass(t+"--"+n):t+"--"+n}}}},function(t,n){t.exports={"cdr-button":"cdr-button_2.0.0-alpha.0","cdr-button--secondary":"cdr-button--secondary_2.0.0-alpha.0","cdr-button--large":"cdr-button--large_2.0.0-alpha.0","cdr-button--has-icon":"cdr-button--has-icon_2.0.0-alpha.0","cdr-button--medium":"cdr-button--medium_2.0.0-alpha.0","cdr-button--small":"cdr-button--small_2.0.0-alpha.0","cdr-button--full-width":"cdr-button--full-width_2.0.0-alpha.0","cdr-button--icon-only":"cdr-button--icon-only_2.0.0-alpha.0","cdr-button--on-dark":"cdr-button--on-dark_2.0.0-alpha.0","cdr-button--small@xs":"cdr-button--small@xs_2.0.0-alpha.0","cdr-button--medium@xs":"cdr-button--medium@xs_2.0.0-alpha.0","cdr-button--large@xs":"cdr-button--large@xs_2.0.0-alpha.0","cdr-button--small@sm":"cdr-button--small@sm_2.0.0-alpha.0","cdr-button--medium@sm":"cdr-button--medium@sm_2.0.0-alpha.0","cdr-button--large@sm":"cdr-button--large@sm_2.0.0-alpha.0","cdr-button--small@md":"cdr-button--small@md_2.0.0-alpha.0","cdr-button--medium@md":"cdr-button--medium@md_2.0.0-alpha.0","cdr-button--large@md":"cdr-button--large@md_2.0.0-alpha.0","cdr-button--small@lg":"cdr-button--small@lg_2.0.0-alpha.0","cdr-button--medium@lg":"cdr-button--medium@lg_2.0.0-alpha.0","cdr-button--large@lg":"cdr-button--large@lg_2.0.0-alpha.0"}},function(t,n){},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(6);function r(t){t.component("cdr-button",o.a)}"undefined"!=typeof window&&window.Vue&&window.Vue.use(r),n.default=r},function(t,n,e){"use strict";var o=e(7),r=e(0),s=e(12),u=(e(13),e(14));var a=Object(u.a)(r.a,o.a,o.b,!1,function(t){this.$style=s.default.locals||s.default},null,null);n.a=a.exports},function(t,n,e){"use strict";var o=e(8);e.d(n,"a",function(){return o.a}),e.d(n,"b",function(){return o.b})},function(t,n,e){"use strict";e.d(n,"a",function(){return o}),e.d(n,"b",function(){return r});var o=function(){var t=this,n=t.$createElement;return(t._self._c||n)(t.tag,{tag:"component",class:[t.modifierClass,t.buttonSizeClass,t.fullWidthClass,t.iconClass],attrs:{type:"button"===t.tag?t.type:null},on:{click:t.onClick}},[t._t("icon"),t._v(" "),t._t("default")],2)},r=[]},function(t,n,e){"use strict";var o=e(2);n.a={mixins:[o.a],props:{modifier:String},computed:{modifierClass:function(){return this.buildClass("modifier")}}}},function(t,n,e){"use strict";var o=e(11),r=e(2);n.a={mixins:[r.a],props:{size:{type:String,default:"medium",validator:function(t){return Object(o.a)(t,["small","medium","large"])}}},computed:{sizeClass:function(){return this.buildClass("size")}}}},function(t,n,e){"use strict";n.a=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.split(" ").every(function(t){var o=n.some(function(n){return e?t===n||t===n+"@xs"||t===n+"@sm"||t===n+"@md"||t===n+"@lg":t===n});return o||console.error("Invalid prop value: "+t),o})}},function(t,n,e){"use strict";var o=e(3),r=e.n(o);n.default=r.a},function(t,n,e){"use strict";var o=e(4);e.n(o).a},function(t,n,e){"use strict";n.a=function(t,n,e,o,r,s,u,a){var i,l="function"==typeof t?t.options:t;n&&(l.render=n,l.staticRenderFns=e,l._compiled=!0);o&&(l.functional=!0);s&&(l._scopeId="data-v-"+s);u?(i=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},l._ssrRegister=i):r&&(i=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r);if(i)if(l.functional){l._injectStyles=i;var c=l.render;l.render=function(t,n){return i.call(n),c(t,n)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,i):[i]}return{exports:t,options:l}}}])});
{
"name": "@rei/cdr-button",
"version": "1.0.3",
"version": "2.0.0-alpha.0",
"author": "REI Software Engineering",

@@ -5,0 +5,0 @@ "description": "REI Cedar Style Framework - Vue Component for Button",

@@ -189,3 +189,3 @@ # CdrButton

import { CdrButton } from '@rei/cdr-button';
import { CdrIcon } from '@rei/cdr-icon;
import { CdrIcon } from '@rei/cdr-icon';
export default {

@@ -192,0 +192,0 @@ ...

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