@zag-js/rating
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -23,2 +23,3 @@ "use strict"; | ||
__export(src_exports, { | ||
anatomy: () => anatomy, | ||
connect: () => connect, | ||
@@ -29,2 +30,7 @@ machine: () => machine | ||
// src/rating.anatomy.ts | ||
var import_anatomy = require("@zag-js/anatomy"); | ||
var anatomy = (0, import_anatomy.createAnatomy)("rating").parts("root", "input", "label", "item", "itemGroup"); | ||
var parts = anatomy.build(); | ||
// ../../utilities/dom/dist/index.mjs | ||
@@ -322,7 +328,7 @@ var dataAttr = (guard) => { | ||
dir: state.context.dir, | ||
"data-part": "root", | ||
...parts.root.attrs, | ||
id: dom.getRootId(state.context) | ||
}), | ||
inputProps: normalize.input({ | ||
"data-part": "input", | ||
...parts.input.attrs, | ||
name: state.context.name, | ||
@@ -336,3 +342,3 @@ form: state.context.form, | ||
labelProps: normalize.element({ | ||
"data-part": "label", | ||
...parts.label.attrs, | ||
id: dom.getLabelId(state.context), | ||
@@ -343,3 +349,3 @@ "data-disabled": dataAttr(isDisabled) | ||
id: dom.getItemGroupId(state.context), | ||
"data-part": "item-group", | ||
...parts.itemGroup.attrs, | ||
role: "radiogroup", | ||
@@ -365,3 +371,3 @@ "aria-orientation": "horizontal", | ||
return normalize.element({ | ||
"data-part": "item", | ||
...parts.item.attrs, | ||
id: dom.getItemId(state.context, index.toString()), | ||
@@ -646,4 +652,5 @@ role: "radio", | ||
0 && (module.exports = { | ||
anatomy, | ||
connect, | ||
machine | ||
}); |
{ | ||
"name": "@zag-js/rating", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Core logic for the rating widget implemented as a state machine", | ||
@@ -32,2 +32,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@zag-js/anatomy": "0.1.1", | ||
"@zag-js/core": "0.2.2", | ||
@@ -34,0 +35,0 @@ "@zag-js/types": "0.3.1" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108504
2211
3
+ Added@zag-js/anatomy@0.1.1
+ Added@zag-js/anatomy@0.1.1(transitive)