Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99725911
grid2Classes.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 26, 08:29
Size
1 KB
Mime Type
text/x-java
Expires
Tue, Jan 28, 08:29 (2 d)
Engine
blob
Format
Raw Data
Handle
23814739
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
grid2Classes.js
View Options
import
{
unstable_generateUtilityClasses
as
generateUtilityClasses
}
from
'@mui/utils'
;
import
generateUtilityClass
from
'../generateUtilityClass'
;
export
function
getGrid2UtilityClass
(
slot
)
{
return
generateUtilityClass
(
'MuiGrid2'
,
slot
);
}
const
SPACINGS
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
];
const
DIRECTIONS
=
[
'column-reverse'
,
'column'
,
'row-reverse'
,
'row'
];
const
WRAPS
=
[
'nowrap'
,
'wrap-reverse'
,
'wrap'
];
const
GRID_SIZES
=
[
'auto'
,
true
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
];
const
grid2Classes
=
generateUtilityClasses
(
'MuiGrid2'
,
[
'root'
,
'container'
,
'item'
,
'zeroMinWidth'
,
// spacings
...
SPACINGS
.
map
(
spacing
=>
`
spacing
-
xs
-
$
{
spacing
}
`
),
// direction values
...
DIRECTIONS
.
map
(
direction
=>
`
direction
-
xs
-
$
{
direction
}
`
),
// wrap values
...
WRAPS
.
map
(
wrap
=>
`
wrap
-
xs
-
$
{
wrap
}
`
),
// grid sizes for all breakpoints
...
GRID_SIZES
.
map
(
size
=>
`
grid
-
xs
-
$
{
size
}
`
),
...
GRID_SIZES
.
map
(
size
=>
`
grid
-
sm
-
$
{
size
}
`
),
...
GRID_SIZES
.
map
(
size
=>
`
grid
-
md
-
$
{
size
}
`
),
...
GRID_SIZES
.
map
(
size
=>
`
grid
-
lg
-
$
{
size
}
`
),
...
GRID_SIZES
.
map
(
size
=>
`
grid
-
xl
-
$
{
size
}
`
)]);
export
default
grid2Classes
;
Event Timeline
Log In to Comment