Skip to content

Commit 3bdbefc

Browse files
committed
refactor: replace lucide-vue-next icons with iconify in select components
1 parent 3250442 commit 3bdbefc

File tree

7 files changed

+9
-20
lines changed

7 files changed

+9
-20
lines changed

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"ui": "@/components/ui",
1717
"lib": "@/lib"
1818
},
19-
"iconLibrary": "lucide"
19+
"iconLibrary": "iconify"
2020
}

package-lock.json

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"@vueuse/core": "^13.6.0",
2121
"@wagmi/vue": "^0.1.24",
2222
"clsx": "^2.1.1",
23-
"lucide-vue-next": "^0.539.0",
2423
"pinia": "^3.0.3",
2524
"reka-ui": "^2.4.1",
2625
"tailwind-merge": "^3.3.1",

src/components/ui/select/SelectItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { SelectItemProps } from 'reka-ui';
33
import type { HTMLAttributes } from 'vue';
44
import { reactiveOmit } from '@vueuse/core';
5-
import { Check } from 'lucide-vue-next';
5+
import { Icon } from '@iconify/vue';
66
import {
77
SelectItem,
88
SelectItemIndicator,
@@ -33,7 +33,7 @@ const forwardedProps = useForwardProps(delegatedProps);
3333
>
3434
<span class="absolute right-2 flex size-3.5 items-center justify-center">
3535
<SelectItemIndicator>
36-
<Check class="size-4" />
36+
<Icon icon="lucide:check" class="size-4" />
3737
</SelectItemIndicator>
3838
</span>
3939

src/components/ui/select/SelectScrollDownButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { SelectScrollDownButtonProps } from 'reka-ui';
33
import type { HTMLAttributes } from 'vue';
44
import { reactiveOmit } from '@vueuse/core';
5-
import { ChevronDown } from 'lucide-vue-next';
5+
import { Icon } from '@iconify/vue';
66
import { SelectScrollDownButton, useForwardProps } from 'reka-ui';
77
import { cn } from '@/lib/utils';
88
@@ -24,7 +24,7 @@ const forwardedProps = useForwardProps(delegatedProps);
2424
"
2525
>
2626
<slot>
27-
<ChevronDown class="size-4" />
27+
<Icon icon="lucide:chevron-down" class="size-4" />
2828
</slot>
2929
</SelectScrollDownButton>
3030
</template>

src/components/ui/select/SelectScrollUpButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { SelectScrollUpButtonProps } from 'reka-ui';
33
import type { HTMLAttributes } from 'vue';
44
import { reactiveOmit } from '@vueuse/core';
5-
import { ChevronUp } from 'lucide-vue-next';
5+
import { Icon } from '@iconify/vue';
66
import { SelectScrollUpButton, useForwardProps } from 'reka-ui';
77
import { cn } from '@/lib/utils';
88
@@ -24,7 +24,7 @@ const forwardedProps = useForwardProps(delegatedProps);
2424
"
2525
>
2626
<slot>
27-
<ChevronUp class="size-4" />
27+
<Icon icon="lucide:chevron-up" class="size-4" />
2828
</slot>
2929
</SelectScrollUpButton>
3030
</template>

src/components/ui/select/SelectTrigger.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { SelectTriggerProps } from 'reka-ui';
33
import type { HTMLAttributes } from 'vue';
44
import { reactiveOmit } from '@vueuse/core';
5-
import { ChevronDown } from 'lucide-vue-next';
5+
import { Icon } from '@iconify/vue';
66
import { SelectIcon, SelectTrigger, useForwardProps } from 'reka-ui';
77
import { cn } from '@/lib/utils';
88
@@ -34,7 +34,7 @@ const forwardedProps = useForwardProps(delegatedProps);
3434
>
3535
<slot />
3636
<SelectIcon as-child>
37-
<ChevronDown class="size-4 opacity-50" />
37+
<Icon icon="lucide:chevron-down" class="size-4 opacity-50" />
3838
</SelectIcon>
3939
</SelectTrigger>
4040
</template>

0 commit comments

Comments
 (0)