-
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.
Merge pull request #40 from pvdthings/dev
Release - Fix Catalog Bookmarks Scroll
- Loading branch information
Showing
11 changed files
with
113 additions
and
87 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
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,9 @@ | ||
<div class="btm-nav bg-neutral-100 border-t border-neutral-400 upward-shadow box-content lg:hidden"> | ||
<slot /> | ||
</div> | ||
|
||
<style> | ||
.upward-shadow { | ||
box-shadow: 0 -1px 4px rgba(50, 50, 50, 0.2); | ||
} | ||
</style> |
20 changes: 20 additions & 0 deletions
20
apps/web/src/lib/components/Shell/BottomNavigationItem.svelte
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,20 @@ | ||
<script lang="ts"> | ||
export let active: boolean = undefined; | ||
export let icon: string; | ||
export let indicatorValue: any = undefined; | ||
export let label: string; | ||
</script> | ||
|
||
<button class="bg-transparent" class:active on:click> | ||
<div class="indicator"> | ||
{#if indicatorValue} | ||
<span class="indicator-item badge bg-indigo-500 border-indigo-600 text-white"> | ||
{indicatorValue} | ||
</span> | ||
{/if} | ||
<img src={icon} alt={label} class="w-5 h-5" /> | ||
</div> | ||
<div class="text-xs font-display font-semibold"> | ||
{label} | ||
</div> | ||
</button> |
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 @@ | ||
export { default as AppBar } from "./AppBar.svelte"; | ||
export { default as BottomNavigation } from "./BottomNavigation.svelte"; | ||
export { default as BottomNavigationItem } from "./BottomNavigationItem.svelte"; |
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 |
---|---|---|
@@ -1,30 +1,54 @@ | ||
<script> | ||
import { createEventDispatcher } from 'svelte'; | ||
<script lang="ts"> | ||
import { createEventDispatcher } from 'svelte'; | ||
import XMarkIcon from '$lib/icons/x-mark.svg'; | ||
export let value = ""; | ||
export let customClass = ""; | ||
export let invalid = false; | ||
export let clear: boolean = false; | ||
export let value: string = ''; | ||
export let invalid: boolean = false; | ||
export let leadingIcon: string = undefined; | ||
const dispatch = createEventDispatcher(); | ||
const dispatch = createEventDispatcher(); | ||
function keyReleased(event) { | ||
if (event.key === 'Enter') | ||
dispatch('enter'); | ||
} | ||
const keyReleased = (event: { key: string }) => { | ||
if (event.key === 'Enter') dispatch('enter'); | ||
}; | ||
const onClear = () => { | ||
dispatch('clear'); | ||
}; | ||
</script> | ||
|
||
<input | ||
{...$$props} | ||
bind:value | ||
on:input | ||
on:change | ||
on:keyup={keyReleased} | ||
class:invalid | ||
class="w-full px-4 py-2 pl-10 rounded-md border border-neutral-400 shadow-high outline-none {customClass}" | ||
/> | ||
<div | ||
class="bg-white flex flex-row items-center px-2 rounded-md border border-neutral-400 shadow-high overflow-hidden" | ||
> | ||
{#if leadingIcon} | ||
<img src={leadingIcon} alt="" class="w-6 h-6 mr-2" /> | ||
{/if} | ||
<input | ||
{...$$props} | ||
bind:value | ||
on:input | ||
on:change | ||
on:keyup={keyReleased} | ||
class:invalid | ||
class="flex-grow py-2 outline-none" | ||
/> | ||
<button | ||
class="btn btn-circle btn-sm btn-ghost" | ||
class:invisible={!clear} | ||
disabled={!clear} | ||
on:click={onClear} | ||
> | ||
<img src={XMarkIcon} alt="Clear" class="w-5 h-5" /> | ||
</button> | ||
</div> | ||
|
||
<style lang="postcss"> | ||
.invalid { | ||
@apply bg-red-200; | ||
} | ||
</style> | ||
.invalid { | ||
@apply bg-red-200; | ||
} | ||
button.invisible { | ||
visibility: hidden; | ||
} | ||
</style> |
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