This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): org registration visuals & validation store (#280)
* Validation logic extracted into validation.ts * UI components for org registration flow Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
- Loading branch information
1 parent
9685ccb
commit 9e62e30
Showing
24 changed files
with
499 additions
and
127 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
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
40 changes: 40 additions & 0 deletions
40
ui/DesignSystem/Component/Registration/NavigationButtons.svelte
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,40 @@ | ||
<script> | ||
import { createEventDispatcher } from "svelte"; | ||
import { Button } from "../../Primitive"; | ||
export let disableSubmit = null; | ||
export let submitLabel = "Next"; | ||
export let cancelLabel = "Cancel"; | ||
export let style = null; | ||
const dispatch = createEventDispatcher(); | ||
const cancel = () => dispatch("cancel"); | ||
const submit = () => dispatch("submit"); | ||
</script> | ||
|
||
<style> | ||
.container { | ||
width: 100%; | ||
display: flex; | ||
justify-content: flex-end; | ||
} | ||
</style> | ||
|
||
<div class="container" {style}> | ||
<div> | ||
<Button | ||
dataCy="cancel-button" | ||
variant="transparent" | ||
on:click={cancel} | ||
style="margin-right: 24px;"> | ||
{cancelLabel} | ||
</Button> | ||
</div> | ||
|
||
<div> | ||
<Button disabled={disableSubmit} on:click={submit} variant="primary"> | ||
{submitLabel} | ||
</Button> | ||
</div> | ||
</div> |
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 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 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 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
Oops, something went wrong.