-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update deps
- Loading branch information
Showing
21 changed files
with
107 additions
and
113 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,23 @@ | ||
<script lang="ts"> | ||
import { name } from '$root/package.json' | ||
import { DemoNav } from '$site' | ||
</script> | ||
|
||
<h1> | ||
<img src="favicon.svg" alt={name} height="50" width="50" /> Svelte MultiSelect | ||
</h1> | ||
|
||
<main> | ||
<DemoNav style="place-content: center;" /> | ||
|
||
<slot /> | ||
</main> | ||
|
||
<style> | ||
h1 { | ||
text-align: center; | ||
display: flex; | ||
place-content: center; | ||
place-items: center; | ||
} | ||
</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
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
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
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
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script lang="ts"> | ||
import { page } from '$app/stores' | ||
export let style: string | null = null | ||
const routes = Object.keys( | ||
// eslint-disable-next-line @typescript-eslint/quotes | ||
import.meta.glob('/src/routes/\\(demos\\)/*/+page*.{svx,md,svelte}') | ||
).map((filename) => filename.split(`/`)[4]) | ||
if (routes.length < 3) { | ||
throw new Error(`Too few demo routes found: ${routes.length}`) | ||
} | ||
$: is_current = (path: string) => { | ||
if (path === $page.url.pathname) return `page` | ||
if (path !== `/` && $page.url.pathname.includes(path)) return `page` | ||
return undefined | ||
} | ||
</script> | ||
|
||
<nav {style}> | ||
{#each routes as href, idx} | ||
{#if idx > 0}<strong>•</strong>{/if} | ||
<a {href} aria-current={is_current(href)}>{href}</a> | ||
{/each} | ||
</nav> | ||
|
||
<style> | ||
nav { | ||
display: flex; | ||
gap: 1em 1ex; | ||
flex-wrap: wrap; | ||
} | ||
nav > a { | ||
padding: 0 4pt; | ||
background-color: rgba(255, 255, 255, 0.1); | ||
border-radius: 3pt; | ||
transition: 0.2s; | ||
} | ||
nav > a[aria-current='page'] { | ||
color: mediumseagreen; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export { default as ColorSlot } from './ColorSlot.svelte' | ||
export { default as DemoNav } from './DemoNav.svelte' | ||
export { default as Examples } from './Examples.svx' | ||
export { default as IconifySlot } from './IconifySlot.svelte' | ||
export { default as LanguageSlot } from './LanguageSlot.svelte' | ||
export { default as MinusIcon } from './MinusIcon.svelte' | ||
export { default as RepoSlot } from './RepoSlot.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
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