Skip to content

Commit 12711c6

Browse files
authored
[docs] Fix typos in joy and utils package (#46713)
1 parent 56de59b commit 12711c6

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

docs/translations/api-docs-joy/tab-list/tab-list.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"size": { "description": "The size of the component." },
1717
"slotProps": { "description": "The props used for each slot inside." },
1818
"slots": { "description": "The components used for each slot inside." },
19-
"sticky": { "description": "If provided, the TabList will have postion <code>sticky</code>." },
19+
"sticky": { "description": "If provided, the TabList will have position <code>sticky</code>." },
2020
"sx": {
2121
"description": "The system prop that allows defining system overrides as well as additional CSS styles."
2222
},

packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('<AccordionGroup />', () => {
7878

7979
it('should not warn when using custom color, variant, size', () => {
8080
expect(() => {
81-
// @ts-expect-error as `custom` color, varaint, size is not part of the type system
81+
// @ts-expect-error as `custom` color, variant, size is not part of the type system
8282
render(<AccordionGroup color="custom" variant="custom" size="custom" />);
8383
}).not.toErrorDev();
8484
});

packages/mui-joy/src/Step/Step.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const StepRoot = styled('li', {
106106
left: `calc(50% + var(--StepIndicator-size) / 2 + var(--Step-connectorInset))`,
107107
width: `calc(100% - var(--StepIndicator-size) - 2 * var(--Step-connectorInset))`,
108108
},
109-
// Eventhough `:has` is <90% support, we can use it because this is an edge case for vertical step without an indicator.
109+
// Even though `:has` is <90% support, we can use it because this is an edge case for vertical step without an indicator.
110110
[`&:has(.${stepClasses.indicator}:empty)::after`]: {
111111
'--StepIndicator-size': '0px',
112112
'--Step-connectorInset': '0px',

packages/mui-joy/src/TabList/TabList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ TabList.propTypes /* remove-proptypes */ = {
214214
root: PropTypes.elementType,
215215
}),
216216
/**
217-
* If provided, the TabList will have postion `sticky`.
217+
* If provided, the TabList will have position `sticky`.
218218
*/
219219
sticky: PropTypes.oneOf(['bottom', 'top']),
220220
/**

packages/mui-joy/src/TabList/TabListProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface TabListTypeMap<P = {}, D extends React.ElementType = 'div'> {
5656
*/
5757
size?: OverridableStringUnion<'sm' | 'md' | 'lg', TabListPropsSizeOverrides>;
5858
/**
59-
* If provided, the TabList will have postion `sticky`.
59+
* If provided, the TabList will have position `sticky`.
6060
*/
6161
sticky?: 'top' | 'bottom';
6262
/**

packages/mui-utils/src/isMuiElement/isMuiElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default function isMuiElement(element: any, muiNames: readonly string[]):
44
return (
55
React.isValidElement(element) &&
66
muiNames.indexOf(
7-
// For server components `muiName` is avaialble in element.type._payload.value.muiName
7+
// For server components `muiName` is available in element.type._payload.value.muiName
88
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
99
// eslint-disable-next-line no-underscore-dangle
1010
(element.type as any).muiName ?? (element.type as any)?._payload?.value?.muiName,

packages/mui-utils/src/useControlled/useControlled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function useControlled<T = unknown>(
7373
}, []);
7474

7575
// TODO: provide overloads for the useControlled function to account for the case where either
76-
// controlled or default is not undefiend.
76+
// controlled or default is not undefined.
7777
// In that case the return type should be [T, React.Dispatch<React.SetStateAction<T>>]
7878
// otherwise it should be [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>]
7979
return [value as T, setValueIfUncontrolled];

0 commit comments

Comments
 (0)