Skip to content

Commit

Permalink
[base-ui][FormControl] Export FormControlOwnerState type from index (
Browse files Browse the repository at this point in the history
…mui#41287)

Signed-off-by: Michael Foley <michaeldfoley@gmail.com>
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
  • Loading branch information
2 people authored and mnajdova committed Mar 8, 2024
1 parent 304fb36 commit b919a5d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
14 changes: 8 additions & 6 deletions docs/pages/base-ui/api/form-control.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
"import { FormControl } from '@mui/base/FormControl';",
"import { FormControl } from '@mui/base';"
],
"slots": [
{
"name": "root",
"description": "The component that renders the root.",
"default": "'div'",
"class": "base-FormControl-root"
}
],
"classes": [
{
"key": "disabled",
Expand Down Expand Up @@ -52,12 +60,6 @@
"className": "base--required",
"description": "State class applied to the root element if `required={true}`.",
"isGlobal": true
},
{
"key": "root",
"className": "base-FormControl-root",
"description": "Class applied to the root element.",
"isGlobal": false
}
],
"spread": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"description": "State class applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>required={true}</code>"
},
"root": { "description": "Class applied to the root element." }
}
}
},
"slotDescriptions": { "root": "The component that renders the root." }
}
8 changes: 1 addition & 7 deletions packages/mui-base/src/FormControl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ export { FormControl } from './FormControl';

export { FormControlContext } from './FormControlContext';

export type {
FormControlProps,
FormControlRootSlotPropsOverrides,
FormControlState,
UseFormControlContextReturnValue,
FormControlOwnProps,
} from './FormControl.types';
export * from './FormControl.types';

export * from './formControlClasses';

Expand Down

0 comments on commit b919a5d

Please sign in to comment.