@zag-js/dialog
Advanced tools
Comparing version 0.0.0-dev-20220416104915 to 0.0.0-dev-20220416152643
@@ -302,27 +302,27 @@ var __create = Object.create; | ||
var _a, _b; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.underlay) != null ? _b : `dialog-underlay-${ctx.uid}`; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.underlay) != null ? _b : `dialog:${ctx.uid}:underlay`; | ||
}, | ||
getBackdropId: (ctx) => { | ||
var _a, _b; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.backdrop) != null ? _b : `dialog-backdrop-${ctx.uid}`; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.backdrop) != null ? _b : `dialog:${ctx.uid}:backdrop`; | ||
}, | ||
getContentId: (ctx) => { | ||
var _a, _b; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.content) != null ? _b : `dialog-content-${ctx.uid}`; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.content) != null ? _b : `dialog:${ctx.uid}:content`; | ||
}, | ||
getTriggerId: (ctx) => { | ||
var _a, _b; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.trigger) != null ? _b : `dialog-trigger-${ctx.uid}`; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.trigger) != null ? _b : `dialog:${ctx.uid}:trigger`; | ||
}, | ||
getTitleId: (ctx) => { | ||
var _a, _b; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.title) != null ? _b : `dialog-title-${ctx.uid}`; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.title) != null ? _b : `dialog:${ctx.uid}:title`; | ||
}, | ||
getDescriptionId: (ctx) => { | ||
var _a, _b; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.description) != null ? _b : `dialog-desc-${ctx.uid}`; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.description) != null ? _b : `dialog:${ctx.uid}:description`; | ||
}, | ||
getCloseButtonId: (ctx) => { | ||
var _a, _b; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.closeBtn) != null ? _b : `dialog-close-btn-${ctx.uid}`; | ||
return (_b = (_a = ctx.ids) == null ? void 0 : _a.closeBtn) != null ? _b : `dialog:${ctx.uid}:close-btn`; | ||
}, | ||
@@ -329,0 +329,0 @@ getContentEl: (ctx) => dom.getDoc(ctx).getElementById(dom.getContentId(ctx)), |
{ | ||
"name": "@zag-js/dialog", | ||
"version": "0.0.0-dev-20220416104915", | ||
"version": "0.0.0-dev-20220416152643", | ||
"description": "Core logic for the dialog widget implemented as a state machine", | ||
@@ -32,5 +32,5 @@ "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/core": "^0.0.0-dev-20220416152643", | ||
"@zag-js/dom-utils": "^0.0.0-dev-20220416152643", | ||
"@zag-js/types": "^0.0.0-dev-20220416152643", | ||
"aria-hidden": "^1.1.3", | ||
@@ -37,0 +37,0 @@ "focus-trap": "^6.7.1", |
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
208856