From 57b9237fc7d8a88f6962e754e9f131b0b0a571f3 Mon Sep 17 00:00:00 2001 From: tommytrg Date: Tue, 3 Sep 2024 17:43:17 +0200 Subject: [PATCH] feat: export all implemented components --- src/index.ts | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b1bea05..1142a92 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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' @@ -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) } }