-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AppBar] Convert to support CSS extraction (#41247)
- Loading branch information
Showing
10 changed files
with
350 additions
and
123 deletions.
There are no files selected for viewing
100 changes: 100 additions & 0 deletions
100
apps/pigment-css-next-app/src/app/material-ui/react-app-bar/page.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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import BackToTop from '../../../../../../docs/data/material/components/app-bar/BackToTop'; | ||
import BottomAppBar from '../../../../../../docs/data/material/components/app-bar/BottomAppBar'; | ||
import ButtonAppBar from '../../../../../../docs/data/material/components/app-bar/ButtonAppBar'; | ||
import DenseAppBar from '../../../../../../docs/data/material/components/app-bar/DenseAppBar'; | ||
import DrawerAppBar from '../../../../../../docs/data/material/components/app-bar/DrawerAppBar'; | ||
import ElevateAppBar from '../../../../../../docs/data/material/components/app-bar/ElevateAppBar'; | ||
import EnableColorOnDarkAppBar from '../../../../../../docs/data/material/components/app-bar/EnableColorOnDarkAppBar'; | ||
import HideAppBar from '../../../../../../docs/data/material/components/app-bar/HideAppBar'; | ||
import MenuAppBar from '../../../../../../docs/data/material/components/app-bar/MenuAppBar'; | ||
import PrimarySearchAppBar from '../../../../../../docs/data/material/components/app-bar/PrimarySearchAppBar'; | ||
import ProminentAppBar from '../../../../../../docs/data/material/components/app-bar/ProminentAppBar'; | ||
import ResponsiveAppBar from '../../../../../../docs/data/material/components/app-bar/ResponsiveAppBar'; | ||
import SearchAppBar from '../../../../../../docs/data/material/components/app-bar/SearchAppBar'; | ||
|
||
export default function AppBar() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Back To Top</h2> | ||
<div className="demo-container"> | ||
<BackToTop /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Bottom App Bar</h2> | ||
<div className="demo-container"> | ||
<BottomAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Button App Bar</h2> | ||
<div className="demo-container"> | ||
<ButtonAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Dense App Bar</h2> | ||
<div className="demo-container"> | ||
<DenseAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Drawer App Bar</h2> | ||
<div className="demo-container"> | ||
<DrawerAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Elevate App Bar</h2> | ||
<div className="demo-container"> | ||
<ElevateAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Enable Color On Dark App Bar</h2> | ||
<div className="demo-container"> | ||
<EnableColorOnDarkAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Hide App Bar</h2> | ||
<div className="demo-container"> | ||
<HideAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Menu App Bar</h2> | ||
<div className="demo-container"> | ||
<MenuAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Primary Search App Bar</h2> | ||
<div className="demo-container"> | ||
<PrimarySearchAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Prominent App Bar</h2> | ||
<div className="demo-container"> | ||
<ProminentAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Responsive App Bar</h2> | ||
<div className="demo-container"> | ||
<ResponsiveAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Search App Bar</h2> | ||
<div className="demo-container"> | ||
<SearchAppBar /> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
101 changes: 101 additions & 0 deletions
101
apps/pigment-css-vite-app/src/pages/material-ui/react-app-bar.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 |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import * as React from 'react'; | ||
import MaterialUILayout from '../../Layout'; | ||
import BackToTop from '../../../../../docs/data/material/components/app-bar/BackToTop.tsx'; | ||
import BottomAppBar from '../../../../../docs/data/material/components/app-bar/BottomAppBar.tsx'; | ||
import ButtonAppBar from '../../../../../docs/data/material/components/app-bar/ButtonAppBar.tsx'; | ||
import DenseAppBar from '../../../../../docs/data/material/components/app-bar/DenseAppBar.tsx'; | ||
import DrawerAppBar from '../../../../../docs/data/material/components/app-bar/DrawerAppBar.tsx'; | ||
import ElevateAppBar from '../../../../../docs/data/material/components/app-bar/ElevateAppBar.tsx'; | ||
import EnableColorOnDarkAppBar from '../../../../../docs/data/material/components/app-bar/EnableColorOnDarkAppBar.tsx'; | ||
import HideAppBar from '../../../../../docs/data/material/components/app-bar/HideAppBar.tsx'; | ||
import MenuAppBar from '../../../../../docs/data/material/components/app-bar/MenuAppBar.tsx'; | ||
import PrimarySearchAppBar from '../../../../../docs/data/material/components/app-bar/PrimarySearchAppBar.tsx'; | ||
import ProminentAppBar from '../../../../../docs/data/material/components/app-bar/ProminentAppBar.tsx'; | ||
import ResponsiveAppBar from '../../../../../docs/data/material/components/app-bar/ResponsiveAppBar.tsx'; | ||
import SearchAppBar from '../../../../../docs/data/material/components/app-bar/SearchAppBar.tsx'; | ||
|
||
export default function AppBar() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>AppBar</h1> | ||
<section> | ||
<h2> Back To Top</h2> | ||
<div className="demo-container"> | ||
<BackToTop /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Bottom App Bar</h2> | ||
<div className="demo-container"> | ||
<BottomAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Button App Bar</h2> | ||
<div className="demo-container"> | ||
<ButtonAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Dense App Bar</h2> | ||
<div className="demo-container"> | ||
<DenseAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Drawer App Bar</h2> | ||
<div className="demo-container"> | ||
<DrawerAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Elevate App Bar</h2> | ||
<div className="demo-container"> | ||
<ElevateAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Enable Color On Dark App Bar</h2> | ||
<div className="demo-container"> | ||
<EnableColorOnDarkAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Hide App Bar</h2> | ||
<div className="demo-container"> | ||
<HideAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Menu App Bar</h2> | ||
<div className="demo-container"> | ||
<MenuAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Primary Search App Bar</h2> | ||
<div className="demo-container"> | ||
<PrimarySearchAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Prominent App Bar</h2> | ||
<div className="demo-container"> | ||
<ProminentAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Responsive App Bar</h2> | ||
<div className="demo-container"> | ||
<ResponsiveAppBar /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Search App Bar</h2> | ||
<div className="demo-container"> | ||
<SearchAppBar /> | ||
</div> | ||
</section> | ||
</MaterialUILayout> | ||
); | ||
} |
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
Oops, something went wrong.