Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/rating

Package Overview
Dependencies
Maintainers
1
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/rating - npm Package Compare versions

Comparing version 0.0.0-dev-20221124181510 to 0.0.0-dev-20221205165726

17

dist/index.js

@@ -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.0.0-dev-20221124181510",
"version": "0.0.0-dev-20221205165726",
"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.0.0-dev-20221205165726",
"@zag-js/core": "0.2.2",

@@ -38,3 +39,3 @@ "@zag-js/types": "0.3.1"

"@zag-js/dom-utils": "0.2.1",
"@zag-js/form-utils": "0.0.0-dev-20221124181510",
"@zag-js/form-utils": "0.2.2",
"@zag-js/utils": "0.3.1"

@@ -41,0 +42,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc