UNPKG

@ark-ui/solid

Version:

A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.

31 lines (29 loc) 710 B
// ../../node_modules/@zag-js/core/dist/index.mjs import { callAll, isEqual, isString } from "@zag-js/utils"; import { getActiveElement, getDocument } from "@zag-js/dom-query"; function createGuards() { return { and: (...guards) => { return function andGuard(params) { return guards.every((str) => params.guard(str)); }; }, or: (...guards) => { return function orGuard(params) { return guards.some((str) => params.guard(str)); }; }, not: (guard) => { return function notGuard(params) { return !params.guard(guard); }; } }; } function createMachine(config) { return config; } export { createGuards, createMachine };