Socket
Socket
Sign inDemoInstall

@zag-js/checkbox

Package Overview
Dependencies
Maintainers
0
Versions
935
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/checkbox - npm Package Compare versions

Comparing version 0.57.0 to 0.58.0

5

dist/index.d.ts
import * as _zag_js_anatomy from '@zag-js/anatomy';
import { RequiredBy, PropTypes, DirectionProperty, CommonProperties, NormalizeProps } from '@zag-js/types';
import * as _zag_js_core from '@zag-js/core';
import { StateMachine } from '@zag-js/core';
import { Machine, StateMachine } from '@zag-js/core';

@@ -86,2 +86,3 @@ declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "control" | "indicator">;

type Send = StateMachine.Send<StateMachine.AnyEventObject>;
type Service = Machine<MachineContext, MachineState, StateMachine.AnyEventObject>;
interface MachineApi<T extends PropTypes = PropTypes> {

@@ -130,2 +131,2 @@ /**

export { type MachineApi as Api, type CheckedChangeDetails, type CheckedState, type UserDefinedContext as Context, type ElementIds, anatomy, connect, machine, props, splitProps };
export { type MachineApi as Api, type CheckedChangeDetails, type CheckedState, type UserDefinedContext as Context, type ElementIds, type Service, anatomy, connect, machine, props, splitProps };

2

dist/index.js

@@ -45,3 +45,3 @@ "use strict";

getControlId: (ctx) => ctx.ids?.control ?? `checkbox:${ctx.id}:control`,
getHiddenInputId: (ctx) => ctx.ids?.hiddenInput ?? `checkbox:${ctx.id}:hidden`,
getHiddenInputId: (ctx) => ctx.ids?.hiddenInput ?? `checkbox:${ctx.id}:input`,
getRootEl: (ctx) => dom.getById(ctx, dom.getRootId(ctx)),

@@ -48,0 +48,0 @@ getHiddenInputEl: (ctx) => dom.getById(ctx, dom.getHiddenInputId(ctx))

{
"name": "@zag-js/checkbox",
"version": "0.57.0",
"version": "0.58.0",
"description": "Core logic for the checkbox widget implemented as a state machine",

@@ -30,9 +30,9 @@ "keywords": [

"dependencies": {
"@zag-js/anatomy": "0.57.0",
"@zag-js/core": "0.57.0",
"@zag-js/types": "0.57.0",
"@zag-js/dom-query": "0.57.0",
"@zag-js/dom-event": "0.57.0",
"@zag-js/form-utils": "0.57.0",
"@zag-js/utils": "0.57.0"
"@zag-js/anatomy": "0.58.0",
"@zag-js/core": "0.58.0",
"@zag-js/types": "0.58.0",
"@zag-js/dom-query": "0.58.0",
"@zag-js/dom-event": "0.58.0",
"@zag-js/form-utils": "0.58.0",
"@zag-js/utils": "0.58.0"
},

@@ -39,0 +39,0 @@ "devDependencies": {

@@ -8,5 +8,5 @@ import { createScope } from "@zag-js/dom-query"

getControlId: (ctx: Ctx) => ctx.ids?.control ?? `checkbox:${ctx.id}:control`,
getHiddenInputId: (ctx: Ctx) => ctx.ids?.hiddenInput ?? `checkbox:${ctx.id}:hidden`,
getHiddenInputId: (ctx: Ctx) => ctx.ids?.hiddenInput ?? `checkbox:${ctx.id}:input`,
getRootEl: (ctx: Ctx) => dom.getById(ctx, dom.getRootId(ctx)),
getHiddenInputEl: (ctx: Ctx) => dom.getById<HTMLInputElement>(ctx, dom.getHiddenInputId(ctx)),
})

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

import type { StateMachine as S } from "@zag-js/core"
import type { Machine, StateMachine as S } from "@zag-js/core"
import type { CommonProperties, DirectionProperty, PropTypes, RequiredBy } from "@zag-js/types"

@@ -120,2 +120,4 @@

export type Service = Machine<MachineContext, MachineState, S.AnyEventObject>
/* -----------------------------------------------------------------------------

@@ -122,0 +124,0 @@ * Component API

@@ -11,2 +11,3 @@ export { anatomy } from "./checkbox.anatomy"

ElementIds,
Service,
} from "./checkbox.types"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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