-
-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/neo-switch
- Loading branch information
Showing
21 changed files
with
358 additions
and
231 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 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
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
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,36 @@ | ||
<template> | ||
<Story title="NeoCarousel" :layout="{ type: 'grid', width: '600px' }"> | ||
<Variant title="NeoCarousel"> | ||
<NeoCarousel> | ||
<NeoCarouselItem v-for="(carousel, i) in carousels" :key="i"> | ||
<section | ||
class="ex-slide" | ||
:style="{ 'background-color': carousel.color }"> | ||
<h1>{{ carousel.text }}</h1> | ||
</section> | ||
</NeoCarouselItem> | ||
</NeoCarousel> | ||
</Variant> | ||
</Story> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import NeoCarousel from './NeoCarousel.vue' | ||
import NeoCarouselItem from './NeoCarouselItem.vue' | ||
const carousels = [ | ||
{ text: 'Slide 1', color: '#445e00' }, | ||
{ text: 'Slide 2', color: '#006724' }, | ||
{ text: 'Slide 3', color: '#b60000' }, | ||
{ text: 'Slide 4', color: '#f4c300' }, | ||
{ text: 'Slide 5', color: '#005c98' }, | ||
] | ||
</script> | ||
|
||
<style> | ||
.ex-slide { | ||
padding: 9rem 4.5rem; | ||
color: #fff; | ||
text-align: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script lang="ts"> | ||
import { OStepItem } from '@oruga-ui/oruga' | ||
export default { | ||
extends: OStepItem, | ||
} | ||
</script> |
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,50 @@ | ||
@import '../../scss/theme.scss'; | ||
@import '@oruga-ui/oruga/src/scss/utilities/expressions.scss'; | ||
@import '@oruga-ui/oruga/src/scss/utilities/variables.scss'; | ||
@import '@oruga-ui/oruga/src/scss/utilities/animations.scss'; | ||
@import '@oruga-ui/oruga/src/scss/utilities/helpers.scss'; | ||
@import '@oruga-ui/oruga/src/scss/components/steps'; | ||
|
||
.o-steps { | ||
&__marker { | ||
@include ktheme() { | ||
color: theme('black'); | ||
} | ||
} | ||
|
||
&__title { | ||
@include ktheme() { | ||
color: theme('k-primary'); | ||
background-color: transparent; | ||
} | ||
} | ||
|
||
&__divider { | ||
@include ktheme() { | ||
background-image: linear-gradient( | ||
to left, | ||
theme('k-grey') 50%, | ||
theme('k-primary') 50% | ||
); | ||
} | ||
} | ||
|
||
&__nav-item-active { | ||
.o-steps__marker { | ||
@include ktheme() { | ||
color: theme('k-primary'); | ||
background-color: theme('black'); | ||
border-color: theme('k-primary'); | ||
} | ||
} | ||
} | ||
|
||
&__nav-item-previous { | ||
.o-steps__marker { | ||
@include ktheme() { | ||
background-color: theme('k-primary'); | ||
color: theme('text-color'); | ||
} | ||
} | ||
} | ||
} |
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,19 @@ | ||
<template> | ||
<Story title="NeoSteps" :layout="{ type: 'grid', width: '600px' }"> | ||
<Variant title="NeoSteps"> | ||
<NeoSteps v-model="activeStep" :rounded="false" :has-navigation="false"> | ||
<NeoStepItem clickable label="Account">account</NeoStepItem> | ||
<NeoStepItem clickable label="Profile">profile</NeoStepItem> | ||
<NeoStepItem clickable label="Social">social</NeoStepItem> | ||
</NeoSteps> | ||
</Variant> | ||
</Story> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
import NeoSteps from './NeoSteps.vue' | ||
import NeoStepItem from './NeoStepItem.vue' | ||
const activeStep = ref(0) | ||
</script> |
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,11 @@ | ||
<script lang="ts"> | ||
import { OSteps } from '@oruga-ui/oruga' | ||
export default { | ||
extends: OSteps, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import './NeoSteps.scss'; | ||
</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
Oops, something went wrong.