From 2e1a4007c69c8e626671b5f89d70672c8d1ff297 Mon Sep 17 00:00:00 2001 From: Andreas Philippi Date: Wed, 11 Sep 2024 17:21:14 +0200 Subject: [PATCH] refactor(button): rename imports in stories --- src/primevue/button/button.stories.ts | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/primevue/button/button.stories.ts b/src/primevue/button/button.stories.ts index 25d2003..837163e 100644 --- a/src/primevue/button/button.stories.ts +++ b/src/primevue/button/button.stories.ts @@ -1,12 +1,12 @@ import { Meta, StoryObj } from "@storybook/vue3"; -import Btn from "primevue/button"; +import PrimevueButton from "primevue/button"; import IconCheck from "~icons/ic/baseline-check"; import { html } from "@/lib/tags.ts"; -// Imported as Btn because somehow formatting sometimes changes +// Imported as PrimevueButton because somehow formatting sometimes changes // "Button" to "button", breaking the stories -const meta: Meta = { - component: Btn, +const meta: Meta = { + component: PrimevueButton, tags: ["autodocs"], @@ -30,11 +30,11 @@ type Story = StoryObj; export const Default: Story = { render: (args) => ({ - components: { Btn }, + components: { PrimevueButton }, setup() { return { args }; }, - template: html` `, + template: html` `, }), }; @@ -43,11 +43,11 @@ export const Primary: Story = { severity: "primary", }, render: (args) => ({ - components: { Btn }, + components: { PrimevueButton }, setup() { return { args }; }, - template: html` `, + template: html` `, }), }; @@ -56,11 +56,11 @@ export const Secondary: Story = { severity: "secondary", }, render: (args) => ({ - components: { Btn }, + components: { PrimevueButton }, setup() { return { args }; }, - template: html` `, + template: html` `, }), }; @@ -69,11 +69,11 @@ export const Text: Story = { text: true, }, render: (args) => ({ - components: { Btn }, + components: { PrimevueButton }, setup() { return { args }; }, - template: html` `, + template: html` `, }), }; @@ -85,15 +85,15 @@ export const WithIcon: Story = { iconPos: { type: "select", options: ["left", "right"] }, }, render: (args) => ({ - components: { Btn, IconCheck }, + components: { PrimevueButton, IconCheck }, setup() { return { args }; }, - template: html` + template: html` - `, + `, }), }; @@ -103,15 +103,15 @@ export const IconOnly: Story = { label: undefined, }, render: (args) => ({ - components: { Btn, IconCheck }, + components: { PrimevueButton, IconCheck }, setup() { return { args }; }, - template: html` + template: html` - `, + `, }), }; @@ -120,10 +120,10 @@ export const Loading: Story = { loading: true, }, render: (args) => ({ - components: { Btn }, + components: { PrimevueButton }, setup() { return { args }; }, - template: html` `, + template: html` `, }), };