diff --git a/.eslintrc.cjs b/.eslintrc.cjs index e0f86c39fa..8b9fe4c3a1 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -50,6 +50,7 @@ module.exports = { alias: { map: [ ['#src', resolve('src')], + ['#kv-components', resolve('node_modules/@kiva/kv-components/dist/components')], ], extensions: ['.js', '.mjs', '.vue'], }, diff --git a/.storybook/preview.js b/.storybook/preview.js index 4a48033362..7bd4a955aa 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -2,7 +2,7 @@ import { setup } from '@storybook/vue3'; import { MINIMAL_VIEWPORTS } from '@storybook/addon-viewport'; import { VueHeadMixin, createHead } from '@unhead/vue'; import { createRouter, createWebHistory } from 'vue-router'; -import KvThemeProvider from '@kiva/kv-components/dist/components/KvThemeProvider.vue'; +import KvThemeProvider from '#kv-components/KvThemeProvider'; import { defaultTheme } from '@kiva/kv-tokens/configs/kivaColors.cjs'; import changeCaseFilter from '../src/plugins/change-case-filter'; import numeralFilter from '../src/plugins/numeral-filter'; diff --git a/.storybook/stories/KivaClassicSingleCategoryCarousel.stories.js b/.storybook/stories/KivaClassicSingleCategoryCarousel.stories.js index f90ba3945f..8174715ef3 100644 --- a/.storybook/stories/KivaClassicSingleCategoryCarousel.stories.js +++ b/.storybook/stories/KivaClassicSingleCategoryCarousel.stories.js @@ -1,8 +1,8 @@ import KivaClassicSingleCategoryCarousel from '#src/components/LoanCollections/KivaClassicSingleCategoryCarousel.vue'; import apolloStoryMixin from '../mixins/apollo-story-mixin'; import cookieStoreStoryMixin from '../mixins/cookie-store-story-mixin'; -import KvGrid from '@kiva/kv-components/dist/components/KvGrid'; -import KvPageContainer from '@kiva/kv-components/dist/components/KvPageContainer'; +import KvGrid from '#kv-components/KvGrid'; +import KvPageContainer from '#kv-components/KvPageContainer'; import loanData from '../mock-data/loan-data-mock'; const queryResult = { diff --git a/.storybook/stories/KivaMultiCategoryGrid.stories.js b/.storybook/stories/KivaMultiCategoryGrid.stories.js index 9e9effe87f..b219e5b404 100644 --- a/.storybook/stories/KivaMultiCategoryGrid.stories.js +++ b/.storybook/stories/KivaMultiCategoryGrid.stories.js @@ -2,7 +2,7 @@ import KivaLoanCardCategory from '#src/components/LoanCollections/HomeExp/KivaLo import apolloStoryMixin from '../mixins/apollo-story-mixin'; import cookieStoreStoryMixin from '../mixins/cookie-store-story-mixin'; import LoanCategorySelectorHomeExp from '#src/components/LoanCollections/HomeExp/LoanCategorySelectorHomeExp'; -import KvGrid from '@kiva/kv-components/dist/components/KvGrid'; +import KvGrid from '#kv-components/KvGrid'; import loanData from '../mock-data/loan-data-mock'; const queryResult = { diff --git a/.storybook/stories/KvFrequentlyAskedQuestions.stories.js b/.storybook/stories/KvFrequentlyAskedQuestions.stories.js index 261af39b04..968577edd2 100644 --- a/.storybook/stories/KvFrequentlyAskedQuestions.stories.js +++ b/.storybook/stories/KvFrequentlyAskedQuestions.stories.js @@ -1,6 +1,6 @@ import SectionWithBackgroundClassic from '#src/components/Contentful/SectionWithBackgroundClassic'; import KvFrequentlyAskedQuestions from '#src/components/Kv/KvFrequentlyAskedQuestions'; -import KvPageContainer from '@kiva/kv-components/dist/components/KvPageContainer'; +import KvPageContainer from '#kv-components/KvPageContainer'; const args = { frequentlyAskedQuestionsHeadline: 'Questions', diff --git a/.storybook/stories/LoanSpotlight.stories.js b/.storybook/stories/LoanSpotlight.stories.js index 12904c7d7b..a877ae84f9 100644 --- a/.storybook/stories/LoanSpotlight.stories.js +++ b/.storybook/stories/LoanSpotlight.stories.js @@ -1,8 +1,8 @@ import LoanSpotlight from '#src/components/Categories/LoanSpotlight'; import apolloStoryMixin from '../mixins/apollo-story-mixin'; import cookieStoreStoryMixin from '../mixins/cookie-store-story-mixin'; -import KvGrid from '@kiva/kv-components/dist/components/KvGrid'; -import KvPageContainer from '@kiva/kv-components/dist/components/KvPageContainer'; +import KvGrid from '#kv-components/KvGrid'; +import KvPageContainer from '#kv-components/KvPageContainer'; const loanHorizontal = { id: 2389631, diff --git a/.storybook/stories/MainCategoryTile.stories.js b/.storybook/stories/MainCategoryTile.stories.js index 151cf66ff7..b6a8ac80a6 100644 --- a/.storybook/stories/MainCategoryTile.stories.js +++ b/.storybook/stories/MainCategoryTile.stories.js @@ -1,6 +1,6 @@ import MainCategoryTile from '#src/components/Categories/MainCategoryTile'; -import KvGrid from '@kiva/kv-components/dist/components/KvGrid'; -import KvPageContainer from '@kiva/kv-components/dist/components/KvPageContainer'; +import KvGrid from '#kv-components/KvGrid'; +import KvPageContainer from '#kv-components/KvPageContainer'; export default { title: 'Components/Main Category Tile', diff --git a/.storybook/stories/PortfolioKivaCreditStats.stories.js b/.storybook/stories/PortfolioKivaCreditStats.stories.js index f3a8ec700f..bcc0ccd0ed 100644 --- a/.storybook/stories/PortfolioKivaCreditStats.stories.js +++ b/.storybook/stories/PortfolioKivaCreditStats.stories.js @@ -1,5 +1,5 @@ -import KvGrid from '@kiva/kv-components/dist/components/KvGrid'; -import KvPageContainer from '@kiva/kv-components/dist/components/KvPageContainer'; +import KvGrid from '#kv-components/KvGrid'; +import KvPageContainer from '#kv-components/KvPageContainer'; import KivaCreditStats from '#src/pages/Portfolio/ImpactDashboard/KivaCreditStats'; import apolloStoryMixin from '../mixins/apollo-story-mixin'; diff --git a/.storybook/stories/SupportedByLenders.stories.js b/.storybook/stories/SupportedByLenders.stories.js index 752be9c178..9dd768ec18 100644 --- a/.storybook/stories/SupportedByLenders.stories.js +++ b/.storybook/stories/SupportedByLenders.stories.js @@ -1,6 +1,6 @@ import SupportedByLenders from '#src/components/BorrowerProfile/SupportedByLenders'; import activities from '../mock-data/activity-feed-data-mock'; -import KvUserAvatar from '@kiva/kv-components/dist/components/KvUserAvatar'; +import KvUserAvatar from '#kv-components/KvUserAvatar'; export default { title: 'Components/SupportedByLenders', diff --git a/src/components/AutoDeposit/AutoDepositDropInPaymentWrapper.vue b/src/components/AutoDeposit/AutoDepositDropInPaymentWrapper.vue index 1bf7fdf256..86989c1f06 100644 --- a/src/components/AutoDeposit/AutoDepositDropInPaymentWrapper.vue +++ b/src/components/AutoDeposit/AutoDepositDropInPaymentWrapper.vue @@ -39,7 +39,7 @@ import braintreeUpdateSubscriptionPaymentMethod from '#src/graphql/mutation/braintreeUpdateSubscriptionPaymentMethod.graphql'; import KvIcon from '#src/components/Kv/KvIcon'; -import KvButton from '@kiva/kv-components/dist/components/KvButton'; +import KvButton from '#kv-components/KvButton'; export default { name: 'AutoDepositDropInPaymentWrapper', diff --git a/src/components/AutoDeposit/AutoDepositSignUpForm.vue b/src/components/AutoDeposit/AutoDepositSignUpForm.vue index ec3d28b8e1..12c33ac98d 100644 --- a/src/components/AutoDeposit/AutoDepositSignUpForm.vue +++ b/src/components/AutoDeposit/AutoDepositSignUpForm.vue @@ -172,11 +172,11 @@ import KvLoadingOverlay from '#src/components/Kv/KvLoadingOverlay'; import userIdQuery from '#src/graphql/query/userId.graphql'; import { mdiPencil } from '@mdi/js'; -import KvButton from '@kiva/kv-components/dist/components/KvButton'; -import KvCheckbox from '@kiva/kv-components/dist/components/KvCheckbox'; -import KvMaterialIcon from '@kiva/kv-components/dist/components/KvMaterialIcon'; -import KvSelect from '@kiva/kv-components/dist/components/KvSelect'; -import KvTextInput from '@kiva/kv-components/dist/components/KvTextInput'; +import KvButton from '#kv-components/KvButton'; +import KvCheckbox from '#kv-components/KvCheckbox'; +import KvMaterialIcon from '#kv-components/KvMaterialIcon'; +import KvSelect from '#kv-components/KvSelect'; +import KvTextInput from '#kv-components/KvTextInput'; let frozenDropdownOptions; diff --git a/src/components/BorrowerProfile/BorrowerBusinessDetails.vue b/src/components/BorrowerProfile/BorrowerBusinessDetails.vue index 3e4f86d139..6671da317a 100644 --- a/src/components/BorrowerProfile/BorrowerBusinessDetails.vue +++ b/src/components/BorrowerProfile/BorrowerBusinessDetails.vue @@ -57,7 +57,7 @@