Skip to content

Commit

Permalink
feat: export all implemented components
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Sep 3, 2024
1 parent 5d69117 commit 57b9237
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,63 @@
import './assets/main.css'

import WButton from './components/Button/WButton.vue'
export { buttonTypes } from './components/Button/WButton'

import WEmptyState from './components/EmptyState/WEmptyState.vue'

import WFooter from './components/Footer/WFooter.vue'

import WIcon from './components/icon/WIcon.vue'
export { IconName, iconNames } from './components/icon/WIcon'

import WIconRounded from './components/IconRounded/WIconRounded.vue'

import WIconText from './components/IconText/WIconText.vue'
export { iconTextPositions } from './components/IconText/WIconText'

import WLink from './components/Link/WLink.vue'

import WLoadingPlaceholder from './components/LoadingPlaceholder/WLoadingPlaceholder.vue'

import WNavbar from './components/Navbar/WNavbar.vue'

import WPagination from './components/pagination/WPagination.vue'

import WSection from './components/Section/WSection.vue'

import WSpinner from './components/Spinner/WSpinner.vue'

export { WButton, WEmptyState, WFooter, WLink, WLoadingPlaceholder, WNavbar, WSection, WSpinner }
import WSocialsBar from './components/SocialsBar/WSocialsBar.vue'
export { SOCIAL_URLS } from './components/SocialsBar/WSocialsBar'

export {
WButton,
WEmptyState,
WFooter,
WIcon,
WIconRounded,
WIconText,
WLink,
WLoadingPlaceholder,
WNavbar,
WPagination,
WSection,
WSocialsBar,
WSpinner
}

export type WButton = typeof WButton
export type WEmptyState = typeof WEmptyState
export type WFooter = typeof WFooter
export type WIcon = typeof WIcon
export type WIconRounded = typeof WIconRounded
export type WIconText = typeof WIconText
export type WLink = typeof WLink
export type WLoadingPlaceholder = typeof WLoadingPlaceholder
export type WNavbar = typeof WNavbar
export type WPagination = typeof WPagination
export type WSection = typeof WSection
export type WSocialsBar = typeof WSocialsBar
export type WSpinner = typeof WSpinner

import type { App } from 'vue'
Expand All @@ -26,10 +67,15 @@ const WComponents = {
app.component('WButton', WButton)
app.component('WEmptyState', WEmptyState)
app.component('WFooter', WFooter)
app.component('WIcon', WIcon)
app.component('WIconRounded', WIconRounded)
app.component('WIconText', WIconText)
app.component('WLink', WLink)
app.component('WLoadingPlaceholder', WLoadingPlaceholder)
app.component('WNavbar', WNavbar)
app.component('WPagination', WPagination)
app.component('WSection', WSection)
app.component('WSocialsBar', WSocialsBar)
app.component('WSpinner', WSpinner)
}
}
Expand Down

0 comments on commit 57b9237

Please sign in to comment.