-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI - hosts step 2, second cut (#359)
Signed-off-by: Kial Jinnah <[email protected]>
- Loading branch information
Showing
16 changed files
with
185 additions
and
140 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,49 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
text?: string, | ||
title?: string, | ||
label: string, | ||
labelExpanded: string, | ||
icon?: string | ||
}>() | ||
const isExpanded = ref(false) | ||
</script> | ||
<template> | ||
<div> | ||
<UButton | ||
:padded="false" | ||
class="font-bold" | ||
color="primary" | ||
variant="link" | ||
:icon="icon || 'i-mdi-help-circle-outline'" | ||
:label="(isExpanded && labelExpanded) ? labelExpanded : label" | ||
@click="isExpanded = !isExpanded" | ||
/> | ||
<ConnectTransitionCollapse> | ||
<div | ||
v-if="isExpanded" | ||
class="mt-4 space-y-4 border-y border-dashed border-gray-700 pb-4 pt-8" | ||
> | ||
<slot> | ||
<slot name="title"> | ||
<strong v-if="title" class="flex justify-center"> | ||
{{ title }} | ||
</strong> | ||
</slot> | ||
<slot name="text"> | ||
<p>{{ text }}</p> | ||
</slot> | ||
</slot> | ||
<div class="flex justify-end"> | ||
<UButton | ||
class="underline" | ||
:label="labelExpanded" | ||
variant="link" | ||
@click="isExpanded = !isExpanded" | ||
/> | ||
</div> | ||
</div> | ||
</ConnectTransitionCollapse> | ||
</div> | ||
</template> |
File renamed without changes.
File renamed without changes.
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.