@zag-js/radio-group 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 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +14 -38
- package/dist/index.mjs +2 -7
- package/dist/radio-group.anatomy.d.mts +2 -6
- package/dist/radio-group.anatomy.d.ts +2 -6
- package/dist/radio-group.anatomy.js +8 -40
- package/dist/radio-group.anatomy.mjs +4 -14
- package/dist/radio-group.connect.d.mts +3 -7
- package/dist/radio-group.connect.d.ts +3 -7
- package/dist/radio-group.connect.js +247 -250
- package/dist/radio-group.connect.mjs +241 -213
- package/dist/radio-group.dom.d.mts +26 -29
- package/dist/radio-group.dom.d.ts +26 -29
- package/dist/radio-group.dom.js +48 -86
- package/dist/radio-group.dom.mjs +29 -46
- package/dist/radio-group.machine.d.mts +2 -7
- package/dist/radio-group.machine.d.ts +2 -7
- package/dist/radio-group.machine.js +155 -217
- package/dist/radio-group.machine.mjs +150 -181
- package/dist/radio-group.props.d.mts +5 -10
- package/dist/radio-group.props.d.ts +5 -10
- package/dist/radio-group.props.js +32 -54
- package/dist/radio-group.props.mjs +25 -26
- package/dist/radio-group.types.d.mts +185 -187
- package/dist/radio-group.types.d.ts +185 -187
- package/dist/radio-group.types.js +4 -18
- package/dist/radio-group.types.mjs +1 -0
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '@zag-js/types';
|
|
8
|
-
import '@zag-js/core';
|
|
1
|
+
import { anatomy } from "./radio-group.anatomy.mjs";
|
|
2
|
+
import { connect } from "./radio-group.connect.mjs";
|
|
3
|
+
import { machine } from "./radio-group.machine.mjs";
|
|
4
|
+
import { itemProps, props, splitItemProps, splitProps } from "./radio-group.props.mjs";
|
|
5
|
+
import { ElementIds, ItemProps, ItemState, RadioGroupApi, RadioGroupMachine, RadioGroupProps, RadioGroupService, ValueChangeDetails } from "./radio-group.types.mjs";
|
|
6
|
+
export { type RadioGroupApi as Api, type ElementIds, type ItemProps, type ItemState, type RadioGroupMachine as Machine, type RadioGroupProps as Props, type RadioGroupService as Service, type ValueChangeDetails, anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '@zag-js/types';
|
|
8
|
-
import '@zag-js/core';
|
|
1
|
+
import { anatomy } from "./radio-group.anatomy.js";
|
|
2
|
+
import { connect } from "./radio-group.connect.js";
|
|
3
|
+
import { machine } from "./radio-group.machine.js";
|
|
4
|
+
import { itemProps, props, splitItemProps, splitProps } from "./radio-group.props.js";
|
|
5
|
+
import { ElementIds, ItemProps, ItemState, RadioGroupApi, RadioGroupMachine, RadioGroupProps, RadioGroupService, ValueChangeDetails } from "./radio-group.types.js";
|
|
6
|
+
export { type RadioGroupApi as Api, type ElementIds, type ItemProps, type ItemState, type RadioGroupMachine as Machine, type RadioGroupProps as Props, type RadioGroupService as Service, type ValueChangeDetails, anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,15 @@
|
|
|
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_radio_group.anatomy,
|
|
25
|
-
connect: () => import_radio_group2.connect,
|
|
26
|
-
machine: () => import_radio_group3.machine
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(index_exports);
|
|
29
|
-
var import_radio_group = require("./radio-group.anatomy.js");
|
|
30
|
-
var import_radio_group2 = require("./radio-group.connect.js");
|
|
31
|
-
var import_radio_group3 = require("./radio-group.machine.js");
|
|
32
|
-
__reExport(index_exports, require("./radio-group.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("./radio-group.props.js")
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
39
4
|
});
|
|
5
|
+
const require_radio_group_anatomy = require("./radio-group.anatomy.js");
|
|
6
|
+
const require_radio_group_connect = require("./radio-group.connect.js");
|
|
7
|
+
const require_radio_group_machine = require("./radio-group.machine.js");
|
|
8
|
+
const require_radio_group_props = require("./radio-group.props.js");
|
|
9
|
+
exports.anatomy = require_radio_group_anatomy.anatomy;
|
|
10
|
+
exports.connect = require_radio_group_connect.connect;
|
|
11
|
+
exports.itemProps = require_radio_group_props.itemProps;
|
|
12
|
+
exports.machine = require_radio_group_machine.machine;
|
|
13
|
+
exports.props = require_radio_group_props.props;
|
|
14
|
+
exports.splitItemProps = require_radio_group_props.splitItemProps;
|
|
15
|
+
exports.splitProps = require_radio_group_props.splitProps;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
1
|
import { anatomy } from "./radio-group.anatomy.mjs";
|
|
3
2
|
import { connect } from "./radio-group.connect.mjs";
|
|
4
3
|
import { machine } from "./radio-group.machine.mjs";
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
anatomy,
|
|
8
|
-
connect,
|
|
9
|
-
machine
|
|
10
|
-
};
|
|
4
|
+
import { itemProps, props, splitItemProps, splitProps } from "./radio-group.props.mjs";
|
|
5
|
+
export { anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "item" | "itemText" | "itemControl" | "indicator">;
|
|
4
|
-
declare const parts: Record<"root" | "label" | "item" | "itemText" | "itemControl" | "indicator", _zag_js_anatomy.AnatomyPart>;
|
|
5
|
-
|
|
6
|
-
export { anatomy, parts };
|
|
1
|
+
export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"indicator" | "item" | "itemControl" | "itemText" | "label" | "root">;
|
|
2
|
+
export declare const parts: Record<"indicator" | "item" | "itemControl" | "itemText" | "label" | "root", import("@zag-js/anatomy").AnatomyPart>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "item" | "itemText" | "itemControl" | "indicator">;
|
|
4
|
-
declare const parts: Record<"root" | "label" | "item" | "itemText" | "itemControl" | "indicator", _zag_js_anatomy.AnatomyPart>;
|
|
5
|
-
|
|
6
|
-
export { anatomy, parts };
|
|
1
|
+
export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"indicator" | "item" | "itemControl" | "itemText" | "label" | "root">;
|
|
2
|
+
export declare const parts: Record<"indicator" | "item" | "itemControl" | "itemText" | "label" | "root", import("@zag-js/anatomy").AnatomyPart>;
|
|
@@ -1,41 +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/radio-group.anatomy.ts
|
|
21
|
-
var radio_group_anatomy_exports = {};
|
|
22
|
-
__export(radio_group_anatomy_exports, {
|
|
23
|
-
anatomy: () => anatomy,
|
|
24
|
-
parts: () => parts
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(radio_group_anatomy_exports);
|
|
27
|
-
var import_anatomy = require("@zag-js/anatomy");
|
|
28
|
-
var anatomy = (0, import_anatomy.createAnatomy)("radio-group").parts(
|
|
29
|
-
"root",
|
|
30
|
-
"label",
|
|
31
|
-
"item",
|
|
32
|
-
"itemText",
|
|
33
|
-
"itemControl",
|
|
34
|
-
"indicator"
|
|
35
|
-
);
|
|
36
|
-
var parts = anatomy.build();
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
anatomy,
|
|
40
|
-
parts
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
41
4
|
});
|
|
5
|
+
// src/radio-group.anatomy.ts
|
|
6
|
+
const anatomy = (0, require("@zag-js/anatomy").createAnatomy)("radio-group").parts("root", "label", "item", "itemText", "itemControl", "indicator");
|
|
7
|
+
const parts = anatomy.build();
|
|
8
|
+
exports.anatomy = anatomy;
|
|
9
|
+
exports.parts = parts;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
// src/radio-group.anatomy.ts
|
|
2
1
|
import { createAnatomy } from "@zag-js/anatomy";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"itemText",
|
|
8
|
-
"itemControl",
|
|
9
|
-
"indicator"
|
|
10
|
-
);
|
|
11
|
-
var parts = anatomy.build();
|
|
12
|
-
export {
|
|
13
|
-
anatomy,
|
|
14
|
-
parts
|
|
15
|
-
};
|
|
2
|
+
// src/radio-group.anatomy.ts
|
|
3
|
+
const anatomy = createAnatomy("radio-group").parts("root", "label", "item", "itemText", "itemControl", "indicator");
|
|
4
|
+
const parts = anatomy.build();
|
|
5
|
+
export { anatomy, parts };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function connect<T extends PropTypes>(service: RadioGroupService, normalize: NormalizeProps<T>): RadioGroupApi<T>;
|
|
6
|
-
|
|
7
|
-
export { connect };
|
|
1
|
+
import { RadioGroupApi, RadioGroupService } from "./radio-group.types.mjs";
|
|
2
|
+
import { NormalizeProps, PropTypes } from "@zag-js/types";
|
|
3
|
+
export declare function connect<T extends PropTypes>(service: RadioGroupService, normalize: NormalizeProps<T>): RadioGroupApi<T>;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function connect<T extends PropTypes>(service: RadioGroupService, normalize: NormalizeProps<T>): RadioGroupApi<T>;
|
|
6
|
-
|
|
7
|
-
export { connect };
|
|
1
|
+
import { RadioGroupApi, RadioGroupService } from "./radio-group.types.js";
|
|
2
|
+
import { NormalizeProps, PropTypes } from "@zag-js/types";
|
|
3
|
+
export declare function connect<T extends PropTypes>(service: RadioGroupService, normalize: NormalizeProps<T>): RadioGroupApi<T>;
|