-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[material-ui][Checkbox] Convert to support CSS extraction (#41957)
- Loading branch information
Showing
3 changed files
with
210 additions
and
28 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
apps/pigment-css-next-app/src/app/material-ui/react-checkbox/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,79 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import CheckboxLabels from '../../../../../../docs/data/material/components/checkboxes/CheckboxLabels'; | ||
import CheckboxesComponent from '../../../../../../docs/data/material/components/checkboxes/Checkboxes'; | ||
import CheckboxesGroup from '../../../../../../docs/data/material/components/checkboxes/CheckboxesGroup'; | ||
import ColorCheckboxes from '../../../../../../docs/data/material/components/checkboxes/ColorCheckboxes'; | ||
import ControlledCheckbox from '../../../../../../docs/data/material/components/checkboxes/ControlledCheckbox'; | ||
import CustomizedCheckbox from '../../../../../../docs/data/material/components/checkboxes/CustomizedCheckbox'; | ||
import FormControlLabelPosition from '../../../../../../docs/data/material/components/checkboxes/FormControlLabelPosition'; | ||
import IconCheckboxes from '../../../../../../docs/data/material/components/checkboxes/IconCheckboxes'; | ||
import IndeterminateCheckbox from '../../../../../../docs/data/material/components/checkboxes/IndeterminateCheckbox'; | ||
import SizeCheckboxes from '../../../../../../docs/data/material/components/checkboxes/SizeCheckboxes'; | ||
|
||
export default function Checkboxes() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Checkbox Labels</h2> | ||
<div className="demo-container"> | ||
<CheckboxLabels /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Checkboxes</h2> | ||
<div className="demo-container"> | ||
<CheckboxesComponent /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Checkboxes Group</h2> | ||
<div className="demo-container"> | ||
<CheckboxesGroup /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Color Checkboxes</h2> | ||
<div className="demo-container"> | ||
<ColorCheckboxes /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Controlled Checkbox</h2> | ||
<div className="demo-container"> | ||
<ControlledCheckbox /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Checkbox</h2> | ||
<div className="demo-container"> | ||
<CustomizedCheckbox /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Form Control Label Position</h2> | ||
<div className="demo-container"> | ||
<FormControlLabelPosition /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Icon Checkboxes</h2> | ||
<div className="demo-container"> | ||
<IconCheckboxes /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Indeterminate Checkbox</h2> | ||
<div className="demo-container"> | ||
<IndeterminateCheckbox /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Size Checkboxes</h2> | ||
<div className="demo-container"> | ||
<SizeCheckboxes /> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
80 changes: 80 additions & 0 deletions
80
apps/pigment-css-vite-app/src/pages/material-ui/react-checkbox.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,80 @@ | ||
import * as React from 'react'; | ||
import MaterialUILayout from '../../Layout'; | ||
import CheckboxLabels from '../../../../../docs/data/material/components/checkboxes/CheckboxLabels.tsx'; | ||
import CheckboxesComponent from '../../../../../docs/data/material/components/checkboxes/Checkboxes.tsx'; | ||
import CheckboxesGroup from '../../../../../docs/data/material/components/checkboxes/CheckboxesGroup.tsx'; | ||
import ColorCheckboxes from '../../../../../docs/data/material/components/checkboxes/ColorCheckboxes.tsx'; | ||
import ControlledCheckbox from '../../../../../docs/data/material/components/checkboxes/ControlledCheckbox.tsx'; | ||
import CustomizedCheckbox from '../../../../../docs/data/material/components/checkboxes/CustomizedCheckbox.tsx'; | ||
import FormControlLabelPosition from '../../../../../docs/data/material/components/checkboxes/FormControlLabelPosition.tsx'; | ||
import IconCheckboxes from '../../../../../docs/data/material/components/checkboxes/IconCheckboxes.tsx'; | ||
import IndeterminateCheckbox from '../../../../../docs/data/material/components/checkboxes/IndeterminateCheckbox.tsx'; | ||
import SizeCheckboxes from '../../../../../docs/data/material/components/checkboxes/SizeCheckboxes.tsx'; | ||
|
||
export default function Checkboxes() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>Checkboxes</h1> | ||
<section> | ||
<h2> Checkbox Labels</h2> | ||
<div className="demo-container"> | ||
<CheckboxLabels /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Checkboxes</h2> | ||
<div className="demo-container"> | ||
<CheckboxesComponent /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Checkboxes Group</h2> | ||
<div className="demo-container"> | ||
<CheckboxesGroup /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Color Checkboxes</h2> | ||
<div className="demo-container"> | ||
<ColorCheckboxes /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Controlled Checkbox</h2> | ||
<div className="demo-container"> | ||
<ControlledCheckbox /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Checkbox</h2> | ||
<div className="demo-container"> | ||
<CustomizedCheckbox /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Form Control Label Position</h2> | ||
<div className="demo-container"> | ||
<FormControlLabelPosition /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Icon Checkboxes</h2> | ||
<div className="demo-container"> | ||
<IconCheckboxes /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Indeterminate Checkbox</h2> | ||
<div className="demo-container"> | ||
<IndeterminateCheckbox /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Size Checkboxes</h2> | ||
<div className="demo-container"> | ||
<SizeCheckboxes /> | ||
</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