@saas-ui/forms 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @saas-ui/forms
2
2
 
3
+ ## 2.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 5a334e2: Fixed issue where hideLabel prop would be passed to input
8
+ - 1cc3e3b: FormLayout now supports theming
9
+ - Updated dependencies [69f5e66]
10
+ - @saas-ui/core@2.5.2
11
+
3
12
  ## 2.6.2
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -240,12 +240,11 @@ declare const FormLegend: (props: FormLabelProps) => react_jsx_runtime.JSX.Eleme
240
240
  */
241
241
  declare const ObjectField: React$1.FC<ObjectFieldProps>;
242
242
 
243
- interface FormLayoutProps extends SimpleGridProps {
243
+ interface FormLayoutProps extends ThemingProps<'SuiFormLayout'>, SimpleGridProps {
244
244
  }
245
245
  /**
246
246
  * Create consistent field spacing and positioning.
247
247
  *
248
- *
249
248
  * Renders form items in a `SimpleGrid`
250
249
  * @see https://chakra-ui.com/docs/layout/simple-grid
251
250
  *
package/dist/index.d.ts CHANGED
@@ -240,12 +240,11 @@ declare const FormLegend: (props: FormLabelProps) => react_jsx_runtime.JSX.Eleme
240
240
  */
241
241
  declare const ObjectField: React$1.FC<ObjectFieldProps>;
242
242
 
243
- interface FormLayoutProps extends SimpleGridProps {
243
+ interface FormLayoutProps extends ThemingProps<'SuiFormLayout'>, SimpleGridProps {
244
244
  }
245
245
  /**
246
246
  * Create consistent field spacing and positioning.
247
247
  *
248
- *
249
248
  * Renders form items in a `SimpleGrid`
250
249
  * @see https://chakra-ui.com/docs/layout/simple-grid
251
250
  *
package/dist/index.js CHANGED
@@ -613,7 +613,8 @@ var _createField = (InputComponent, { displayName, hideLabel, getBaseField: getB
613
613
  "isDisabled",
614
614
  "isInvalid",
615
615
  "isReadOnly",
616
- "help"
616
+ "help",
617
+ "hideLabel"
617
618
  ].concat(extraProps)
618
619
  );
619
620
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BaseField2, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
@@ -816,6 +817,7 @@ var FormLayout = ({ children, ...props }) => {
816
817
  const defaultProps = (_c = (_b = (_a = theme.components) == null ? void 0 : _a.SuiFormLayout) == null ? void 0 : _b.defaultProps) != null ? _c : {
817
818
  spacing: 4
818
819
  };
820
+ const styles = (0, import_react15.useStyleConfig)("SuiFormLayout", props);
819
821
  const gridProps = (0, import_react15.omitThemingProps)({
820
822
  ...defaultProps,
821
823
  ...props
@@ -825,6 +827,10 @@ var FormLayout = ({ children, ...props }) => {
825
827
  {
826
828
  ...gridProps,
827
829
  className: (0, import_utils5.cx)("sui-form__layout", props.className),
830
+ sx: {
831
+ ...styles,
832
+ ...props.sx
833
+ },
828
834
  children
829
835
  }
830
836
  );