From 59f5d8ce36f982b1227db5bd32e320c99c8d0c20 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 21 Jun 2022 16:36:41 +0800 Subject: [PATCH] refactor(components): remove tooltip component Signed-off-by: Ryan Wang --- packages/components/package.json | 7 +- packages/components/src/components.ts | 1 - .../src/components/tooltip/Tooltip.story.vue | 16 ----- .../src/components/tooltip/Tooltip.vue | 25 ------- .../src/components/tooltip/index.ts | 1 - pnpm-lock.yaml | 67 ++++++++----------- 6 files changed, 29 insertions(+), 88 deletions(-) delete mode 100644 packages/components/src/components/tooltip/Tooltip.story.vue delete mode 100644 packages/components/src/components/tooltip/Tooltip.vue delete mode 100644 packages/components/src/components/tooltip/index.ts diff --git a/packages/components/package.json b/packages/components/package.json index 9ced306f..3c99bd7c 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -44,14 +44,11 @@ }, "homepage": "https://github.com/halo-dev/halo-admin/tree/next/packages/components#readme", "license": "MIT", - "dependencies": { - "tippy.js": "^6.3.7" - }, "devDependencies": { "@iconify-json/ri": "^1.1.2", "@rollup/plugin-typescript": "^8.3.3", - "histoire": "^0.7.6", - "unplugin-icons": "^0.14.4", + "histoire": "^0.7.7", + "unplugin-icons": "^0.14.5", "vite-plugin-dts": "^1.2.0" }, "peerDependencies": { diff --git a/packages/components/src/components.ts b/packages/components/src/components.ts index 2ea4cc78..3f4602ee 100644 --- a/packages/components/src/components.ts +++ b/packages/components/src/components.ts @@ -12,4 +12,3 @@ export * from "./components/space"; export * from "./components/tabs"; export * from "./components/tag"; export * from "./components/textarea"; -export * from "./components/tooltip"; diff --git a/packages/components/src/components/tooltip/Tooltip.story.vue b/packages/components/src/components/tooltip/Tooltip.story.vue deleted file mode 100644 index 48588f19..00000000 --- a/packages/components/src/components/tooltip/Tooltip.story.vue +++ /dev/null @@ -1,16 +0,0 @@ - - diff --git a/packages/components/src/components/tooltip/Tooltip.vue b/packages/components/src/components/tooltip/Tooltip.vue deleted file mode 100644 index 6cc8d306..00000000 --- a/packages/components/src/components/tooltip/Tooltip.vue +++ /dev/null @@ -1,25 +0,0 @@ - - diff --git a/packages/components/src/components/tooltip/index.ts b/packages/components/src/components/tooltip/index.ts deleted file mode 100644 index 7962a218..00000000 --- a/packages/components/src/components/tooltip/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as VTooltip } from "./Tooltip.vue"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1b550dfa..300ef1d0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -113,17 +113,14 @@ importers: specifiers: '@iconify-json/ri': ^1.1.2 '@rollup/plugin-typescript': ^8.3.3 - histoire: ^0.7.6 - tippy.js: ^6.3.7 - unplugin-icons: ^0.14.4 + histoire: ^0.7.7 + unplugin-icons: ^0.14.5 vite-plugin-dts: ^1.2.0 - dependencies: - tippy.js: 6.3.7 devDependencies: '@iconify-json/ri': 1.1.2 '@rollup/plugin-typescript': 8.3.3 - histoire: 0.7.6 - unplugin-icons: 0.14.4 + histoire: 0.7.7 + unplugin-icons: 0.14.5 vite-plugin-dts: 1.2.0 packages/shared: @@ -1486,8 +1483,8 @@ packages: '@hapi/hoek': 9.2.1 dev: true - /@histoire/controls/0.7.6_vue@3.2.37: - resolution: {integrity: sha512-YmRJgpFRzaJxFMn1LjJxY+SjJPnx8/lGMHBTStf0OHyONb9+zYYrM5h41X5Ow0XdA75tdZAl9+M9za60I7p+ZA==} + /@histoire/controls/0.7.7_vue@3.2.37: + resolution: {integrity: sha512-cPMebozrwECDOpEbnkN19Uq4W+Mx0s55XdYXpY6v6tldgu0a+0cP7McWbgv5nPjnNrSUOsm1jU2Cq4b5wWFNBw==} dependencies: '@iconify/vue': 3.2.1_vue@3.2.37 '@vueuse/core': 8.6.0_vue@3.2.37 @@ -1497,22 +1494,22 @@ packages: - vue dev: true - /@histoire/plugin-vue/0.7.6_histoire@0.7.6+vue@3.2.37: - resolution: {integrity: sha512-6rguSLVQeoOXjIE0QRrx2miM4Bq9HnErUyaLCOFuv+DwU9PbLkiqJuIBXRxq1+0EAEoFglEgwxc06GlCr/VRdw==} + /@histoire/plugin-vue/0.7.7_histoire@0.7.7+vue@3.2.37: + resolution: {integrity: sha512-Hyyh5tWGSMYbaLY1c3O5XGNLSuMiZQ1sgZcLya/0IDh1V/rMr2hb/fDhsIR2fsLEwyJNWqG9lYQMx14c02frIA==} peerDependencies: - histoire: ^0.7.6 + histoire: ^0.7.7 vue: ^3.2.31 dependencies: - '@histoire/controls': 0.7.6_vue@3.2.37 - '@histoire/shared': 0.7.6 - histoire: 0.7.6 + '@histoire/controls': 0.7.7_vue@3.2.37 + '@histoire/shared': 0.7.7 + histoire: 0.7.7 vue: 3.2.37 transitivePeerDependencies: - '@vue/composition-api' dev: true - /@histoire/shared/0.7.6: - resolution: {integrity: sha512-sjnOyLLwrNVnx0Jn4+T5Yy1/n1r7B9gKGP5NlMvai73ehSiqpvHZe+TaMCxotiltjwbBvSqbdmrEqYz+B4cKGA==} + /@histoire/shared/0.7.7: + resolution: {integrity: sha512-ltNnfkEgyfDiyBV8xsT80AOWqxnkE30CCknCtKScbeD//vUgyrdS1YB++GhF3MrjTR7GKk8hcvCrQciQbPKzcQ==} dev: true /@humanwhocodes/config-array/0.9.5: @@ -1540,8 +1537,8 @@ packages: resolution: {integrity: sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw==} dev: true - /@iconify/utils/1.0.32: - resolution: {integrity: sha512-m+rnw7qKHq/XF7DAi4BcFoEAcXBfqqMgQJh8brGEHeqE/RUvgDMjmxsHgWnVpFsG+VmjGyAiI7nwXdliCwEU0Q==} + /@iconify/utils/1.0.33: + resolution: {integrity: sha512-vGeAqo7aGPxOQmGdVoXFUOuyN+0V7Lcrx2EvaiRjxUD1x6Om0Tvq2bdm7E24l2Pz++4S0mWMCVFXe/17EtKImQ==} dependencies: '@antfu/install-pkg': 0.1.0 '@antfu/utils': 0.5.2 @@ -1862,10 +1859,6 @@ packages: resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} dev: true - /@popperjs/core/2.11.5: - resolution: {integrity: sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==} - dev: false - /@rollup/plugin-babel/5.3.1_5wvcgz2wh3u67p6lukoxoocitq: resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==} engines: {node: '>= 10.0.0'} @@ -2050,7 +2043,7 @@ packages: /@types/concat-stream/1.6.1: resolution: {integrity: sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==} dependencies: - '@types/node': 17.0.42 + '@types/node': 17.0.45 dev: true /@types/estree/0.0.39: @@ -2060,7 +2053,7 @@ packages: /@types/form-data/0.0.33: resolution: {integrity: sha1-yayFsqX9GENbjIXZ7LUObWyJP/g=} dependencies: - '@types/node': 17.0.42 + '@types/node': 17.0.45 dev: true /@types/istanbul-lib-coverage/2.0.4: @@ -4481,15 +4474,15 @@ packages: hasBin: true dev: true - /histoire/0.7.6: - resolution: {integrity: sha512-99DjXlByDgSXzwtuC3JCpIbQmUMXKkBcjGlwO48Q6UKRgV7ZjXtZu1KBze/PVXBfUn6NGZkewUAvT8PVm1fW6g==} + /histoire/0.7.7: + resolution: {integrity: sha512-Yk+gSoGdKbRofdCcogmK19wy2X4wdsNpRsEwIPM588wFNCLr3l9H8vt0wqG97eqCBovPU/cBzcvGpjvntlc0YA==} hasBin: true peerDependencies: vite: ^2.9.0 dependencies: - '@histoire/controls': 0.7.6_vue@3.2.37 - '@histoire/plugin-vue': 0.7.6_histoire@0.7.6+vue@3.2.37 - '@histoire/shared': 0.7.6 + '@histoire/controls': 0.7.7_vue@3.2.37 + '@histoire/plugin-vue': 0.7.7_histoire@0.7.7+vue@3.2.37 + '@histoire/shared': 0.7.7 '@iconify/vue': 3.2.1_vue@3.2.37 '@types/markdown-it': 12.2.3 '@vueuse/core': 8.6.0_vue@3.2.37 @@ -4501,7 +4494,7 @@ packages: diacritics: 1.3.0 flexsearch: 0.7.21 floating-vue: 2.0.0-beta.16_vue@3.2.37 - fs-extra: 10.0.1 + fs-extra: 10.1.0 globby: 13.1.1 happy-dom: 2.55.0 markdown-it: 12.3.2 @@ -6426,12 +6419,6 @@ packages: engines: {node: '>=14.0.0'} dev: true - /tippy.js/6.3.7: - resolution: {integrity: sha512-E1d3oP2emgJ9dRQZdf3Kkn0qJgI6ZLpyS5z6ZkY1DF3kaQaBsGZsndEpHwx+eC+tYM41HaSNvNtLx8tU57FzTQ==} - dependencies: - '@popperjs/core': 2.11.5 - dev: false - /tmp/0.2.1: resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==} engines: {node: '>=8.17.0'} @@ -6635,8 +6622,8 @@ packages: engines: {node: '>= 0.8'} dev: true - /unplugin-icons/0.14.4: - resolution: {integrity: sha512-+5+U5MV/d1HU3rW9bHqPLCC+rikt6OCXwjW9gSbryE2qyezzOyJ7ZNnwWLksxf5A+cVj1D6pcAbpmSjojN8zCg==} + /unplugin-icons/0.14.5: + resolution: {integrity: sha512-fxi/fuBZXtZu64L8iAPj+ecu/rnSvTbfR14RO44xIWdsI/Ohpzs9Gve7+nHIgD6JFrdtCfzGnXWBEVPbMGWX3A==} peerDependencies: '@svgr/core': '>=5.5.0' '@vue/compiler-sfc': ^3.0.2 @@ -6654,7 +6641,7 @@ packages: dependencies: '@antfu/install-pkg': 0.1.0 '@antfu/utils': 0.5.2 - '@iconify/utils': 1.0.32 + '@iconify/utils': 1.0.33 debug: 4.3.4 kolorist: 1.5.1 local-pkg: 0.4.1