@zag-js/number-input 0.0.0-dev-20220416104915 → 0.0.0-dev-20220416152643

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -290,30 +290,30 @@ var dom = {
290
290
  var _a;
291
291
  return (_a = dom.getDoc(ctx).defaultView) != null ? _a : window;
292
292
  },
293
+ getRootId: (ctx) => {
294
+ var _a, _b;
295
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.root) != null ? _b : `number-input:${ctx.uid}`;
296
+ },
293
297
  getInputId: (ctx) => {
294
298
  var _a, _b;
295
- return (_b = (_a = ctx.ids) == null ? void 0 : _a.input) != null ? _b : `number-input-${ctx.uid}-input`;
299
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.input) != null ? _b : `number-input:${ctx.uid}:input`;
296
300
  },
297
301
  getIncButtonId: (ctx) => {
298
302
  var _a, _b;
299
- return (_b = (_a = ctx.ids) == null ? void 0 : _a.incBtn) != null ? _b : `number-input-${ctx.uid}-inc-btn`;
303
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.incBtn) != null ? _b : `number-input:${ctx.uid}:inc-btn`;
300
304
  },
301
305
  getDecButtonId: (ctx) => {
302
306
  var _a, _b;
303
- return (_b = (_a = ctx.ids) == null ? void 0 : _a.decBtn) != null ? _b : `number-input-${ctx.uid}-dec-btn`;
307
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.decBtn) != null ? _b : `number-input:${ctx.uid}:dec-btn`;
304
308
  },
305
309
  getScrubberId: (ctx) => {
306
310
  var _a, _b;
307
- return (_b = (_a = ctx.ids) == null ? void 0 : _a.scrubber) != null ? _b : `number-input-${ctx.uid}-scrubber`;
311
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.scrubber) != null ? _b : `number-input:${ctx.uid}:scrubber`;
308
312
  },
309
- getCursorId: (ctx) => `number-input-${ctx.uid}-cursor`,
313
+ getCursorId: (ctx) => `number-input:${ctx.uid}:cursor`,
310
314
  getLabelId: (ctx) => {
311
315
  var _a, _b;
312
- return (_b = (_a = ctx.ids) == null ? void 0 : _a.label) != null ? _b : `number-input-${ctx.uid}-label`;
313
- },
314
- getRootId: (ctx) => {
315
- var _a, _b;
316
- return (_b = (_a = ctx.ids) == null ? void 0 : _a.root) != null ? _b : `number-input-${ctx.uid}-root`;
316
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.label) != null ? _b : `number-input:${ctx.uid}:label`;
317
317
  },
318
318
  getInputEl: (ctx) => dom.getDoc(ctx).getElementById(dom.getInputId(ctx)),
319
319
  getIncButtonEl: (ctx) => dom.getDoc(ctx).getElementById(dom.getIncButtonId(ctx)),