This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
8102370
commit 6da3b42
Showing
5 changed files
with
132 additions
and
2 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,32 @@ | ||
<template> | ||
<div :dusk="`attribute_${label.replaceAll(' ', '_').toLowerCase()}`" | ||
class="border-x md:border-x-0 border-b border-gray-200 first-of-type:border-t | ||
first-of-type:rounded-t last-of-type:rounded-b | ||
grid grid-cols-8 items-start gap-4 md:gap-6 | ||
pl-3 pr-5 pt-3 md:pt-5 pb-5 md:px-0"> | ||
|
||
<!-- Label --> | ||
<div class="text-gray-500/90 col-span-8 md:col-span-2 lg:col-span-3"> | ||
{{ label }} | ||
</div> | ||
|
||
<!-- Value --> | ||
<div class="text-right md:text-left text-gray-700 col-span-8 md:col-span-6 lg:col-span-5"> | ||
<slot></slot> | ||
</div> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
export default | ||
{ | ||
/** | ||
* Define the public properties. | ||
* | ||
*/ | ||
props : { | ||
'label' : { type : String, default : '' }, | ||
}, | ||
} | ||
</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
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,65 @@ | ||
<template> | ||
<div :class="border ? 'border-t border-gray-300/50 pt-9 mt-10' : ''" | ||
v-show="! blank(items) && ! blank(items.filter(item => typeof item.show === 'boolean' ? item.show : item['show']()))"> | ||
|
||
<!-- Items --> | ||
<div :key="item.id" | ||
v-for="item in items" | ||
@click="item['action']()" | ||
:dusk="`operation-${item.id}`" | ||
:class="item?.type === 'separator' ? '' : 'cursor-pointer group'" | ||
v-show="typeof item.show === 'boolean' ? item.show : item['show']()"> | ||
|
||
<!-- Separator --> | ||
<div v-if="item?.type === 'separator'" | ||
class="border-t border-gray-300/50 my-9"> | ||
</div> | ||
|
||
<!-- Item --> | ||
<div v-if="item?.type !== 'separator'" | ||
class="flex items-center group mb-7"> | ||
|
||
<!-- Icon --> | ||
<i class="fas fa-fw -ml-6px" | ||
:class="[item.icon, item.color]"> | ||
</i> | ||
|
||
<!-- Details --> | ||
<div class="ml-3"> | ||
|
||
<!-- Title --> | ||
<div class="font-semibold text-gray-800 group-hover:text-sky-600 animated"> | ||
{{ item.title }} | ||
</div> | ||
|
||
<!-- Summary --> | ||
<div v-if="! blank(item.summary)" | ||
class="text-14px text-gray-500/90 mt-6px"> | ||
|
||
<!-- Text --> | ||
{{ item.summary }} | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
export default | ||
{ | ||
/** | ||
* Define the public properties. | ||
* | ||
*/ | ||
props : { | ||
'border' : { type : Boolean, default : true }, | ||
'items' : { type : Array, default : [] }, | ||
}, | ||
} | ||
</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,33 @@ | ||
<template> | ||
<div @click="redirect(url)" | ||
class="flex items-center mb-6" | ||
:class="url ? 'cursor-pointer group' : ''"> | ||
|
||
<!-- Icon --> | ||
<i :class="[icon, color]" | ||
class="fa-fw text-16px -ml-6px mr-3"> | ||
</i> | ||
|
||
<!-- Text --> | ||
<span class="font-medium text-gray-700 group-hover:text-sky-700 animated"> | ||
{{ text }} | ||
</span> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
export default | ||
{ | ||
/** | ||
* Define the public properties. | ||
* | ||
*/ | ||
props : { | ||
'color' : { type : String, default : 'text-gray-400' }, | ||
'icon' : { type : String, default : '' }, | ||
'text' : { type : String, default : '' }, | ||
'url' : { type : String, default : '' }, | ||
}, | ||
} | ||
</script> |