@northlight/ui 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/northlight.d.mts +1 -0
- package/dist/es/northlight.mjs +5 -3
- package/dist/es/northlight.mjs.map +1 -1
- package/dist/ts/types.d.ts +1 -0
- package/dist/umd/northlight.js +5 -3
- package/dist/umd/northlight.js.map +1 -1
- package/dist/umd/northlight.min.js +3 -3
- package/dist/umd/northlight.min.js.map +1 -1
- package/package.json +2 -2
package/dist/es/northlight.d.mts
CHANGED
|
@@ -2196,6 +2196,7 @@ interface FormProps<FormValues extends FieldValues> {
|
|
|
2196
2196
|
* no matter how nesteed they are */
|
|
2197
2197
|
shouldTrim?: boolean;
|
|
2198
2198
|
children: ((methods: UseFormReturn<FormValues>) => ReactNode) | ReactNode;
|
|
2199
|
+
innerFormStyle?: any;
|
|
2199
2200
|
}
|
|
2200
2201
|
type FieldErrorType<T extends FieldValues> = FieldError | Merge<FieldError, FieldErrorsImpl<T>> | undefined;
|
|
2201
2202
|
|
package/dist/es/northlight.mjs
CHANGED
|
@@ -1421,7 +1421,8 @@ const Form = forwardRef$1((_a, ref) => {
|
|
|
1421
1421
|
formSettings = { mode: "onChange" },
|
|
1422
1422
|
methods = void 0,
|
|
1423
1423
|
enableReinitialize = false,
|
|
1424
|
-
shouldTrim = true
|
|
1424
|
+
shouldTrim = true,
|
|
1425
|
+
innerFormStyle = {}
|
|
1425
1426
|
} = _b, rest = __objRest$17(_b, [
|
|
1426
1427
|
"initialValues",
|
|
1427
1428
|
"onSubmit",
|
|
@@ -1430,7 +1431,8 @@ const Form = forwardRef$1((_a, ref) => {
|
|
|
1430
1431
|
"formSettings",
|
|
1431
1432
|
"methods",
|
|
1432
1433
|
"enableReinitialize",
|
|
1433
|
-
"shouldTrim"
|
|
1434
|
+
"shouldTrim",
|
|
1435
|
+
"innerFormStyle"
|
|
1434
1436
|
]);
|
|
1435
1437
|
const customResolver = (values, _context, _options) => ({
|
|
1436
1438
|
values,
|
|
@@ -1462,7 +1464,7 @@ const Form = forwardRef$1((_a, ref) => {
|
|
|
1462
1464
|
newMethods.trigger();
|
|
1463
1465
|
e.preventDefault();
|
|
1464
1466
|
};
|
|
1465
|
-
return /* @__PURE__ */ React.createElement(FormProvider, __spreadValues$1D(__spreadValues$1D({}, newMethods), rest), /* @__PURE__ */ React.createElement("form", { style: { width: "100%" }, onSubmit: handleSubmit }, typeof children === "function" ? children(newMethods) : children));
|
|
1467
|
+
return /* @__PURE__ */ React.createElement(FormProvider, __spreadValues$1D(__spreadValues$1D({}, newMethods), rest), /* @__PURE__ */ React.createElement("form", { style: __spreadValues$1D({ width: "100%" }, innerFormStyle), onSubmit: handleSubmit }, typeof children === "function" ? children(newMethods) : children));
|
|
1466
1468
|
});
|
|
1467
1469
|
|
|
1468
1470
|
var __defProp$1C = Object.defineProperty;
|