UNPKG

bootstrap-vue-next

Version:

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

1 lines 854 B
{"version":3,"file":"index.mjs","sources":["../../../../src/directives/BTooltip/index.ts"],"sourcesContent":["import {type Directive} from 'vue'\nimport {type ElementWithPopper, resolveDirectiveProps} from '../../utils/floatingUi'\nimport {createFloatingDirective} from '../utils'\n\nexport const vBTooltip: Directive<ElementWithPopper> = createFloatingDirective(\n '$__tooltip',\n 'BTooltip',\n (text, defaults, binding, el) => ({\n noninteractive: true,\n ...(defaults || undefined),\n ...resolveDirectiveProps(binding, el),\n title: text.title ?? text.body ?? '',\n tooltip: true,\n })\n)\n"],"names":[],"mappings":";;;AAIO,MAAM,YAA0C;AAAA,EACrD;AAAA,EACA;AAAA,EACA,CAAC,MAAM,UAAU,SAAS,QAAQ;AAAA,IAChC,gBAAgB;AAAA,IAChB,GAAI,YAAY;AAAA,IAChB,GAAG,sBAAsB,SAAS,EAAE;AAAA,IACpC,OAAO,KAAK,SAAS,KAAK,QAAQ;AAAA,IAClC,SAAS;AAAA,EAAA;AAEb;"}