material-components-vue
Version:
Material Design components for Vue.js
1 lines • 4.92 kB
JavaScript
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=60)}({1:function(t,e,n){"use strict";var r={inheritAttrs:!1},o=["primary","secondary","background","surface","on-primary","on-secondary","on-surface","primary-bg","secondary-bg","text-primary-on-light","text-secondary-on-light","text-hint-on-light","text-disabled-on-light","text-icon-on-light","text-primary-on-dark","text-secondary-on-dark","text-hint-on-dark","text-disabled-on-dark","text-icon-on-dark"],i={props:{theming:{type:String,default:""}},mounted:function(){-1<o.indexOf(this.theming)&&this.$el.classList.add("mdc-theme--"+this.theming)}};n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},4:function(t,e,n){"use strict";function r(t,e,n,r,o,i,s,a){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(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(s)},l._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}n.d(e,"a",function(){return r})},57:function(t,e,n){},60:function(t,e,n){"use strict";n.r(e);var r=n(1),o={mixins:[r.a,r.b],props:{level:{type:Number,required:!0,validator:function(t){return 0<t&&t<=2}}},computed:{classes:function(){var t={};return t["mdc-typography--body"+this.level]=!0,t}}},i=n(4),s=Object(i.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("span",{class:this.classes},[this._t("default")],2)},[],!1,null,null,null).exports,a={mixins:[r.a,r.b]},u=Object(i.a)(a,function(){var t=this.$createElement;return(this._self._c||t)("span",{staticClass:"mdc-typography--button"},[this._t("default")],2)},[],!1,null,null,null).exports,l={mixins:[r.a,r.b]},c=Object(i.a)(l,function(){var t=this.$createElement;return(this._self._c||t)("span",{staticClass:"mdc-typography--caption"},[this._t("default")],2)},[],!1,null,null,null).exports,d={mixins:[r.a,r.b],props:{level:{type:Number,required:!0,validator:function(t){return 1<=t&&t<=6}}},computed:{classes:function(){var t={};return t["mdc-typography--headline"+this.level]=!0,t}}},p=Object(i.a)(d,function(){var t=this.$createElement;return(this._self._c||t)("span",{class:this.classes},[this._t("default")],2)},[],!1,null,null,null).exports,f={mixins:[r.a,r.b]},h=Object(i.a)(f,function(){var t=this.$createElement;return(this._self._c||t)("span",{staticClass:"mdc-typography--overline"},[this._t("default")],2)},[],!1,null,null,null).exports,m={mixins:[r.a,r.b],props:{level:{type:Number,required:!0,validator:function(t){return 0<t&&t<=2}}},computed:{classes:function(){var t={};return t["mdc-typography--subheading"+this.level]=!0,t}}},y=Object(i.a)(m,function(){var t=this.$createElement;return(this._self._c||t)("span",{class:this.classes},[this._t("default")],2)},[],!1,null,null,null).exports,b={mixins:[r.a,r.b]},_=Object(i.a)(b,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"mdc-typography"},[this._t("default")],2)},[],!1,null,null,null).exports,v=(n(57),n(7)),x={install:function(t){t.component("m-typo-body",s),t.component("m-typo-button",u),t.component("m-typo-caption",c),t.component("m-typo-headline",p),t.component("m-typo-overline",h),t.component("m-typo-subheading",y),t.component("m-typography",_)}};e.default=x,Object(v.a)(x)},7:function(t,e,n){"use strict";function r(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)}n.d(e,"a",function(){return r})}})});