Skip to content

Commit

Permalink
Adjust defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Sep 11, 2024
1 parent 4a9bd97 commit 3f76d63
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
->class(['hidden bg-gray-50 dark:bg-gray-800 dark:text-white rappasoft-striped-row' => ($isTailwind && ($customAttributes['default'] ?? true) && $rowIndex % 2 !== 0)])
->class(['d-none bg-light rappasoft-striped-row' => ($isBootstrap && $rowIndex % 2 === 0 && ($customAttributes['default'] ?? true))])
->class(['d-none bg-white rappasoft-striped-row' => ($isBootstrap && $rowIndex % 2 !== 0 && ($customAttributes['default'] ?? true))])
->except(['default'])
->except(['default','default-styling','default-colors'])
}}

>
Expand Down
3 changes: 1 addition & 2 deletions resources/views/components/table/td/bulk-actions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
$attributes->merge($bulkActionsTdCheckboxAttributes)->class([
'rounded border-gray-300 text-indigo-600 shadow-sm transition duration-150 ease-in-out focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-900 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600 dark:focus:bg-gray-600' => ($theme === 'tailwind') && ($bulkActionsTdCheckboxAttributes['default'] ?? true),
'form-check-input' => ($theme === 'bootstrap-5') && ($bulkActionsTdCheckboxAttributes['default'] ?? true),
'except' => 'default',
])
])->except(['default','default-styling','default-colors'])
}}
/>
</div>
Expand Down
3 changes: 1 addition & 2 deletions resources/views/components/table/th/bulk-actions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
$attributes->merge($bulkActionsThCheckboxAttributes)->class([
'rounded border-gray-300 text-indigo-600 shadow-sm transition duration-150 ease-in-out focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-900 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600 dark:focus:bg-gray-600' => ($theme === 'tailwind') && ($bulkActionsThCheckboxAttributes['default'] ?? true),
'form-check-input' => ($theme === 'bootstrap-5') && ($bulkActionsThCheckboxAttributes['default'] ?? true),
'except' => 'default',
])
])->except(['default','default-styling','default-colors'])
}}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/tr.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
->class(['cursor-pointer' => ($isTailwind && $this->hasTableRowUrl() && ($customAttributes['default'] ?? true))])
->class(['bg-light rappasoft-striped-row' => ($isBootstrap && $rowIndex % 2 === 0 && ($customAttributes['default'] ?? true))])
->class(['bg-white rappasoft-striped-row' => ($isBootstrap && $rowIndex % 2 !== 0 && ($customAttributes['default'] ?? true))])
->except(['default'])
->except(['default','default-styling','default-colors'])
}}

>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/includes/actions/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
->class(['focus:border-indigo-300 focus:ring-indigo-200' => $isTailwind && $attributes['default-colors'] ?? true])
->class(['btn btn-sm btn-success' => $isBootstrap && $attributes['default-styling'] ?? true])
->class(['' => $isBootstrap && $attributes['default-colors'] ?? true])
->except(['default-styling', 'default-colors'])
->except(['default','default-styling','default-colors'])
}}
@if($action->hasWireAction())
{{ $action->getWireAction() }}="{{ $action->getWireActionParams() }}"
Expand All @@ -18,14 +18,14 @@
<i {{ $action->getIconAttributes()
->class(["ms-1 ". $action->getIcon() => $isBootstrap])
->class(["ml-1 ". $action->getIcon() => $isTailwind])
->except('default-styling')
->except(['default','default-styling','default-colors'])
}}
></i>
@elseif($action->hasIcon() && !$action->getIconRight())
<i {{ $action->getIconAttributes()
->class(["ms-1 ". $action->getIcon() => $isBootstrap])
->class(["mr-1 ". $action->getIcon() => $isTailwind])
->except('default-styling')
->except(['default','default-styling','default-colors'])
}}
></i>
<span>{{ $action->getLabel() }}</span>
Expand Down

0 comments on commit 3f76d63

Please sign in to comment.