@destyler/tooltip 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +4 -4
  2. package/package.json +8 -8
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import { Placement, PositioningOptions } from "@destyler/popper";
2
2
  import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
3
3
  import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
4
4
  //#region src/anatomy.d.ts
5
- export declare const anatomy: any;
5
+ export declare const anatomy: import("@destyler/anatomy").AnatomyInstance<"trigger" | "arrow" | "arrowTip" | "positioner" | "content">;
6
6
  //#endregion
7
7
  //#region src/types.d.ts
8
8
  interface OpenChangeDetails {
@@ -138,10 +138,10 @@ interface MachineApi<T extends PropTypes = PropTypes> {
138
138
  export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): MachineApi<T>;
139
139
  //#endregion
140
140
  //#region src/machine.d.ts
141
- export declare function machine(userContext: UserDefinedContext): any;
141
+ export declare function machine(userContext: UserDefinedContext): import("@destyler/xstate").Machine<MachineContext, MachineState, import("@destyler/xstate").AnyEventObject>;
142
142
  //#endregion
143
143
  //#region src/props.d.ts
144
- export declare const props: any;
145
- export declare const splitProps: any;
144
+ export declare const props: ("open" | "ids" | "id" | "openDelay" | "closeDelay" | "closeOnPointerDown" | "closeOnEscape" | "closeOnScroll" | "closeOnClick" | "interactive" | "onOpenChange" | "aria-label" | "positioning" | "disabled" | "defaultOpen" | "dir" | "getRootNode")[];
145
+ export declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "open" | "ids" | "id" | "openDelay" | "closeDelay" | "closeOnPointerDown" | "closeOnEscape" | "closeOnScroll" | "closeOnClick" | "interactive" | "onOpenChange" | "aria-label" | "positioning" | "disabled" | "defaultOpen" | "dir" | "getRootNode">];
146
146
  //#endregion
147
147
  export type { MachineApi as Api, UserDefinedContext as Context, ElementIds, OpenChangeDetails, Placement, PositioningOptions, Service };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@destyler/tooltip",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "description": "A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.",
6
6
  "author": "Elone Hoo <elonehoo@gmail.com>",
7
7
  "license": "MIT",
@@ -25,13 +25,13 @@
25
25
  "node": ">=22.22.3"
26
26
  },
27
27
  "dependencies": {
28
- "@destyler/anatomy": "0.3.0",
29
- "@destyler/dom": "0.3.0",
30
- "@destyler/focus-visible": "0.3.0",
31
- "@destyler/popper": "0.3.0",
32
- "@destyler/types": "0.3.0",
33
- "@destyler/utils": "0.3.0",
34
- "@destyler/xstate": "0.3.0"
28
+ "@destyler/anatomy": "0.3.1",
29
+ "@destyler/dom": "0.3.1",
30
+ "@destyler/focus-visible": "0.3.1",
31
+ "@destyler/popper": "0.3.1",
32
+ "@destyler/types": "0.3.1",
33
+ "@destyler/utils": "0.3.1",
34
+ "@destyler/xstate": "0.3.1"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"