init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

22
node_modules/buetify/lib/composables/toast/useToast.js generated vendored Executable file
View File

@@ -0,0 +1,22 @@
import { constant } from 'fp-ts/lib/function';
import { h, shallowRef } from 'vue';
import { constEmptyArray } from '../../utils/helpers';
import { DEFAULT_USE_NOTICE_PROPS, useNoticeController } from '../noticeController';
export function useToast(props = DEFAULT_USE_NOTICE_PROPS, slots = {}) {
const renderNotification = shallowRef(constant(constEmptyArray));
const noticeController = useNoticeController(props, renderNotification);
renderNotification.value = options => () => {
return [slots.message ? h('div', {
class: ['toast', options.variant ?? props.variant, options.position ?? props.position],
role: 'alert'
}, slots.message && slots.message()) : h('div', {
class: ['toast', options.variant ?? props.variant, options.position ?? props.position],
role: 'alert',
innerHTML: options.message ?? props.message
})];
};
return noticeController;
}
//# sourceMappingURL=useToast.js.map