@zag-js/form-utils
Advanced tools
Comparing version 0.0.0-dev-20221103102301 to 0.0.0-dev-20221115131702
@@ -5,2 +5,3 @@ declare type DescriptorOptions = { | ||
}; | ||
declare function setElementValue(el: HTMLElement, value: string, option: DescriptorOptions): void; | ||
declare function dispatchInputValueEvent(el: HTMLElement | null, value: string | number): void; | ||
@@ -17,2 +18,2 @@ declare function dispatchInputCheckedEvent(el: HTMLElement | null, checked: boolean): void; | ||
export { dispatchInputCheckedEvent, dispatchInputValueEvent, getClosestForm, isNativeDisabled, trackFieldsetDisabled, trackFormReset, trackInputPropertyMutation }; | ||
export { dispatchInputCheckedEvent, dispatchInputValueEvent, getClosestForm, isNativeDisabled, setElementValue, trackFieldsetDisabled, trackFormReset, trackInputPropertyMutation }; |
@@ -27,2 +27,3 @@ "use strict"; | ||
isNativeDisabled: () => isNativeDisabled, | ||
setElementValue: () => setElementValue, | ||
trackFieldsetDisabled: () => trackFieldsetDisabled, | ||
@@ -62,2 +63,7 @@ trackFormReset: () => trackFormReset, | ||
} | ||
function setElementValue(el, value, option) { | ||
var _a; | ||
const descriptor = getDescriptor(el, option); | ||
(_a = descriptor.set) == null ? void 0 : _a.call(el, value); | ||
} | ||
function dispatchInputValueEvent(el, value) { | ||
@@ -143,2 +149,3 @@ var _a; | ||
isNativeDisabled, | ||
setElementValue, | ||
trackFieldsetDisabled, | ||
@@ -145,0 +152,0 @@ trackFormReset, |
{ | ||
"name": "@zag-js/form-utils", | ||
"version": "0.0.0-dev-20221103102301", | ||
"version": "0.0.0-dev-20221115131702", | ||
"description": "", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20221103102301" | ||
"@zag-js/dom-utils": "0.0.0-dev-20221115131702" | ||
}, | ||
@@ -25,0 +25,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
11949
277