Skip to content

Commit f99f99c

Browse files
committed
fix: use relative imports
1 parent 6d53d3e commit f99f99c

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

src/Indicators.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script setup lang="ts" generic="GenericOption extends Option<OptionValue>, OptionValue = string">
2-
import type { Option } from "@/types/option";
3-
import type { IndicatorsSlots } from "@/types/slots";
4-
import ChevronDownIcon from "@/icons/ChevronDownIcon.vue";
5-
import XMarkIcon from "@/icons/XMarkIcon.vue";
6-
import Spinner from "@/Spinner.vue";
7-
2+
import type { Option } from "./types/option";
3+
import type { IndicatorsSlots } from "./types/slots";
84
import { useTemplateRef } from "vue";
5+
import ChevronDownIcon from "./icons/ChevronDownIcon.vue";
6+
import XMarkIcon from "./icons/XMarkIcon.vue";
7+
8+
import Spinner from "./Spinner.vue";
99
1010
const props = defineProps<{
1111
hasSelectedOption: boolean;

src/Menu.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script setup lang="ts" generic="GenericOption extends Option<OptionValue>, OptionValue = string">
2-
import type { DataInjection, PropsInjection } from "@/lib/provide-inject";
3-
import type { Option } from "@/types/option";
4-
import type { MenuSlots } from "@/types/slots";
5-
import { DATA_KEY, PROPS_KEY } from "@/lib/provide-inject";
6-
import MenuOption from "@/MenuOption.vue";
7-
2+
import type { DataInjection, PropsInjection } from "./lib/provide-inject";
3+
import type { Option } from "./types/option";
4+
import type { MenuSlots } from "./types/slots";
85
import { inject, onBeforeUnmount, onMounted, useTemplateRef } from "vue";
6+
import { DATA_KEY, PROPS_KEY } from "./lib/provide-inject";
7+
8+
import MenuOption from "./MenuOption.vue";
99
1010
const props = defineProps<{
1111
slots: MenuSlots<GenericOption, OptionValue>;

src/MultiValue.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import XMarkIcon from "@/icons/XMarkIcon.vue";
2+
import XMarkIcon from "./icons/XMarkIcon.vue";
33
44
const props = defineProps<{
55
label: string;

src/Select.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Option } from "@/types/option";
1+
import type { Option } from "./types/option";
22
import { mount } from "@vue/test-utils";
33

44
import { describe, expect, it } from "vitest";

src/Select.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<script setup lang="ts" generic="GenericOption extends Option<OptionValue>, OptionValue = string">
2-
import type { Option } from "@/types/option";
3-
import type { Props } from "@/types/props";
4-
import type { Slots } from "@/types/slots";
5-
import Indicators from "@/Indicators.vue";
6-
import { DATA_KEY, PROPS_KEY } from "@/lib/provide-inject";
7-
import { uniqueId } from "@/lib/uid";
8-
import Menu from "@/Menu.vue";
9-
import MultiValue from "@/MultiValue.vue";
10-
import Placeholder from "@/Placeholder.vue";
11-
2+
import type { Option } from "./types/option";
3+
import type { Props } from "./types/props";
4+
import type { Slots } from "./types/slots";
125
import { computed, provide, ref, useTemplateRef, watch } from "vue";
6+
import Indicators from "./Indicators.vue";
7+
import { DATA_KEY, PROPS_KEY } from "./lib/provide-inject";
8+
import { uniqueId } from "./lib/uid";
9+
import Menu from "./Menu.vue";
10+
import MultiValue from "./MultiValue.vue";
11+
12+
import Placeholder from "./Placeholder.vue";
1313
1414
const props = withDefaults(
1515
defineProps<Props<GenericOption, OptionValue>>(),

src/lib/provide-inject.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { Option } from "@/types/option";
2-
import type { Props } from "@/types/props";
3-
41
import type { InjectionKey, Ref, ShallowRef } from "vue";
2+
import type { Option } from "../types/option";
3+
4+
import type { Props } from "../types/props";
55

66
/**
77
* This type allows you to inject the props with the correct generics

src/types/slots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Option } from "@/types/option";
1+
import type { Option } from "./option";
22

33
/**
44
* Define all existing slots across all internal components.

0 commit comments

Comments
 (0)