onlyProps([ 'color' => 'primary', 'darkMode' => false, 'disabled' => false, 'form' => null, 'icon' => null, 'keyBindings' => null, 'indicator' => null, 'label' => null, 'size' => 'md', 'tag' => 'button', 'tooltip' => null, 'type' => 'button', ]) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> exceptProps([ 'color' => 'primary', 'darkMode' => false, 'disabled' => false, 'form' => null, 'icon' => null, 'keyBindings' => null, 'indicator' => null, 'label' => null, 'size' => 'md', 'tag' => 'button', 'tooltip' => null, 'type' => 'button', ]); ?> 'primary', 'darkMode' => false, 'disabled' => false, 'form' => null, 'icon' => null, 'keyBindings' => null, 'indicator' => null, 'label' => null, 'size' => 'md', 'tag' => 'button', 'tooltip' => null, 'type' => 'button', ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } ?> $color === 'primary', 'text-danger-500 focus:bg-danger-500/10' => $color === 'danger', 'text-gray-500 focus:bg-gray-500/10' => $color === 'secondary', 'dark:text-gray-400' => $color === 'secondary' && $darkMode, 'text-success-500 focus:bg-success-500/10' => $color === 'success', 'text-warning-500 focus:bg-warning-500/10' => $color === 'warning', 'dark:hover:bg-gray-300/5' => $darkMode, 'h-10 w-10' => $size === 'md', 'h-8 w-8' => $size === 'sm', 'h-8 w-8 md:h-10 md:w-10' => $size === 'sm md:md', 'h-12 w-12' => $size === 'lg', ]; $iconClasses = \Illuminate\Support\Arr::toCssClasses([ 'filament-icon-button-icon', 'w-5 h-5' => $size === 'md', 'w-4 h-4' => $size === 'sm', 'w-4 h-4 md:w-5 md:h-5' => $size === 'sm md:md', 'w-6 h-6' => $size === 'lg', ]); $indicatorClasses = \Illuminate\Support\Arr::toCssClasses([ 'filament-icon-button-indicator absolute rounded-full text-xs inline-block w-4 h-4 -top-0.5 -right-0.5', 'bg-primary-500/10' => $color === 'primary', 'bg-danger-500/10' => $color === 'danger', 'bg-gray-500/10' => $color === 'secondary', 'bg-success-500/10' => $color === 'success', 'bg-warning-500/10' => $color === 'warning', ]); $wireTarget = $attributes->whereStartsWith(['wire:target', 'wire:click'])->first(); $hasLoadingIndicator = filled($wireTarget) || ($type === 'submit' && filled($form)); if ($hasLoadingIndicator) { $loadingIndicatorTarget = html_entity_decode($wireTarget ?: $form, ENT_QUOTES); } ?> x-mousetrap.global.map(fn (string $keyBinding): string => str_replace('+', '-', $keyBinding))->implode('.')); ?> title="" x-tooltip.raw="" x-data="{}" class($buttonClasses)); ?> > $icon] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('dynamic-component'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['class' => $iconClasses]); ?> renderComponent(); ?>