-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
949 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig } from 'histoire' | ||
import { HstVue } from '@histoire/plugin-vue' | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
HstVue(), | ||
], | ||
setupFile: '/src/histoire/histoire.setup.ts', | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
packages/ui/src/components/va-button/stories/VaButton-color.story.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<story title="va-button/color"> | ||
<va-button color="info">Info</va-button> | ||
<va-button preset="primary" color="danger">Danger</va-button> | ||
<va-button preset="secondary" color="warning">Warning</va-button> | ||
<va-button preset="plain" color="success">Success</va-button> | ||
<va-button preset="plainOpacity" color="textPrimary">Dark</va-button> | ||
</story> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { VaButton } from './../index' | ||
</script> |
13 changes: 13 additions & 0 deletions
13
packages/ui/src/components/va-button/stories/VaButton-disabled.story.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<story title="va-button/disabled"> | ||
<va-button disabled>Accent (default)</va-button> | ||
<va-button preset="primary" disabled>Primary</va-button> | ||
<va-button preset="secondary" disabled>Secondary</va-button> | ||
<va-button preset="plain" disabled>Plain</va-button> | ||
<va-button preset="plainOpacity" disabled>Plain with opacity</va-button> | ||
</story> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { VaButton } from '../index' | ||
</script> |
20 changes: 20 additions & 0 deletions
20
packages/ui/src/components/va-button/stories/VaButton-hover-behavior.story.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<story title="va-button/hover-behavior"> | ||
<va-button :backgroundOpacity="0.9" hoverBehavior="opacity" :hoverOpacity="0.4"> | ||
Hover me | ||
</va-button> | ||
<va-button preset="primary" hoverBehavior="mask" hoverMaskColor="warning" :hoverOpacity="1"> | ||
Hover me | ||
</va-button> | ||
<va-button preset="secondary" hoverBehavior="opacity" :hoverOpacity="0.4"> | ||
Hover me | ||
</va-button> | ||
<va-button preset="plain" hoverBehavior="mask" hoverMaskColor="warning" :hoverOpacity="1"> | ||
Hover me | ||
</va-button> | ||
</story> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { VaButton } from '../index' | ||
</script> |
23 changes: 23 additions & 0 deletions
23
packages/ui/src/components/va-button/stories/VaButton-icon.story.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<story title="va-button/icon" :layout="{ type: 'grid', width: '100%' }"> | ||
<variant title="icon to the side"> | ||
<va-button icon="create">Edit Button</va-button> | ||
<va-button preset="secondary" icon="gavel" iconRight="clear">Mixed Button</va-button> | ||
<va-button preset="plainOpacity" icon="gavel">Plain with icon</va-button> | ||
<va-button preset="primary" size="small" icon="create">Small Edit Button</va-button> | ||
<va-button preset="primary" icon="gavel" icon-color="warning">Mixed Colors</va-button> | ||
<va-button preset="primary" icon-right="clear">Dropdown Button</va-button> | ||
</variant> | ||
<variant title="icon only"> | ||
<va-button icon="block" /> | ||
<va-button preset="primary" icon="block" /> | ||
<va-button preset="secondary" icon="block" /> | ||
<va-button preset="plain" icon="block" /> | ||
<va-button preset="plainOpacity" icon="block" /> | ||
</variant> | ||
</story> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { VaButton } from '../index' | ||
</script> |
Oops, something went wrong.