Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove icon and tooltip ce #223

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
},
],
},
})
Loading