Socket
Socket
Sign inDemoInstall

@zag-js/radio

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/radio - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

40

dist/index.js

@@ -1,29 +0,2 @@

"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
connect: () => connect,
machine: () => machine
});
module.exports = __toCommonJS(src_exports);
// ../../utilities/dom/dist/index.mjs
// ../../utilities/dom/dist/index.js
var dataAttr = (guard) => {

@@ -288,5 +261,5 @@ return guard ? "" : void 0;

// src/radio.machine.ts
var import_core = require("@zag-js/core");
import { createMachine } from "@zag-js/core";
// ../../utilities/form-utils/dist/index.mjs
// ../../utilities/form-utils/dist/index.js
function getWindow(el) {

@@ -355,3 +328,3 @@ return (el == null ? void 0 : el.ownerDocument.defaultView) ?? window;

function machine(ctx) {
return (0, import_core.createMachine)(
return createMachine(
{

@@ -443,6 +416,5 @@ id: "radio",

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
export {
connect,
machine
});
};

16

package.json
{
"type": "module",
"name": "@zag-js/radio",
"version": "0.0.3",
"version": "0.0.4",
"description": "Core logic for the radio widget implemented as a state machine",

@@ -19,3 +20,2 @@ "keywords": [

"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/radio",

@@ -33,13 +33,13 @@ "sideEffects": false,

"dependencies": {
"@zag-js/core": "0.1.10",
"@zag-js/types": "0.2.5"
"@zag-js/core": "0.1.11",
"@zag-js/types": "0.2.6"
},
"devDependencies": {
"@zag-js/dom-utils": "0.1.11",
"@zag-js/form-utils": "0.1.1"
"@zag-js/dom-utils": "0.1.12",
"@zag-js/form-utils": "0.1.2"
},
"scripts": {
"build-fast": "tsup src/index.ts --format=esm,cjs",
"build-fast": "tsup src/index.ts --format=esm",
"start": "pnpm build --watch",
"build": "tsup src/index.ts --format=esm,cjs --dts",
"build": "tsup src/index.ts --format=esm --dts",
"test": "jest --config ../../../jest.config.js --rootDir . --passWithNoTests",

@@ -46,0 +46,0 @@ "lint": "eslint src --ext .ts,.tsx",

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