@zag-js/checkbox
Advanced tools
Comparing version
@@ -15,2 +15,5 @@ import type { MachineContext as Ctx } from "./checkbox.types"; | ||
}) => HTMLElement; | ||
getById: (ctx: { | ||
getRootNode?: () => Node | Document | ShadowRoot; | ||
}, id: string) => HTMLElement; | ||
} & { | ||
@@ -17,0 +20,0 @@ getRootId: (ctx: Ctx) => string; |
@@ -91,3 +91,4 @@ "use strict"; | ||
}, | ||
getActiveElement: (ctx) => roots.getDoc(ctx).activeElement | ||
getActiveElement: (ctx) => roots.getDoc(ctx).activeElement, | ||
getById: (ctx, id) => roots.getRootNode(ctx).getElementById(id) | ||
}; | ||
@@ -94,0 +95,0 @@ return __spreadValues2(__spreadValues2({}, roots), domUtils); |
{ | ||
"name": "@zag-js/checkbox", | ||
"version": "0.0.0-dev-20220709181637", | ||
"version": "0.0.0-dev-20220710093812", | ||
"description": "Core logic for the checkbox widget implemented as a state machine", | ||
@@ -42,8 +42,8 @@ "keywords": [ | ||
"@zag-js/core": "0.1.7", | ||
"@zag-js/types": "0.0.0-dev-20220709181637" | ||
"@zag-js/types": "0.0.0-dev-20220710093812" | ||
}, | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20220709181637", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220710093812", | ||
"@zag-js/utils": "0.1.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
36633
0.69%1084
0.46%+ Added
- Removed