|  | 
| 1 | 1 | @aware(['isTailwind','isTailwind4','isBootstrap', 'collapsingColumnInfo', 'tableRowDetails']) | 
| 2 |  | -@props(['colIndex', 'isHtml' => false, 'isClickable' => false, 'customAttributes' => ['default' => true]]) | 
|  | 2 | +@props(['colIndex', 'isHtml' => false, 'wrapText' => false, 'isClickable' => false, 'customAttributes' => ['default' => true, 'default-colors' => true, 'default-styling' => true]]) | 
| 3 | 3 | 
 | 
| 4 | 4 | <td {{ | 
| 5 | 5 |         $attributes->merge($isClickable ? $tableRowDetails['tdAttribs'] : [])->merge($customAttributes) | 
| 6 | 6 |             ->class([ | 
| 7 |  | -                    'whitespace-wrap' => $isHtml && $isTailwind && ($customAttributes['default'] ?? true), | 
| 8 |  | -                    'whitespace-nowrap' => !$isHtml && $isTailwind && ($customAttributes['default'] ?? true), | 
| 9 |  | -                    'px-6 py-4  text-sm font-medium dark:text-white' => $isTailwind && ($customAttributes['default'] ?? true), | 
|  | 7 | +                'whitespace-wrap' => $wrapText && $isTailwind, | 
|  | 8 | +            ]) | 
|  | 9 | +            ->class([ | 
|  | 10 | +                    'whitespace-wrap' => (!$wrapText && $isHtml) && $isTailwind && ($customAttributes['default-styling'] ?? true), | 
|  | 11 | +                    'whitespace-nowrap' => (!$wrapText && !$isHtml) && $isTailwind && ($customAttributes['default-styling'] ?? true), | 
|  | 12 | +
 | 
|  | 13 | +                    'px-6 py-4 text-sm font-medium' => $isTailwind && ($customAttributes['default-styling'] ?? true), | 
|  | 14 | +                    'dark:text-white' => $isTailwind && ($customAttributes['default-colors'] ?? true), | 
|  | 15 | +
 | 
|  | 16 | +
 | 
| 10 | 17 |                     'cursor-pointer' => $isTailwind && ($isClickable && ($tableRowDetails['url'] !== null && ($tableRowDetails['attributes']['default'] ?? true))), | 
| 11 |  | -                    'tw4ph whitespace-wrap' => $isHtml && $isTailwind4 && ($customAttributes['default'] ?? true), | 
| 12 |  | -                    'tw4ph whitespace-nowrap' => !$isHtml && $isTailwind4 && ($customAttributes['default'] ?? true), | 
| 13 |  | -                    'tw4ph px-6 py-4 text-sm font-medium dark:text-white' => $isTailwind4 && ($customAttributes['default'] ?? true), | 
|  | 18 | +                     | 
|  | 19 | +                    'tw4ph whitespace-wrap' => (!$wrapText && $isHtml) && $isTailwind4 && ($customAttributes['default-styling'] ?? true), | 
|  | 20 | +                    'tw4ph whitespace-nowrap' => (!$wrapText && !$isHtml) && $isTailwind4 && ($customAttributes['default-styling'] ?? true), | 
|  | 21 | +
 | 
|  | 22 | +                    'tw4ph px-6 py-4 text-sm font-medium' => $isTailwind4 && ($customAttributes['default-styling'] ?? true), | 
|  | 23 | +                    'tw4ph dark:text-white' => $isTailwind4 && ($customAttributes['default-colors'] ?? true), | 
|  | 24 | +
 | 
| 14 | 25 |                     'tw4ph cursor-pointer' => $isTailwind4 && ($isClickable && ($tableRowDetails['url'] !== null && ($tableRowDetails['attributes']['default'] ?? true))), | 
| 15 | 26 | 
 | 
| 16 | 27 |                     '' => $isBootstrap && ($customAttributes['default'] ?? true), | 
| 17 | 28 |                     'laravel-livewire-tables-cursor' => $isBootstrap && $isClickable, | 
| 18 | 29 |             ]) | 
| 19 | 30 |             ->class($collapsingColumnInfo['collapsingColumnClasses'][$colIndex] ?? '') | 
| 20 |  | -            ->except(['default','default-styling','default-colors']) | 
|  | 31 | +            ->except(['default','default-colors','default-styling']) | 
| 21 | 32 |     }} | 
| 22 | 33 | > | 
| 23 | 34 |     {{ $slot }} | 
|  | 
0 commit comments