@saas-ui/forms 2.6.2 → 2.6.3

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/index.mjs CHANGED
@@ -565,7 +565,8 @@ var _createField = (InputComponent, { displayName, hideLabel, getBaseField: getB
565
565
  "isDisabled",
566
566
  "isInvalid",
567
567
  "isReadOnly",
568
- "help"
568
+ "help",
569
+ "hideLabel"
569
570
  ].concat(extraProps)
570
571
  );
571
572
  return /* @__PURE__ */ jsx11(BaseField2, { ...props, children: /* @__PURE__ */ jsx11(
@@ -759,6 +760,7 @@ import {
759
760
  chakra as chakra2,
760
761
  omitThemingProps as omitThemingProps2,
761
762
  SimpleGrid,
763
+ useStyleConfig,
762
764
  useTheme
763
765
  } from "@chakra-ui/react";
764
766
  import { cx as cx2 } from "@chakra-ui/utils";
@@ -773,6 +775,7 @@ var FormLayout = ({ children, ...props }) => {
773
775
  const defaultProps = (_c = (_b = (_a = theme.components) == null ? void 0 : _a.SuiFormLayout) == null ? void 0 : _b.defaultProps) != null ? _c : {
774
776
  spacing: 4
775
777
  };
778
+ const styles = useStyleConfig("SuiFormLayout", props);
776
779
  const gridProps = omitThemingProps2({
777
780
  ...defaultProps,
778
781
  ...props
@@ -782,6 +785,10 @@ var FormLayout = ({ children, ...props }) => {
782
785
  {
783
786
  ...gridProps,
784
787
  className: cx2("sui-form__layout", props.className),
788
+ sx: {
789
+ ...styles,
790
+ ...props.sx
791
+ },
785
792
  children
786
793
  }
787
794
  );
@@ -968,11 +975,11 @@ ArrayFieldContainer.displayName = "ArrayFieldContainer";
968
975
  import {
969
976
  FormControl as FormControl3,
970
977
  FormLabel as FormLabel3,
971
- useStyleConfig
978
+ useStyleConfig as useStyleConfig2
972
979
  } from "@chakra-ui/react";
973
980
  import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
974
981
  var FormLegend = (props) => {
975
- const styles = useStyleConfig("SuiFormLegend");
982
+ const styles = useStyleConfig2("SuiFormLegend");
976
983
  return /* @__PURE__ */ jsx16(FormLabel3, { as: "legend", sx: styles, ...props });
977
984
  };
978
985
  var ObjectField = (props) => {