@zag-js/tooltip 2.0.0-next.2 → 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 CHANGED
@@ -1,9 +1,7 @@
1
- export { anatomy } from './tooltip.anatomy.mjs';
2
- export { connect } from './tooltip.connect.mjs';
3
- export { machine } from './tooltip.machine.mjs';
4
- export { props, splitProps } from './tooltip.props.mjs';
5
- export { TooltipApi as Api, ContentState, ElementIds, TooltipMachine as Machine, OpenChangeDetails, TooltipProps as Props, TooltipService as Service, TriggerProps, TriggerState, TriggerValueChangeDetails } from './tooltip.types.mjs';
6
- export { Placement, PositioningOptions } from '@zag-js/popper';
7
- import '@zag-js/anatomy';
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
- export { anatomy } from './tooltip.anatomy.js';
2
- export { connect } from './tooltip.connect.js';
3
- export { machine } from './tooltip.machine.js';
4
- export { props, splitProps } from './tooltip.props.js';
5
- export { TooltipApi as Api, ContentState, ElementIds, TooltipMachine as Machine, OpenChangeDetails, TooltipProps as Props, TooltipService as Service, TriggerProps, TriggerState, TriggerValueChangeDetails } from './tooltip.types.js';
6
- export { Placement, PositioningOptions } from '@zag-js/popper';
7
- import '@zag-js/anatomy';
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
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
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
- export * from "./tooltip.props.mjs";
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
- import * as _zag_js_anatomy from '@zag-js/anatomy';
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
- import * as _zag_js_anatomy from '@zag-js/anatomy';
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,34 +1,9 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
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;
@@ -1,8 +1,5 @@
1
- // src/tooltip.anatomy.ts
2
1
  import { createAnatomy } from "@zag-js/anatomy";
3
- var anatomy = createAnatomy("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content");
4
- var parts = anatomy.build();
5
- export {
6
- anatomy,
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 { Service } from '@zag-js/core';
2
- import { PropTypes, NormalizeProps } from '@zag-js/types';
3
- import { TooltipSchema, TooltipApi } from './tooltip.types.mjs';
4
- import '@zag-js/popper';
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 { Service } from '@zag-js/core';
2
- import { PropTypes, NormalizeProps } from '@zag-js/types';
3
- import { TooltipSchema, TooltipApi } from './tooltip.types.js';
4
- import '@zag-js/popper';
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>;