-
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
Showing
45 changed files
with
733 additions
and
16 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,5 @@ | ||
--- | ||
'@jeanne-mas/svelte-ui': patch | ||
--- | ||
|
||
Added pagination component |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -89,6 +89,8 @@ | |
variant, | ||
})}" | ||
el="{el}" | ||
data-size="{size}" | ||
data-variant="{variant}" | ||
let:builder | ||
on:click | ||
on:keydown | ||
|
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 |
---|---|---|
|
@@ -92,6 +92,8 @@ | |
size, | ||
variant, | ||
})}" | ||
data-size="{size}" | ||
data-variant="{variant}" | ||
el="{el}" | ||
let:builder | ||
on:click | ||
|
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 |
---|---|---|
|
@@ -78,6 +78,7 @@ | |
breakpoint, | ||
class: attributes.class, | ||
})}" | ||
data-breakpoint="{breakpoint}" | ||
> | ||
<slot /> | ||
</div> |
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 |
---|---|---|
|
@@ -78,6 +78,7 @@ | |
breakpoint, | ||
class: attributes.class, | ||
})}" | ||
data-breakpoint="{breakpoint}" | ||
> | ||
<slot /> | ||
</div> |
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 |
---|---|---|
|
@@ -84,6 +84,7 @@ | |
variant, | ||
})}" | ||
role="alert" | ||
data-variant="{variant}" | ||
> | ||
<slot /> | ||
</div> |
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 |
---|---|---|
|
@@ -112,6 +112,8 @@ | |
size, | ||
variant, | ||
})}" | ||
data-size="{size}" | ||
data-variant="{variant}" | ||
on:click | ||
on:keydown | ||
> | ||
|
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 |
---|---|---|
|
@@ -78,6 +78,7 @@ | |
breakpoint, | ||
class: attributes.class, | ||
})}" | ||
data-breakpoint="{breakpoint}" | ||
> | ||
<slot /> | ||
</div> |
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 |
---|---|---|
|
@@ -69,6 +69,8 @@ | |
xAxis, | ||
yAxis, | ||
})}" | ||
data-x-axis="{xAxis}" | ||
data-y-axis="{yAxis}" | ||
> | ||
<slot /> | ||
</div> |
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,48 @@ | ||
<script context="module" lang="ts"> | ||
import type { SvelteHTMLElements } from 'svelte/elements'; | ||
import { tv } from 'tailwind-variants'; | ||
import type { Events, Slot } from '$lib/utils/types.js'; | ||
/** | ||
* The attributes of the content. | ||
*/ | ||
export type Attributes = SvelteHTMLElements['ul']; | ||
/** | ||
* The props of the content. | ||
*/ | ||
export type Props = Record<never, never>; | ||
/** | ||
* The slots of the content. | ||
*/ | ||
export type Slots = { | ||
default: Slot; | ||
}; | ||
/** | ||
* The styles of the content. | ||
*/ | ||
export const styles = tv({ | ||
base: ['flex flex-row items-center gap-1'], | ||
}); | ||
</script> | ||
|
||
<script lang="ts"> | ||
type $$Events = Events; | ||
type $$Props = Attributes & Props; | ||
type $$Slots = Slots; | ||
$: attributes = $$restProps as Attributes; | ||
</script> | ||
|
||
<!-- <style lang="postcss"> | ||
</style> --> | ||
|
||
<ul | ||
{...attributes} | ||
class="{styles({ | ||
class: attributes.class, | ||
})}" | ||
> | ||
<slot /> | ||
</ul> |
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,54 @@ | ||
<script context="module" lang="ts"> | ||
import Ellipsis from 'lucide-svelte/icons/ellipsis'; | ||
import type { SvelteHTMLElements } from 'svelte/elements'; | ||
import { tv } from 'tailwind-variants'; | ||
import type { Events, Slot } from '$lib/utils/types.js'; | ||
/** | ||
* The attributes of the ellipsis. | ||
*/ | ||
export type Attributes = SvelteHTMLElements['span']; | ||
/** | ||
* The props of the ellipsis. | ||
*/ | ||
export type Props = Record<never, never>; | ||
/** | ||
* The slots of the ellipsis. | ||
*/ | ||
export type Slots = { | ||
default: Slot; | ||
}; | ||
/** | ||
* The styles of the ellipsis. | ||
*/ | ||
export const styles = tv({ | ||
base: ['flex h-9 w-9 items-center justify-center'], | ||
}); | ||
</script> | ||
|
||
<script lang="ts"> | ||
type $$Events = Events; | ||
type $$Props = Attributes & Props; | ||
type $$Slots = Slots; | ||
$: attributes = $$restProps as Attributes; | ||
</script> | ||
|
||
<!-- <style lang="postcss"> | ||
</style> --> | ||
|
||
<span | ||
{...attributes} | ||
class="{styles({ | ||
class: attributes.class, | ||
})}" | ||
aria-hidden="true" | ||
> | ||
<slot> | ||
<Ellipsis class="h-4 w-4" /> | ||
|
||
<span class="sr-only">More pages</span> | ||
</slot> | ||
</span> |
Oops, something went wrong.