UNPKG

@ariakit/core

Version:
33 lines (31 loc) 865 B
"use client"; import { createCompositeStore } from "../__chunks/2CHYBBFH.js"; import "../__chunks/7PRQYBBV.js"; import "../__chunks/EO4GVUA4.js"; import "../__chunks/DTR5TSDJ.js"; import "../__chunks/BCALMBPZ.js"; import { defaultValue } from "../__chunks/PBFD2E7P.js"; import { __spreadProps, __spreadValues } from "../__chunks/3YLGPPWQ.js"; // src/toolbar/toolbar-store.ts function createToolbarStore(props = {}) { var _a; const syncState = (_a = props.store) == null ? void 0 : _a.getState(); return createCompositeStore(__spreadProps(__spreadValues({}, props), { orientation: defaultValue( props.orientation, syncState == null ? void 0 : syncState.orientation, "horizontal" ), focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true) })); } export { createToolbarStore };