-
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.
docs: wt-status-select, wt-slider docs [WTEL-3955, WTEL-3956]
- Loading branch information
Showing
12 changed files
with
194 additions
and
93 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,41 @@ | ||
<script setup> | ||
import Docs from './wt-slider-docs.vue'; | ||
import ExampleSlider from './examples/example-slider.vue'; | ||
import ExampleDisabledSlider from './examples/example-disabled-slider.vue'; | ||
import ExampleVerticalSlider from './examples/example-vertical-slider.vue'; | ||
</script> | ||
|
||
# WtSlider | ||
|
||
## Props | ||
::: raw | ||
<Docs/> | ||
::: | ||
|
||
## Example Slider | ||
::: raw | ||
<ExampleSlider/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-slider.vue | ||
::: | ||
|
||
## Example Disabled Slider | ||
::: raw | ||
<ExampleDisabledSlider/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-disabled-slider.vue | ||
::: | ||
|
||
## Example Vertical Slider | ||
::: raw | ||
<ExampleVerticalSlider/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-vertical-slider.vue | ||
::: | ||
|
17 changes: 17 additions & 0 deletions
17
docs/pages/webitel-ui/components/wt-slider/examples/example-disabled-slider.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> | ||
</script> | ||
|
||
<template> | ||
<wt-slider | ||
:value="70" | ||
:min="0" | ||
:max="100" | ||
:step="1" | ||
disabled | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
19 changes: 19 additions & 0 deletions
19
docs/pages/webitel-ui/components/wt-slider/examples/example-slider.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> | ||
import { ref } from 'vue'; | ||
const number = ref(70); | ||
</script> | ||
|
||
<template> | ||
<wt-slider | ||
:value="number" | ||
:min="0" | ||
:max="100" | ||
:step="1" | ||
@input="number = $event" | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
21 changes: 21 additions & 0 deletions
21
docs/pages/webitel-ui/components/wt-slider/examples/example-vertical-slider.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,21 @@ | ||
<script setup> | ||
import { ref } from 'vue'; | ||
const number = ref(70); | ||
</script> | ||
|
||
<template> | ||
<wt-slider | ||
:value="number" | ||
:min="0" | ||
:max="100" | ||
:step="1" | ||
:height="150" | ||
vertical | ||
@input="number = $event" | ||
/> | ||
</template> | ||
|
||
<style scoped lang="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
20 changes: 20 additions & 0 deletions
20
docs/pages/webitel-ui/components/wt-status-select/Readme.md
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,20 @@ | ||
<script setup> | ||
import Docs from './wt-status-select-docs.vue'; | ||
import ExampleStatusSelect from './examples/example-status-select.vue'; | ||
</script> | ||
|
||
# WtStatusSelect | ||
|
||
## Props | ||
::: raw | ||
<Docs/> | ||
::: | ||
|
||
## Example Status Select | ||
::: raw | ||
<ExampleStatusSelect/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-status-select.vue | ||
::: |
19 changes: 19 additions & 0 deletions
19
docs/pages/webitel-ui/components/wt-status-select/examples/example-status-select.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> | ||
import { ref } from 'vue'; | ||
// IMPORT ME FROM: | ||
// import AgentStatus from '@webitel/ui-sdk/src/enums/AgentStatus/AgentStatus.enum'; | ||
import AgentStatus from '../../../../../../src/enums/AgentStatus/AgentStatus.enum'; | ||
const status = ref(AgentStatus.ONLINE); | ||
</script> | ||
|
||
<template> | ||
<wt-status-select | ||
:status="status" | ||
@change="status = $event" | ||
></wt-status-select> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
65 changes: 26 additions & 39 deletions
65
docs/pages/webitel-ui/components/wt-status-select/wt-status-select-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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
|
||
:root { | ||
--status-select-padding: 0 calc(var(--icon-size-md) + var(--spacing-xs)) 0 0; // reset wt-select padding, but preserve arrow icon padding | ||
--status-select-option-color: var(--form-input-color); | ||
--status-select-bg--hover-color: var(--secondary-color); | ||
} | ||
--wt-status-select-padding: 0 calc(var(--icon-size-md) + var(--spacing-xs)) 0 0; // reset wt-select padding, but preserve arrow icon padding | ||
|
||
--wt-status-select-option-text-color: var(--form-input-color); | ||
--wt-status-select-option-background-hover-color: var(--secondary-color); | ||
--wt-status-select-option-background-selected-color: var(--secondary-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