@form-engine-ts/mui 2.9.2 → 2.9.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/README.md CHANGED
@@ -1,13 +1,25 @@
1
1
  # @form-engine-ts/mui
2
2
 
3
- Official Material UI v6/v7 adapters for `@form-engine-ts/react`.
3
+ Official Material UI v6/v7 integration layer for `@form-engine-ts/react`. `MuiFormBuilder` applies MUI controls and
4
+ layout slots together, disables the React builder CSS classes, and propagates common size and variant settings.
4
5
 
5
6
  ```tsx
6
- import { FormBuilder } from "@form-engine-ts/react";
7
- import { muiBuilderComponents } from "@form-engine-ts/mui";
7
+ import { MuiFormBuilder } from "@form-engine-ts/mui";
8
8
 
9
- <FormBuilder schema={schema} onChange={setSchema} components={muiBuilderComponents} />;
9
+ <MuiFormBuilder
10
+ schema={schema}
11
+ onChange={setSchema}
12
+ muiOptions={{ size: "small", variant: "outlined", buttonVariant: "contained", dense: true }}
13
+ />;
10
14
  ```
11
15
 
12
16
  The package keeps MUI and Emotion as peer dependencies and exposes `createMuiBuilderComponents` for targeted component
13
17
  or icon overrides. Install `@mui/material`, `@mui/icons-material`, and Emotion alongside this package.
18
+
19
+ For low-level composition, `createMuiBuilderProps(options, overrides)` returns `components`, `slots`, and
20
+ `disableDefaultStyles: true` for a regular `FormBuilder`. Every primitive and slot is also exported individually, with
21
+ factories such as `createMuiTextInputAdapter`, `createMuiIconButtonAdapter`, `createMuiFieldEditorSlot`, and
22
+ `createMuiLocalizationSlot`.
23
+
24
+ `MuiAdapterOptions` defaults to `size: "medium"`, `variant: "outlined"`, `buttonVariant: "contained"`, and
25
+ `fullWidth: true`. Set `dense` to reduce section, editor, option, and toolbar spacing.