Skip to content

Commit 9f2ee3c

Browse files
[base-ui][FormControl] Export FormControlOwnerState type from index (#41287)
Signed-off-by: Michael Foley <[email protected]> Co-authored-by: ZeeshanTamboli <[email protected]>
1 parent 7022db0 commit 9f2ee3c

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

docs/pages/base-ui/api/form-control.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
"import { FormControl } from '@mui/base/FormControl';",
2323
"import { FormControl } from '@mui/base';"
2424
],
25+
"slots": [
26+
{
27+
"name": "root",
28+
"description": "The component that renders the root.",
29+
"default": "'div'",
30+
"class": "base-FormControl-root"
31+
}
32+
],
2533
"classes": [
2634
{
2735
"key": "disabled",
@@ -52,12 +60,6 @@
5260
"className": "base--required",
5361
"description": "State class applied to the root element if `required={true}`.",
5462
"isGlobal": true
55-
},
56-
{
57-
"key": "root",
58-
"className": "base-FormControl-root",
59-
"description": "Class applied to the root element.",
60-
"isGlobal": false
6163
}
6264
],
6365
"spread": true,

docs/translations/api-docs-base/form-control/form-control.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"description": "State class applied to {{nodeName}} if {{conditions}}.",
4343
"nodeName": "the root element",
4444
"conditions": "<code>required={true}</code>"
45-
},
46-
"root": { "description": "Class applied to the root element." }
47-
}
45+
}
46+
},
47+
"slotDescriptions": { "root": "The component that renders the root." }
4848
}

packages/mui-base/src/FormControl/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ export { FormControl } from './FormControl';
22

33
export { FormControlContext } from './FormControlContext';
44

5-
export type {
6-
FormControlProps,
7-
FormControlRootSlotPropsOverrides,
8-
FormControlState,
9-
UseFormControlContextReturnValue,
10-
FormControlOwnProps,
11-
} from './FormControl.types';
5+
export * from './FormControl.types';
126

137
export * from './formControlClasses';
148

0 commit comments

Comments
 (0)