-
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
Showing
13 changed files
with
136 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import UnorderedList from './fragments/list/unordered-list.vue'; | ||
import CardTitle from './fragments/text/card-title.vue'; | ||
import CardDescription from './fragments/text/card-description.vue'; | ||
import Overline from './fragments/text/overline.vue'; | ||
import Tile from './fragments/tile/index.vue'; | ||
|
||
export { | ||
UnorderedList, | ||
CardTitle, | ||
CardDescription, | ||
Overline, | ||
Tile, | ||
} |
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,3 @@ | ||
<template> | ||
<p class="text-sm text-color-secondary"> <slot /> </p> | ||
</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,3 @@ | ||
<template> | ||
<p class="text-base"> <slot /> </p> | ||
</template> |
2 changes: 1 addition & 1 deletion
2
src/templates/overline/index.vue → src/fragments/text/overline.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
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,5 @@ | ||
<template> | ||
<div class="bg-[--surface-400] rounded h-6 w-6 flex justify-center items-center"> | ||
<p class="text-sm"> <slot /> </p> | ||
</div> | ||
</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,51 @@ | ||
<template> | ||
<a :href="link" :title="title" class="no-underline flex group border-radius md:max-w-sm group"> | ||
<Card :pt="{ | ||
root: { class: 'w-full shadow-none bg-transparent flex flex-col rounded-md border surface-border border surface-border overflow-hidden group-hover:border-current h-full' } | ||
}"> | ||
<template v-if="$slots.header" #header> | ||
<div class="flex flex-col gap-8" :class="[ | ||
{ 'p-4 md:p-6': spacing === 'compact' }, | ||
{ 'p-5 md:p-8': spacing === 'base' }, | ||
{ 'p-6 md:p-10': spacing === 'relaxed' }, | ||
]"> | ||
<slot name="header" /> | ||
</div> | ||
</template> | ||
<template #content> | ||
<template v-if="$slots.content || $slots.actions"> | ||
<div class="flex flex-col gap-8" :class="[ | ||
{ 'p-4 md:p-6': spacing === 'compact' }, | ||
{ 'p-5 md:p-8': spacing === 'base' }, | ||
{ 'p-6 md:p-10': spacing === 'relaxed' }, | ||
]"> | ||
<div class="flex flex-col gap-3"> | ||
<slot name="content" /> | ||
</div> | ||
<template v-if="$slots.actions"> | ||
<div class="flex flex-col md:flex-row flex-wrap gap-2"> | ||
<slot name="actions" /> | ||
</div> | ||
</template> | ||
</div> | ||
</template> | ||
<template v-if="$slots['content-raw']"> | ||
<slot name="content-raw" /> | ||
</template> | ||
</template> | ||
</Card> | ||
</a> | ||
</template> | ||
|
||
<script setup> | ||
import Card from "primevue/card" | ||
defineProps({ | ||
spacing: { | ||
type: String, | ||
required: false, | ||
options: ['compact', 'relaxed', 'base'], | ||
default: 'base' | ||
}, | ||
}) | ||
</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,49 @@ | ||
<template> | ||
<Card :pt="{ | ||
root: { class: 'w-full shadow-none bg-transparent flex flex-col rounded-md border surface-border overflow-hidden h-full' } | ||
}"> | ||
<template v-if="$slots.header" #header> | ||
<div class="flex flex-col gap-8" :class="[ | ||
{'p-4 md:p-6' : spacing === 'compact'}, | ||
{'p-5 md:p-8' : spacing === 'base'}, | ||
{'p-6 md:p-10' : spacing === 'relaxed'}, | ||
]"> | ||
<slot name="header" /> | ||
</div> | ||
</template> | ||
<template #content> | ||
<template v-if="$slots.content || $slots.actions"> | ||
<div class="flex flex-col gap-8" :class="[ | ||
{'p-4 md:p-6' : spacing === 'compact'}, | ||
{'p-5 md:p-8' : spacing === 'base'}, | ||
{'p-6 md:p-10' : spacing === 'relaxed'}, | ||
]"> | ||
<div class="flex flex-col gap-3"> | ||
<slot name="content"/> | ||
</div> | ||
<template v-if="$slots.actions"> | ||
<div class="flex flex-col md:flex-row flex-wrap gap-2"> | ||
<slot name="actions" /> | ||
</div> | ||
</template> | ||
</div> | ||
</template> | ||
<template v-if="$slots['content-raw']"> | ||
<slot name="content-raw" /> | ||
</template> | ||
</template> | ||
</Card> | ||
</template> | ||
|
||
<script setup> | ||
import Card from "primevue/card" | ||
defineProps({ | ||
spacing: { | ||
type: String, | ||
required: false, | ||
options: ['compact', 'relaxed', 'base'], | ||
default: 'base' | ||
}, | ||
}) | ||
</script> |
This file was deleted.
Oops, something went wrong.
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