UNPKG

@xuda.io/xuda-framework-plugin-tailwind

Version:

Xuda Tailwind UI Framework plugin

30 lines (24 loc) 1.18 kB
// Minimal Tailwind framework plugin. // // Reset to essentials on request: load browser Tailwind + @tailwindplus/elements, // and expose the framework primitives. All the accreted workarounds (the el-dropdown // fallback-button guard + global MutationObserver, the captured-component-style // serializer + theme normalization, and the tailwind.refresh scheduler/plugin wrapper) // were REMOVED — they are homegrown band-aids that grew this file from 3 -> 366 lines. // Re-add targeted fixes here only as concrete bugs reappear. // Full pre-strip version: git show c05096956:.../runtime.mjs (also backed up in scratchpad). const tailwind_cdn_resource = './tailwind.cdn.js'; export const setup = async () => { const setup_ret = await import(/* @vite-ignore */ tailwind_cdn_resource); await import('@tailwindplus/elements'); return setup_ret; }; import { core as base_core, bind, toast, loader, popover, popup, modal, page } from './index.mjs'; export class core extends base_core { async init(setup_data) { const init_id = await super.init(setup_data); await setup(); return init_id; } } export { bind, toast, loader, popover, popup, modal, page };