diff --git a/packages/histoire-controls/package.json b/packages/histoire-controls/package.json index a48a7fa4..bc40a1dd 100644 --- a/packages/histoire-controls/package.json +++ b/packages/histoire-controls/package.json @@ -41,6 +41,11 @@ "story:dev": "histoire dev", "story:build": "histoire build" }, + "dependencies": { + "@iconify/vue": "^3.2.1", + "@vueuse/core": "^8.2.5", + "floating-vue": "^2.0.0-beta.14" + }, "devDependencies": { "@peeky/test": "^0.13.5", "@types/node": "^17.0.23", diff --git a/packages/histoire-controls/src/components/HstCopyIcon.vue b/packages/histoire-controls/src/components/HstCopyIcon.vue new file mode 100644 index 00000000..a7518a8e --- /dev/null +++ b/packages/histoire-controls/src/components/HstCopyIcon.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/packages/histoire-controls/src/index.ts b/packages/histoire-controls/src/index.ts index 405c0e9e..6c69b36a 100644 --- a/packages/histoire-controls/src/index.ts +++ b/packages/histoire-controls/src/index.ts @@ -3,11 +3,13 @@ import HstCheckboxVue from './components/checkbox/HstCheckbox.vue' import HstTextVue from './components/text/HstText.vue' import HstNumberVue from './components/number/HstNumber.vue' import HstTextareaVue from './components/textarea/HstTextarea.vue' +import HstCopyIconVue from './components/HstCopyIcon.vue' export const HstCheckbox = HstCheckboxVue export const HstText = HstTextVue export const HstNumber = HstNumberVue export const HstTextarea = HstTextareaVue +export const HstCopyIcon = HstCopyIconVue export function registerVueComponents (app: App) { app.component('HstCheckbox', HstCheckboxVue) diff --git a/packages/histoire/src/client/app/components/story/StorySourceCode.vue b/packages/histoire/src/client/app/components/story/StorySourceCode.vue index 143ad84e..4269b6ab 100644 --- a/packages/histoire/src/client/app/components/story/StorySourceCode.vue +++ b/packages/histoire/src/client/app/components/story/StorySourceCode.vue @@ -1,12 +1,11 @@