@dialpad/dialtone
Version:
Dialpad's Dialtone design system monorepo
2 lines • 937 B
JavaScript
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./stack-constants.cjs`);function t(t){if(typeof t==`string`)return Object.keys(e.DT_STACK_DIRECTION).includes(t);if(typeof t==`object`){let{default:n}=t;return Object.keys(e.DT_STACK_DIRECTION).includes(n)}return!1}function n(t){if(typeof t==`string`)return e.DT_STACK_GAP.includes(t);if(typeof t==`object`){let{default:n}=t;return e.DT_STACK_GAP.includes(n)}return!1}function r(t){if(t===void 0)return!0;if(typeof t==`string`)return e.DT_STACK_ALIGN.includes(t);if(typeof t==`object`){let{default:n}=t;return e.DT_STACK_ALIGN.includes(n)}return!1}function i(t){if(typeof t==`string`)return e.DT_STACK_JUSTIFY.includes(t);if(typeof t==`object`){let{default:n}=t;return e.DT_STACK_JUSTIFY.includes(n)}return!1}exports.alignValidator=r,exports.directionValidator=t,exports.gapValidator=n,exports.justifyValidator=i;
//# sourceMappingURL=validators.cjs.map