@flywire/react-headlessui
Advanced tools
Comparing version 0.4.1-0 to 0.4.1-1
@@ -8,3 +8,3 @@ "use strict"; | ||
const { id, isInvalid, isLoading, isRequired } = (0, react_1.useContext)(Context_1.Context); | ||
const renderChildren = () => { | ||
const renderChildren = (0, react_1.useMemo)(() => { | ||
return react_1.Children.map(children, (child) => { | ||
@@ -21,3 +21,3 @@ if (!(0, react_1.isValidElement)(child)) { | ||
}); | ||
}; | ||
}, [children, isInvalid, isLoading, isRequired]); | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-error`, role: "alert", ...rest, children: renderChildren })); | ||
@@ -24,0 +24,0 @@ }); |
@@ -8,3 +8,3 @@ "use strict"; | ||
const { id, isInvalid, isLoading, isRequired } = (0, react_1.useContext)(Context_1.Context); | ||
const renderChildren = () => { | ||
const renderChildren = (0, react_1.useMemo)(() => { | ||
return react_1.Children.map(children, (child) => { | ||
@@ -21,3 +21,3 @@ if (!(0, react_1.isValidElement)(child)) { | ||
}); | ||
}; | ||
}, [children, isInvalid, isLoading, isRequired]); | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-description`, ...rest, children: renderChildren })); | ||
@@ -24,0 +24,0 @@ }); |
@@ -8,3 +8,3 @@ "use strict"; | ||
const { id, isInvalid, isLoading, isRequired } = (0, react_1.useContext)(Context_1.Context); | ||
const renderChildren = () => { | ||
const renderChildren = (0, react_1.useMemo)(() => { | ||
return react_1.Children.map(children, (child) => { | ||
@@ -21,3 +21,3 @@ if (!(0, react_1.isValidElement)(child)) { | ||
}); | ||
}; | ||
}, [children, isInvalid, isLoading, isRequired]); | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-error`, role: "alert", ...rest, children: renderChildren })); | ||
@@ -24,0 +24,0 @@ }); |
@@ -8,3 +8,3 @@ "use strict"; | ||
const { id, isInvalid, isLoading, isRequired } = (0, react_1.useContext)(Context_1.Context); | ||
const renderChildren = () => { | ||
const renderChildren = (0, react_1.useMemo)(() => { | ||
return react_1.Children.map(children, (child) => { | ||
@@ -21,3 +21,3 @@ if (!(0, react_1.isValidElement)(child)) { | ||
}); | ||
}; | ||
}, [children, isInvalid, isLoading, isRequired]); | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-description`, ...rest, children: renderChildren })); | ||
@@ -24,0 +24,0 @@ }); |
@@ -17,3 +17,3 @@ (function (factory) { | ||
const { id, isInvalid, isLoading, isRequired } = (0, react_1.useContext)(Context_1.Context); | ||
const renderChildren = () => { | ||
const renderChildren = (0, react_1.useMemo)(() => { | ||
return react_1.Children.map(children, (child) => { | ||
@@ -30,3 +30,3 @@ if (!(0, react_1.isValidElement)(child)) { | ||
}); | ||
}; | ||
}, [children, isInvalid, isLoading, isRequired]); | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-error`, role: "alert", ...rest, children: renderChildren })); | ||
@@ -33,0 +33,0 @@ }); |
@@ -17,3 +17,3 @@ (function (factory) { | ||
const { id, isInvalid, isLoading, isRequired } = (0, react_1.useContext)(Context_1.Context); | ||
const renderChildren = () => { | ||
const renderChildren = (0, react_1.useMemo)(() => { | ||
return react_1.Children.map(children, (child) => { | ||
@@ -30,3 +30,3 @@ if (!(0, react_1.isValidElement)(child)) { | ||
}); | ||
}; | ||
}, [children, isInvalid, isLoading, isRequired]); | ||
return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, id: `${id}-description`, ...rest, children: renderChildren })); | ||
@@ -33,0 +33,0 @@ }); |
{ | ||
"name": "@flywire/react-headlessui", | ||
"version": "0.4.1-0", | ||
"version": "0.4.1-1", | ||
"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
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
330001