vuestic-ui
Version:
Vue 3 UI Framework
1 lines • 929 B
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../../../../src/services/color/plugin/index.ts"],"sourcesContent":["import { PartialGlobalConfig } from './../../global-config/types'\nimport { createColorConfigPlugin } from './create-color-config-plugin'\nimport { defineGlobalProperty, defineVuesticPlugin } from '../../vue-plugin/utils'\n\n/** Creates color css variables and reactively updates on ColorConfig changes. */\nexport const ColorConfigPlugin = defineVuesticPlugin((config?: PartialGlobalConfig) => ({\n install (app) {\n defineGlobalProperty(app, '$vaColorConfig', createColorConfigPlugin(app, config))\n },\n}))\n\ndeclare module 'vue' {\n export interface ComponentCustomProperties {\n $vaColorConfig: ReturnType<typeof createColorConfigPlugin>\n }\n}\n"],"names":[],"mappings":";;;AAKa,MAAA,oBAAoB,oBAAoB,CAAC,YAAkC;AAAA,EACtF,QAAS,KAAK;AACZ,yBAAqB,KAAK,kBAAkB,wBAAwB,GAAW,CAAC;AAAA,EAClF;AACF,EAAE;"}