@zag-js/tooltip 1.0.0 → 1.0.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
2
  import * as _zag_js_core from '@zag-js/core';
3
- import { Service, EventObject } from '@zag-js/core';
3
+ import { Service, Machine, EventObject } from '@zag-js/core';
4
4
  import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
5
5
  import { PositioningOptions, Placement } from '@zag-js/popper';
6
6
  export { Placement, PositioningOptions } from '@zag-js/popper';
@@ -99,6 +99,7 @@ interface TooltipSchema {
99
99
  guard: string;
100
100
  }
101
101
  type TooltipService = Service<TooltipSchema>;
102
+ type TooltipMachine = Machine<TooltipSchema>;
102
103
  interface TooltipApi<T extends PropTypes = PropTypes> {
103
104
  /**
104
105
  * Whether the tooltip is open.
@@ -121,9 +122,9 @@ interface TooltipApi<T extends PropTypes = PropTypes> {
121
122
 
122
123
  declare function connect<P extends PropTypes>(service: Service<TooltipSchema>, normalize: NormalizeProps<P>): TooltipApi<P>;
123
124
 
124
- declare const machine: _zag_js_core.MachineConfig<TooltipSchema>;
125
+ declare const machine: _zag_js_core.Machine<TooltipSchema>;
125
126
 
126
127
  declare const props: (keyof TooltipProps)[];
127
128
  declare const splitProps: <Props extends Partial<TooltipProps>>(props: Props) => [Partial<TooltipProps>, Omit<Props, keyof TooltipProps>];
128
129
 
129
- export { type TooltipApi as Api, type ElementIds, type OpenChangeDetails, type TooltipProps as Props, type TooltipService as Service, anatomy, connect, machine, props, splitProps };
130
+ export { type TooltipApi as Api, type ElementIds, type TooltipMachine as Machine, type OpenChangeDetails, type TooltipProps as Props, type TooltipService as Service, anatomy, connect, machine, props, splitProps };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
2
  import * as _zag_js_core from '@zag-js/core';
3
- import { Service, EventObject } from '@zag-js/core';
3
+ import { Service, Machine, EventObject } from '@zag-js/core';
4
4
  import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
5
5
  import { PositioningOptions, Placement } from '@zag-js/popper';
6
6
  export { Placement, PositioningOptions } from '@zag-js/popper';
@@ -99,6 +99,7 @@ interface TooltipSchema {
99
99
  guard: string;
100
100
  }
101
101
  type TooltipService = Service<TooltipSchema>;
102
+ type TooltipMachine = Machine<TooltipSchema>;
102
103
  interface TooltipApi<T extends PropTypes = PropTypes> {
103
104
  /**
104
105
  * Whether the tooltip is open.
@@ -121,9 +122,9 @@ interface TooltipApi<T extends PropTypes = PropTypes> {
121
122
 
122
123
  declare function connect<P extends PropTypes>(service: Service<TooltipSchema>, normalize: NormalizeProps<P>): TooltipApi<P>;
123
124
 
124
- declare const machine: _zag_js_core.MachineConfig<TooltipSchema>;
125
+ declare const machine: _zag_js_core.Machine<TooltipSchema>;
125
126
 
126
127
  declare const props: (keyof TooltipProps)[];
127
128
  declare const splitProps: <Props extends Partial<TooltipProps>>(props: Props) => [Partial<TooltipProps>, Omit<Props, keyof TooltipProps>];
128
129
 
129
- export { type TooltipApi as Api, type ElementIds, type OpenChangeDetails, type TooltipProps as Props, type TooltipService as Service, anatomy, connect, machine, props, splitProps };
130
+ export { type TooltipApi as Api, type ElementIds, type TooltipMachine as Machine, type OpenChangeDetails, type TooltipProps as Props, type TooltipService as Service, anatomy, connect, machine, props, splitProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tooltip",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Core logic for the tooltip widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,14 +26,14 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "1.0.0",
30
- "@zag-js/core": "1.0.0",
31
- "@zag-js/store": "1.0.0",
32
- "@zag-js/popper": "1.0.0",
33
- "@zag-js/focus-visible": "1.0.0",
34
- "@zag-js/dom-query": "1.0.0",
35
- "@zag-js/utils": "1.0.0",
36
- "@zag-js/types": "1.0.0"
29
+ "@zag-js/anatomy": "1.0.1",
30
+ "@zag-js/core": "1.0.1",
31
+ "@zag-js/store": "1.0.1",
32
+ "@zag-js/popper": "1.0.1",
33
+ "@zag-js/focus-visible": "1.0.1",
34
+ "@zag-js/dom-query": "1.0.1",
35
+ "@zag-js/utils": "1.0.1",
36
+ "@zag-js/types": "1.0.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "clean-package": "2.2.0"