forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Add grid support for Box (mui#17326)
- Loading branch information
1 parent
b338509
commit a161822
Showing
5 changed files
with
91 additions
and
0 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,67 @@ | ||
import style from './style'; | ||
import compose from './compose'; | ||
|
||
export const gridGap = style({ | ||
prop: 'gridGap', | ||
}); | ||
|
||
export const gridColumnGap = style({ | ||
prop: 'gridColumnGap', | ||
}); | ||
|
||
export const gridRowGap = style({ | ||
prop: 'gridRowGap', | ||
}); | ||
|
||
export const gridColumn = style({ | ||
prop: 'gridColumn', | ||
}); | ||
|
||
export const gridRow = style({ | ||
prop: 'gridRow', | ||
}); | ||
|
||
export const gridAutoFlow = style({ | ||
prop: 'gridAutoFlow', | ||
}); | ||
|
||
export const gridAutoColumns = style({ | ||
prop: 'gridAutoColumns', | ||
}); | ||
|
||
export const gridAutoRows = style({ | ||
prop: 'gridAutoRows', | ||
}); | ||
|
||
export const gridTemplateColumns = style({ | ||
prop: 'gridTemplateColumns', | ||
}); | ||
|
||
export const gridTemplateRows = style({ | ||
prop: 'gridTemplateRows', | ||
}); | ||
|
||
export const gridTemplateAreas = style({ | ||
prop: 'gridTemplateAreas', | ||
}); | ||
|
||
export const gridArea = style({ | ||
prop: 'gridArea', | ||
}); | ||
|
||
const grid = compose( | ||
gridGap, | ||
gridColumnGap, | ||
gridRowGap, | ||
gridColumn, | ||
gridRow, | ||
gridAutoFlow, | ||
gridAutoColumns, | ||
gridAutoRows, | ||
gridTemplateColumns, | ||
gridTemplateRows, | ||
gridTemplateAreas, | ||
gridArea, | ||
); | ||
|
||
export default grid; |
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