File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ public function resolve(array $recipes): string
77
77
break ;
78
78
}
79
79
80
+ if (!\is_array ($ compoundValues )) {
81
+ $ compoundValues = [$ compoundValues ];
82
+ }
83
+
80
84
if (!\in_array ($ recipes [$ compoundName ], $ compoundValues )) {
81
85
$ isCompound = false ;
82
86
break ;
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ public static function recipeProvider(): iterable
221
221
],
222
222
'compounds ' => [
223
223
[
224
- 'colors ' => [ 'primary ' ] ,
224
+ 'colors ' => 'primary ' ,
225
225
'sizes ' => ['sm ' ],
226
226
'class ' => 'text-red-500 ' ,
227
227
],
@@ -361,7 +361,7 @@ public static function recipeProvider(): iterable
361
361
'compounds ' => [
362
362
[
363
363
'colors ' => ['danger ' , 'secondary ' ],
364
- 'sizes ' => [ 'sm ' ] ,
364
+ 'sizes ' => 'sm ' ,
365
365
'class ' => 'text-red-500 ' ,
366
366
],
367
367
],
You can’t perform that action at this time.
0 commit comments