@@ -242,7 +242,15 @@ const getRemDefaultVal = (val: string) => {
242242
243243const getBorderRadiusDefaultVal = ( val : string ) => {
244244 return ( {
245- "0px" : "none" , "0.125rem" : "sm" , "0.25rem" : "" , "0.375rem" : "md" , "0.5rem" : "lg" , "0.75rem" : "xl" , "1rem" : "2xl" , "1.5rem" : "3xl" , "9999px" : "full"
245+ "0px" : "-none" ,
246+ "0.125rem" : "-sm" ,
247+ "0.25rem" : "null" ,
248+ "0.375rem" : "-md" ,
249+ "0.5rem" : "-lg" ,
250+ "0.75rem" : "-xl" ,
251+ "1rem" : "-2xl" ,
252+ "1.5rem" : "-3xl" ,
253+ "9999px" : "-full"
246254 } [ val ] )
247255}
248256
@@ -464,11 +472,11 @@ const propertyMap: Map<string, Record<string, string> | ((val: string) => string
464472 ] ,
465473 [
466474 'border-bottom-left-radius' ,
467- val => ( { '0' : 'rounded-bl-none' , '0px' : 'rounded-bl-none' } [ val ] ?? ( isUnit ( val ) ? `rounded-bl- ${ ( useAllDefaultValues && getBorderRadiusDefaultVal ( val ) ) || `[${ getCustomVal ( val ) } ]` } ` : '' ) )
475+ val => ( { '0' : 'rounded-bl-none' , '0px' : 'rounded-bl-none' } [ val ] ?? ( isUnit ( val ) ? `rounded-bl${ ( ( useAllDefaultValues && getBorderRadiusDefaultVal ( val ) ) || `- [${ getCustomVal ( val ) } ]` ) . replace ( / n u l l $ / , '' ) } ` : '' ) )
468476 ] ,
469477 [
470478 'border-bottom-right-radius' ,
471- val => ( { '0' : 'rounded-br-none' , '0px' : 'rounded-br-none' } [ val ] ?? ( isUnit ( val ) ? `rounded-br- ${ ( useAllDefaultValues && getBorderRadiusDefaultVal ( val ) ) || `[${ getCustomVal ( val ) } ]` } ` : '' ) )
479+ val => ( { '0' : 'rounded-br-none' , '0px' : 'rounded-br-none' } [ val ] ?? ( isUnit ( val ) ? `rounded-br${ ( ( useAllDefaultValues && getBorderRadiusDefaultVal ( val ) ) || `- [${ getCustomVal ( val ) } ]` ) . replace ( / n u l l $ / , '' ) } ` : '' ) )
472480 ] ,
473481 [
474482 'border-bottom-style' ,
@@ -550,15 +558,15 @@ const propertyMap: Map<string, Record<string, string> | ((val: string) => string
550558 if ( vals . filter ( v => ! isUnit ( v ) ) . length > 0 ) {
551559 return ''
552560 }
553- vals = vals . map ( v => ( useAllDefaultValues && getBorderRadiusDefaultVal ( v ) ) || `[${ v } ]` )
561+ vals = vals . map ( v => ( ( useAllDefaultValues && getBorderRadiusDefaultVal ( v ) ) || `- [${ v } ]` ) . replace ( / n u l l $ / , '' ) )
554562 if ( vals . length === 1 ) {
555- return `rounded- ${ vals [ 0 ] } `
563+ return `rounded${ vals [ 0 ] } `
556564 } else if ( vals . length === 2 ) {
557- return `rounded-tl- ${ vals [ 0 ] } rounded-br- ${ vals [ 0 ] } rounded-tr- ${ vals [ 1 ] } rounded-bl- ${ vals [ 1 ] } `
565+ return `rounded-tl${ vals [ 0 ] } rounded-br${ vals [ 0 ] } rounded-tr${ vals [ 1 ] } rounded-bl${ vals [ 1 ] } `
558566 } else if ( vals . length === 3 ) {
559- return `rounded-tl- ${ vals [ 0 ] } rounded-br- ${ vals [ 2 ] } rounded-tr- ${ vals [ 1 ] } rounded-bl- ${ vals [ 1 ] } `
567+ return `rounded-tl${ vals [ 0 ] } rounded-br${ vals [ 2 ] } rounded-tr${ vals [ 1 ] } rounded-bl${ vals [ 1 ] } `
560568 } else if ( vals . length === 4 ) {
561- return `rounded-tl- ${ vals [ 0 ] } rounded-br- ${ vals [ 2 ] } rounded-tr- ${ vals [ 1 ] } rounded-bl- ${ vals [ 3 ] } `
569+ return `rounded-tl${ vals [ 0 ] } rounded-br${ vals [ 2 ] } rounded-tr${ vals [ 1 ] } rounded-bl${ vals [ 3 ] } `
562570 }
563571 return ''
564572 }
@@ -611,11 +619,11 @@ const propertyMap: Map<string, Record<string, string> | ((val: string) => string
611619 ] ,
612620 [
613621 'border-top-left-radius' ,
614- val => ( { '0' : 'rounded-tl-none' , '0px' : 'rounded-tl-none' } [ val ] ?? ( isUnit ( val ) ? `rounded-tl- ${ ( useAllDefaultValues && getBorderRadiusDefaultVal ( val ) ) || `[${ getCustomVal ( val ) } ]` } ` : '' ) )
622+ val => ( { '0' : 'rounded-tl-none' , '0px' : 'rounded-tl-none' } [ val ] ?? ( isUnit ( val ) ? `rounded-tl${ ( ( useAllDefaultValues && getBorderRadiusDefaultVal ( val ) ) || `- [${ getCustomVal ( val ) } ]` ) . replace ( / n u l l $ / , '' ) } ` : '' ) )
615623 ] ,
616624 [
617625 'border-top-right-radius' ,
618- val => ( { '0' : 'rounded-tr-none' , '0px' : 'rounded-tr-none' } [ val ] ?? ( isUnit ( val ) ? `rounded-tr- ${ ( useAllDefaultValues && getBorderRadiusDefaultVal ( val ) ) || `[${ getCustomVal ( val ) } ]` } ` : '' ) )
626+ val => ( { '0' : 'rounded-tr-none' , '0px' : 'rounded-tr-none' } [ val ] ?? ( isUnit ( val ) ? `rounded-tr${ ( ( useAllDefaultValues && getBorderRadiusDefaultVal ( val ) ) || `- [${ getCustomVal ( val ) } ]` ) . replace ( / n u l l $ / , '' ) } ` : '' ) )
619627 ] ,
620628 [
621629 'border-top-style' ,
0 commit comments