@nextui-org/form
Advanced tools
Comparing version 0.0.0-canary-20241204223333 to 0.0.0-canary-20241204224020
@@ -79,3 +79,3 @@ "use client"; | ||
[props, ref] = useContextProps(props, ref, FormContext); | ||
let { validationErrors, validationBehavior = "aria", children, className, ...domProps } = props; | ||
let { validationErrors, validationBehavior = "native", children, className, ...domProps } = props; | ||
const styles = (0, import_react2.useMemo)(() => (0, import_theme.form)({ className }), [className]); | ||
@@ -82,0 +82,0 @@ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("form", { noValidate: validationBehavior !== "native", ...domProps, ref, className: styles, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormContext.Provider, { value: { ...props, validationBehavior }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormValidationContext.Provider, { value: validationErrors != null ? validationErrors : {}, children }) }) }); |
@@ -81,3 +81,3 @@ "use client"; | ||
[props, ref] = useContextProps(props, ref, FormContext); | ||
let { validationErrors, validationBehavior = "aria", children, className, ...domProps } = props; | ||
let { validationErrors, validationBehavior = "native", children, className, ...domProps } = props; | ||
const styles = (0, import_react2.useMemo)(() => (0, import_theme.form)({ className }), [className]); | ||
@@ -84,0 +84,0 @@ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("form", { noValidate: validationBehavior !== "native", ...domProps, ref, className: styles, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormContext.Provider, { value: { ...props, validationBehavior }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormValidationContext.Provider, { value: validationErrors != null ? validationErrors : {}, children }) }) }); |
@@ -80,3 +80,3 @@ "use client"; | ||
[props, ref] = useContextProps(props, ref, FormContext); | ||
let { validationErrors, validationBehavior = "aria", children, className, ...domProps } = props; | ||
let { validationErrors, validationBehavior = "native", children, className, ...domProps } = props; | ||
const styles = (0, import_react2.useMemo)(() => (0, import_theme.form)({ className }), [className]); | ||
@@ -83,0 +83,0 @@ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("form", { noValidate: validationBehavior !== "native", ...domProps, ref, className: styles, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormContext.Provider, { value: { ...props, validationBehavior }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormValidationContext.Provider, { value: validationErrors != null ? validationErrors : {}, children }) }) }); |
{ | ||
"name": "@nextui-org/form", | ||
"version": "0.0.0-canary-20241204223333", | ||
"version": "0.0.0-canary-20241204224020", | ||
"description": "A form is a group of inputs that allows users submit data to a server and supports field validation errors.", | ||
@@ -28,4 +28,4 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@nextui-org/system": "0.0.0-canary-20241204223333", | ||
"@nextui-org/theme": "0.0.0-canary-20241204223333", | ||
"@nextui-org/system": "0.0.0-canary-20241204224020", | ||
"@nextui-org/theme": "0.0.0-canary-20241204224020", | ||
"react": ">=18", | ||
@@ -39,6 +39,6 @@ "react-dom": ">=18" | ||
"@react-types/form": "^3.7.8", | ||
"@nextui-org/react-utils": "0.0.0-canary-20241204223333", | ||
"@nextui-org/shared-utils": "0.0.0-canary-20241204223333", | ||
"@nextui-org/system": "0.0.0-canary-20241204223333", | ||
"@nextui-org/theme": "0.0.0-canary-20241204223333" | ||
"@nextui-org/react-utils": "0.0.0-canary-20241204224020", | ||
"@nextui-org/shared-utils": "0.0.0-canary-20241204224020", | ||
"@nextui-org/system": "0.0.0-canary-20241204224020", | ||
"@nextui-org/theme": "0.0.0-canary-20241204224020" | ||
}, | ||
@@ -45,0 +45,0 @@ "clean-package": "../../../clean-package.config.json", |
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
26801
+ Added@nextui-org/shared-utils@0.0.0-canary-20241204224020(transitive)
+ Added@nextui-org/system@0.0.0-canary-20241204224020(transitive)
+ Added@nextui-org/system-rsc@0.0.0-canary-20241204224020(transitive)
+ Added@nextui-org/theme@0.0.0-canary-20241204224020(transitive)
- Removed@nextui-org/react-rsc-utils@0.0.0-canary-20241204223333(transitive)
- Removed@nextui-org/react-utils@0.0.0-canary-20241204223333(transitive)
- Removed@nextui-org/shared-utils@0.0.0-canary-20241204223333(transitive)
- Removed@nextui-org/system@0.0.0-canary-20241204223333(transitive)
- Removed@nextui-org/system-rsc@0.0.0-canary-20241204223333(transitive)
- Removed@nextui-org/theme@0.0.0-canary-20241204223333(transitive)