UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

25 lines (24 loc) 600 B
import { DT_STACK_GAP as r, DT_STACK_DIRECTION as n } from "./stack-constants.js"; import { directionPropType as l } from "./utils.js"; function f(e) { if (l(e) === "string") return Object.keys(n).includes(e); if (l(e) === "object") { const { default: t } = e; return Object.keys(n).includes(t); } else return null; } function i(e) { if (typeof e == "string") return r.includes(e); if (typeof e == "object") { const { default: t } = e; return r.includes(t); } } export { f as directionValidator, i as gapValidator }; //# sourceMappingURL=validators.js.map