@zag-js/tabs 1.47.0 → 1.48.0
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 +6 -9
- package/dist/index.d.ts +6 -9
- package/dist/index.js +16 -38
- package/dist/index.mjs +2 -7
- package/dist/tabs.anatomy.d.mts +2 -6
- package/dist/tabs.anatomy.d.ts +2 -6
- package/dist/tabs.anatomy.js +8 -33
- package/dist/tabs.anatomy.mjs +4 -7
- package/dist/tabs.connect.d.mts +4 -8
- package/dist/tabs.connect.d.ts +4 -8
- package/dist/tabs.connect.js +229 -238
- package/dist/tabs.connect.mjs +225 -212
- package/dist/tabs.dom.d.mts +30 -33
- package/dist/tabs.dom.d.ts +30 -33
- package/dist/tabs.dom.js +46 -84
- package/dist/tabs.dom.mjs +26 -43
- package/dist/tabs.machine.d.mts +2 -8
- package/dist/tabs.machine.d.ts +2 -8
- package/dist/tabs.machine.js +263 -335
- package/dist/tabs.machine.mjs +259 -299
- package/dist/tabs.props.d.mts +7 -13
- package/dist/tabs.props.d.ts +7 -13
- package/dist/tabs.props.js +33 -61
- package/dist/tabs.props.mjs +24 -31
- package/dist/tabs.types.d.mts +180 -182
- package/dist/tabs.types.d.ts +180 -182
- package/dist/tabs.types.js +4 -18
- package/dist/tabs.types.mjs +1 -0
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '@zag-js/core';
|
|
8
|
-
import '@zag-js/types';
|
|
9
|
-
import '@zag-js/dom-query';
|
|
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, ElementIds, FocusChangeDetails, IntlTranslations, NavigateDetails, TabsApi, TabsMachine, TabsProps, TabsService, TriggerProps, TriggerState, ValueChangeDetails } from "./tabs.types.mjs";
|
|
6
|
+
export { type TabsApi as Api, type ContentProps, type ElementIds, type FocusChangeDetails, type IntlTranslations, type TabsMachine as Machine, type NavigateDetails, type TabsProps as Props, type TabsService as Service, type TriggerProps, type TriggerState, type ValueChangeDetails, anatomy, connect, contentProps, machine, props, splitContentProps, splitProps, splitTriggerProps, triggerProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '@zag-js/core';
|
|
8
|
-
import '@zag-js/types';
|
|
9
|
-
import '@zag-js/dom-query';
|
|
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, ElementIds, FocusChangeDetails, IntlTranslations, NavigateDetails, TabsApi, TabsMachine, TabsProps, TabsService, TriggerProps, TriggerState, ValueChangeDetails } from "./tabs.types.js";
|
|
6
|
+
export { type TabsApi as Api, type ContentProps, type ElementIds, type FocusChangeDetails, type IntlTranslations, type TabsMachine as Machine, type NavigateDetails, type TabsProps as Props, type TabsService as Service, type TriggerProps, type TriggerState, type ValueChangeDetails, anatomy, connect, contentProps, machine, props, splitContentProps, splitProps, splitTriggerProps, triggerProps };
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,17 @@
|
|
|
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_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
|
-
|
|
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 };
|
package/dist/tabs.anatomy.d.mts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
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>;
|
package/dist/tabs.anatomy.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
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>;
|
package/dist/tabs.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/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;
|
package/dist/tabs.anatomy.mjs
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
// src/tabs.anatomy.ts
|
|
2
1
|
import { createAnatomy } from "@zag-js/anatomy";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 };
|
package/dist/tabs.connect.d.mts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare function connect<T extends PropTypes>(service: Service<TabsSchema>, normalize: NormalizeProps<T>): TabsApi<T>;
|
|
7
|
-
|
|
8
|
-
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>;
|
package/dist/tabs.connect.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare function connect<T extends PropTypes>(service: Service<TabsSchema>, normalize: NormalizeProps<T>): TabsApi<T>;
|
|
7
|
-
|
|
8
|
-
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>;
|