1- const { asLength , nameClass } = require ( '../pluginUtils' )
1+ const { asValue , nameClass } = require ( '../pluginUtils' )
22
33module . exports = function ( { matchUtilities, jit : { theme } } ) {
44 matchUtilities ( {
55 p : ( modifier , { theme } ) => {
6- let value = asLength ( modifier , theme [ 'padding' ] )
6+ let value = asValue ( modifier , theme [ 'padding' ] )
77
88 if ( value === undefined ) {
99 return [ ]
@@ -14,7 +14,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
1414 } )
1515 matchUtilities ( {
1616 px : ( modifier , { theme } ) => {
17- let value = asLength ( modifier , theme [ 'padding' ] )
17+ let value = asValue ( modifier , theme [ 'padding' ] )
1818
1919 if ( value === undefined ) {
2020 return [ ]
@@ -23,7 +23,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
2323 return { [ nameClass ( 'px' , modifier ) ] : { 'padding-left' : value , 'padding-right' : value } }
2424 } ,
2525 py : ( modifier , { theme } ) => {
26- let value = asLength ( modifier , theme [ 'padding' ] )
26+ let value = asValue ( modifier , theme [ 'padding' ] )
2727
2828 if ( value === undefined ) {
2929 return [ ]
@@ -34,7 +34,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
3434 } )
3535 matchUtilities ( {
3636 pt : ( modifier , { theme } ) => {
37- let value = asLength ( modifier , theme [ 'padding' ] )
37+ let value = asValue ( modifier , theme [ 'padding' ] )
3838
3939 if ( value === undefined ) {
4040 return [ ]
@@ -43,7 +43,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
4343 return { [ nameClass ( 'pt' , modifier ) ] : { 'padding-top' : value } }
4444 } ,
4545 pr : ( modifier , { theme } ) => {
46- let value = asLength ( modifier , theme [ 'padding' ] )
46+ let value = asValue ( modifier , theme [ 'padding' ] )
4747
4848 if ( value === undefined ) {
4949 return [ ]
@@ -52,7 +52,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
5252 return { [ nameClass ( 'pr' , modifier ) ] : { 'padding-right' : value } }
5353 } ,
5454 pb : ( modifier , { theme } ) => {
55- let value = asLength ( modifier , theme [ 'padding' ] )
55+ let value = asValue ( modifier , theme [ 'padding' ] )
5656
5757 if ( value === undefined ) {
5858 return [ ]
@@ -61,7 +61,7 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
6161 return { [ nameClass ( 'pb' , modifier ) ] : { 'padding-bottom' : value } }
6262 } ,
6363 pl : ( modifier , { theme } ) => {
64- let value = asLength ( modifier , theme [ 'padding' ] )
64+ let value = asValue ( modifier , theme [ 'padding' ] )
6565
6666 if ( value === undefined ) {
6767 return [ ]
0 commit comments