|  | 
| 1 |  | -@aware(['isTailwind', 'isBootstrap']) | 
|  | 1 | +@aware(['isTailwind', 'isBootstrap', 'searchViewAttributes']) | 
| 2 | 2 | <input | 
| 3 |  | -    wire:model{{ $this->getSearchOptions() }}="search" | 
| 4 |  | -    placeholder="{{ $this->getSearchPlaceholder() }}" | 
|  | 3 | +    wire:model{{ $searchViewAttributes['searchOptions'] }}="search" | 
|  | 4 | +    placeholder="{{ $searchViewAttributes['searchPlaceholder'] }}" | 
| 5 | 5 |     type="text" | 
| 6 | 6 |     {{  | 
| 7 |  | -        $attributes->merge($this->getSearchFieldAttributes()) | 
|  | 7 | +        $attributes->merge($searchViewAttributes['searchFieldAttributes']) | 
| 8 | 8 |         ->class($isTailwind ? | 
| 9 | 9 |             [ | 
| 10 |  | -                'rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 rounded-none rounded-l-md focus:ring-0 focus:border-gray-300' => $this->hasSearch() && (($this->getSearchFieldAttributes()['default'] ?? true) || ($this->getSearchFieldAttributes()['default-styling'] ?? true)), | 
| 11 |  | -                'rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 rounded-md focus:ring focus:ring-opacity-50' => !$this->hasSearch()  && (($this->getSearchFieldAttributes()['default'] ?? true) || ($this->getSearchFieldAttributes()['default-styling'] ?? true)), | 
| 12 |  | -                'border-gray-300 dark:bg-gray-700 dark:text-white dark:border-gray-600 focus:border-gray-300' =>$this->hasSearch()  && (($this->getSearchFieldAttributes()['default'] ?? true) || ($this->getSearchFieldAttributes()['default-colors'] ?? true)), | 
| 13 |  | -                'border-gray-300 dark:bg-gray-700 dark:text-white dark:border-gray-600 focus:border-indigo-300 focus:ring-indigo-200' =>!$this->hasSearch()  && (($this->getSearchFieldAttributes()['default'] ?? true) || ($this->getSearchFieldAttributes()['default-colors'] ?? true)), | 
| 14 |  | -                'block w-full' => !$this->hasSearchIcon(), | 
| 15 |  | -                'pl-8 pr-4' => $this->hasSearchIcon(), | 
|  | 10 | +                'rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 rounded-none rounded-l-md focus:ring-0 focus:border-gray-300' => $searchViewAttributes['hasSearch'] && (($searchViewAttributes['searchFieldAttributes']['default'] ?? true) || ($searchViewAttributes['searchFieldAttributes']['default-styling'] ?? true)), | 
|  | 11 | +                'rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 rounded-md focus:ring focus:ring-opacity-50' => !$searchViewAttributes['hasSearch']  && (($searchViewAttributes['searchFieldAttributes']['default'] ?? true) || ($searchViewAttributes['searchFieldAttributes']['default-styling'] ?? true)), | 
|  | 12 | +                'border-gray-300 dark:bg-gray-700 dark:text-white dark:border-gray-600 focus:border-gray-300' =>$searchViewAttributes['hasSearch']  && (($searchViewAttributes['searchFieldAttributes']['default'] ?? true) || ($searchViewAttributes['searchFieldAttributes']['default-colors'] ?? true)), | 
|  | 13 | +                'border-gray-300 dark:bg-gray-700 dark:text-white dark:border-gray-600 focus:border-indigo-300 focus:ring-indigo-200' =>!$searchViewAttributes['hasSearch']  && (($searchViewAttributes['searchFieldAttributes']['default'] ?? true) || ($searchViewAttributes['searchFieldAttributes']['default-colors'] ?? true)), | 
|  | 14 | +                'block w-full' => !$searchViewAttributes['icon']['hasSearchIcon'], | 
|  | 15 | +                'pl-8 pr-4' => $searchViewAttributes['icon']['hasSearchIcon'], | 
| 16 | 16 |             ] : | 
| 17 | 17 |             [ | 
| 18 |  | -                'form-control' => $this->getSearchFieldAttributes()['default'] ?? true, | 
| 19 |  | -                'block w-full' => !$this->hasSearchIcon(), | 
| 20 |  | -                'pl-8 pr-4' => $this->hasSearchIcon(), | 
|  | 18 | +                'form-control' => $searchViewAttributes['searchFieldAttributes']['default'] ?? true, | 
|  | 19 | +                'block w-full' => !$searchViewAttributes['icon']['hasSearchIcon'], | 
|  | 20 | +                'pl-8 pr-4' => $searchViewAttributes['icon']['hasSearchIcon'], | 
| 21 | 21 |             ], | 
| 22 | 22 |         ) | 
| 23 | 23 |         ->except(['default','default-styling','default-colors'])  | 
|  | 
0 commit comments