@zag-js/signature-pad
Advanced tools
Comparing version 0.0.0-dev-20240621195040 to 0.0.0-dev-20240621201816
@@ -34,2 +34,3 @@ import * as _zag_js_anatomy from '@zag-js/anatomy'; | ||
hiddenInput: string; | ||
label: string; | ||
}>; | ||
@@ -36,0 +37,0 @@ interface IntlTranslations { |
@@ -63,2 +63,3 @@ "use strict"; | ||
getControlId: (ctx) => ctx.ids?.control ?? `signature-control-${ctx.id}`, | ||
getLabelId: (ctx) => ctx.ids?.label ?? `signature-label-${ctx.id}`, | ||
getHiddenInputId: (ctx) => ctx.ids?.hiddenInput ?? `signature-input-${ctx.id}`, | ||
@@ -99,2 +100,3 @@ getControlEl: (ctx) => dom.getById(ctx, dom.getControlId(ctx)), | ||
...parts.label.attrs, | ||
id: dom.getLabelId(state.context), | ||
"data-disabled": (0, import_dom_query2.dataAttr)(disabled), | ||
@@ -101,0 +103,0 @@ htmlFor: dom.getHiddenInputId(state.context), |
{ | ||
"name": "@zag-js/signature-pad", | ||
"version": "0.0.0-dev-20240621195040", | ||
"version": "0.0.0-dev-20240621201816", | ||
"description": "Core logic for the signature-pad widget implemented as a state machine", | ||
@@ -32,8 +32,8 @@ "keywords": [ | ||
"perfect-freehand": "^1.2.2", | ||
"@zag-js/anatomy": "0.0.0-dev-20240621195040", | ||
"@zag-js/core": "0.0.0-dev-20240621195040", | ||
"@zag-js/dom-query": "0.0.0-dev-20240621195040", | ||
"@zag-js/dom-event": "0.0.0-dev-20240621195040", | ||
"@zag-js/utils": "0.0.0-dev-20240621195040", | ||
"@zag-js/types": "0.0.0-dev-20240621195040" | ||
"@zag-js/anatomy": "0.0.0-dev-20240621201816", | ||
"@zag-js/core": "0.0.0-dev-20240621201816", | ||
"@zag-js/dom-query": "0.0.0-dev-20240621201816", | ||
"@zag-js/dom-event": "0.0.0-dev-20240621201816", | ||
"@zag-js/utils": "0.0.0-dev-20240621201816", | ||
"@zag-js/types": "0.0.0-dev-20240621201816" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
@@ -37,2 +37,3 @@ import { getRelativePoint, isLeftClick, isModifierKey } from "@zag-js/dom-event" | ||
...parts.label.attrs, | ||
id: dom.getLabelId(state.context), | ||
"data-disabled": dataAttr(disabled), | ||
@@ -39,0 +40,0 @@ htmlFor: dom.getHiddenInputId(state.context), |
@@ -7,2 +7,3 @@ import { createScope, getDataUrl, query } from "@zag-js/dom-query" | ||
getControlId: (ctx: Ctx) => ctx.ids?.control ?? `signature-control-${ctx.id}`, | ||
getLabelId: (ctx: Ctx) => ctx.ids?.label ?? `signature-label-${ctx.id}`, | ||
getHiddenInputId: (ctx: Ctx) => ctx.ids?.hiddenInput ?? `signature-input-${ctx.id}`, | ||
@@ -9,0 +10,0 @@ |
@@ -43,2 +43,3 @@ import type { Machine, StateMachine as S } from "@zag-js/core" | ||
hiddenInput: string | ||
label: string | ||
}> | ||
@@ -45,0 +46,0 @@ |
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
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
84706
1315
+ Added@zag-js/anatomy@0.0.0-dev-20240621201816(transitive)
+ Added@zag-js/core@0.0.0-dev-20240621201816(transitive)
+ Added@zag-js/dom-event@0.0.0-dev-20240621201816(transitive)
+ Added@zag-js/dom-query@0.0.0-dev-20240621201816(transitive)
+ Added@zag-js/store@0.0.0-dev-20240621201816(transitive)
+ Added@zag-js/text-selection@0.0.0-dev-20240621201816(transitive)
+ Added@zag-js/types@0.0.0-dev-20240621201816(transitive)
+ Added@zag-js/utils@0.0.0-dev-20240621201816(transitive)
- Removed@zag-js/anatomy@0.0.0-dev-20240621195040(transitive)
- Removed@zag-js/core@0.0.0-dev-20240621195040(transitive)
- Removed@zag-js/dom-event@0.0.0-dev-20240621195040(transitive)
- Removed@zag-js/dom-query@0.0.0-dev-20240621195040(transitive)
- Removed@zag-js/store@0.0.0-dev-20240621195040(transitive)
- Removed@zag-js/text-selection@0.0.0-dev-20240621195040(transitive)
- Removed@zag-js/types@0.0.0-dev-20240621195040(transitive)
- Removed@zag-js/utils@0.0.0-dev-20240621195040(transitive)