From ab9e19d27be848ae7e2cff219b4b6eaa84a7a008 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Wed, 24 Sep 2025 19:37:14 +0700 Subject: [PATCH] feat(icon): publish icon mars dan venus --- resources/views/flux/icon/mars.blade.php | 43 +++++++++++++++++++++++ resources/views/flux/icon/venus.blade.php | 43 +++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 resources/views/flux/icon/mars.blade.php create mode 100644 resources/views/flux/icon/venus.blade.php diff --git a/resources/views/flux/icon/mars.blade.php b/resources/views/flux/icon/mars.blade.php new file mode 100644 index 0000000..652c86e --- /dev/null +++ b/resources/views/flux/icon/mars.blade.php @@ -0,0 +1,43 @@ +{{-- Credit: Lucide (https://lucide.dev) --}} + +@props([ + 'variant' => 'outline', +]) + +@php +if ($variant === 'solid') { + throw new \Exception('The "solid" variant is not supported in Lucide.'); +} + +$classes = Flux::classes('shrink-0') + ->add(match($variant) { + 'outline' => '[:where(&)]:size-6', + 'solid' => '[:where(&)]:size-6', + 'mini' => '[:where(&)]:size-5', + 'micro' => '[:where(&)]:size-4', + }); + +$strokeWidth = match ($variant) { + 'outline' => 2, + 'mini' => 2.25, + 'micro' => 2.5, +}; +@endphp + +class($classes) }} + data-flux-icon + xmlns="http://www.w3.org/2000/svg" + viewBox="0 0 24 24" + fill="none" + stroke="currentColor" + stroke-width="{{ $strokeWidth }}" + stroke-linecap="round" + stroke-linejoin="round" + aria-hidden="true" + data-slot="icon" +> + + + + diff --git a/resources/views/flux/icon/venus.blade.php b/resources/views/flux/icon/venus.blade.php new file mode 100644 index 0000000..5314dfa --- /dev/null +++ b/resources/views/flux/icon/venus.blade.php @@ -0,0 +1,43 @@ +{{-- Credit: Lucide (https://lucide.dev) --}} + +@props([ + 'variant' => 'outline', +]) + +@php +if ($variant === 'solid') { + throw new \Exception('The "solid" variant is not supported in Lucide.'); +} + +$classes = Flux::classes('shrink-0') + ->add(match($variant) { + 'outline' => '[:where(&)]:size-6', + 'solid' => '[:where(&)]:size-6', + 'mini' => '[:where(&)]:size-5', + 'micro' => '[:where(&)]:size-4', + }); + +$strokeWidth = match ($variant) { + 'outline' => 2, + 'mini' => 2.25, + 'micro' => 2.5, +}; +@endphp + +class($classes) }} + data-flux-icon + xmlns="http://www.w3.org/2000/svg" + viewBox="0 0 24 24" + fill="none" + stroke="currentColor" + stroke-width="{{ $strokeWidth }}" + stroke-linecap="round" + stroke-linejoin="round" + aria-hidden="true" + data-slot="icon" +> + + + +