@zag-js/popover 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,10 +1,8 @@
1
- export { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/dismissable';
2
- export { anatomy } from './popover.anatomy.mjs';
3
- export { connect } from './popover.connect.mjs';
4
- export { machine } from './popover.machine.mjs';
5
- export { props, splitProps } from './popover.props.mjs';
6
- export { PopoverApi as Api, ContentState, ElementIds, IntlTranslations, PopoverMachine as Machine, OpenChangeDetails, PositionerState, PopoverProps as Props, PopoverService as Service, TriggerProps, TriggerState, TriggerValueChangeDetails } from './popover.types.mjs';
7
- export { Placement, PositioningOptions } from '@zag-js/popper';
8
- import '@zag-js/anatomy';
9
- import '@zag-js/types';
10
- import '@zag-js/core';
1
+ import { anatomy } from "./popover.anatomy.mjs";
2
+ import { connect } from "./popover.connect.mjs";
3
+ import { machine } from "./popover.machine.mjs";
4
+ import { props, splitProps } from "./popover.props.mjs";
5
+ import { ContentProps, ContentState, ElementIds, InstantType, IntlTranslations, OpenChangeDetails, OpenChangeReason, Placement, PopoverApi, PopoverMachine, PopoverProps, PopoverService, PositionerState, PositioningOptions, TriggerProps, TriggerState, TriggerValueChangeDetails, ViewportState } from "./popover.types.mjs";
6
+ import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from "@zag-js/dismissable";
7
+ import { PopupActivationDirection } from "@zag-js/types";
8
+ export { type PopoverApi as Api, type ContentProps, type ContentState, type ElementIds, type FocusOutsideEvent, type InstantType, type InteractOutsideEvent, type IntlTranslations, type PopoverMachine as Machine, type OpenChangeDetails, type OpenChangeReason, type Placement, type PointerDownOutsideEvent, type PopupActivationDirection, type PositionerState, type PositioningOptions, type PopoverProps as Props, type PopoverService as Service, type TriggerProps, type TriggerState, type TriggerValueChangeDetails, type ViewportState, anatomy, connect, machine, props, splitProps };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,8 @@
1
- export { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/dismissable';
2
- export { anatomy } from './popover.anatomy.js';
3
- export { connect } from './popover.connect.js';
4
- export { machine } from './popover.machine.js';
5
- export { props, splitProps } from './popover.props.js';
6
- export { PopoverApi as Api, ContentState, ElementIds, IntlTranslations, PopoverMachine as Machine, OpenChangeDetails, PositionerState, PopoverProps as Props, PopoverService as Service, TriggerProps, TriggerState, TriggerValueChangeDetails } from './popover.types.js';
7
- export { Placement, PositioningOptions } from '@zag-js/popper';
8
- import '@zag-js/anatomy';
9
- import '@zag-js/types';
10
- import '@zag-js/core';
1
+ import { anatomy } from "./popover.anatomy.js";
2
+ import { connect } from "./popover.connect.js";
3
+ import { machine } from "./popover.machine.js";
4
+ import { props, splitProps } from "./popover.props.js";
5
+ import { ContentProps, ContentState, ElementIds, InstantType, IntlTranslations, OpenChangeDetails, OpenChangeReason, Placement, PopoverApi, PopoverMachine, PopoverProps, PopoverService, PositionerState, PositioningOptions, TriggerProps, TriggerState, TriggerValueChangeDetails, ViewportState } from "./popover.types.js";
6
+ import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from "@zag-js/dismissable";
7
+ import { PopupActivationDirection } from "@zag-js/types";
8
+ export { type PopoverApi as Api, type ContentProps, type ContentState, type ElementIds, type FocusOutsideEvent, type InstantType, type InteractOutsideEvent, type IntlTranslations, type PopoverMachine as Machine, type OpenChangeDetails, type OpenChangeReason, type Placement, type PointerDownOutsideEvent, type PopupActivationDirection, type PositionerState, type PositioningOptions, type PopoverProps as Props, type PopoverService 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_popover.anatomy,
25
- connect: () => import_popover2.connect,
26
- machine: () => import_popover3.machine
27
- });
28
- module.exports = __toCommonJS(index_exports);
29
- var import_popover = require("./popover.anatomy.js");
30
- var import_popover2 = require("./popover.connect.js");
31
- var import_popover3 = require("./popover.machine.js");
32
- __reExport(index_exports, require("./popover.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("./popover.props.js")
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
39
4
  });
5
+ const require_popover_anatomy = require("./popover.anatomy.js");
6
+ const require_popover_connect = require("./popover.connect.js");
7
+ const require_popover_machine = require("./popover.machine.js");
8
+ const require_popover_props = require("./popover.props.js");
9
+ exports.anatomy = require_popover_anatomy.anatomy;
10
+ exports.connect = require_popover_connect.connect;
11
+ exports.machine = require_popover_machine.machine;
12
+ exports.props = require_popover_props.props;
13
+ exports.splitProps = require_popover_props.splitProps;
package/dist/index.mjs CHANGED
@@ -1,10 +1,5 @@
1
- // src/index.ts
2
1
  import { anatomy } from "./popover.anatomy.mjs";
3
2
  import { connect } from "./popover.connect.mjs";
4
3
  import { machine } from "./popover.machine.mjs";
5
- export * from "./popover.props.mjs";
6
- export {
7
- anatomy,
8
- connect,
9
- machine
10
- };
4
+ import { props, splitProps } from "./popover.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<"content" | "title" | "anchor" | "arrow" | "arrowTip" | "trigger" | "indicator" | "positioner" | "description" | "closeTrigger">;
4
- declare const parts: Record<"content" | "title" | "anchor" | "arrow" | "arrowTip" | "trigger" | "indicator" | "positioner" | "description" | "closeTrigger", _zag_js_anatomy.AnatomyPart>;
5
-
6
- export { anatomy, parts };
1
+ export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"anchor" | "arrow" | "arrowTip" | "closeTrigger" | "content" | "description" | "indicator" | "positioner" | "title" | "trigger" | "viewport">;
2
+ export declare const parts: Record<"anchor" | "arrow" | "arrowTip" | "closeTrigger" | "content" | "description" | "indicator" | "positioner" | "title" | "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<"content" | "title" | "anchor" | "arrow" | "arrowTip" | "trigger" | "indicator" | "positioner" | "description" | "closeTrigger">;
4
- declare const parts: Record<"content" | "title" | "anchor" | "arrow" | "arrowTip" | "trigger" | "indicator" | "positioner" | "description" | "closeTrigger", _zag_js_anatomy.AnatomyPart>;
5
-
6
- export { anatomy, parts };
1
+ export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"anchor" | "arrow" | "arrowTip" | "closeTrigger" | "content" | "description" | "indicator" | "positioner" | "title" | "trigger" | "viewport">;
2
+ export declare const parts: Record<"anchor" | "arrow" | "arrowTip" | "closeTrigger" | "content" | "description" | "indicator" | "positioner" | "title" | "trigger" | "viewport", import("@zag-js/anatomy").AnatomyPart>;
@@ -1,45 +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/popover.anatomy.ts
21
- var popover_anatomy_exports = {};
22
- __export(popover_anatomy_exports, {
23
- anatomy: () => anatomy,
24
- parts: () => parts
25
- });
26
- module.exports = __toCommonJS(popover_anatomy_exports);
27
- var import_anatomy = require("@zag-js/anatomy");
28
- var anatomy = (0, import_anatomy.createAnatomy)("popover").parts(
29
- "arrow",
30
- "arrowTip",
31
- "anchor",
32
- "trigger",
33
- "indicator",
34
- "positioner",
35
- "content",
36
- "title",
37
- "description",
38
- "closeTrigger"
39
- );
40
- var parts = anatomy.build();
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- anatomy,
44
- parts
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
45
4
  });
