Skip to content

Commit 3cb844b

Browse files
authored
[all components] Use ESM metadata constants (#5248)
1 parent 0a55012 commit 3cb844b

252 files changed

Lines changed: 4264 additions & 5345 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@base-ui/utils": "workspace:*",
2121
"@mdx-js/loader": "^3.1.1",
2222
"@mdx-js/react": "^3.1.1",
23-
"@mui/internal-docs-infra": "0.12.1-canary.26",
23+
"@mui/internal-docs-infra": "0.12.1-canary.35",
2424
"@next/mdx": "^16.3.1",
2525
"@react-spring/web": "^10.1.2",
2626
"@stefanprobst/rehype-extract-toc": "^3.0.0",

docs/src/app/(docs)/react/components/autocomplete/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ Matches items against a query using `Intl.Collator` for robust string matching.
934934

935935
| Parameter | Type | Default | Description |
936936
| :-------- | :-------------------------- | :------ | :---------- |
937-
| options? | `AutocompleteFilterOptions` | - | - |
937+
| options? | `AutocompleteFilterOptions` | `{}` | - |
938938

939939
**Return Value:**
940940

docs/src/app/(docs)/react/components/combobox/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ Matches items against a query using `Intl.Collator` for robust string matching.
11441144

11451145
| Parameter | Type | Default | Description |
11461146
| :-------- | :---------------------- | :------ | :---------- |
1147-
| options? | `ComboboxFilterOptions` | - | - |
1147+
| options? | `ComboboxFilterOptions` | `{}` | - |
11481148

11491149
**Return Value:**
11501150

docs/src/app/(docs)/react/components/field/types.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,12 @@ Renders a `<div>` element.
301301

302302
**Error Props:**
303303

304-
| Prop | Type | Default | Description |
305-
| :-------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
306-
| match | `boolean \| 'valid' \| 'badInput' \| 'customError' \| 'patternMismatch' \| 'rangeOverflow' \| 'rangeUnderflow' \| 'stepMismatch' \| 'tooLong' \| 'tooShort' \| 'typeMismatch' \| 'valueMissing'` | - | Determines whether to show the error message according to the field's&#xA;[ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState).&#xA;Specifying `true` will always show the error message, and lets external libraries&#xA;control the visibility. |
307-
| className | `string \| ((state: Field.Error.State) => string \| undefined)` | - | CSS class applied to the element, or a function that&#xA;returns a class based on the component's state. |
308-
| style | `React.CSSProperties \| ((state: Field.Error.State) => React.CSSProperties \| undefined)` | - | Style applied to the element, or a function that&#xA;returns a style object based on the component's state. |
309-
| render | `ReactElement \| ((props: HTMLProps, state: Field.Error.State) => ReactElement)` | - | Allows you to replace the component's HTML element&#xA;with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render. |
304+
| Prop | Type | Default | Description |
305+
| :-------- | :---------------------------------------------------------------------------------------- | :------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
306+
| match | `boolean \| unknown` | - | Determines whether to show the error message according to the field's&#xA;[ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState).&#xA;Specifying `true` will always show the error message, and lets external libraries&#xA;control the visibility. |
307+
| className | `string \| ((state: Field.Error.State) => string \| undefined)` | - | CSS class applied to the element, or a function that&#xA;returns a class based on the component's state. |
308+
| style | `React.CSSProperties \| ((state: Field.Error.State) => React.CSSProperties \| undefined)` | - | Style applied to the element, or a function that&#xA;returns a style object based on the component's state. |
309+
| render | `ReactElement \| ((props: HTMLProps, state: Field.Error.State) => ReactElement)` | - | Allows you to replace the component's HTML element&#xA;with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render. |
310310

311311
**Error Data Attributes:**
312312

0 commit comments

Comments
 (0)