@zag-js/tooltip 0.0.0-dev-20221118143153 → 0.0.0-dev-20221205140513

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
@@ -312,6 +312,7 @@ function connect(state, send, normalize) {
312
312
  };
313
313
  },
314
314
  triggerProps: normalize.button({
315
+ "data-scope": "tooltip",
315
316
  "data-part": "trigger",
316
317
  id: triggerId,
317
318
  "data-expanded": dataAttr(isOpen),
@@ -352,20 +353,25 @@ function connect(state, send, normalize) {
352
353
  }),
353
354
  arrowProps: normalize.element({
354
355
  id: dom.getArrowId(state.context),
356
+ "data-scope": "tooltip",
355
357
  "data-part": "arrow",
356
358
  style: popperStyles.arrow
357
359
  }),
358
360
  innerArrowProps: normalize.element({
361
+ "data-scope": "tooltip",
359
362
  "data-part": "arrow-inner",
360
363
  style: popperStyles.innerArrow
361
364
  }),
362
365
  positionerProps: normalize.element({
363
366
  id: dom.getPositionerId(state.context),
367
+ "data-scope": "tooltip",
364
368
  "data-part": "positioner",
365
369
  style: popperStyles.floating
366
370
  }),
367
371
  contentProps: normalize.element({
372
+ "data-scope": "tooltip",
368
373
  "data-part": "content",
374
+ hidden: !isOpen,
369
375
  role: hasAriaLabel ? void 0 : "tooltip",
370
376
  id: hasAriaLabel ? void 0 : contentId,
371
377
  "data-placement": state.context.currentPlacement,
@@ -380,6 +386,7 @@ function connect(state, send, normalize) {
380
386
  }
381
387
  }),
382
388
  labelProps: normalize.element({
389
+ "data-scope": "tooltip",
383
390
  "data-part": "label",
384
391
  id: contentId,
385
392
  role: "tooltip",
package/dist/index.mjs CHANGED
@@ -285,6 +285,7 @@ function connect(state, send, normalize) {
285
285
  };
286
286
  },
287
287
  triggerProps: normalize.button({
288
+ "data-scope": "tooltip",
288
289
  "data-part": "trigger",
289
290
  id: triggerId,
290
291
  "data-expanded": dataAttr(isOpen),
@@ -325,20 +326,25 @@ function connect(state, send, normalize) {
325
326
  }),
326
327
  arrowProps: normalize.element({
327
328
  id: dom.getArrowId(state.context),
329
+ "data-scope": "tooltip",
328
330
  "data-part": "arrow",
329
331
  style: popperStyles.arrow
330
332
  }),
331
333
  innerArrowProps: normalize.element({
334
+ "data-scope": "tooltip",
332
335
  "data-part": "arrow-inner",
333
336
  style: popperStyles.innerArrow
334
337
  }),
335
338
  positionerProps: normalize.element({
336
339
  id: dom.getPositionerId(state.context),
340
+ "data-scope": "tooltip",
337
341
  "data-part": "positioner",
338
342
  style: popperStyles.floating
339
343
  }),
340
344
  contentProps: normalize.element({
345
+ "data-scope": "tooltip",
341
346
  "data-part": "content",
347
+ hidden: !isOpen,
342
348
  role: hasAriaLabel ? void 0 : "tooltip",
343
349
  id: hasAriaLabel ? void 0 : contentId,
344
350
  "data-placement": state.context.currentPlacement,
@@ -353,6 +359,7 @@ function connect(state, send, normalize) {
353
359
  }
354
360
  }),
355
361
  labelProps: normalize.element({
362
+ "data-scope": "tooltip",
356
363
  "data-part": "label",
357
364
  id: contentId,
358
365
  role: "tooltip",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tooltip",
3
- "version": "0.0.0-dev-20221118143153",
3
+ "version": "0.0.0-dev-20221205140513",
4
4
  "description": "Core logic for the tooltip widget implemented as a state machine",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -29,13 +29,13 @@
29
29
  "url": "https://github.com/chakra-ui/zag/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@zag-js/core": "0.0.0-dev-20221118143153",
32
+ "@zag-js/core": "0.2.2",
33
33
  "@zag-js/popper": "0.2.0",
34
- "@zag-js/types": "0.0.0-dev-20221118143153"
34
+ "@zag-js/types": "0.3.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@zag-js/dom-utils": "0.0.0-dev-20221118143153",
38
- "@zag-js/utils": "0.0.0-dev-20221118143153"
37
+ "@zag-js/dom-utils": "0.2.1",
38
+ "@zag-js/utils": "0.3.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build-fast": "tsup src/index.ts --format=esm,cjs",