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

@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.0-dev-20220919164136 to 0.0.0-dev-20220928123644

dist/index.mjs

40

dist/index.js

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

// ../../utilities/dom/dist/index.js
"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
var dataAttr = (guard) => {

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

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

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

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

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

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

20

package.json
{
"type": "module",
"name": "@zag-js/radio",
"version": "0.0.0-dev-20220919164136",
"version": "0.0.0-dev-20220928123644",
"description": "Core logic for the radio widget implemented as a state machine",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"keywords": [

@@ -18,4 +20,2 @@ "js",

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

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

"dependencies": {
"@zag-js/core": "0.0.0-dev-20220919164136",
"@zag-js/types": "0.0.0-dev-20220919164136"
"@zag-js/core": "0.0.0-dev-20220928123644",
"@zag-js/types": "0.0.0-dev-20220928123644"
},
"devDependencies": {
"@zag-js/dom-utils": "0.0.0-dev-20220919164136",
"@zag-js/form-utils": "0.0.0-dev-20220919164136"
"@zag-js/dom-utils": "0.0.0-dev-20220928123644",
"@zag-js/form-utils": "0.0.0-dev-20220928123644"
},
"scripts": {
"build-fast": "tsup src/index.ts --format=esm",
"build-fast": "tsup src/index.ts --format=esm,cjs",
"start": "pnpm build --watch",
"build": "tsup src/index.ts --format=esm --dts",
"build": "tsup src/index.ts --format=esm,cjs --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