Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Contacts component * Fixed React Component * Svelte, Vue Component * fix vue listgroup to receive same list props * fix svelte list dividers context * Added contacts props in React ListItem Component and in TypeScript (colors including) * Colors Names changed --------- Co-authored-by: Vladimir Kharlampidi <nolimits4web@gmail.com>
- Loading branch information
1 parent
9724f7c
commit de8e0b2
Showing
14 changed files
with
299 additions
and
9 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,58 @@ | ||
import React from 'react'; | ||
import { | ||
Page, | ||
Navbar, | ||
NavbarBackLink, | ||
List, | ||
ListGroup, | ||
ListItem, | ||
} from 'konsta/react'; | ||
|
||
export default function ContactsListPage() { | ||
const isPreview = document.location.href.includes('examplePreview'); | ||
return ( | ||
<Page> | ||
<Navbar | ||
title="Contacts List" | ||
left={!isPreview && <NavbarBackLink onClick={() => history.back()} />} | ||
/> | ||
<List strongIos> | ||
<ListGroup dividers={false}> | ||
<ListItem title="A" groupTitle contacts /> | ||
<ListItem title="Aaron" contacts /> | ||
<ListItem title="Abbie" contacts /> | ||
<ListItem title="Adam" contacts /> | ||
<ListItem title="Adele" contacts /> | ||
<ListItem title="Agatha" contacts /> | ||
<ListItem title="Agnes" contacts /> | ||
<ListItem title="Albert" contacts /> | ||
<ListItem title="Alexander" contacts /> | ||
</ListGroup> | ||
<ListGroup dividers={false}> | ||
<ListItem title="B" groupTitle contacts /> | ||
<ListItem title="Bailey" contacts /> | ||
<ListItem title="Barclay" contacts /> | ||
<ListItem title="Bartolo" contacts /> | ||
<ListItem title="Bellamy" contacts /> | ||
<ListItem title="Belle" contacts /> | ||
<ListItem title="Benjamin" contacts /> | ||
</ListGroup> | ||
<ListGroup dividers={false}> | ||
<ListItem title="C" groupTitle contacts /> | ||
<ListItem title="Caiden" contacts /> | ||
<ListItem title="Calvin" contacts /> | ||
<ListItem title="Candy" contacts /> | ||
<ListItem title="Carl" contacts /> | ||
<ListItem title="Cherilyn" contacts /> | ||
<ListItem title="Chester" contacts /> | ||
<ListItem title="Chloe" contacts /> | ||
</ListGroup> | ||
<ListGroup dividers={false}> | ||
<ListItem title="V" groupTitle contacts /> | ||
<ListItem title="Vladimir" contacts /> | ||
</ListGroup> | ||
</List> | ||
</Page> | ||
); | ||
} | ||
ContactsListPage.displayName = 'ContactsListPage'; |
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,58 @@ | ||
<script> | ||
import { | ||
Page, | ||
Navbar, | ||
NavbarBackLink, | ||
List, | ||
ListGroup, | ||
ListItem, | ||
} from 'konsta/svelte'; | ||
const isPreview = document.location.href.includes('examplePreview'); | ||
</script> | ||
|
||
<Page> | ||
<Navbar title="Contacts List"> | ||
<svelte:fragment slot="left"> | ||
{#if !isPreview} | ||
<NavbarBackLink onClick={() => history.back()} /> | ||
{/if} | ||
</svelte:fragment> | ||
</Navbar> | ||
<List strongIos> | ||
<ListGroup dividers={false}> | ||
<ListItem title="A" groupTitle contacts/> | ||
<ListItem title="Aaron" contacts /> | ||
<ListItem title="Abbie" contacts /> | ||
<ListItem title="Adam" contacts /> | ||
<ListItem title="Adele" contacts /> | ||
<ListItem title="Agatha" contacts /> | ||
<ListItem title="Agnes" contacts /> | ||
<ListItem title="Albert" contacts /> | ||
<ListItem title="Alexander" contacts /> | ||
</ListGroup> | ||
<ListGroup dividers={false}> | ||
<ListItem title="B" groupTitle contacts /> | ||
<ListItem title="Bailey" contacts /> | ||
<ListItem title="Barclay" contacts /> | ||
<ListItem title="Bartolo" contacts /> | ||
<ListItem title="Bellamy" contacts /> | ||
<ListItem title="Belle" contacts /> | ||
<ListItem title="Benjamin" contacts /> | ||
</ListGroup> | ||
<ListGroup dividers={false}> | ||
<ListItem title="C" groupTitle contacts /> | ||
<ListItem title="Caiden" contacts /> | ||
<ListItem title="Calvin" contacts /> | ||
<ListItem title="Candy" contacts /> | ||
<ListItem title="Carl" contacts /> | ||
<ListItem title="Cherilyn" contacts /> | ||
<ListItem title="Chester" contacts /> | ||
<ListItem title="Chloe" contacts /> | ||
</ListGroup> | ||
<ListGroup dividers={false}> | ||
<ListItem title="V" groupTitle contacts /> | ||
<ListItem title="Vladimir" contacts /> | ||
</ListGroup> | ||
</List> | ||
</Page> |
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,73 @@ | ||
<template> | ||
<k-page> | ||
<k-navbar title="Contacts List"> | ||
<template v-if="!isPreview" #left> | ||
<k-navbar-back-link @click="() => history.back()" /> | ||
</template> | ||
</k-navbar> | ||
<k-list strong-ios> | ||
<k-list-group :dividers="false"> | ||
<k-list-item title="A" contacts group-title /> | ||
<k-list-item title="Aaron" contacts /> | ||
<k-list-item title="Abbie" contacts /> | ||
<k-list-item title="Adam" contacts /> | ||
<k-list-item title="Adele" contacts /> | ||
<k-list-item title="Agatha" contacts /> | ||
<k-list-item title="Agnes" contacts /> | ||
<k-list-item title="Albert" contacts /> | ||
<k-list-item title="Alexander" contacts /> | ||
</k-list-group> | ||
<k-list-group :dividers="false"> | ||
<k-list-item title="B" group-title contacts /> | ||
<k-list-item title="Bailey" contacts /> | ||
<k-list-item title="Barclay" contacts /> | ||
<k-list-item title="Bartolo" contacts /> | ||
<k-list-item title="Bellamy" contacts /> | ||
<k-list-item title="Belle" contacts /> | ||
<k-list-item title="Benjamin" contacts /> | ||
</k-list-group> | ||
<k-list-group :dividers="false"> | ||
<k-list-item title="C" group-title contacts /> | ||
<k-list-item title="Caiden" contacts /> | ||
<k-list-item title="Calvin" contacts /> | ||
<k-list-item title="Candy" contacts /> | ||
<k-list-item title="Carl" contacts /> | ||
<k-list-item title="Cherilyn" contacts /> | ||
<k-list-item title="Chester" contacts /> | ||
<k-list-item title="Chloe" contacts /> | ||
</k-list-group> | ||
<k-list-group :dividers="false"> | ||
<k-list-item title="V" group-title contacts /> | ||
<k-list-item title="Vladimir" contacts /> | ||
</k-list-group> | ||
</k-list> | ||
</k-page> | ||
</template> | ||
<script> | ||
import { | ||
kPage, | ||
kNavbar, | ||
kNavbarBackLink, | ||
kList, | ||
kListGroup, | ||
kListItem, | ||
} from 'konsta/vue'; | ||
export default { | ||
name: 'ContactsListPage', | ||
components: { | ||
kPage, | ||
kNavbar, | ||
kNavbarBackLink, | ||
kList, | ||
kListGroup, | ||
kListItem, | ||
}, | ||
setup() { | ||
return { | ||
isPreview: document.location.href.includes('examplePreview'), | ||
history: window.history, | ||
}; | ||
}, | ||
}; | ||
</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
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.