Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Jul 12, 2024
1 parent fd3dcad commit e3cf68d
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 12 deletions.
5 changes: 4 additions & 1 deletion packages/mui-base/src/utils/appendOwnerState.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export { default as appendOwnerState, AppendOwnerStateReturnType } from '@mui/utils/appendOwnerState'
export {
default as appendOwnerState,
AppendOwnerStateReturnType,
} from '@mui/utils/appendOwnerState';
7 changes: 6 additions & 1 deletion packages/mui-base/src/utils/types.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState } from '@mui/utils';
export type {
EventHandlers,
WithOptionalOwnerState,
SlotComponentProps,
SlotComponentPropsWithSlotState,
} from '@mui/utils';
6 changes: 5 additions & 1 deletion packages/mui-base/src/utils/useSlotProps.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
'use client';
export { default as useSlotProps, UseSlotPropsParameters, UseSlotPropsResult } from '@mui/utils/useSlotProps';
export {
default as useSlotProps,
UseSlotPropsParameters,
UseSlotPropsResult,
} from '@mui/utils/useSlotProps';
8 changes: 6 additions & 2 deletions packages/mui-material/src/utils/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { SxProps } from '@mui/system';
import { SlotComponentProps } from '@mui/utils';

export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState } from '@mui/utils';
export type {
EventHandlers,
WithOptionalOwnerState,
SlotComponentProps,
SlotComponentPropsWithSlotState,
} from '@mui/utils';

export type SlotCommonProps = {
component?: React.ElementType;
Expand All @@ -14,7 +19,6 @@ export type SlotProps<
TOwnerState,
> = SlotComponentProps<TSlotComponent, SlotCommonProps & TOverrides, TOwnerState>;


/**
* Use the keys of `Slots` to make sure that K contains all of the keys
*
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-utils/src/extractEventHandlers/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from "./extractEventHandlers";
export { default } from './extractEventHandlers';
6 changes: 5 additions & 1 deletion packages/mui-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ export * from './generateUtilityClass';
export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';
export { default as clamp } from './clamp';
export { default as unstable_useSlotProps, UseSlotPropsParameters, UseSlotPropsResult } from './useSlotProps';
export {
default as unstable_useSlotProps,
UseSlotPropsParameters,
UseSlotPropsResult,
} from './useSlotProps';
export { default as unstable_resolveComponentProps } from './resolveComponentProps';
export { default as unstable_extractEventHandlers } from './extractEventHandlers';
export * from './types';
7 changes: 6 additions & 1 deletion packages/mui-utils/src/mergeSlotProps/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export { default, WithCommonProps, MergeSlotPropsParameters, MergeSlotPropsResult } from './mergeSlotProps';
export {
default,
WithCommonProps,
MergeSlotPropsParameters,
MergeSlotPropsResult,
} from './mergeSlotProps';
2 changes: 1 addition & 1 deletion packages/mui-utils/src/omitEventHandlers/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './omitEventHandlers';
export { default } from './omitEventHandlers';
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
* @param object Object to remove event handlers from.
* @returns Object with event handlers removed.
*/
function omitEventHandlers<Props extends Record<string, unknown>>(
object: Props | undefined,
) {
function omitEventHandlers<Props extends Record<string, unknown>>(object: Props | undefined) {
if (object === undefined) {
return {};
}
Expand Down

0 comments on commit e3cf68d

Please sign in to comment.