5
+ // src/popover.anatomy.ts
6
+ const anatomy = (0, require("@zag-js/anatomy").createAnatomy)("popover").parts("arrow", "arrowTip", "anchor", "trigger", "indicator", "positioner", "content", "viewport", "title", "description", "closeTrigger");
7
+ const parts = anatomy.build();
8
+ exports.anatomy = anatomy;
9
+ exports.parts = parts;
@@ -1,19 +1,5 @@
1
- // src/popover.anatomy.ts
2
1
  import { createAnatomy } from "@zag-js/anatomy";
3
- var anatomy = createAnatomy("popover").parts(
4
- "arrow",
5
- "arrowTip",
6
- "anchor",
7
- "trigger",
8
- "indicator",
9
- "positioner",
10
- "content",
11
- "title",
12
- "description",
13
- "closeTrigger"
14
- );
15
- var parts = anatomy.build();
16
- export {
17
- anatomy,
18
- parts
19
- };
2
+ // src/popover.anatomy.ts
3
+ const anatomy = createAnatomy("popover").parts("arrow", "arrowTip", "anchor", "trigger", "indicator", "positioner", "content", "viewport", "title", "description", "closeTrigger");
4
+ const parts = anatomy.build();
5
+ export { anatomy, parts };
@@ -1,9 +1,3 @@
1
- import { PropTypes, NormalizeProps } from '@zag-js/types';
2
- import { PopoverService, PopoverApi } from './popover.types.mjs';
3
- import '@zag-js/core';
4
- import '@zag-js/dismissable';
5
- import '@zag-js/popper';
6
-
7
- declare function connect<T extends PropTypes>(service: PopoverService, normalize: NormalizeProps<T>): PopoverApi<T>;
8
-
9
- export { connect };
1
+ import { PopoverApi, PopoverService } from "./popover.types.mjs";
2
+ import { NormalizeProps, PropTypes } from "@zag-js/types";
3
+ export declare function connect<T extends PropTypes>(service: PopoverService, normalize: NormalizeProps<T>): PopoverApi<T>;
@@ -1,9 +1,3 @@
1
- import { PropTypes, NormalizeProps } from '@zag-js/types';
2
- import { PopoverService, PopoverApi } from './popover.types.js';
3
- import '@zag-js/core';
4
- import '@zag-js/dismissable';
5
- import '@zag-js/popper';
6
-
7
- declare function connect<T extends PropTypes>(service: PopoverService, normalize: NormalizeProps<T>): PopoverApi<T>;
8
-
9
- export { connect };
1
+ import { PopoverApi, PopoverService } from "./popover.types.js";
2
+ import { NormalizeProps, PropTypes } from "@zag-js/types";
3
+ export declare function connect<T extends PropTypes>(service: PopoverService, normalize: NormalizeProps<T>): PopoverApi<T>;