From 66c51ab3395d35c162045f43cc1d2b45ded5125b Mon Sep 17 00:00:00 2001 From: zernonia Date: Wed, 27 Sep 2023 11:58:32 +0800 Subject: [PATCH] refactor: changes all instance of unplugin-icons to radix-icons --- apps/www/package.json | 1 + .../lib/registry/default/example/Cards/DataTable.vue | 7 +++---- .../default/ui/menubar/MenubarCheckboxItem.vue | 4 ++-- .../registry/default/ui/menubar/MenubarRadioItem.vue | 4 ++-- .../default/ui/radio-group/RadioGroupItem.vue | 4 ++-- .../src/lib/registry/default/ui/select/SelectItem.vue | 4 ++-- .../src/lib/registry/new-york/example/AlertDemo.vue | 4 ++-- .../src/lib/registry/new-york/example/CardDemo.vue | 8 +++----- .../registry/new-york/example/Cards/ActivityGoal.vue | 7 +++---- .../lib/registry/new-york/example/Cards/DataTable.vue | 7 +++---- .../lib/registry/new-york/example/CollapsibleDemo.vue | 4 ++-- .../lib/registry/new-york/example/ComboboxDemo.vue | 7 +++---- .../lib/registry/new-york/example/DataTableDemo.vue | 7 +++---- .../registry/new-york/example/DataTableDemoColumn.vue | 4 ++-- .../lib/registry/new-york/example/DatePickerDemo.vue | 4 ++-- .../registry/new-york/example/DatePickerWithRange.vue | 4 ++-- .../lib/registry/new-york/example/HoverCardDemo.vue | 4 ++-- .../src/lib/registry/new-york/example/ToggleDemo.vue | 4 ++-- .../new-york/ui/accordion/AccordionTrigger.vue | 4 ++-- .../lib/registry/new-york/ui/checkbox/Checkbox.vue | 4 ++-- .../ui/context-menu/ContextMenuCheckboxItem.vue | 4 ++-- .../new-york/ui/context-menu/ContextMenuRadioItem.vue | 4 ++-- .../lib/registry/new-york/ui/dialog/DialogContent.vue | 4 ++-- .../ui/dropdown-menu/DropdownMenuCheckboxItem.vue | 4 ++-- .../ui/dropdown-menu/DropdownMenuRadioItem.vue | 4 ++-- .../ui/dropdown-menu/DropdownMenuSubTrigger.vue | 4 ++-- .../new-york/ui/menubar/MenubarCheckboxItem.vue | 4 ++-- .../registry/new-york/ui/menubar/MenubarRadioItem.vue | 4 ++-- .../ui/navigation-menu/NavigationMenuTrigger.vue | 4 ++-- .../new-york/ui/radio-group/RadioGroupItem.vue | 4 ++-- .../lib/registry/new-york/ui/select/SelectItem.vue | 4 ++-- .../lib/registry/new-york/ui/select/SelectTrigger.vue | 4 ++-- .../lib/registry/new-york/ui/sheet/SheetContent.vue | 4 ++-- pnpm-lock.yaml | 11 +++++++++++ 34 files changed, 82 insertions(+), 77 deletions(-) diff --git a/apps/www/package.json b/apps/www/package.json index 3a146d65..0c994fa1 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -13,6 +13,7 @@ }, "dependencies": { "@morev/vue-transitions": "^2.3.6", + "@radix-icons/vue": "^1.0.0", "@tanstack/vue-table": "^8.9.9", "@unovis/ts": "^1.2.1", "@unovis/vue": "1.3.0-alpha.3", diff --git a/apps/www/src/lib/registry/default/example/Cards/DataTable.vue b/apps/www/src/lib/registry/default/example/Cards/DataTable.vue index 561ae80e..a6d201ff 100644 --- a/apps/www/src/lib/registry/default/example/Cards/DataTable.vue +++ b/apps/www/src/lib/registry/default/example/Cards/DataTable.vue @@ -14,9 +14,8 @@ import { useVueTable, } from '@tanstack/vue-table' import { h, ref } from 'vue' +import { CaretSortIcon, ChevronDownIcon } from '@radix-icons/vue' import DropdownAction from '../DataTableDemoColumn.vue' -import RadixIconsCaretSort from '~icons/radix-icons/caret-sort' -import RadixIconsChevronDown from '~icons/radix-icons/chevron-down' import { Button } from '@/lib/registry/default/ui/button' import { Checkbox } from '@/lib/registry/default/ui/checkbox' @@ -105,7 +104,7 @@ const columns: ColumnDef[] = [ return h(Button, { variant: 'ghost', onClick: () => column.toggleSorting(column.getIsSorted() === 'asc'), - }, ['Email', h(RadixIconsCaretSort, { class: 'ml-2 h-4 w-4' })]) + }, ['Email', h(CaretSortIcon, { class: 'ml-2 h-4 w-4' })]) }, cell: ({ row }) => h('div', { class: 'lowercase' }, row.getValue('email')), }, @@ -180,7 +179,7 @@ const table = useVueTable({ diff --git a/apps/www/src/lib/registry/default/ui/menubar/MenubarCheckboxItem.vue b/apps/www/src/lib/registry/default/ui/menubar/MenubarCheckboxItem.vue index fe9002a2..b0274d9b 100644 --- a/apps/www/src/lib/registry/default/ui/menubar/MenubarCheckboxItem.vue +++ b/apps/www/src/lib/registry/default/ui/menubar/MenubarCheckboxItem.vue @@ -5,8 +5,8 @@ import { type MenubarCheckboxItemProps, MenubarItemIndicator, } from 'radix-vue' +import { Check } from 'lucide-vue-next' import { cn } from '@/lib/utils' -import RadixIconsCheck from '~icons/radix-icons/check' const props = defineProps() @@ -28,7 +28,7 @@ const emit = defineEmits() - + diff --git a/apps/www/src/lib/registry/default/ui/menubar/MenubarRadioItem.vue b/apps/www/src/lib/registry/default/ui/menubar/MenubarRadioItem.vue index 960389aa..4619f96a 100644 --- a/apps/www/src/lib/registry/default/ui/menubar/MenubarRadioItem.vue +++ b/apps/www/src/lib/registry/default/ui/menubar/MenubarRadioItem.vue @@ -5,8 +5,8 @@ import { type MenubarRadioItemEmits, type MenubarRadioItemProps, } from 'radix-vue' +import { Circle } from 'lucide-vue-next' import { cn } from '@/lib/utils' -import RiCheckboxBlankCircleFill from '~icons/ri/checkbox-blank-circle-fill' const props = defineProps() @@ -27,7 +27,7 @@ const emits = defineEmits() - + diff --git a/apps/www/src/lib/registry/default/ui/radio-group/RadioGroupItem.vue b/apps/www/src/lib/registry/default/ui/radio-group/RadioGroupItem.vue index 6d74489d..b9af78cf 100644 --- a/apps/www/src/lib/registry/default/ui/radio-group/RadioGroupItem.vue +++ b/apps/www/src/lib/registry/default/ui/radio-group/RadioGroupItem.vue @@ -4,8 +4,8 @@ import { RadioGroupItem, type RadioGroupItemProps, } from 'radix-vue' +import { Circle } from 'lucide-vue-next' import { cn } from '@/lib/utils' -import RiCheckboxBlankCircleFill from '~icons/ri/checkbox-blank-circle-fill' const props = defineProps() @@ -23,7 +23,7 @@ const props = defineProps() - + diff --git a/apps/www/src/lib/registry/default/ui/select/SelectItem.vue b/apps/www/src/lib/registry/default/ui/select/SelectItem.vue index 5ebbd0be..cae5d6ec 100644 --- a/apps/www/src/lib/registry/default/ui/select/SelectItem.vue +++ b/apps/www/src/lib/registry/default/ui/select/SelectItem.vue @@ -5,8 +5,8 @@ import { type SelectItemProps, SelectItemText, } from 'radix-vue' +import { Check } from 'lucide-vue-next' import { cn } from '@/lib/utils' -import RadixIconsCheck from '~icons/radix-icons/check' const props = defineProps() @@ -23,7 +23,7 @@ const props = defineProps() > - + diff --git a/apps/www/src/lib/registry/new-york/example/AlertDemo.vue b/apps/www/src/lib/registry/new-york/example/AlertDemo.vue index cd4a8796..ebb70284 100644 --- a/apps/www/src/lib/registry/new-york/example/AlertDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/AlertDemo.vue @@ -1,11 +1,11 @@ diff --git a/apps/www/src/lib/registry/new-york/ui/select/SelectItem.vue b/apps/www/src/lib/registry/new-york/ui/select/SelectItem.vue index 5ebbd0be..e5c533c3 100644 --- a/apps/www/src/lib/registry/new-york/ui/select/SelectItem.vue +++ b/apps/www/src/lib/registry/new-york/ui/select/SelectItem.vue @@ -5,8 +5,8 @@ import { type SelectItemProps, SelectItemText, } from 'radix-vue' +import { CheckIcon } from '@radix-icons/vue' import { cn } from '@/lib/utils' -import RadixIconsCheck from '~icons/radix-icons/check' const props = defineProps() @@ -23,7 +23,7 @@ const props = defineProps() > - + diff --git a/apps/www/src/lib/registry/new-york/ui/select/SelectTrigger.vue b/apps/www/src/lib/registry/new-york/ui/select/SelectTrigger.vue index 2811c5bc..15219cd1 100644 --- a/apps/www/src/lib/registry/new-york/ui/select/SelectTrigger.vue +++ b/apps/www/src/lib/registry/new-york/ui/select/SelectTrigger.vue @@ -1,6 +1,6 @@