This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+23
View File
@@ -0,0 +1,23 @@
// Mixins
import Themeable from '../../mixins/themeable';
/* @vue/component */
export default Themeable.extend({
name: 'v-theme-provider',
props: {
root: Boolean
},
computed: {
isDark() {
return this.root ? this.rootIsDark : Themeable.options.computed.isDark.call(this);
}
},
render() {
/* istanbul ignore next */
return this.$slots.default && this.$slots.default.find(node => !node.isComment && node.text !== ' ');
}
});
//# sourceMappingURL=VThemeProvider.js.map
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/VThemeProvider/VThemeProvider.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,SAAP,MAAsB,wBAAtB;AAKA;;AACA,eAAe,SAAS,CAAC,MAAV,CAAiB;AAC9B,EAAA,IAAI,EAAE,kBADwB;AAG9B,EAAA,KAAK,EAAE;AAAE,IAAA,IAAI,EAAE;AAAR,GAHuB;AAK9B,EAAA,QAAQ,EAAE;AACR,IAAA,MAAM,GAAA;AACJ,aAAO,KAAK,IAAL,GACH,KAAK,UADF,GAEH,SAAS,CAAC,OAAV,CAAkB,QAAlB,CAA2B,MAA3B,CAAkC,IAAlC,CAAuC,IAAvC,CAFJ;AAGD;;AALO,GALoB;;AAa9B,EAAA,MAAM,GAAA;AACJ;AACA,WACE,KAAK,MAAL,CAAY,OAAZ,IACA,KAAK,MAAL,CAAY,OAAZ,CAAqB,IAArB,CAA0B,IAAI,IAAI,CAAC,IAAI,CAAC,SAAN,IAAmB,IAAI,CAAC,IAAL,KAAc,GAAnE,CAFF;AAID;;AAnB6B,CAAjB,CAAf","sourcesContent":["// Mixins\nimport Themeable from '../../mixins/themeable'\n\n// Types\nimport { VNode } from 'vue'\n\n/* @vue/component */\nexport default Themeable.extend({\n name: 'v-theme-provider',\n\n props: { root: Boolean },\n\n computed: {\n isDark (): boolean {\n return this.root\n ? this.rootIsDark\n : Themeable.options.computed.isDark.call(this)\n },\n },\n\n render (): VNode {\n /* istanbul ignore next */\n return (\n this.$slots.default! &&\n this.$slots.default!.find(node => !node.isComment && node.text !== ' ')!\n )\n },\n})\n"],"sourceRoot":"","file":"VThemeProvider.js"}
+4
View File
@@ -0,0 +1,4 @@
import VThemeProvider from './VThemeProvider';
export { VThemeProvider };
export default VThemeProvider;
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/VThemeProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAP,MAA2B,kBAA3B;AAEA,SAAS,cAAT;AACA,eAAe,cAAf","sourcesContent":["import VThemeProvider from './VThemeProvider'\n\nexport { VThemeProvider }\nexport default VThemeProvider\n"],"sourceRoot":"","file":"index.js"}