fix: build - retire storybook
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import Primary from "./Primary.vue"
|
||||
|
||||
export default {
|
||||
component: Primary,
|
||||
title: "Components/Button",
|
||||
}
|
||||
|
||||
const Template = (_args, { argTypes }) => ({
|
||||
components: { Primary },
|
||||
props: Object.keys(argTypes),
|
||||
template: `<ButtonPrimary v-bind="$props" v-on="$props" />`,
|
||||
})
|
||||
|
||||
export const ButtonPrimary = Template.bind({})
|
||||
ButtonPrimary.args = {
|
||||
label: "Primary",
|
||||
}
|
||||
@@ -15,7 +15,7 @@
|
||||
:class="[
|
||||
color
|
||||
? `text-${color}-800 bg-${color}-200 hover:text-${color}-900 hover:bg-${color}-300 focus:text-${color}-900 focus:bg-${color}-300`
|
||||
: `text-primary bg-accent hover:bg-accentDark focus:bg-accentDark`,
|
||||
: `text-accentContrast bg-accent hover:bg-accentDark focus:bg-accentDark`,
|
||||
label ? 'px-4' : 'px-2',
|
||||
rounded ? 'rounded-full' : 'rounded',
|
||||
{ 'opacity-75 cursor-not-allowed': disabled },
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
import Secondary from "./Secondary.vue"
|
||||
|
||||
export default {
|
||||
component: Secondary,
|
||||
title: "Components/Button",
|
||||
}
|
||||
|
||||
const Template = (_args, { argTypes }) => ({
|
||||
components: { Secondary },
|
||||
props: Object.keys(argTypes),
|
||||
template: `<ButtonSecondary v-bind="$props" v-on="$props" />`,
|
||||
})
|
||||
|
||||
export const ButtonSecondary = Template.bind({})
|
||||
ButtonSecondary.args = {
|
||||
label: "Secondary",
|
||||
}
|
||||
Reference in New Issue
Block a user