@zag-js/tooltip 1.33.0 → 1.34.0
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
import * as _zag_js_core from '@zag-js/core';
|
|
3
|
-
import {
|
|
4
|
-
import { RequiredBy, DirectionProperty, CommonProperties,
|
|
3
|
+
import { Machine, EventObject, Service } from '@zag-js/core';
|
|
4
|
+
import { PropTypes, RequiredBy, DirectionProperty, CommonProperties, NormalizeProps } from '@zag-js/types';
|
|
5
5
|
import { PositioningOptions, Placement } from '@zag-js/popper';
|
|
6
6
|
export { Placement, PositioningOptions } from '@zag-js/popper';
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
import * as _zag_js_core from '@zag-js/core';
|
|
3
|
-
import {
|
|
4
|
-
import { RequiredBy, DirectionProperty, CommonProperties,
|
|
3
|
+
import { Machine, EventObject, Service } from '@zag-js/core';
|
|
4
|
+
import { PropTypes, RequiredBy, DirectionProperty, CommonProperties, NormalizeProps } from '@zag-js/types';
|
|
5
5
|
import { PositioningOptions, Placement } from '@zag-js/popper';
|
|
6
6
|
export { Placement, PositioningOptions } from '@zag-js/popper';
|
|
7
7
|
|
package/dist/index.js
CHANGED
|
@@ -165,10 +165,10 @@ var machine = core.createMachine({
|
|
|
165
165
|
return open ? "open" : "closed";
|
|
166
166
|
},
|
|
167
167
|
props({ props: props2 }) {
|
|
168
|
+
utils.ensureProps(props2, ["id"]);
|
|
168
169
|
const closeOnClick = props2.closeOnClick ?? true;
|
|
169
170
|
const closeOnPointerDown = props2.closeOnPointerDown ?? closeOnClick;
|
|
170
171
|
return {
|
|
171
|
-
id: "x",
|
|
172
172
|
openDelay: 400,
|
|
173
173
|
closeDelay: 150,
|
|
174
174
|
closeOnEscape: true,
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createAnatomy } from '@zag-js/anatomy';
|
|
|
2
2
|
import { addDomEvent, getOverflowAncestors, isComposingEvent, dataAttr, isLeftClick } from '@zag-js/dom-query';
|
|
3
3
|
import { trackFocusVisible, isFocusVisible } from '@zag-js/focus-visible';
|
|
4
4
|
import { getPlacement, getPlacementStyles } from '@zag-js/popper';
|
|
5
|
-
import { createStore, createSplitProps } from '@zag-js/utils';
|
|
5
|
+
import { createStore, ensureProps, createSplitProps } from '@zag-js/utils';
|
|
6
6
|
import { createGuards, createMachine } from '@zag-js/core';
|
|
7
7
|
import { createProps } from '@zag-js/types';
|
|
8
8
|
|
|
@@ -163,10 +163,10 @@ var machine = createMachine({
|
|
|
163
163
|
return open ? "open" : "closed";
|
|
164
164
|
},
|
|
165
165
|
props({ props: props2 }) {
|
|
166
|
+
ensureProps(props2, ["id"]);
|
|
166
167
|
const closeOnClick = props2.closeOnClick ?? true;
|
|
167
168
|
const closeOnPointerDown = props2.closeOnPointerDown ?? closeOnClick;
|
|
168
169
|
return {
|
|
169
|
-
id: "x",
|
|
170
170
|
openDelay: 400,
|
|
171
171
|
closeDelay: 150,
|
|
172
172
|
closeOnEscape: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tooltip",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "Core logic for the tooltip widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "1.
|
|
30
|
-
"@zag-js/core": "1.
|
|
31
|
-
"@zag-js/popper": "1.
|
|
32
|
-
"@zag-js/focus-visible": "1.
|
|
33
|
-
"@zag-js/dom-query": "1.
|
|
34
|
-
"@zag-js/utils": "1.
|
|
35
|
-
"@zag-js/types": "1.
|
|
29
|
+
"@zag-js/anatomy": "1.34.0",
|
|
30
|
+
"@zag-js/core": "1.34.0",
|
|
31
|
+
"@zag-js/popper": "1.34.0",
|
|
32
|
+
"@zag-js/focus-visible": "1.34.0",
|
|
33
|
+
"@zag-js/dom-query": "1.34.0",
|
|
34
|
+
"@zag-js/utils": "1.34.0",
|
|
35
|
+
"@zag-js/types": "1.34.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"clean-package": "2.2.0"
|