forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[code-infra] Add alias for icon types (mui#41248)
Signed-off-by: Jan Potoms <[email protected]>
- Loading branch information
Showing
16 changed files
with
54 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
import * as React from 'react'; | ||
import { useTheme } from '@mui/joy/styles'; | ||
import Stack from '@mui/joy/Stack'; | ||
import Person from '@mui/icons-material/Person'; | ||
|
||
export default function IconFontSizes() { | ||
const theme = useTheme(); | ||
return ( | ||
<Stack | ||
spacing={2} | ||
direction="row" | ||
sx={{ gridColumn: '1 / -1', alignItems: 'center', justifyContent: 'center' }} | ||
> | ||
{Object.keys(theme.fontSize).map((size) => ( | ||
<Person key={size} fontSize={size} /> | ||
))} | ||
<Person fontSize="xs" /> | ||
<Person fontSize="sm" /> | ||
<Person fontSize="md" /> | ||
<Person fontSize="lg" /> | ||
<Person fontSize="xl" /> | ||
<Person fontSize="xl2" /> | ||
<Person fontSize="xl3" /> | ||
<Person fontSize="xl4" /> | ||
</Stack> | ||
); | ||
} |
13 changes: 8 additions & 5 deletions
13
docs/data/joy/integrations/icon-libraries/IconFontSizes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
import * as React from 'react'; | ||
import { useTheme } from '@mui/joy/styles'; | ||
import Stack from '@mui/joy/Stack'; | ||
import Person from '@mui/icons-material/Person'; | ||
|
||
export default function IconFontSizes() { | ||
const theme = useTheme(); | ||
return ( | ||
<Stack | ||
spacing={2} | ||
direction="row" | ||
sx={{ gridColumn: '1 / -1', alignItems: 'center', justifyContent: 'center' }} | ||
> | ||
{Object.keys(theme.fontSize).map((size) => ( | ||
<Person key={size} fontSize={size} /> | ||
))} | ||
<Person fontSize="xs" /> | ||
<Person fontSize="sm" /> | ||
<Person fontSize="md" /> | ||
<Person fontSize="lg" /> | ||
<Person fontSize="xl" /> | ||
<Person fontSize="xl2" /> | ||
<Person fontSize="xl3" /> | ||
<Person fontSize="xl4" /> | ||
</Stack> | ||
); | ||
} |
11 changes: 8 additions & 3 deletions
11
docs/data/joy/integrations/icon-libraries/IconFontSizes.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{Object.keys(theme.fontSize).map((size) => ( | ||
<Person key={size} fontSize={size} /> | ||
))} | ||
<Person fontSize="xs" /> | ||
<Person fontSize="sm" /> | ||
<Person fontSize="md" /> | ||
<Person fontSize="lg" /> | ||
<Person fontSize="xl" /> | ||
<Person fontSize="xl2" /> | ||
<Person fontSize="xl3" /> | ||
<Person fontSize="xl4" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from '@mui/material/SvgIcon'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"paths": { | ||
"@mui/material": ["../mui-material/src"], | ||
"@mui/material/*": ["../mui-material/src/*"] | ||
} | ||
}, | ||
"compilerOptions": {}, | ||
"include": ["src/**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters