forked from jd-solanki/anu
-
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
1 parent
582ef38
commit e1e6b2c
Showing
160 changed files
with
358 additions
and
143 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
docs/demos/input/DemoInputBasic.vue → ...components/demos/input/DemoInputBasic.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<script lang="ts" setup> | ||
import { reactive } from 'vue' | ||
const creditCardDetails = reactive({ | ||
cardHolderName: '', | ||
creditCardNum: undefined, | ||
expiration: '', | ||
cvc: undefined, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="cards-demo-container"> | ||
<ACard title="Payment Details"> | ||
<div class="grid-row place-items-stretch sm:grid-cols-2 a-card-body"> | ||
<AInput | ||
v-model.trim="creditCardDetails.cardHolderName" | ||
label="Card Holder" | ||
placeholder="John Doe" | ||
class="sm:col-span-2" | ||
/> | ||
<AInput | ||
v-model.number="creditCardDetails.creditCardNum" | ||
label="Card Number" | ||
placeholder="4444 3333 2222 1111" | ||
class="sm:col-span-2" | ||
type="number" | ||
/> | ||
<AInput | ||
v-model.trim="creditCardDetails.expiration" | ||
label="Expiration" | ||
placeholder="23/12" | ||
/> | ||
<AInput | ||
v-model.trim.number="creditCardDetails.cvc" | ||
label="CVV" | ||
placeholder="987" | ||
type="number" | ||
/> | ||
|
||
<!-- Action button --> | ||
<ABtn class="justify-self-start"> | ||
Submit | ||
</ABtn> | ||
</div> | ||
</ACard> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
const input = ref('') | ||
const comments = [ | ||
{ | ||
avatar: 'https://i.pravatar.cc/150?img=47', | ||
name: 'Sarah Floyd', | ||
comment: 'Have you guys thought about seeing a movie? There\'s a new action flick playing at the theater down the street.', | ||
time: '2 hours ago', | ||
}, | ||
{ | ||
avatar: 'https://i.pravatar.cc/150?img=56', | ||
name: 'Ollie Bradley', | ||
comment: 'Ooh, that sounds like fun 😍', | ||
time: '90 minutes ago', | ||
}, | ||
{ | ||
avatar: 'https://i.pravatar.cc/150?img=45', | ||
name: 'Jane Jennings', | ||
comment: 'Sounds like a plan. Let\'s make it happen.', | ||
time: '1 hour ago', | ||
}, | ||
{ | ||
avatar: 'https://i.pravatar.cc/150?img=31', | ||
name: 'Olivia McDaniel', | ||
comment: 'Awesome, I\'ll buy the tickets. See you guys at the theater in a bit..', | ||
time: '15 minutes ago', | ||
}, | ||
] | ||
</script> | ||
|
||
<template> | ||
<div class="cards-demo-container max-w-550px"> | ||
<ACard title="Comments"> | ||
<!-- 👉 Card body --> | ||
<div class="a-card-body a-card-spacer"> | ||
<!-- 👉 Comments Loop --> | ||
<div | ||
v-for="(comment, index) in comments" | ||
:key="index" | ||
class="!mb-5" | ||
> | ||
<!-- Header: Avatar & Name --> | ||
<div class="flex gap-2 mb-2 items-center"> | ||
<AAvatar | ||
class="text-base" | ||
:src="comment.avatar" | ||
/> | ||
<ATypography :title="[comment.name, 'text-base']" /> | ||
</div> | ||
|
||
<!-- Comment --> | ||
<p class="text-sm"> | ||
{{ comment.comment }} | ||
</p> | ||
|
||
<!-- Comment time --> | ||
<ATypography | ||
class="text-xs mt-1" | ||
:subtitle="comment.time" | ||
/> | ||
</div> | ||
|
||
<ATextarea v-model="input" /> | ||
|
||
<ABtn | ||
class="justify-self-start" | ||
@click="input = ''" | ||
> | ||
Comment | ||
</ABtn> | ||
</div> | ||
</ACard> | ||
</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
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.