Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit 7b193e3

Browse files
committed
refactor: simplify icons usage
1 parent 89f7e7f commit 7b193e3

File tree

19 files changed

+36
-36
lines changed

19 files changed

+36
-36
lines changed

.playground/src/pages/components/switch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { useColor } from '@/app/composables/useColor'
33
import Switch from '@/ui/components/Switch/Switch.vue'
4-
import { check as checkIcon, close as closeIcon } from '@/ui/icons'
4+
import { checkIcon, closeIcon } from '@/ui/icons'
55
import { ref } from 'vue'
66
77
const { color } = useColor()

src/components/Alert/Alert.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { ComponentConfig } from '@/ui/types/utils'
55
import Avatar from '@/ui/components/Avatar/Avatar.vue'
66
import Button from '@/ui/components/Button/Button.vue'
77
import Icon from '@/ui/components/Icon/Icon.vue'
8-
import { close as closeIcon } from '@/ui/icons'
8+
import { closeIcon } from '@/ui/icons'
99
import theme from '@/ui/theme/alert'
1010
import { Primitive } from 'reka-ui'
1111
import { tv } from 'tailwind-variants'

src/components/Breadcrumb/Breadcrumb.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { DynamicSlots } from '@/ui/types/utils'
66
import Avatar from '@/ui/components/Avatar/Avatar.vue'
77
import Icon from '@/ui/components/Icon/Icon.vue'
88
import Link from '@/ui/components/Link/Link.vue'
9-
import { separator as separatorIcon } from '@/ui/icons'
9+
import { separatorIcon } from '@/ui/icons'
1010
import theme from '@/ui/theme/breadcrumb'
1111
import { get } from '@/ui/utils/get'
1212
import { pickLinkProps } from '@/ui/utils/pick-link-props'

src/components/Button/Button.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Icon from '@/ui/components/Icon/Icon.vue'
88
import Link from '@/ui/components/Link/Link.vue'
99
import { useButtonGroup } from '@/ui/composables/useButtonGroup'
1010
import { useComponentIcons } from '@/ui/composables/useComponentIcons'
11-
import { loading as loadingIcon } from '@/ui/icons'
11+
import { loadingIcon } from '@/ui/icons'
1212
import theme from '@/ui/theme/button'
1313
import { omit } from '@/ui/utils/omit'
1414
import { pickLinkProps } from '@/ui/utils/pick-link-props'

src/components/Carousel/Carousel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { WheelGesturesPluginOptions } from 'embla-carousel-wheel-gestures'
1010
import type { AcceptableValue } from 'reka-ui'
1111
import type { VariantProps } from 'tailwind-variants'
1212
import Button from '@/ui/components/Button/Button.vue'
13-
import { arrowLeft as arrowLeftIcon, arrowRight as arrowRightIcon } from '@/ui/icons'
13+
import { arrowLeftIcon, arrowRightIcon } from '@/ui/icons'
1414
import theme from '@/ui/theme/carousel'
1515
import { computedAsync } from '@vueuse/core'
1616
import { reactivePick } from '@vueuse/shared'

src/components/Checkbox/Checkbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { ComponentConfig } from '@/ui/types/utils'
33
import type { CheckboxRootProps } from 'reka-ui'
44
import Icon from '@/ui/components/Icon/Icon.vue'
55
import { useFormField } from '@/ui/composables/useFormField'
6-
import { check as checkIcon, minus as minusIcon } from '@/ui/icons'
6+
import { checkIcon, minusIcon } from '@/ui/icons'
77
import theme from '@/ui/theme/checkbox'
88
import { reactivePick } from '@vueuse/shared'
99
import { CheckboxIndicator, CheckboxRoot, Label, Primitive, useForwardProps } from 'reka-ui'

src/components/CommandPalette/CommandPalette.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Icon from '@/ui/components/Icon/Icon.vue'
1717
import Input from '@/ui/components/Input/Input.vue'
1818
import Kbd from '@/ui/components/Kbd/Kbd.vue'
1919
import Link from '@/ui/components/Link/Link.vue'
20-
import { check as checkIcon, close as closeIcon, loading as loadingIcon } from '@/ui/icons'
20+
import { checkIcon, closeIcon, loadingIcon } from '@/ui/icons'
2121
import theme from '@/ui/theme/command-palette'
2222
import { highlight } from '@/ui/utils/fuse'
2323
import { get } from '@/ui/utils/get'

src/components/ContextMenuContent/ContextMenuContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Icon from '@/ui/components/Icon/Icon.vue'
1111
import Kbd from '@/ui/components/Kbd/Kbd.vue'
1212
import Link from '@/ui/components/Link/Link.vue'
1313
import { usePortal } from '@/ui/composables/usePortal'
14-
import { check as checkIcon, chevronRight as chevronRightIcon, external as externalIcon, loading as loadingIcon } from '@/ui/icons'
14+
import { checkIcon, chevronRightIcon, externalIcon, loadingIcon } from '@/ui/icons'
1515
import { get } from '@/ui/utils/get'
1616
import { isArrayOfArray } from '@/ui/utils/is-array-of-array'
1717
import { omit } from '@/ui/utils/omit'

src/components/DropdownMenuContent/DropdownMenuContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Icon from '@/ui/components/Icon/Icon.vue'
1212
import Kbd from '@/ui/components/Kbd/Kbd.vue'
1313
import Link from '@/ui/components/Link/Link.vue'
1414
import { usePortal } from '@/ui/composables/usePortal'
15-
import { check as checkIcon, chevronRight as chevronRightIcon, external as externalIcon, loading as loadingIcon } from '@/ui/icons'
15+
import { checkIcon, chevronRightIcon, externalIcon, loadingIcon } from '@/ui/icons'
1616
import { get } from '@/ui/utils/get'
1717
import { isArrayOfArray } from '@/ui/utils/is-array-of-array'
1818
import { omit } from '@/ui/utils/omit'

src/components/InputMenu/InputMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { useButtonGroup } from '@/ui/composables/useButtonGroup'
1313
import { useComponentIcons } from '@/ui/composables/useComponentIcons'
1414
import { useFormField } from '@/ui/composables/useFormField'
1515
import { usePortal } from '@/ui/composables/usePortal'
16-
import { check as checkIcon, chevronDown as chevronDownIcon, remove as removeIcon } from '@/ui/icons'
16+
import { checkIcon, chevronDownIcon, removeIcon } from '@/ui/icons'
1717
import theme from '@/ui/theme/input-menu'
1818
import { compare } from '@/ui/utils/compare'
1919
import { get } from '@/ui/utils/get'

0 commit comments

Comments
 (0)