@zag-js/tabs 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 CHANGED
@@ -1,8 +1,7 @@
1
- export { anatomy } from './tabs.anatomy.mjs';
2
- export { connect } from './tabs.connect.mjs';
3
- export { machine } from './tabs.machine.mjs';
4
- export { contentProps, props, splitContentProps, splitProps, splitTriggerProps, triggerProps } from './tabs.props.mjs';
5
- export { TabsApi as Api, ContentProps, ContentState, ElementIds, FocusChangeDetails, IntlTranslations, TabsMachine as Machine, NavigateDetails, TabsProps as Props, TabsService as Service, TriggerProps, TriggerState, ValueChangeDetails } from './tabs.types.mjs';
6
- import '@zag-js/anatomy';
7
- import '@zag-js/core';
8
- import '@zag-js/types';
1
+ import { anatomy } from "./tabs.anatomy.mjs";
2
+ import { connect } from "./tabs.connect.mjs";
3
+ import { machine } from "./tabs.machine.mjs";
4
+ import { contentProps, props, splitContentProps, splitProps, splitTriggerProps, triggerProps } from "./tabs.props.mjs";
5
+ import { ContentProps, ContentState, ElementIds, FocusChangeDetails, IndicatorState, IntlTranslations, NavigateDetails, RootState, TabsApi, TabsMachine, TabsProps, TabsService, TriggerProps, TriggerState, ValueChangeDetails, ValueChangeReason } from "./tabs.types.mjs";
6
+ import { ActivationDirection } from "@zag-js/types";
7
+ export { type ActivationDirection, type TabsApi as Api, type ContentProps, type ContentState, type ElementIds, type FocusChangeDetails, type IndicatorState, type IntlTranslations, type TabsMachine as Machine, type NavigateDetails, type TabsProps as Props, type RootState, type TabsService as Service, type TriggerProps, type TriggerState, type ValueChangeDetails, type ValueChangeReason, anatomy, connect, contentProps, machine, props, splitContentProps, splitProps, splitTriggerProps, triggerProps };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- export { anatomy } from './tabs.anatomy.js';
2
- export { connect } from './tabs.connect.js';
3
- export { machine } from './tabs.machine.js';
4
- export { contentProps, props, splitContentProps, splitProps, splitTriggerProps, triggerProps } from './tabs.props.js';
5
- export { TabsApi as Api, ContentProps, ContentState, ElementIds, FocusChangeDetails, IntlTranslations, TabsMachine as Machine, NavigateDetails, TabsProps as Props, TabsService as Service, TriggerProps, TriggerState, ValueChangeDetails } from './tabs.types.js';
6
- import '@zag-js/anatomy';
7
- import '@zag-js/core';
8
- import '@zag-js/types';
1
+ import { anatomy } from "./tabs.anatomy.js";
2
+ import { connect } from "./tabs.connect.js";
3
+ import { machine } from "./tabs.machine.js";
4
+ import { contentProps, props, splitContentProps, splitProps, splitTriggerProps, triggerProps } from "./tabs.props.js";
5
+ import { ContentProps, ContentState, ElementIds, FocusChangeDetails, IndicatorState, IntlTranslations, NavigateDetails, RootState, TabsApi, TabsMachine, TabsProps, TabsService, TriggerProps, TriggerState, ValueChangeDetails, ValueChangeReason } from "./tabs.types.js";
6
+ import { ActivationDirection } from "@zag-js/types";
7
+ export { type ActivationDirection, type TabsApi as Api, type ContentProps, type ContentState, type ElementIds, type FocusChangeDetails, type IndicatorState, type IntlTranslations, type TabsMachine as Machine, type NavigateDetails, type TabsProps as Props, type RootState, type TabsService as Service, type TriggerProps, type TriggerState, type ValueChangeDetails, type ValueChangeReason, anatomy, connect, contentProps, machine, props, splitContentProps, splitProps, splitTriggerProps, triggerProps };
package/dist/index.js CHANGED
@@ -1,39 +1,17 @@
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_tabs.anatomy,
25
- connect: () => import_tabs2.connect,
26
- machine: () => import_tabs3.machine
27
- });
28
- module.exports = __toCommonJS(index_exports);
29
- var import_tabs = require("./tabs.anatomy.js");
30
- var import_tabs2 = require("./tabs.connect.js");
31
- var import_tabs3 = require("./tabs.machine.js");
32
- __reExport(index_exports, require("./tabs.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("./tabs.props.js")
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
39
4
  });
