UNPKG

@poupe/vue

Version:

Vue component library for Poupe UI framework with theme customization and accessibility support

39 lines (38 loc) 860 B
const c = [ "Button", "Card", "Icon", "Input", "Placeholder", "Surface" ], s = [ "ThemeScheme" ], p = "P", l = (e) => e.replaceAll(/^[-_]+|[-_]+$/g, "").replaceAll(/(^|[-_]+)([a-z])/g, (o, r, n) => n.toUpperCase()), m = (e = {}) => { const { prefix: o = p } = e, r = l(o); return { type: "component", resolve: (n) => { const t = r ? i(n, r) : n; if (t) { if (c.includes(t)) return { name: t, from: "@poupe/vue" }; if (s.includes(t)) return { name: t, from: "@poupe/vue/theme-scheme" }; } } }; }, i = (e, o) => e.startsWith(o) ? e.slice(o.length) : void 0; export { p as DEFAULT_PREFIX, c as components, m as createResolver, m as default, l as normalizedComponentPrefix, s as themeComponents };