-
Notifications
You must be signed in to change notification settings - Fork 0
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
Matthew Holloway
authored and
Matthew Holloway
committed
Oct 2, 2024
1 parent
af840e0
commit ac1001c
Showing
9 changed files
with
159 additions
and
16 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,26 @@ | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: ./client | ||
|
||
- name: Build Storybook | ||
run: npm run story:build | ||
working-directory: ./client | ||
|
||
- name: Lost Pixel | ||
uses: lost-pixel/lost-pixel@v3.8.0 |
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,25 @@ | ||
<template> | ||
<Story | ||
title="Alert" | ||
:layout="{ | ||
type: 'grid', | ||
width: 350, | ||
defaultColorScheme: 'light' | ||
}" | ||
> | ||
<Variant title="Warning Alert" theme="light"> | ||
<Alert variant="warning" heading="This alert is a warning"> | ||
<p class="text-sm"> | ||
For more information, please refer to the documentation | ||
</p> | ||
</Alert> | ||
</Variant> | ||
<Variant title="Info Alert"> | ||
<Alert variant="info" heading="This RFC is now obsolete"> | ||
<p class="text-sm"> | ||
For more information, please refer to the documentation | ||
</p> | ||
</Alert> | ||
</Variant> | ||
</Story> | ||
</template> |
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,22 @@ | ||
<template> | ||
<Story | ||
title="Breadcrumbs" | ||
:layout="{ | ||
type: 'grid', | ||
width: '500px' | ||
}" | ||
> | ||
<Variant title="Short breadcrumbs"> | ||
<Breadcrumbs :breadcrumb-items="[{ url: '/', label: 'Home' }]" /> | ||
</Variant> | ||
<Variant title="Long breadcrumbs"> | ||
<Breadcrumbs | ||
:breadcrumb-items="[ | ||
{ url: '/', label: 'Home' }, | ||
{ url: '/info', label: 'Documents' }, | ||
{ url: '/info', label: 'Something else' } | ||
]" | ||
/> | ||
</Variant> | ||
</Story> | ||
</template> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<Story | ||
title="DateYearMonthRange" | ||
:layout="{ | ||
type: 'grid', | ||
width: 500 | ||
}" | ||
> | ||
<span class="text-black"> | ||
<DateYearMonthRange | ||
v-model:start="startValue" | ||
v-model:end="endValue" | ||
:start-range-date="OLDEST_RFC" | ||
:end-range-date="NEWEST_POTENTIAL_RFC" | ||
label="Publication date" | ||
start-label="from" | ||
start-placeholder="Date from" | ||
end-label="to" | ||
end-placeholder="Date to" | ||
/> | ||
</span> | ||
</Story> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
const startValue = ref('2020-1') | ||
const endValue = ref('2023-3') | ||
const OLDEST_RFC = new Date('1969-01-01') | ||
const NEWEST_POTENTIAL_RFC = new Date() | ||
</script> |
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,19 @@ | ||
<template> | ||
<Story | ||
title="DiamondText" | ||
:layout="{ | ||
type: 'grid', | ||
width: 200 | ||
}" | ||
> | ||
<Variant title="1 char DiamondText"> | ||
<DiamondText text="3" /> | ||
</Variant> | ||
<Variant title="2 chars DiamondText"> | ||
<DiamondText text="33" /> | ||
</Variant> | ||
<Variant title="3 chars DiamondText"> | ||
<DiamondText text="333" /> | ||
</Variant> | ||
</Story> | ||
</template> |
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,15 @@ | ||
<template> | ||
<Story | ||
title="Footer" | ||
:layout="{ | ||
type: 'single' | ||
}" | ||
> | ||
<Variant title="Footer"> | ||
<Footer /> | ||
</Variant> | ||
<Variant title="Footer"> | ||
<Footer /> | ||
</Variant> | ||
</Story> | ||
</template> |
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