@dialpad/dialtone
Version:
Dialpad's Dialtone design system monorepo
39 lines (38 loc) • 1.02 kB
JavaScript
import { DT_STACK_ALIGN as e, DT_STACK_DIRECTION as t, DT_STACK_GAP as n, DT_STACK_JUSTIFY as r } from "./stack-constants.js";
//#region components/stack/validators.js
function i(e) {
if (typeof e == "string") return Object.keys(t).includes(e);
if (typeof e == "object") {
let { default: n } = e;
return Object.keys(t).includes(n);
}
return !1;
}
function a(e) {
if (typeof e == "string") return n.includes(e);
if (typeof e == "object") {
let { default: t } = e;
return n.includes(t);
}
return !1;
}
function o(t) {
if (t === void 0) return !0;
if (typeof t == "string") return e.includes(t);
if (typeof t == "object") {
let { default: n } = t;
return e.includes(n);
}
return !1;
}
function s(e) {
if (typeof e == "string") return r.includes(e);
if (typeof e == "object") {
let { default: t } = e;
return r.includes(t);
}
return !1;
}
//#endregion
export { o as alignValidator, i as directionValidator, a as gapValidator, s as justifyValidator };
//# sourceMappingURL=validators.js.map