generated from dvcol/svelte-lib-template
-
-
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.
feat(tabs): adds animated tab card wrapper
- Loading branch information
Showing
20 changed files
with
350 additions
and
129 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
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,24 @@ | ||
import type { Snippet } from 'svelte'; | ||
import type { HTMLNeoBaseElement } from '~/utils/html-element.utils.js'; | ||
|
||
export type NeoTransitionContainerProps = { | ||
// Snippets | ||
/** | ||
* Snippet to display as the container content. | ||
*/ | ||
children?: Snippet; | ||
|
||
// States | ||
/** | ||
* The HTML tag to use for the container. | ||
* @default 'div' | ||
*/ | ||
tag?: keyof HTMLElementTagNameMap; | ||
|
||
// Styles | ||
|
||
/** | ||
* Overflow style. | ||
*/ | ||
overflow: CSSStyleDeclaration['overflow']; | ||
} & HTMLNeoBaseElement; |
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,32 @@ | ||
<script lang="ts"> | ||
import type { NeoTransitionContainerProps } from '~/container/NeoTransitionContainer.model.js'; | ||
const { | ||
// Snippets | ||
children, | ||
// States | ||
tag = 'div', | ||
// Styles | ||
overflow = 'hidden', | ||
// Other props | ||
...rest | ||
}: NeoTransitionContainerProps = $props(); | ||
</script> | ||
|
||
<svelte:element this={tag} class="neo-transition-container" style:overflow {...rest}> | ||
{@render children?.()} | ||
</svelte:element> | ||
|
||
<style lang="scss"> | ||
.neo-transition-container { | ||
display: grid; | ||
grid-template-areas: 'transition'; | ||
:global(> *) { | ||
grid-area: transition; | ||
} | ||
} | ||
</style> |
This file was deleted.
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
Oops, something went wrong.