@@ -2201,7 +2201,7 @@ export function createUtilities(theme: Theme) {
22012201
22022202 {
22032203 // corner-shape
2204- const shapes = [ 'round' , 'square' , 'bevel' , 'scoop' , 'notch' , 'squircle' ] as const
2204+ let shapes = [ 'round' , 'square' , 'bevel' , 'scoop' , 'notch' , 'squircle' ]
22052205
22062206 for ( let [ root , properties ] of [
22072207 [ 'corner' , [ 'corner-shape' ] ] ,
@@ -2220,14 +2220,12 @@ export function createUtilities(theme: Theme) {
22202220 [ 'corner-br' , [ 'corner-bottom-right-shape' ] ] ,
22212221 [ 'corner-bl' , [ 'corner-bottom-left-shape' ] ] ,
22222222 ] as const ) {
2223- let staticValues : Record < string , AstNode [ ] > = Object . fromEntries (
2224- shapes . map ( ( shape ) => [ shape , properties . map ( ( property ) => decl ( property , shape ) ) ] ) ,
2225- )
2226-
22272223 functionalUtility ( root , {
22282224 themeKeys : [ '--corner-shape' ] ,
2229- staticValues,
22302225 handle : ( value ) => properties . map ( ( property ) => decl ( property , value ) ) ,
2226+ staticValues : Object . fromEntries (
2227+ shapes . map ( ( shape ) => [ shape , properties . map ( ( property ) => decl ( property , shape ) ) ] ) ,
2228+ ) ,
22312229 } )
22322230 }
22332231 }
0 commit comments