UNPKG

@base-framework/ui

Version:

This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.

22 lines (21 loc) 655 B
import { Jot as r, Component as i } from "@base-framework/base"; class l extends i { /** * This will set the component context. * * @param {object|null} context * @returns {object|null} */ setContext(p) { var n, a, s, o; if (this.data) return null; const e = ((n = this == null ? void 0 : this.parent) == null ? void 0 : n.data) ?? ((s = (a = this == null ? void 0 : this.parent) == null ? void 0 : a.context) == null ? void 0 : s.data) ?? ((o = this == null ? void 0 : this.parent) == null ? void 0 : o.state) ?? null; return e ? { data: e } : null; } } const c = (t) => r(t, l); export { l as V, c as a };