@saas-ui/forms 2.3.8 → 2.3.10
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/CHANGELOG.md +21 -5
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/dist/yup/index.js +7 -232
- package/dist/yup/index.js.map +1 -1
- package/dist/yup/index.mjs +9 -286
- package/dist/yup/index.mjs.map +1 -1
- package/dist/zod/index.js +9 -234
- package/dist/zod/index.js.map +1 -1
- package/dist/zod/index.mjs +9 -286
- package/dist/zod/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/layout.tsx +9 -3
- package/src/submit-button.tsx +2 -2
package/dist/index.mjs
CHANGED
@@ -727,7 +727,12 @@ var Field = React6.forwardRef(
|
|
727
727
|
import * as React9 from "react";
|
728
728
|
|
729
729
|
// src/layout.tsx
|
730
|
-
import {
|
730
|
+
import {
|
731
|
+
chakra as chakra2,
|
732
|
+
omitThemingProps as omitThemingProps2,
|
733
|
+
SimpleGrid,
|
734
|
+
useTheme
|
735
|
+
} from "@chakra-ui/react";
|
731
736
|
import { cx as cx2 } from "@chakra-ui/utils";
|
732
737
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
733
738
|
var FormLayoutItem = ({ children }) => {
|
@@ -740,10 +745,10 @@ var FormLayout = ({ children, ...props }) => {
|
|
740
745
|
const defaultProps = (_c = (_b = (_a = theme.components) == null ? void 0 : _a.SuiFormLayout) == null ? void 0 : _b.defaultProps) != null ? _c : {
|
741
746
|
spacing: 4
|
742
747
|
};
|
743
|
-
const gridProps = {
|
748
|
+
const gridProps = omitThemingProps2({
|
744
749
|
...defaultProps,
|
745
750
|
...props
|
746
|
-
};
|
751
|
+
});
|
747
752
|
return /* @__PURE__ */ jsx14(
|
748
753
|
SimpleGrid,
|
749
754
|
{
|
@@ -1054,13 +1059,13 @@ var SubmitButton = forwardRef12(
|
|
1054
1059
|
return /* @__PURE__ */ jsx18(
|
1055
1060
|
Button4,
|
1056
1061
|
{
|
1057
|
-
...rest,
|
1058
|
-
...field,
|
1059
1062
|
ref,
|
1060
1063
|
variant,
|
1061
1064
|
type: "submit",
|
1062
1065
|
isLoading: formState.isSubmitting || isLoading,
|
1063
1066
|
isDisabled,
|
1067
|
+
...rest,
|
1068
|
+
...field,
|
1064
1069
|
children
|
1065
1070
|
}
|
1066
1071
|
);
|