Skip to content

Commit

Permalink
Version 1.0.3.
Browse files Browse the repository at this point in the history
Bug fixed: `expandAllKeys()`.
  • Loading branch information
ATATC committed Jul 26, 2023
1 parent 54cf43f commit ec0c679
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@atatctech/mui-presets",
"type": "module",
"version": "1.0.2",
"version": "1.0.3",
"author": "ATATC",
"description": "Additional preset components for MUI.",
"keywords": [
Expand Down
5 changes: 4 additions & 1 deletion src/types.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/types.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export type PropsWithMarginAndPaddingF = PropsWithMarginF & PropsWithPaddingF;
* @param props
*/
export function expandAllKeys(props: PropsWithMarginAndPadding | any): PropsWithMarginAndPaddingF {
return expandPaddingKeys(expandMarginKeys(props));
return {
...expandMarginKeys(props),
...expandPaddingKeys(props)
};
}
export type DefaultProps = PropsWithChildren & PropsWithMarginAndPadding;

0 comments on commit ec0c679

Please sign in to comment.