Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
borjajimnz committed Jan 8, 2025
1 parent ef591c4 commit 08bcbc5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 62 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: Borja Jiménez
github: borjajimnz
58 changes: 0 additions & 58 deletions .github/workflows/run-tests.yml

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
[![Total Downloads](https://img.shields.io/packagist/dt/borjajimnz/text-input-autocomplete.svg?style=flat-square)](https://packagist.org/packages/borjajimnz/text-input-autocomplete)

This package replaces the native `<datalist>` functionality with a custom, non-native autocomplete for the TextInput component in FilamentPHP 3, offering enhanced flexibility and customization options.

![screenshot](images/demo.png)

## Installation

You can install the package via composer:
Expand Down
Binary file added images/.DS_Store
Binary file not shown.
Binary file added images/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions resources/views/forms/components/auto-complete.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ class="py-1 w-full overflow-y-auto"
@click="selectItem(item)"
@mousedown.prevent
:class="{
'bg-primary-50 dark:bg-primary-950 text-primary-600 dark:text-primary-400': index === highlightedIndex,
'hover:bg-gray-50 dark:hover:bg-gray-800': index !== highlightedIndex,
'p-2 cursor-pointer text-left text-sm rounded-lg': true
'bg-primary-50 hover:bg-gray-50 dark:bg-primary-950 text-primary-600 dark:text-primary-400': index === highlightedIndex,
'': index !== highlightedIndex,
'p-2 cursor-pointer text-left text-sm rounded-lg hover:bg-gray-50 dark:hover:bg-custom-400 dark:hover:text-gray-400': true
}"
:tabindex="index === highlightedIndex ? 0 : -1"
></li>
Expand Down

0 comments on commit 08bcbc5

Please sign in to comment.