-
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.
refactor: wt-switcher colors [WTEL-3958]
- Loading branch information
Showing
7 changed files
with
237 additions
and
126 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,40 @@ | ||
<script setup> | ||
import Docs from './wt-switcher-docs.vue'; | ||
import ExampleSwitcher from './examples/example-switcher.vue'; | ||
import ExampleDisabledSwitcher from './examples/example-disabled-switcher.vue'; | ||
import ExampleSwitcherLabelLeft from './examples/example-switcher-label-left.vue'; | ||
</script> | ||
|
||
# WtSwitcher | ||
|
||
## Props | ||
::: raw | ||
<Docs/> | ||
::: | ||
|
||
## Example Switcher | ||
::: raw | ||
<ExampleSwitcher/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-switcher.vue | ||
::: | ||
|
||
## Example Disabled Switcher | ||
::: raw | ||
<ExampleDisabledSwitcher/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-disabled-switcher.vue | ||
::: | ||
|
||
## Example Switcher with Label Left | ||
::: raw | ||
<ExampleSwitcherLabelLeft/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-switcher-label-left.vue | ||
::: |
19 changes: 19 additions & 0 deletions
19
docs/pages/webitel-ui/components/wt-switcher/examples/example-disabled-switcher.vue
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 @@ | ||
<script setup> | ||
</script> | ||
|
||
<template> | ||
<wt-switcher | ||
:value="true" | ||
label="Disabled Active Switcher" | ||
disabled | ||
/> | ||
<wt-switcher | ||
:value="false" | ||
label="Disabled Inactive Switcher" | ||
disabled | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
18 changes: 18 additions & 0 deletions
18
docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher-label-left.vue
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,18 @@ | ||
<script setup> | ||
import { ref } from 'vue'; | ||
const value = ref(false); | ||
</script> | ||
|
||
<template> | ||
<wt-switcher | ||
:value="value" | ||
label="Label Left Switcher" | ||
label-left | ||
@change="value = $event" | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
17 changes: 17 additions & 0 deletions
17
docs/pages/webitel-ui/components/wt-switcher/examples/example-switcher.vue
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,17 @@ | ||
<script setup> | ||
import { ref } from 'vue'; | ||
const value = ref(false); | ||
</script> | ||
|
||
<template> | ||
<wt-switcher | ||
:value="value" | ||
label="Switcher" | ||
@change="value = $event" | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
160 changes: 69 additions & 91 deletions
160
docs/pages/webitel-ui/components/wt-switcher/wt-switcher-docs.vue
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
Oops, something went wrong.