UNPKG

@dialpad/dialtone-vue

Version:

Vue component library for Dialpad's design system Dialtone

46 lines (45 loc) 1.03 kB
import { DT_STACK_DIRECTION as r, DT_STACK_GAP as n, DT_STACK_ALIGN as f, DT_STACK_JUSTIFY as u } from "./stack-constants.js"; function o(e) { if (typeof e == "string") return Object.keys(r).includes(e); if (typeof e == "object") { const { default: t } = e; return Object.keys(r).includes(t); } return !1; } function i(e) { if (typeof e == "string") return n.includes(e); if (typeof e == "object") { const { default: t } = e; return n.includes(t); } return !1; } function s(e) { if (e === void 0) return !0; if (typeof e == "string") return f.includes(e); if (typeof e == "object") { const { default: t } = e; return f.includes(t); } return !1; } function c(e) { if (typeof e == "string") return u.includes(e); if (typeof e == "object") { const { default: t } = e; return u.includes(t); } return !1; } export { s as alignValidator, o as directionValidator, i as gapValidator, c as justifyValidator }; //# sourceMappingURL=validators.js.map