Skip to content

Commit

Permalink
feat: export card and input components
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Sep 3, 2024
1 parent 4fdd37f commit 5f4b8b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
import './assets/main.css'

import WButton from './components/Button/WButton.vue'
import WCard from './components/Card/WCard.vue'
import WEmptyState from './components/EmptyState/WEmptyState.vue'
import WFooter from './components/Footer/WFooter.vue'
import WInput from './components/Input/WInput.vue'
import WLink from './components/Link/WLink.vue'
import WLoadingPlaceholder from './components/LoadingPlaceholder/WLoadingPlaceholder.vue'
import WNavbar from './components/Navbar/WNavbar.vue'
import WSection from './components/Section/WSection.vue'
import WSpinner from './components/Spinner/WSpinner.vue'

export { WButton, WEmptyState, WFooter, WLink, WLoadingPlaceholder, WNavbar, WSection, WSpinner }
export { WButton, WCard, WEmptyState, WFooter, WInput, WLink, WLoadingPlaceholder, WNavbar, WSection, WSpinner }
export type WButton = typeof WButton
export type WCard = typeof WCard
export type WEmptyState = typeof WEmptyState
export type WFooter = typeof WFooter
export type WInput = typeof WInput
export type WLink = typeof WLink
export type WLoadingPlaceholder = typeof WLoadingPlaceholder
export type WNavbar = typeof WNavbar
Expand All @@ -24,8 +28,10 @@ import type { App } from 'vue'
const WComponents = {
install(app: App) {
app.component('WButton', WButton)
app.component('WCard', WCard)
app.component('WEmptyState', WEmptyState)
app.component('WFooter', WFooter)
app.component('WInput', WInput)
app.component('WLink', WLink)
app.component('WLoadingPlaceholder', WLoadingPlaceholder)
app.component('WNavbar', WNavbar)
Expand Down

0 comments on commit 5f4b8b7

Please sign in to comment.