diff --git a/ide-helper.stubs.php b/ide-helper.stubs.php index f049935..532ff1a 100644 --- a/ide-helper.stubs.php +++ b/ide-helper.stubs.php @@ -14,7 +14,7 @@ public function currency(string | Closure | null $currency = null, bool $shouldC } namespace Filament\Forms\Components { - + class TextInput { public function currencyMask($thousandSeparator = ',', $decimalSeparator = '.', $precision = 2): self @@ -55,4 +55,4 @@ public function currency(string | Closure | null $currency = null, bool $shouldC return $this; } } -} \ No newline at end of file +} diff --git a/src/FilamentCurrencyServiceProvider.php b/src/FilamentCurrencyServiceProvider.php index d7ff250..4ab9731 100644 --- a/src/FilamentCurrencyServiceProvider.php +++ b/src/FilamentCurrencyServiceProvider.php @@ -5,10 +5,10 @@ use Akaunting\Money; use Closure; use Filament\Forms\Components\TextInput; +use Filament\Infolists\Components\TextEntry; use Filament\Tables\Columns\Column; use Filament\Tables\Columns\Summarizers; use Filament\Tables\Columns\TextColumn; -use Filament\Infolists\Components\TextEntry; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; @@ -42,7 +42,7 @@ public function bootingPackage(): void $shouldConvert, ))->format(); }; - + TextColumn::macro('currency', function (string | Closure | null $currency = null, bool $shouldConvert = false) use ($formatter): TextColumn { /** * @var TextColumn $this