@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/ts/types.d.ts
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/umd/northlight.js
CHANGED
|
@@ -1386,7 +1386,8 @@
|
|
|
1386
1386
|
formSettings = { mode: "onChange" },
|
|
1387
1387
|
methods = void 0,
|
|
1388
1388
|
enableReinitialize = false,
|
|
1389
|
-
shouldTrim = true
|
|
1389
|
+
shouldTrim = true,
|
|
1390
|
+
innerFormStyle = {}
|
|
1390
1391
|
} = _b, rest = __objRest$17(_b, [
|
|
1391
1392
|
"initialValues",
|
|
1392
1393
|
"onSubmit",
|
|
@@ -1395,7 +1396,8 @@
|
|
|
1395
1396
|
"formSettings",
|
|
1396
1397
|
"methods",
|
|
1397
1398
|
"enableReinitialize",
|
|
1398
|
-
"shouldTrim"
|
|
1399
|
+
"shouldTrim",
|
|
1400
|
+
"innerFormStyle"
|
|
1399
1401
|
]);
|
|
1400
1402
|
const customResolver = (values, _context, _options) => ({
|
|
1401
1403
|
values,
|
|
@@ -1427,7 +1429,7 @@
|
|
|
1427
1429
|
newMethods.trigger();
|
|
1428
1430
|
e.preventDefault();
|
|
1429
1431
|
};
|
|
1430
|
-
return /* @__PURE__ */ React.createElement(reactHookForm.FormProvider, __spreadValues$1D(__spreadValues$1D({}, newMethods), rest), /* @__PURE__ */ React.createElement("form", { style: { width: "100%" }, onSubmit: handleSubmit }, typeof children === "function" ? children(newMethods) : children));
|
|
1432
|
+
return /* @__PURE__ */ React.createElement(reactHookForm.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));
|
|
1431
1433
|
});
|
|
1432
1434
|
|
|
1433
1435
|
var __defProp$1C = Object.defineProperty;
|