1
1
const { asValue, nameClass } = require ( '../pluginUtils' )
2
2
3
- module . exports = function ( { matchUtilities, jit : { theme } } ) {
3
+ module . exports = function ( { matchUtilities } ) {
4
4
matchUtilities ( {
5
- m : ( modifier , { theme, candidate } ) => {
5
+ m : ( modifier , { theme } ) => {
6
6
let value = asValue ( modifier , theme [ 'margin' ] )
7
7
8
8
if ( value === undefined ) {
@@ -13,7 +13,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
13
13
} ,
14
14
} )
15
15
matchUtilities ( {
16
- mx : ( modifier , { theme, candidate } ) => {
16
+ mx : ( modifier , { theme } ) => {
17
17
let value = asValue ( modifier , theme [ 'margin' ] )
18
18
19
19
if ( value === undefined ) {
@@ -22,7 +22,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
22
22
23
23
return { [ nameClass ( 'mx' , modifier ) ] : { 'margin-left' : value , 'margin-right' : value } }
24
24
} ,
25
- my : ( modifier , { theme, candidate } ) => {
25
+ my : ( modifier , { theme } ) => {
26
26
let value = asValue ( modifier , theme [ 'margin' ] )
27
27
28
28
if ( value === undefined ) {
@@ -33,7 +33,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
33
33
} ,
34
34
} )
35
35
matchUtilities ( {
36
- mt : ( modifier , { theme, candidate } ) => {
36
+ mt : ( modifier , { theme } ) => {
37
37
let value = asValue ( modifier , theme [ 'margin' ] )
38
38
39
39
if ( value === undefined ) {
@@ -42,7 +42,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
42
42
43
43
return { [ nameClass ( 'mt' , modifier ) ] : { 'margin-top' : value } }
44
44
} ,
45
- mr : ( modifier , { theme, candidate } ) => {
45
+ mr : ( modifier , { theme } ) => {
46
46
let value = asValue ( modifier , theme [ 'margin' ] )
47
47
48
48
if ( value === undefined ) {
@@ -51,7 +51,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
51
51
52
52
return { [ nameClass ( 'mr' , modifier ) ] : { 'margin-right' : value } }
53
53
} ,
54
- mb : ( modifier , { theme, candidate } ) => {
54
+ mb : ( modifier , { theme } ) => {
55
55
let value = asValue ( modifier , theme [ 'margin' ] )
56
56
57
57
if ( value === undefined ) {
@@ -60,7 +60,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
60
60
61
61
return { [ nameClass ( 'mb' , modifier ) ] : { 'margin-bottom' : value } }
62
62
} ,
63
- ml : ( modifier , { theme, candidate } ) => {
63
+ ml : ( modifier , { theme } ) => {
64
64
let value = asValue ( modifier , theme [ 'margin' ] )
65
65
66
66
if ( value === undefined ) {
0 commit comments