@zag-js/tooltip 2.0.0-next.3 → 2.0.0-next.4
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 +7 -9
- package/dist/index.d.ts +7 -9
- package/dist/index.js +12 -38
- package/dist/index.mjs +2 -7
- package/dist/tooltip.anatomy.d.mts +2 -6
- package/dist/tooltip.anatomy.d.ts +2 -6
- package/dist/tooltip.anatomy.js +8 -33
- package/dist/tooltip.anatomy.mjs +4 -7
- package/dist/tooltip.connect.d.mts +4 -8
- package/dist/tooltip.connect.d.ts +4 -8
- package/dist/tooltip.connect.js +255 -193
- package/dist/tooltip.connect.mjs +250 -157
- package/dist/tooltip.dom.d.mts +12 -14
- package/dist/tooltip.dom.d.ts +12 -14
- package/dist/tooltip.dom.js +39 -62
- package/dist/tooltip.dom.mjs +25 -28
- package/dist/tooltip.machine.d.mts +2 -8
- package/dist/tooltip.machine.d.ts +2 -8
- package/dist/tooltip.machine.js +606 -479
- package/dist/tooltip.machine.mjs +600 -442
- package/dist/tooltip.props.d.mts +3 -9
- package/dist/tooltip.props.d.ts +3 -9
- package/dist/tooltip.props.js +29 -54
- package/dist/tooltip.props.mjs +25 -28
- package/dist/tooltip.store.d.mts +6 -8
- package/dist/tooltip.store.d.ts +6 -8
- package/dist/tooltip.store.js +14 -33
- package/dist/tooltip.store.mjs +9 -8
- package/dist/tooltip.style.d.mts +22 -0
- package/dist/tooltip.style.d.ts +22 -0
- package/dist/tooltip.style.js +27 -0
- package/dist/tooltip.style.mjs +22 -0
- package/dist/tooltip.types.d.mts +271 -182
- package/dist/tooltip.types.d.ts +271 -182
- package/dist/tooltip.types.js +4 -18
- package/dist/tooltip.types.mjs +1 -0
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '@zag-js/core';
|
|
9
|
-
import '@zag-js/types';
|
|
1
|
+
import { anatomy } from "./tooltip.anatomy.mjs";
|
|
2
|
+
import { connect } from "./tooltip.connect.mjs";
|
|
3
|
+
import { machine } from "./tooltip.machine.mjs";
|
|
4
|
+
import { props, splitProps } from "./tooltip.props.mjs";
|
|
5
|
+
import { ContentProps, ContentState, ElementIds, OpenChangeDetails, OpenChangeReason, Placement, PositioningOptions, TooltipApi, TooltipMachine, TooltipProps, TooltipService, TriggerProps, TriggerState, TriggerValueChangeDetails, ViewportState } from "./tooltip.types.mjs";
|
|
6
|
+
import { PopupActivationDirection } from "@zag-js/types";
|
|
7
|
+
export { type TooltipApi as Api, type ContentProps, type ContentState, type ElementIds, type TooltipMachine as Machine, type OpenChangeDetails, type OpenChangeReason, type Placement, type PopupActivationDirection, type PositioningOptions, type TooltipProps as Props, type TooltipService as Service, type TriggerProps, type TriggerState, type TriggerValueChangeDetails, type ViewportState, anatomy, connect, machine, props, splitProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '@zag-js/core';
|
|
9
|
-
import '@zag-js/types';
|
|
1
|
+
import { anatomy } from "./tooltip.anatomy.js";
|
|
2
|
+
import { connect } from "./tooltip.connect.js";
|
|
3
|
+
import { machine } from "./tooltip.machine.js";
|
|
4
|
+
import { props, splitProps } from "./tooltip.props.js";
|
|
5
|
+
import { ContentProps, ContentState, ElementIds, OpenChangeDetails, OpenChangeReason, Placement, PositioningOptions, TooltipApi, TooltipMachine, TooltipProps, TooltipService, TriggerProps, TriggerState, TriggerValueChangeDetails, ViewportState } from "./tooltip.types.js";
|
|
6
|
+
import { PopupActivationDirection } from "@zag-js/types";
|
|
7
|
+
export { type TooltipApi as Api, type ContentProps, type ContentState, type ElementIds, type TooltipMachine as Machine, type OpenChangeDetails, type OpenChangeReason, type Placement, type PopupActivationDirection, type PositioningOptions, type TooltipProps as Props, type TooltipService as Service, type TriggerProps, type TriggerState, type TriggerValueChangeDetails, type ViewportState, anatomy, connect, machine, props, splitProps };
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
anatomy: () => import_tooltip.anatomy,
|
|
25
|
-
connect: () => import_tooltip2.connect,
|
|
26
|
-
machine: () => import_tooltip3.machine
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(index_exports);
|
|
29
|
-
var import_tooltip = require("./tooltip.anatomy.js");
|
|
30
|
-
var import_tooltip2 = require("./tooltip.connect.js");
|
|
31
|
-
var import_tooltip3 = require("./tooltip.machine.js");
|
|
32
|
-
__reExport(index_exports, require("./tooltip.props.js"), module.exports);
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
anatomy,
|
|
36
|
-
connect,
|
|
37
|
-
machine,
|
|
38
|
-
...require("./tooltip.props.js")
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
39
4
|
});
|
|
5
|
+
const require_tooltip_anatomy = require("./tooltip.anatomy.js");
|
|
6
|
+
const require_tooltip_connect = require("./tooltip.connect.js");
|
|
7
|
+
const require_tooltip_machine = require("./tooltip.machine.js");
|
|
8
|
+
const require_tooltip_props = require("./tooltip.props.js");
|
|
9
|
+
exports.anatomy = require_tooltip_anatomy.anatomy;
|
|
10
|
+
exports.connect = require_tooltip_connect.connect;
|
|
11
|
+
exports.machine = require_tooltip_machine.machine;
|
|
12
|
+
exports.props = require_tooltip_props.props;
|
|
13
|
+
exports.splitProps = require_tooltip_props.splitProps;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
1
|
import { anatomy } from "./tooltip.anatomy.mjs";
|
|
3
2
|
import { connect } from "./tooltip.connect.mjs";
|
|
4
3
|
import { machine } from "./tooltip.machine.mjs";
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
anatomy,
|
|
8
|
-
connect,
|
|
9
|
-
machine
|
|
10
|
-
};
|
|
4
|
+
import { props, splitProps } from "./tooltip.props.mjs";
|
|
5
|
+
export { anatomy, connect, machine, props, splitProps };
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"trigger" | "arrow" | "arrowTip" | "positioner" | "content">;
|
|
4
|
-
declare const parts: Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content", _zag_js_anatomy.AnatomyPart>;
|
|
5
|
-
|
|
6
|
-
export { anatomy, parts };
|
|
1
|
+
export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"arrow" | "arrowTip" | "content" | "positioner" | "trigger" | "viewport">;
|
|
2
|
+
export declare const parts: Record<"arrow" | "arrowTip" | "content" | "positioner" | "trigger" | "viewport", import("@zag-js/anatomy").AnatomyPart>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"trigger" | "arrow" | "arrowTip" | "positioner" | "content">;
|
|
4
|
-
declare const parts: Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content", _zag_js_anatomy.AnatomyPart>;
|
|
5
|
-
|
|
6
|
-
export { anatomy, parts };
|
|
1
|
+
export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"arrow" | "arrowTip" | "content" | "positioner" | "trigger" | "viewport">;
|
|
2
|
+
export declare const parts: Record<"arrow" | "arrowTip" | "content" | "positioner" | "trigger" | "viewport", import("@zag-js/anatomy").AnatomyPart>;
|
package/dist/tooltip.anatomy.js
CHANGED
|
@@ -1,34 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/tooltip.anatomy.ts
|
|
21
|
-
var tooltip_anatomy_exports = {};
|
|
22
|
-
__export(tooltip_anatomy_exports, {
|
|
23
|
-
anatomy: () => anatomy,
|
|
24
|
-
parts: () => parts
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(tooltip_anatomy_exports);
|
|
27
|
-
var import_anatomy = require("@zag-js/anatomy");
|
|
28
|
-
var anatomy = (0, import_anatomy.createAnatomy)("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content");
|
|
29
|
-
var parts = anatomy.build();
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
anatomy,
|
|
33
|
-
parts
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
34
4
|
});
|
|
5
|
+
// src/tooltip.anatomy.ts
|
|
6
|
+
const anatomy = (0, require("@zag-js/anatomy").createAnatomy)("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "viewport", "content");
|
|
7
|
+
const parts = anatomy.build();
|
|
8
|
+
exports.anatomy = anatomy;
|
|
9
|
+
exports.parts = parts;
|
package/dist/tooltip.anatomy.mjs
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
// src/tooltip.anatomy.ts
|
|
2
1
|
import { createAnatomy } from "@zag-js/anatomy";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
parts
|
|
8
|
-
};
|
|
2
|
+
// src/tooltip.anatomy.ts
|
|
3
|
+
const anatomy = createAnatomy("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "viewport", "content");
|
|
4
|
+
const parts = anatomy.build();
|
|
5
|
+
export { anatomy, parts };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare function connect<P extends PropTypes>(service: Service<TooltipSchema>, normalize: NormalizeProps<P>): TooltipApi<P>;
|
|
7
|
-
|
|
8
|
-
export { connect };
|
|
1
|
+
import { TooltipApi, TooltipSchema } from "./tooltip.types.mjs";
|
|
2
|
+
import { Service } from "@zag-js/core";
|
|
3
|
+
import { NormalizeProps, PropTypes } from "@zag-js/types";
|
|
4
|
+
export declare function connect<P extends PropTypes>(service: Service<TooltipSchema>, normalize: NormalizeProps<P>): TooltipApi<P>;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare function connect<P extends PropTypes>(service: Service<TooltipSchema>, normalize: NormalizeProps<P>): TooltipApi<P>;
|
|
7
|
-
|
|
8
|
-
export { connect };
|
|
1
|
+
import { TooltipApi, TooltipSchema } from "./tooltip.types.js";
|
|
2
|
+
import { Service } from "@zag-js/core";
|
|
3
|
+
import { NormalizeProps, PropTypes } from "@zag-js/types";
|
|
4
|
+
export declare function connect<P extends PropTypes>(service: Service<TooltipSchema>, normalize: NormalizeProps<P>): TooltipApi<P>;
|