Skip to content

Commit

Permalink
fix: remove icon and tooltip ce
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgoud committed Oct 12, 2023
1 parent fa38cbd commit 5fc1dd0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 31 deletions.
6 changes: 0 additions & 6 deletions packages/components/icon/index.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
6 changes: 0 additions & 6 deletions packages/components/tooltip/index.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
6 changes: 2 additions & 4 deletions packages/puik/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -78,7 +78,6 @@ export default [
PuikMenuItemTitle,
PuikProgressBar,
PuikIcon,
PuikIconCe,
PuikLink,
PuikCard,
PuikSnackbar,
Expand All @@ -90,7 +89,6 @@ export default [
PuikSelect,
PuikAlert,
PuikTooltip,
PuikTooltipCe,
PuikSwitch,
PuikButton,
PuikConfigProvider,
Expand Down
16 changes: 1 addition & 15 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand All @@ -29,10 +19,6 @@ export default defineConfig({
find: /^@puik\/(.*)$/,
replacement: `${path.resolve('../packages')}/$1`,
},
{
find: /^~(.*)$/,
replacement: '$1',
},
],
},
})

0 comments on commit 5fc1dd0

Please sign in to comment.