11@aware ([ ' tableName' ' isTailwind' ' isBootstrap' ' isBootstrap4' ' isBootstrap5' ' localisationPath'  )
2+ @props ([' buttonAttributes' =>  [], ' checkboxAttributes' =>  []] )
23@if  ($isTailwind 
34    <div  class =" @if  ($this -> getColumnSelectIsHiddenOnMobile ()@elseif  ($this -> getColumnSelectIsHiddenOnTablet ()@endif  mb-4 w-full md:w-auto md:mb-0 md:ml-2" 
45        <div 
@@ -14,10 +15,10 @@ class="inline-block relative w-full text-left md:w-auto"
1415                        x-on:click =" open = !open" 
1516                        type =" button" 
1617                        {{ 
17-                             $attributes -> merge ($this  -> getColumnSelectButtonAttributes () ) 
18+                             $attributes -> merge ($buttonAttributes  ) 
1819                            -> class ([ 
19-                                 ' inline-flex justify-center px-4 py-2 w-full text-sm font-medium rounded-md border shadow-sm focus:ring focus:ring-opacity-50' =>  $this  -> getColumnSelectButtonAttributes () [' default-styling'  
20-                                 ' text-gray-700 bg-white border-gray-300 hover:bg-gray-50 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600' =>  $this  -> getColumnSelectButtonAttributes () [' default-colors'  
20+                                 ' inline-flex justify-center px-4 py-2 w-full text-sm font-medium rounded-md border shadow-sm focus:ring focus:ring-opacity-50' =>  $buttonAttributes  [' default-styling'  ??  true , 
21+                                 ' text-gray-700 bg-white border-gray-300 hover:bg-gray-50 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600' =>  $buttonAttributes  [' default-colors'  ??  true , 
2122                            ]) 
2223                            -> except ([' default-styling' ' default-colors'  
2324                         } }
@@ -53,10 +54,10 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa
5354                            >
5455                                <input 
5556                                    {{ 
56-                                         $attributes -> merge ($this  -> getColumnSelectMenuOptionCheckboxAttributes () ) 
57+                                         $attributes -> merge ($checkboxAttributes  ) 
5758                                        -> class ([ 
58-                                             ' transition duration-150 ease-in-out rounded shadow-sm focus:ring focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-wait' =>  $this  -> getColumnSelectMenuOptionCheckboxAttributes () [' default-styling'  
59-                                             ' text-indigo-600 border-gray-300 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-900 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600 dark:focus:bg-gray-600' =>  $this  -> getColumnSelectMenuOptionCheckboxAttributes () [' default-colors'  
59+                                             ' transition duration-150 ease-in-out rounded shadow-sm focus:ring focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-wait' =>  $checkboxAttributes  [' default-styling'  ??  true , 
60+                                             ' text-indigo-600 border-gray-300 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-900 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600 dark:focus:bg-gray-600' =>  $checkboxAttributes  [' default-colors'  ??  true , 
6061                                        ]) 
6162                                        -> except ([' default-styling' ' default-colors'  
6263                                     } }
@@ -80,10 +81,10 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa
8081                                >
8182                                    <input 
8283                                        {{ 
83-                                             $attributes -> merge ($this  -> getColumnSelectMenuOptionCheckboxAttributes () ) 
84+                                             $attributes -> merge ($checkboxAttributes  ) 
8485                                            -> class ([ 
85-                                                 ' transition duration-150 ease-in-out rounded shadow-sm focus:ring focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-wait' =>  $this  -> getColumnSelectMenuOptionCheckboxAttributes () [' default-styling'  
86-                                                 ' text-indigo-600 border-gray-300 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-900 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600 dark:focus:bg-gray-600' =>  $this  -> getColumnSelectMenuOptionCheckboxAttributes () [' default-colors'  
86+                                                 ' transition duration-150 ease-in-out rounded shadow-sm focus:ring focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-wait' =>  $checkboxAttributes  [' default-styling'  ??  true , 
87+                                                 ' text-indigo-600 border-gray-300 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-900 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600 dark:focus:bg-gray-600' =>  $checkboxAttributes  [' default-colors'  ??  true , 
8788                                            ]) 
8889                                            -> except ([' default-styling' ' default-colors'  
8990                                         } }
@@ -120,9 +121,9 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa
120121            <button 
121122                x-on:click =" open = !open" 
122123                {{ 
123-                     $attributes -> merge ($this  -> getColumnSelectButtonAttributes () ) 
124+                     $attributes -> merge ($buttonAttributes  ) 
124125                    -> class ([ 
125-                         ' btn dropdown-toggle d-block w-100 d-md-inline' =>  $this  -> getColumnSelectButtonAttributes () [' default-styling'  
126+                         ' btn dropdown-toggle d-block w-100 d-md-inline' =>  $buttonAttributes  [' default-styling'  ??  true , 
126127                    ]) 
127128                    -> except ([' default-styling' ' default-colors'  
128129                 } }
@@ -160,9 +161,9 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa
160161                            wire:loading.attr =" disabled" 
161162                            type =" checkbox" 
162163                            {{ 
163-                                 $attributes -> merge ($this  -> getColumnSelectMenuOptionCheckboxAttributes () ) 
164+                                 $attributes -> merge ($checkboxAttributes  ) 
164165                                -> class ([ 
165-                                     ' form-check-input' =>  $this  -> getColumnSelectMenuOptionCheckboxAttributes () [' default-styling'  
166+                                     ' form-check-input' =>  $checkboxAttributes  [' default-styling'  ??  true , 
166167                                ]) 
167168                                -> except ([' default-styling' ' default-colors'  
168169                             } }
@@ -205,9 +206,9 @@ class="px-2 {{ $loop->last ? 'mb-0' : 'mb-1' }}"
205206                                wire:loading.attr =" disabled" 
206207                                type =" checkbox" 
207208                                {{ 
208-                                     $attributes -> merge ($this  -> getColumnSelectMenuOptionCheckboxAttributes () ) 
209+                                     $attributes -> merge ($checkboxAttributes  ) 
209210                                    -> class ([ 
210-                                         ' form-check-input' =>  $this  -> getColumnSelectMenuOptionCheckboxAttributes () [' default-styling'  
211+                                         ' form-check-input' =>  $checkboxAttributes  [' default-styling'  ??  true , 
211212                                    ]) 
212213                                    -> except ([' default-styling' ' default-colors'  
213214                                 } }
0 commit comments