@zag-js/accordion
Advanced tools
Comparing version 0.0.0-dev-20220416104915 to 0.0.0-dev-20220416152643
@@ -123,15 +123,15 @@ var __defProp = Object.defineProperty; | ||
var _a, _b; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.root) != null ? _b : `accordion-${ctx.uid}`; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.root) != null ? _b : `accordion:${ctx.uid}`; | ||
}, | ||
getItemId: (ctx, value) => { | ||
var _a, _b, _c; | ||
return (_c = (_b = (_a = ctx.ids) == null ? void 0 : _a.item) == null ? void 0 : _b.call(_a, value)) != null ? _c : `accordion-${ctx.uid}-item-${value}`; | ||
return (_c = (_b = (_a = ctx.ids) == null ? void 0 : _a.item) == null ? void 0 : _b.call(_a, value)) != null ? _c : `accordion:${ctx.uid}:item:${value}`; | ||
}, | ||
getContentId: (ctx, value) => { | ||
var _a, _b, _c; | ||
return (_c = (_b = (_a = ctx.ids) == null ? void 0 : _a.content) == null ? void 0 : _b.call(_a, value)) != null ? _c : `accordion-${ctx.uid}-content-${value}`; | ||
return (_c = (_b = (_a = ctx.ids) == null ? void 0 : _a.content) == null ? void 0 : _b.call(_a, value)) != null ? _c : `accordion:${ctx.uid}:content:${value}`; | ||
}, | ||
getTriggerId: (ctx, value) => { | ||
var _a, _b, _c; | ||
return (_c = (_b = (_a = ctx.ids) == null ? void 0 : _a.trigger) == null ? void 0 : _b.call(_a, value)) != null ? _c : `accordion-${ctx.uid}-trigger-${value}`; | ||
return (_c = (_b = (_a = ctx.ids) == null ? void 0 : _a.trigger) == null ? void 0 : _b.call(_a, value)) != null ? _c : `accordion:${ctx.uid}:trigger:${value}`; | ||
}, | ||
@@ -138,0 +138,0 @@ getRootEl: (ctx) => dom.getDoc(ctx).getElementById(dom.getRootId(ctx)), |
{ | ||
"name": "@zag-js/accordion", | ||
"version": "0.0.0-dev-20220416104915", | ||
"version": "0.0.0-dev-20220416152643", | ||
"description": "Core logic for the accordion widget implemented as a state machine", | ||
@@ -32,6 +32,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/core": "^0.0.0-dev-20220416104915", | ||
"@zag-js/dom-utils": "^0.0.0-dev-20220416104915", | ||
"@zag-js/types": "^0.0.0-dev-20220416104915", | ||
"@zag-js/utils": "^0.0.0-dev-20220416104915" | ||
"@zag-js/core": "^0.0.0-dev-20220416152643", | ||
"@zag-js/dom-utils": "^0.0.0-dev-20220416152643", | ||
"@zag-js/types": "^0.0.0-dev-20220416152643", | ||
"@zag-js/utils": "^0.0.0-dev-20220416152643" | ||
}, | ||
@@ -38,0 +38,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet