material-components-vue
Version:
Material Design components for Vue.js
1 lines • 4.93 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 n={},t.m=e={2: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 l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(l=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)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},57:function(t,e,n){},59:function(t,e,n){"use strict";n.r(e);var r=n(2),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]},l=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,u={mixins:[r.a,r.b]},c=Object(i.a)(u,(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",l),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}))}},t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=59);function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e,n}));