5
+ const require_tabs_anatomy = require("./tabs.anatomy.js");
6
+ const require_tabs_connect = require("./tabs.connect.js");
7
+ const require_tabs_machine = require("./tabs.machine.js");
8
+ const require_tabs_props = require("./tabs.props.js");
9
+ exports.anatomy = require_tabs_anatomy.anatomy;
10
+ exports.connect = require_tabs_connect.connect;
11
+ exports.contentProps = require_tabs_props.contentProps;
12
+ exports.machine = require_tabs_machine.machine;
13
+ exports.props = require_tabs_props.props;
14
+ exports.splitContentProps = require_tabs_props.splitContentProps;
15
+ exports.splitProps = require_tabs_props.splitProps;
16
+ exports.splitTriggerProps = require_tabs_props.splitTriggerProps;
17
+ exports.triggerProps = require_tabs_props.triggerProps;
package/dist/index.mjs CHANGED
@@ -1,10 +1,5 @@
1
- // src/index.ts
2
1
  import { anatomy } from "./tabs.anatomy.mjs";
3
2
  import { connect } from "./tabs.connect.mjs";
4
3
  import { machine } from "./tabs.machine.mjs";
5
- export * from "./tabs.props.mjs";
6
- export {
7
- anatomy,
8
- connect,
9
- machine
10
- };
4
+ import { contentProps, props, splitContentProps, splitProps, splitTriggerProps, triggerProps } from "./tabs.props.mjs";
5
+ export { anatomy, connect, contentProps, machine, props, splitContentProps, splitProps, splitTriggerProps, triggerProps };
@@ -1,6 +1,2 @@
1
- import * as _zag_js_anatomy from '@zag-js/anatomy';
2
-
3
- declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "list" | "trigger" | "content" | "indicator">;
4
- declare const parts: Record<"root" | "list" | "trigger" | "content" | "indicator", _zag_js_anatomy.AnatomyPart>;
5
-
6
- export { anatomy, parts };
1
+ export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"content" | "indicator" | "list" | "root" | "trigger">;
2
+ export declare const parts: Record<"content" | "indicator" | "list" | "root" | "trigger", 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<"root" | "list" | "trigger" | "content" | "indicator">;
4
- declare const parts: Record<"root" | "list" | "trigger" | "content" | "indicator", _zag_js_anatomy.AnatomyPart>;
5
-
6
- export { anatomy, parts };
1
+ export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"content" | "indicator" | "list" | "root" | "trigger">;
2
+ export declare const parts: Record<"content" | "indicator" | "list" | "root" | "trigger", 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/tabs.anatomy.ts
21
- var tabs_anatomy_exports = {};
22
- __export(tabs_anatomy_exports, {
23
- anatomy: () => anatomy,
24
- parts: () => parts
25
- });
26
- module.exports = __toCommonJS(tabs_anatomy_exports);
27
- var import_anatomy = require("@zag-js/anatomy");
28
- var anatomy = (0, import_anatomy.createAnatomy)("tabs").parts("root", "list", "trigger", "content", "indicator");
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/tabs.anatomy.ts
6
+ const anatomy = (0, require("@zag-js/anatomy").createAnatomy)("tabs").parts("root", "list", "trigger", "content", "indicator");
7
+ const parts = anatomy.build();
8
+ exports.anatomy = anatomy;
9
+ exports.parts = parts;
@@ -1,8 +1,5 @@
1
- // src/tabs.anatomy.ts
2
1
  import { createAnatomy } from "@zag-js/anatomy";
3
- var anatomy = createAnatomy("tabs").parts("root", "list", "trigger", "content", "indicator");
4
- var parts = anatomy.build();
5
- export {
6
- anatomy,
7
- parts
8
- };
2
+ // src/tabs.anatomy.ts
3
+ const anatomy = createAnatomy("tabs").parts("root", "list", "trigger", "content", "indicator");
4
+ const parts = anatomy.build();
5
+ export { anatomy, parts };
@@ -1,7 +1,4 @@
1
- import { Service } from '@zag-js/core';
2
- import { PropTypes, NormalizeProps } from '@zag-js/types';
3
- import { TabsSchema, TabsApi } from './tabs.types.mjs';
4
-
5
- declare function connect<T extends PropTypes>(service: Service<TabsSchema>, normalize: NormalizeProps<T>): TabsApi<T>;
6
-
7
- export { connect };
1
+ import { TabsApi, TabsSchema } from "./tabs.types.mjs";
2
+ import { Service } from "@zag-js/core";
3
+ import { NormalizeProps, PropTypes } from "@zag-js/types";
4
+ export declare function connect<T extends PropTypes>(service: Service<TabsSchema>, normalize: NormalizeProps<T>): TabsApi<T>;
@@ -1,7 +1,4 @@
1
- import { Service } from '@zag-js/core';
2
- import { PropTypes, NormalizeProps } from '@zag-js/types';
3
- import { TabsSchema, TabsApi } from './tabs.types.js';
4
-
5
- declare function connect<T extends PropTypes>(service: Service<TabsSchema>, normalize: NormalizeProps<T>): TabsApi<T>;
6
-
7
- export { connect };
1
+ import { TabsApi, TabsSchema } from "./tabs.types.js";
2
+ import { Service } from "@zag-js/core";
3
+ import { NormalizeProps, PropTypes } from "@zag-js/types";
4
+ export declare function connect<T extends PropTypes>(service: Service<TabsSchema>, normalize: NormalizeProps<T>): TabsApi<T>;