UNPKG

bootstrap-vue-next

Version:

Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development

1 lines 714 B
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/directives/BColorMode/index.ts"],"sourcesContent":["import type {Directive, DirectiveBinding} from 'vue'\n\nconst setTheme = (el: Readonly<HTMLElement>, value: string): void =>\n el.setAttribute('data-bs-theme', value)\nexport const vBColorMode: Directive<HTMLElement> = {\n mounted(el, binding: DirectiveBinding): void {\n setTheme(el, binding.value)\n },\n updated(el, binding: DirectiveBinding): void {\n setTheme(el, binding.value)\n },\n}\n"],"mappings":";AAEA,IAAM,YAAY,IAA2B,UAC3C,GAAG,aAAa,iBAAiB,MAAM;AACzC,IAAa,cAAsC;CACjD,QAAQ,IAAI,SAAiC;AAC3C,WAAS,IAAI,QAAQ,MAAM;;CAE7B,QAAQ,IAAI,SAAiC;AAC3C,WAAS,IAAI,QAAQ,MAAM;;CAE9B"}