@rei/cdr-button
Advanced tools
Comparing version 1.0.0 to 1.0.1-alpha.0
<a name="1.0.0"></a> | ||
# 1.0.0 (2018-07-25) | ||
# 1.0.0 (2018-08-01) | ||
@@ -27,2 +27,3 @@ | ||
* **release:** bump all to 0.1.0 and remove base-components ([f5c335e](https://github.com/rei/rei-cedar/commit/f5c335e)) | ||
* **release:** button, breadcrumb, grid, and list are released to v1 ([d6973b7](https://github.com/rei/rei-cedar/commit/d6973b7)) | ||
@@ -29,0 +30,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@rei/cdr-icon"),require("@rei/cdr-icon/dist/cdr-icon.css")):"function"==typeof define&&define.amd?define("CdrButton",["@rei/cdr-icon","@rei/cdr-icon/dist/cdr-icon.css"],n):"object"==typeof exports?exports.CdrButton=n(require("@rei/cdr-icon"),require("@rei/cdr-icon/dist/cdr-icon.css")):t.CdrButton=n(t["@rei/cdr-icon"],t["@rei/cdr-icon/dist/cdr-icon.css"])}("undefined"!=typeof self?self:this,function(t,n){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},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=13)}([function(t,n,r){"use strict";var e=r(14),o=r(2),s=r(18),i=r(1);var u=Object(i.a)(o.a,e.a,e.b,!1,function(t){this.$style=s.default.locals||s.default},null,null);n.a=u.exports},function(t,n,r){"use strict";n.a=function(t,n,r,e,o,s,i,u){var c,a="function"==typeof t?t.options:t;n&&(a.render=n,a.staticRenderFns=r,a._compiled=!0);e&&(a.functional=!0);s&&(a._scopeId="data-v-"+s);i?(c=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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},a._ssrRegister=c):o&&(c=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o);if(c)if(a.functional){a._injectStyles=c;var l=a.render;a.render=function(t,n){return c.call(n),l(t,n)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:a}}},function(t,n,r){"use strict";var e=r(3);n.a=e.a},function(t,n,r){"use strict";var e=r(16),o=r(17);n.a={name:"CdrButton",mixins:[e.a,o.a],props:{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(r){n.push(t.modifyClassName(t.baseClass,r))}),n.join(" ")},iconClass:function(){var t=[];return this.$slots.default&&this.$slots.default.length>1&&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(" ")}}}},function(t,n){t.exports={"cdr-button":"cdr-button_1.0.0","cdr-button--secondary":"cdr-button--secondary_1.0.0","cdr-button--large":"cdr-button--large_1.0.0","cdr-button--has-icon":"cdr-button--has-icon_1.0.0","cdr-button--medium":"cdr-button--medium_1.0.0","cdr-button--small":"cdr-button--small_1.0.0","cdr-button--full-width":"cdr-button--full-width_1.0.0","cdr-button--icon-only":"cdr-button--icon-only_1.0.0","cdr-button--on-dark":"cdr-button--on-dark_1.0.0","cdr-button--small@xs":"cdr-button--small@xs_1.0.0","cdr-button--medium@xs":"cdr-button--medium@xs_1.0.0","cdr-button--large@xs":"cdr-button--large@xs_1.0.0","cdr-button--small@sm":"cdr-button--small@sm_1.0.0","cdr-button--medium@sm":"cdr-button--medium@sm_1.0.0","cdr-button--large@sm":"cdr-button--large@sm_1.0.0","cdr-button--small@md":"cdr-button--small@md_1.0.0","cdr-button--medium@md":"cdr-button--medium@md_1.0.0","cdr-button--large@md":"cdr-button--large@md_1.0.0","cdr-button--small@lg":"cdr-button--small@lg_1.0.0","cdr-button--medium@lg":"cdr-button--medium@lg_1.0.0","cdr-button--large@lg":"cdr-button--large@lg_1.0.0"}},function(t,n,r){"use strict";var e=r(6);n.a=e.a},function(t,n,r){"use strict";var e=r(7),o=(r.n(e),r(8)),s=(r.n(o),r(0));n.a={name:"CdrCloseButton",components:{IconXLg:e.IconXLg,CdrButton:s.a},extends:s.a}},function(n,r){n.exports=t},function(t,r){t.exports=n},function(t,n){},function(t,n,r){"use strict";var e=r(11);n.a=e.a},function(t,n,r){"use strict";var e=r(7),o=(r.n(e),r(8)),s=(r.n(o),r(0));n.a={name:"CdrPlayButton",components:{IconPlay:e.IconPlay,CdrButton:s.a},extends:s.a}},function(t,n){},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=r(0);r.d(n,"CdrButton",function(){return e.a});var o=r(19);r.d(n,"CdrCloseButton",function(){return o.a});var s=r(23);r.d(n,"CdrPlayButton",function(){return s.a})},function(t,n,r){"use strict";var e=r(15);r.d(n,"a",function(){return e.a}),r.d(n,"b",function(){return e.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return e}),r.d(n,"b",function(){return o});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)},o=[]},function(t,n,r){"use strict";n.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}}},computed:{fullWidthClass:function(){return this.fullWidth&&!this.iconOnly?this.modifyClassName(this.baseClass,"full-width"):null}}}},function(t,n,r){"use strict";n.a={props:{modifier:String},computed:{modifierClass:function(){var t=this,n=this.baseClass,r=this.modifier?this.modifier.split(" "):[],e=[];return this.$style?(e.push(this.moduleClass(n)),e=e.concat(r.map(function(r){return t.modifyClassName(n,r)}))):(e.push(""+n),e=e.concat(r.map(function(r){return t.modifyClassName(n,r)}))),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,r){"use strict";var e=r(4),o=r.n(e);n.default=o.a},function(t,n,r){"use strict";var e=r(20),o=r(5),s=(r(22),r(1)),i=Object(s.a)(o.a,e.a,e.b,!1,null,null,null);n.a=i.exports},function(t,n,r){"use strict";var e=r(21);r.d(n,"a",function(){return e.a}),r.d(n,"b",function(){return e.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return e}),r.d(n,"b",function(){return o});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"})]],2)},o=[]},function(t,n,r){"use strict";var e=r(9);r.n(e).a},function(t,n,r){"use strict";var e=r(24),o=r(10),s=(r(26),r(1)),i=Object(s.a)(o.a,e.a,e.b,!1,null,null,null);n.a=i.exports},function(t,n,r){"use strict";var e=r(25);r.d(n,"a",function(){return e.a}),r.d(n,"b",function(){return e.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return e}),r.d(n,"b",function(){return o});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"})]],2)},o=[]},function(t,n,r){"use strict";var e=r(12);r.n(e).a}])}); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@rei/cdr-icon"),require("@rei/cdr-icon/dist/cdr-icon.css")):"function"==typeof define&&define.amd?define("CdrButton",["@rei/cdr-icon","@rei/cdr-icon/dist/cdr-icon.css"],n):"object"==typeof exports?exports.CdrButton=n(require("@rei/cdr-icon"),require("@rei/cdr-icon/dist/cdr-icon.css")):t.CdrButton=n(t["@rei/cdr-icon"],t["@rei/cdr-icon/dist/cdr-icon.css"])}("undefined"!=typeof self?self:this,function(t,n){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},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=13)}([function(t,n,r){"use strict";var e=r(14),o=r(2),s=r(17),i=r(1);var a=Object(i.a)(o.a,e.a,e.b,!1,function(t){this.$style=s.default.locals||s.default},null,null);n.a=a.exports},function(t,n,r){"use strict";n.a=function(t,n,r,e,o,s,i,a){var u,c="function"==typeof t?t.options:t;n&&(c.render=n,c.staticRenderFns=r,c._compiled=!0);e&&(c.functional=!0);s&&(c._scopeId="data-v-"+s);i?(u=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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o);if(u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,n){return u.call(n),l(t,n)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:c}}},function(t,n,r){"use strict";var e=r(3);n.a=e.a},function(t,n,r){"use strict";var e=r(16);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(r){n.push(t.modifyClassName(t.baseClass,r))}),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.1-alpha.0","cdr-button--secondary":"cdr-button--secondary_1.0.1-alpha.0","cdr-button--large":"cdr-button--large_1.0.1-alpha.0","cdr-button--has-icon":"cdr-button--has-icon_1.0.1-alpha.0","cdr-button--medium":"cdr-button--medium_1.0.1-alpha.0","cdr-button--small":"cdr-button--small_1.0.1-alpha.0","cdr-button--full-width":"cdr-button--full-width_1.0.1-alpha.0","cdr-button--icon-only":"cdr-button--icon-only_1.0.1-alpha.0","cdr-button--on-dark":"cdr-button--on-dark_1.0.1-alpha.0","cdr-button--small@xs":"cdr-button--small@xs_1.0.1-alpha.0","cdr-button--medium@xs":"cdr-button--medium@xs_1.0.1-alpha.0","cdr-button--large@xs":"cdr-button--large@xs_1.0.1-alpha.0","cdr-button--small@sm":"cdr-button--small@sm_1.0.1-alpha.0","cdr-button--medium@sm":"cdr-button--medium@sm_1.0.1-alpha.0","cdr-button--large@sm":"cdr-button--large@sm_1.0.1-alpha.0","cdr-button--small@md":"cdr-button--small@md_1.0.1-alpha.0","cdr-button--medium@md":"cdr-button--medium@md_1.0.1-alpha.0","cdr-button--large@md":"cdr-button--large@md_1.0.1-alpha.0","cdr-button--small@lg":"cdr-button--small@lg_1.0.1-alpha.0","cdr-button--medium@lg":"cdr-button--medium@lg_1.0.1-alpha.0","cdr-button--large@lg":"cdr-button--large@lg_1.0.1-alpha.0"}},function(t,n,r){"use strict";var e=r(6);n.a=e.a},function(t,n,r){"use strict";var e=r(7),o=(r.n(e),r(8)),s=(r.n(o),r(0));n.a={name:"CdrCloseButton",components:{IconXLg:e.IconXLg,CdrButton:s.a},extends:s.a}},function(n,r){n.exports=t},function(t,r){t.exports=n},function(t,n){},function(t,n,r){"use strict";var e=r(11);n.a=e.a},function(t,n,r){"use strict";var e=r(7),o=(r.n(e),r(8)),s=(r.n(o),r(0));n.a={name:"CdrPlayButton",components:{IconPlay:e.IconPlay,CdrButton:s.a},extends:s.a}},function(t,n){},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=r(0);r.d(n,"CdrButton",function(){return e.a});var o=r(18);r.d(n,"CdrCloseButton",function(){return o.a});var s=r(22);r.d(n,"CdrPlayButton",function(){return s.a})},function(t,n,r){"use strict";var e=r(15);r.d(n,"a",function(){return e.a}),r.d(n,"b",function(){return e.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return e}),r.d(n,"b",function(){return o});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)},o=[]},function(t,n,r){"use strict";n.a={props:{modifier:String},computed:{modifierClass:function(){var t=this,n=this.baseClass,r=this.modifier?this.modifier.split(" "):[],e=[];return this.$style?(e.push(this.moduleClass(n)),e=e.concat(r.map(function(r){return t.modifyClassName(n,r)}))):(e.push(""+n),e=e.concat(r.map(function(r){return t.modifyClassName(n,r)}))),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,r){"use strict";var e=r(4),o=r.n(e);n.default=o.a},function(t,n,r){"use strict";var e=r(19),o=r(5),s=(r(21),r(1)),i=Object(s.a)(o.a,e.a,e.b,!1,null,null,null);n.a=i.exports},function(t,n,r){"use strict";var e=r(20);r.d(n,"a",function(){return e.a}),r.d(n,"b",function(){return e.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return e}),r.d(n,"b",function(){return o});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("template",{slot:"icon"},[n("icon-x-lg",{staticClass:"cdr-button__icon"})],1)],2)},o=[]},function(t,n,r){"use strict";var e=r(9);r.n(e).a},function(t,n,r){"use strict";var e=r(23),o=r(10),s=(r(25),r(1)),i=Object(s.a)(o.a,e.a,e.b,!1,null,null,null);n.a=i.exports},function(t,n,r){"use strict";var e=r(24);r.d(n,"a",function(){return e.a}),r.d(n,"b",function(){return e.b})},function(t,n,r){"use strict";r.d(n,"a",function(){return e}),r.d(n,"b",function(){return o});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("template",{slot:"icon"},[n("icon-play",{staticClass:"cdr-button__icon"})],1)],2)},o=[]},function(t,n,r){"use strict";var e=r(12);r.n(e).a}])}); |
@@ -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=3)}([function(t,n,e){"use strict";var o=e(1);n.a=o.a},function(t,n,e){"use strict";var o=e(7),s=e(8);n.a={name:"CdrButton",mixins:[o.a,s.a],props:{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.default&&this.$slots.default.length>1&&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(" ")}}}},function(t,n){t.exports={"cdr-button":"cdr-button_1.0.0","cdr-button--secondary":"cdr-button--secondary_1.0.0","cdr-button--large":"cdr-button--large_1.0.0","cdr-button--has-icon":"cdr-button--has-icon_1.0.0","cdr-button--medium":"cdr-button--medium_1.0.0","cdr-button--small":"cdr-button--small_1.0.0","cdr-button--full-width":"cdr-button--full-width_1.0.0","cdr-button--icon-only":"cdr-button--icon-only_1.0.0","cdr-button--on-dark":"cdr-button--on-dark_1.0.0","cdr-button--small@xs":"cdr-button--small@xs_1.0.0","cdr-button--medium@xs":"cdr-button--medium@xs_1.0.0","cdr-button--large@xs":"cdr-button--large@xs_1.0.0","cdr-button--small@sm":"cdr-button--small@sm_1.0.0","cdr-button--medium@sm":"cdr-button--medium@sm_1.0.0","cdr-button--large@sm":"cdr-button--large@sm_1.0.0","cdr-button--small@md":"cdr-button--small@md_1.0.0","cdr-button--medium@md":"cdr-button--medium@md_1.0.0","cdr-button--large@md":"cdr-button--large@md_1.0.0","cdr-button--small@lg":"cdr-button--small@lg_1.0.0","cdr-button--medium@lg":"cdr-button--medium@lg_1.0.0","cdr-button--large@lg":"cdr-button--large@lg_1.0.0"}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(4);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(5),s=e(0),r=e(9),i=e(10);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(6);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:{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}}},computed:{fullWidthClass:function(){return this.fullWidth&&!this.iconOnly?this.modifyClassName(this.baseClass,"full-width"):null}}}},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";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 d=l.render;l.render=function(t,n){return a.call(n),d(t,n)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,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 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=3)}([function(t,n,e){"use strict";var o=e(1);n.a=o.a},function(t,n,e){"use strict";var o=e(7);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.1-alpha.0","cdr-button--secondary":"cdr-button--secondary_1.0.1-alpha.0","cdr-button--large":"cdr-button--large_1.0.1-alpha.0","cdr-button--has-icon":"cdr-button--has-icon_1.0.1-alpha.0","cdr-button--medium":"cdr-button--medium_1.0.1-alpha.0","cdr-button--small":"cdr-button--small_1.0.1-alpha.0","cdr-button--full-width":"cdr-button--full-width_1.0.1-alpha.0","cdr-button--icon-only":"cdr-button--icon-only_1.0.1-alpha.0","cdr-button--on-dark":"cdr-button--on-dark_1.0.1-alpha.0","cdr-button--small@xs":"cdr-button--small@xs_1.0.1-alpha.0","cdr-button--medium@xs":"cdr-button--medium@xs_1.0.1-alpha.0","cdr-button--large@xs":"cdr-button--large@xs_1.0.1-alpha.0","cdr-button--small@sm":"cdr-button--small@sm_1.0.1-alpha.0","cdr-button--medium@sm":"cdr-button--medium@sm_1.0.1-alpha.0","cdr-button--large@sm":"cdr-button--large@sm_1.0.1-alpha.0","cdr-button--small@md":"cdr-button--small@md_1.0.1-alpha.0","cdr-button--medium@md":"cdr-button--medium@md_1.0.1-alpha.0","cdr-button--large@md":"cdr-button--large@md_1.0.1-alpha.0","cdr-button--small@lg":"cdr-button--small@lg_1.0.1-alpha.0","cdr-button--medium@lg":"cdr-button--medium@lg_1.0.1-alpha.0","cdr-button--large@lg":"cdr-button--large@lg_1.0.1-alpha.0"}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(4);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(5),s=e(0),r=e(8),a=e(9);var i=Object(a.a)(s.a,o.a,o.b,!1,function(t){this.$style=r.default.locals||r.default},null,null);n.a=i.exports},function(t,n,e){"use strict";var o=e(6);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";n.a=function(t,n,e,o,s,r,a,i){var u,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);a?(u=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(a)},l._ssrRegister=u):s&&(u=i?function(){s.call(this,this.$root.$options.shadowRoot)}:s);if(u)if(l.functional){l._injectStyles=u;var d=l.render;l.render=function(t,n){return u.call(n),d(t,n)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:t,options:l}}}])}); |
{ | ||
"name": "@rei/cdr-button", | ||
"version": "1.0.0", | ||
"version": "1.0.1-alpha.0", | ||
"author": "REI Software Engineering", | ||
@@ -5,0 +5,0 @@ "description": "REI Cedar Style Framework - Vue Component for Button", |
@@ -152,3 +152,3 @@ # CdrButton | ||
<cdr-button> | ||
<template name="icon"> | ||
<template slot="icon"> | ||
<cdr-icon | ||
@@ -194,3 +194,3 @@ class="cdr-button__icon" | ||
> | ||
<template name="icon"> | ||
<template slot="icon"> | ||
<icon-check-lg class="cdr-button__icon" /> | ||
@@ -197,0 +197,0 @@ </template> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
39060
0
2