diff --git a/packages/components/icon/index.ts b/packages/components/icon/index.ts index 0a5c6332..f357d87d 100644 --- a/packages/components/icon/index.ts +++ b/packages/components/icon/index.ts @@ -1,14 +1,8 @@ -import { defineCustomElement } from 'vue' import { withInstall } from '@puik/utils' import Icon from './src/icon.vue' export const PuikIcon = withInstall(Icon) -export const PuikIconCe = defineCustomElement(PuikIcon) - -if (!customElements.get('puik-icon-ce')) { - customElements.define('puik-icon-ce', PuikIconCe) -} export * from './src/icon' diff --git a/packages/components/tooltip/index.ts b/packages/components/tooltip/index.ts index edd92886..706dcfb4 100644 --- a/packages/components/tooltip/index.ts +++ b/packages/components/tooltip/index.ts @@ -1,14 +1,8 @@ -import { defineCustomElement } from 'vue' import { withInstall } from '@puik/utils' import Tooltip from './src/tooltip.vue' export const PuikTooltip = withInstall(Tooltip) -export const PuikTooltipCe = defineCustomElement(PuikTooltip) - -if (!customElements.get('puik-tooltip-ce')) { - customElements.define('puik-tooltip-ce', PuikTooltipCe) -} export * from './src/tooltip' diff --git a/packages/puik/component.ts b/packages/puik/component.ts index ee5533d9..4bc52ab5 100644 --- a/packages/puik/component.ts +++ b/packages/puik/component.ts @@ -32,7 +32,7 @@ import { PuikMenuItemTitle, } from '@puik/components/menu' import { PuikProgressBar } from '@puik/components/progress-bar' -import { PuikIcon, PuikIconCe } from '@puik/components/icon' +import { PuikIcon } from '@puik/components/icon' import { PuikLink } from '@puik/components/link' import { PuikCard } from '@puik/components/card' import { PuikSnackbar } from '@puik/components/snackbar' @@ -41,7 +41,7 @@ import { PuikCheckbox } from '@puik/components/checkbox' import { PuikRadio } from '@puik/components/radio' import { PuikSelect, PuikOption } from '@puik/components/select' import { PuikAlert } from '@puik/components/alert' -import { PuikTooltip, PuikTooltipCe } from '@puik/components/tooltip' +import { PuikTooltip } from '@puik/components/tooltip' import { PuikSwitch } from '@puik/components/switch' import { PuikButton } from '@puik/components/button' import { PuikInput } from '@puik/components/input' @@ -78,7 +78,6 @@ export default [ PuikMenuItemTitle, PuikProgressBar, PuikIcon, - PuikIconCe, PuikLink, PuikCard, PuikSnackbar, @@ -90,7 +89,6 @@ export default [ PuikSelect, PuikAlert, PuikTooltip, - PuikTooltipCe, PuikSwitch, PuikButton, PuikConfigProvider, diff --git a/playground/vite.config.ts b/playground/vite.config.ts index ecfd0e2d..b03eec8b 100644 --- a/playground/vite.config.ts +++ b/playground/vite.config.ts @@ -6,17 +6,7 @@ import DefineOptions from 'unplugin-vue-define-options/vite' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - vue({ - template: { - compilerOptions: { - isCustomElement: (tag) => tag.includes('-ce'), - }, - }, - customElement: true, - }), - DefineOptions(), - ], + plugins: [vue(), DefineOptions()], css: { postcss: { plugins: [tailwindcss()], @@ -29,10 +19,6 @@ export default defineConfig({ find: /^@puik\/(.*)$/, replacement: `${path.resolve('../packages')}/$1`, }, - { - find: /^~(.*)$/, - replacement: '$1', - }, ], }, })