@flywire/react-headlessui
Advanced tools
Comparing version 0.3.2-3 to 0.3.2-4
@@ -8,3 +8,3 @@ "use strict"; | ||
const { id, isInvalid, isLoading, isRequired } = (0, react_1.useContext)(Context_1.Context); | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-error`, role: "alert", "aria-live": "assertive", ...rest, children: typeof children === 'function' | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-error`, role: "alert", ...rest, children: typeof children === 'function' | ||
? children({ | ||
@@ -11,0 +11,0 @@ isInvalid, |
@@ -6,3 +6,3 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
const { id, isInvalid, isLoading, isRequired } = useContext(Context); | ||
return (_jsx(Element, { ref: ref, id: `${id}-error`, role: "alert", "aria-live": "assertive", ...rest, children: typeof children === 'function' | ||
return (_jsx(Element, { ref: ref, id: `${id}-error`, role: "alert", ...rest, children: typeof children === 'function' | ||
? children({ | ||
@@ -9,0 +9,0 @@ isInvalid, |
@@ -17,3 +17,3 @@ (function (factory) { | ||
const { id, isInvalid, isLoading, isRequired } = (0, react_1.useContext)(Context_1.Context); | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-error`, role: "alert", "aria-live": "assertive", ...rest, children: typeof children === 'function' | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-error`, role: "alert", ...rest, children: typeof children === 'function' | ||
? children({ | ||
@@ -20,0 +20,0 @@ isInvalid, |
{ | ||
"name": "@flywire/react-headlessui", | ||
"version": "0.3.2-3", | ||
"version": "0.3.2-4", | ||
"description": "Headless UI components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/umd/index.js", |
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
337523