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.
[zero][vite] Modify plugin to transform node_modules (mui#39517)
- Loading branch information
1 parent
1657fbd
commit 9b74132
Showing
15 changed files
with
328 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const bounceAnim: string; | ||
export const Button: React.ComponentType< | ||
JSX.IntrinsicElements['button'] & { | ||
isRed?: boolean; | ||
} | ||
>; |
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,31 @@ | ||
import { keyframes, styled } from '@mui/zero-runtime'; | ||
|
||
export const bounceAnim = keyframes({ | ||
'from, 20%, 53%, 80%, to': { | ||
transform: 'translate3d(0,0,0)', | ||
}, | ||
'40%, 43%': { | ||
transform: 'translate3d(0, -30px, 0)', | ||
}, | ||
'70%': { | ||
transform: 'translate3d(0, -15px, 0)', | ||
}, | ||
'90%': { | ||
transform: 'translate3d(0,-4px,0)', | ||
}, | ||
}); | ||
|
||
export const Button = styled('button', { | ||
name: 'MuiButton', | ||
slot: 'Root', | ||
})( | ||
({ theme }) => ({ | ||
fontFamily: 'sans-serif', | ||
backgroundColor: theme.palette.primary.main, | ||
}), | ||
{ | ||
fontFamily: 'sans-serif', | ||
color: (props) => (props.isRed ? 'primary.main' : 'secondary.main'), | ||
'--css-variable': (props) => (props.isRed ? 'palette.primary.main' : 'palette.secondary.main'), | ||
}, | ||
); |
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,7 @@ | ||
{ | ||
"name": "local-ui-lib", | ||
"version": "0.0.0", | ||
"dependencies": { | ||
"zero-runtime": "*" | ||
} | ||
} |
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
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 type { PluginCustomOptions } from './cssFnValueToVariable'; |
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
Oops, something went wrong.