-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
1 parent
b9281d7
commit 7616048
Showing
6 changed files
with
87 additions
and
4 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,13 @@ | ||
<script lang="ts"> | ||
export let isActive = false; | ||
export let stepIndex: number; | ||
export let currentStepIndex: number; | ||
</script> | ||
|
||
<li | ||
data-content="" | ||
class="step | ||
{isActive ? 'step-primary' : ''} | ||
{stepIndex < currentStepIndex && !isActive ? 'step-previous' : ''}"> | ||
<slot /> | ||
</li> |
23 changes: 23 additions & 0 deletions
23
packages/bridge-ui-v2/src/components/Stepper/Stepper.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,23 @@ | ||
<script lang="ts"> | ||
import { classNames } from '$libs/util/classNames'; | ||
export let activeStep: number = 0; | ||
const styles = ` | ||
w-full | ||
md:card | ||
md:rounded-[20px] | ||
md:border | ||
md:border-divider-border | ||
dark:md:glassy-gradient-card | ||
dark:md:glass-background-gradient`; | ||
$: classes = classNames(styles, $$props.class); | ||
</script> | ||
|
||
<div class={classes}> | ||
<div class="card-body body-regular gap-0 p-0"> | ||
<ul class="steps my-[30px]"> | ||
<slot {activeStep} /> | ||
</ul> | ||
</div> | ||
</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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as Step } from './Step.svelte'; | ||
export { default as Stepper } from './Stepper.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