@zag-js/avatar 0.10.0 → 0.10.2
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.ts +2 -0
- package/dist/index.js +5 -3
- package/dist/index.mjs +4 -1
- package/package.json +7 -7
- package/src/index.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export { anatomy } from './avatar.anatomy.js';
|
|
1
2
|
export { connect } from './avatar.connect.js';
|
|
2
3
|
export { machine } from './avatar.machine.js';
|
|
3
4
|
export { UserDefinedContext as Context } from './avatar.types.js';
|
|
5
|
+
import '@zag-js/anatomy';
|
|
4
6
|
import '@zag-js/types';
|
|
5
7
|
import '@zag-js/core';
|
package/dist/index.js
CHANGED
|
@@ -20,19 +20,20 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
|
+
anatomy: () => anatomy,
|
|
23
24
|
connect: () => connect,
|
|
24
25
|
machine: () => machine
|
|
25
26
|
});
|
|
26
27
|
module.exports = __toCommonJS(src_exports);
|
|
27
28
|
|
|
28
|
-
// src/avatar.connect.ts
|
|
29
|
-
var import_dom_query2 = require("@zag-js/dom-query");
|
|
30
|
-
|
|
31
29
|
// src/avatar.anatomy.ts
|
|
32
30
|
var import_anatomy = require("@zag-js/anatomy");
|
|
33
31
|
var anatomy = (0, import_anatomy.createAnatomy)("avatar").parts("root", "image", "fallback");
|
|
34
32
|
var parts = anatomy.build();
|
|
35
33
|
|
|
34
|
+
// src/avatar.connect.ts
|
|
35
|
+
var import_dom_query2 = require("@zag-js/dom-query");
|
|
36
|
+
|
|
36
37
|
// src/avatar.dom.ts
|
|
37
38
|
var import_dom_query = require("@zag-js/dom-query");
|
|
38
39
|
var dom = (0, import_dom_query.createScope)({
|
|
@@ -196,6 +197,7 @@ function machine(userContext) {
|
|
|
196
197
|
}
|
|
197
198
|
// Annotate the CommonJS export names for ESM import in node:
|
|
198
199
|
0 && (module.exports = {
|
|
200
|
+
anatomy,
|
|
199
201
|
connect,
|
|
200
202
|
machine
|
|
201
203
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
connect
|
|
3
3
|
} from "./chunk-KGWU4KVZ.mjs";
|
|
4
|
-
import
|
|
4
|
+
import {
|
|
5
|
+
anatomy
|
|
6
|
+
} from "./chunk-LM2Q4YBK.mjs";
|
|
5
7
|
import {
|
|
6
8
|
machine
|
|
7
9
|
} from "./chunk-SKBVPI7R.mjs";
|
|
8
10
|
import "./chunk-ORAGSSGY.mjs";
|
|
9
11
|
export {
|
|
12
|
+
anatomy,
|
|
10
13
|
connect,
|
|
11
14
|
machine
|
|
12
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/avatar",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Core logic for the avatar widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@zag-js/anatomy": "0.10.
|
|
32
|
-
"@zag-js/mutation-observer": "0.10.
|
|
33
|
-
"@zag-js/core": "0.10.
|
|
34
|
-
"@zag-js/dom-query": "0.10.
|
|
35
|
-
"@zag-js/utils": "0.10.
|
|
36
|
-
"@zag-js/types": "0.10.
|
|
31
|
+
"@zag-js/anatomy": "0.10.2",
|
|
32
|
+
"@zag-js/mutation-observer": "0.10.2",
|
|
33
|
+
"@zag-js/core": "0.10.2",
|
|
34
|
+
"@zag-js/dom-query": "0.10.2",
|
|
35
|
+
"@zag-js/utils": "0.10.2",
|
|
36
|
+
"@zag-js/types": "0.10.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"clean-package": "2.2.0"
|
package/src/index.ts
CHANGED