-
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-indicator colors [WTEL-3936]
- Loading branch information
Showing
6 changed files
with
138 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,30 @@ | ||
<script setup> | ||
import Docs from './wt-indicator-docs.vue'; | ||
import ExampleIndicatorDifferentColors from './examples/example-indicator-different-colors.vue'; | ||
import ExampleIndicatorDifferentSizes from './examples/example-indicator-different-sizes.vue'; | ||
</script> | ||
|
||
# WtIndicator | ||
|
||
## Props | ||
::: raw | ||
<Docs/> | ||
::: | ||
|
||
## Example Indicator Different Colors | ||
::: raw | ||
<ExampleIndicatorDifferentColors/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-indicator-different-colors.vue | ||
::: | ||
|
||
## Example Indicator Different Sizes | ||
::: raw | ||
<ExampleIndicatorDifferentSizes/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-indicator-different-sizes.vue | ||
::: |
24 changes: 24 additions & 0 deletions
24
.../pages/webitel-ui/components/wt-indicator/examples/example-indicator-different-colors.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,24 @@ | ||
<script setup> | ||
const colors = [ | ||
'primary', | ||
'secondary', | ||
'success', | ||
'error', | ||
'transfer', | ||
'disabled', | ||
'break-out', | ||
]; | ||
</script> | ||
|
||
<template> | ||
<wt-indicator | ||
v-for="color of colors" | ||
:key="color" | ||
:color="color" | ||
:text="color" | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
19 changes: 19 additions & 0 deletions
19
docs/pages/webitel-ui/components/wt-indicator/examples/example-indicator-different-sizes.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> | ||
const sizes = [ | ||
'sm', | ||
'md', | ||
]; | ||
</script> | ||
|
||
<template> | ||
<wt-indicator | ||
v-for="size of sizes" | ||
:key="size" | ||
:size="size" | ||
:text="size" | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
114 changes: 32 additions & 82 deletions
114
docs/pages/webitel-ui/components/wt-indicator/wt-indicator-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
:root { | ||
--indicator-dot-size--size-sm: var(--spacing-xs); | ||
--indicator-dot-size--size-md: var(--spacing-sm); | ||
--indicator-dot-size: var(--indicator-size--size-md); | ||
--indicator-dot-offset: var(--spacing-2xs); | ||
|
||
--indicator-text-margin: var(--spacing-2xs); | ||
|
||
--indicator-primary-color: var(--primary-color); | ||
|
||
--indicator-secondary-color: var(--secondary-color); | ||
|
||
--indicator-disabled-color: var(--disabled-color); | ||
|
||
--indicator-true-color: var(--true-color); | ||
|
||
--indicator-false-color: var(--false-color); | ||
|
||
--indicator-transfer-color: var(--transfer-color); | ||
|
||
--indicator-break-out-color: hsla(36, 90%, 50%, 1); | ||
--wt-indicator-dot-size--size-sm: var(--spacing-xs); | ||
--wt-indicator-dot-size--size-md: var(--spacing-sm); | ||
--wt-indicator-dot-size: var(--wt-indicator-size--size-md); | ||
--wt-indicator-dot-offset: var(--spacing-2xs); | ||
|
||
--wt-indicator-text-margin: var(--spacing-2xs); | ||
|
||
--wt-indicator-primary-color: var(--primary-color); | ||
--wt-indicator-secondary-color: var(--dp-1-surface-color); | ||
--wt-indicator-disabled-color: var(--dp-10-surface-color); | ||
--wt-indicator-success-color: var(--success-color); | ||
--wt-indicator-error-color: var(--error-color); | ||
--wt-indicator-transfer-color: var(--transfer-color); | ||
--wt-indicator-break-out-color: var(--warning-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