@rei/cdr-button
Advanced tools
Comparing version 2.0.2-alpha.1 to 2.0.2
@@ -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 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.2-alpha.1","cdr-button--secondary":"cdr-button--secondary_2.0.2-alpha.1","cdr-button--large":"cdr-button--large_2.0.2-alpha.1","cdr-button--has-icon":"cdr-button--has-icon_2.0.2-alpha.1","cdr-button--medium":"cdr-button--medium_2.0.2-alpha.1","cdr-button--small":"cdr-button--small_2.0.2-alpha.1","cdr-button--full-width":"cdr-button--full-width_2.0.2-alpha.1","cdr-button--icon-only":"cdr-button--icon-only_2.0.2-alpha.1","cdr-button--on-dark":"cdr-button--on-dark_2.0.2-alpha.1","cdr-button--small@xs":"cdr-button--small@xs_2.0.2-alpha.1","cdr-button--medium@xs":"cdr-button--medium@xs_2.0.2-alpha.1","cdr-button--large@xs":"cdr-button--large@xs_2.0.2-alpha.1","cdr-button--small@sm":"cdr-button--small@sm_2.0.2-alpha.1","cdr-button--medium@sm":"cdr-button--medium@sm_2.0.2-alpha.1","cdr-button--large@sm":"cdr-button--large@sm_2.0.2-alpha.1","cdr-button--small@md":"cdr-button--small@md_2.0.2-alpha.1","cdr-button--medium@md":"cdr-button--medium@md_2.0.2-alpha.1","cdr-button--large@md":"cdr-button--large@md_2.0.2-alpha.1","cdr-button--small@lg":"cdr-button--small@lg_2.0.2-alpha.1","cdr-button--medium@lg":"cdr-button--medium@lg_2.0.2-alpha.1","cdr-button--large@lg":"cdr-button--large@lg_2.0.2-alpha.1"}},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=[]}])}); | ||
!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),u=r(18),s=(r(19),r(1));var i=Object(s.a)(e.a,o.a,o.b,!1,function(t){this.$style=u.default.locals||u.default},null,null);n.a=i.exports},function(t,n,r){"use strict";n.a=function(t,n,r,o,e,u,s,i){var a,c="function"==typeof t?t.options:t;n&&(c.render=n,c.staticRenderFns=r,c._compiled=!0);o&&(c.functional=!0);u&&(c._scopeId="data-v-"+u);s?(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__),e&&e.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):e&&(a=i?function(){e.call(this,this.$root.$options.shadowRoot)}:e);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,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(" "):[],u=[];return this.$style?(u.push(this.moduleClass(o)),u=u.concat(e.map(function(t){return n.modifyClassName(o,t)}))):(u.push(""+o),u=u.concat(e.map(function(t){return n.modifyClassName(o,t)}))),u.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.2","cdr-button--secondary":"cdr-button--secondary_2.0.2","cdr-button--large":"cdr-button--large_2.0.2","cdr-button--has-icon":"cdr-button--has-icon_2.0.2","cdr-button--medium":"cdr-button--medium_2.0.2","cdr-button--small":"cdr-button--small_2.0.2","cdr-button--full-width":"cdr-button--full-width_2.0.2","cdr-button--icon-only":"cdr-button--icon-only_2.0.2","cdr-button--on-dark":"cdr-button--on-dark_2.0.2","cdr-button--small@xs":"cdr-button--small@xs_2.0.2","cdr-button--medium@xs":"cdr-button--medium@xs_2.0.2","cdr-button--large@xs":"cdr-button--large@xs_2.0.2","cdr-button--small@sm":"cdr-button--small@sm_2.0.2","cdr-button--medium@sm":"cdr-button--medium@sm_2.0.2","cdr-button--large@sm":"cdr-button--large@sm_2.0.2","cdr-button--small@md":"cdr-button--small@md_2.0.2","cdr-button--medium@md":"cdr-button--medium@md_2.0.2","cdr-button--large@md":"cdr-button--large@md_2.0.2","cdr-button--small@lg":"cdr-button--small@lg_2.0.2","cdr-button--medium@lg":"cdr-button--medium@lg_2.0.2","cdr-button--large@lg":"cdr-button--large@lg_2.0.2"}},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 u=r(23);r.d(n,"CdrPlayButton",function(){return u.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),u=r(1),s=Object(u.a)(e.a,o.a,o.b,!1,null,null,null);n.a=s.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),u=r(1),s=Object(u.a)(e.a,o.a,o.b,!1,null,null,null);n.a=s.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 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.2-alpha.1","cdr-button--secondary":"cdr-button--secondary_2.0.2-alpha.1","cdr-button--large":"cdr-button--large_2.0.2-alpha.1","cdr-button--has-icon":"cdr-button--has-icon_2.0.2-alpha.1","cdr-button--medium":"cdr-button--medium_2.0.2-alpha.1","cdr-button--small":"cdr-button--small_2.0.2-alpha.1","cdr-button--full-width":"cdr-button--full-width_2.0.2-alpha.1","cdr-button--icon-only":"cdr-button--icon-only_2.0.2-alpha.1","cdr-button--on-dark":"cdr-button--on-dark_2.0.2-alpha.1","cdr-button--small@xs":"cdr-button--small@xs_2.0.2-alpha.1","cdr-button--medium@xs":"cdr-button--medium@xs_2.0.2-alpha.1","cdr-button--large@xs":"cdr-button--large@xs_2.0.2-alpha.1","cdr-button--small@sm":"cdr-button--small@sm_2.0.2-alpha.1","cdr-button--medium@sm":"cdr-button--medium@sm_2.0.2-alpha.1","cdr-button--large@sm":"cdr-button--large@sm_2.0.2-alpha.1","cdr-button--small@md":"cdr-button--small@md_2.0.2-alpha.1","cdr-button--medium@md":"cdr-button--medium@md_2.0.2-alpha.1","cdr-button--large@md":"cdr-button--large@md_2.0.2-alpha.1","cdr-button--small@lg":"cdr-button--small@lg_2.0.2-alpha.1","cdr-button--medium@lg":"cdr-button--medium@lg_2.0.2-alpha.1","cdr-button--large@lg":"cdr-button--large@lg_2.0.2-alpha.1"}},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}}}])}); | ||
!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.2","cdr-button--secondary":"cdr-button--secondary_2.0.2","cdr-button--large":"cdr-button--large_2.0.2","cdr-button--has-icon":"cdr-button--has-icon_2.0.2","cdr-button--medium":"cdr-button--medium_2.0.2","cdr-button--small":"cdr-button--small_2.0.2","cdr-button--full-width":"cdr-button--full-width_2.0.2","cdr-button--icon-only":"cdr-button--icon-only_2.0.2","cdr-button--on-dark":"cdr-button--on-dark_2.0.2","cdr-button--small@xs":"cdr-button--small@xs_2.0.2","cdr-button--medium@xs":"cdr-button--medium@xs_2.0.2","cdr-button--large@xs":"cdr-button--large@xs_2.0.2","cdr-button--small@sm":"cdr-button--small@sm_2.0.2","cdr-button--medium@sm":"cdr-button--medium@sm_2.0.2","cdr-button--large@sm":"cdr-button--large@sm_2.0.2","cdr-button--small@md":"cdr-button--small@md_2.0.2","cdr-button--medium@md":"cdr-button--medium@md_2.0.2","cdr-button--large@md":"cdr-button--large@md_2.0.2","cdr-button--small@lg":"cdr-button--small@lg_2.0.2","cdr-button--medium@lg":"cdr-button--medium@lg_2.0.2","cdr-button--large@lg":"cdr-button--large@lg_2.0.2"}},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 i=Object(u.a)(r.a,o.a,o.b,!1,function(t){this.$style=s.default.locals||s.default},null,null);n.a=i.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,i){var a,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?(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(u)},l._ssrRegister=a):r&&(a=i?function(){r.call(this,this.$root.$options.shadowRoot)}:r);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}}}])}); |
{ | ||
"name": "@rei/cdr-button", | ||
"version": "2.0.2-alpha.1", | ||
"version": "2.0.2", | ||
"author": "REI Software Engineering", | ||
@@ -5,0 +5,0 @@ "description": "REI Cedar Style Framework - Vue Component for Button", |
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
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
1
1
31503
1