@webitel/ui-sdk 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-sdk.common.js +108 -112
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +108 -112
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/wt-icon/wt-icon.vue +1 -1
- package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +54 -18
- package/src/css/components/atoms/wt-rounded-action/_variables.scss +1 -1
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
color: {
|
|
30
30
|
type: String,
|
|
31
31
|
default: 'default',
|
|
32
|
-
options: ['default', 'contrast', 'active', 'disabled', 'success', 'danger', 'transfer', 'hold'],
|
|
32
|
+
options: ['default', 'contrast', 'active', 'accent', 'disabled', 'success', 'danger', 'transfer', 'hold', 'secondary-50'],
|
|
33
33
|
},
|
|
34
34
|
iconPrefix: {
|
|
35
35
|
type: String,
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<wt-button
|
|
3
|
-
|
|
3
|
+
v-bind="{ ...$attrs, ...$props }"
|
|
4
4
|
:class="[
|
|
5
|
+
`wt-rounded-action--color-${color}`,
|
|
6
|
+
{ 'wt-rounded-action--active': active },
|
|
5
7
|
{ 'wt-rounded-action--disabled': disabled },
|
|
6
8
|
]"
|
|
7
|
-
|
|
9
|
+
class="wt-rounded-action"
|
|
8
10
|
color="secondary"
|
|
9
11
|
@click="$emit('click', $event)"
|
|
10
12
|
>
|
|
11
13
|
<wt-icon
|
|
12
|
-
:icon="icon"
|
|
13
14
|
:color="iColor"
|
|
15
|
+
:icon="icon"
|
|
14
16
|
:size="size"
|
|
15
17
|
></wt-icon>
|
|
16
18
|
</wt-button>
|
|
@@ -25,7 +27,8 @@ export default {
|
|
|
25
27
|
},
|
|
26
28
|
color: {
|
|
27
29
|
type: String,
|
|
28
|
-
default: '',
|
|
30
|
+
default: 'secondary',
|
|
31
|
+
options: ['secondary', 'accent', 'success', 'danger', 'hold', 'transfer'],
|
|
29
32
|
},
|
|
30
33
|
iconColor: {
|
|
31
34
|
type: String,
|
|
@@ -36,6 +39,10 @@ export default {
|
|
|
36
39
|
default: 'md',
|
|
37
40
|
options: ['sm', 'md'],
|
|
38
41
|
},
|
|
42
|
+
active: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false,
|
|
45
|
+
},
|
|
39
46
|
disabled: {
|
|
40
47
|
type: Boolean,
|
|
41
48
|
default: false,
|
|
@@ -45,16 +52,7 @@ export default {
|
|
|
45
52
|
iColor() {
|
|
46
53
|
if (this.iconColor) return this.iconColor;
|
|
47
54
|
if (this.disabled) return 'secondary-50';
|
|
48
|
-
|
|
49
|
-
case 'success':
|
|
50
|
-
return 'success';
|
|
51
|
-
case 'accent':
|
|
52
|
-
return 'accent';
|
|
53
|
-
case 'danger':
|
|
54
|
-
return 'danger';
|
|
55
|
-
default:
|
|
56
|
-
return 'default';
|
|
57
|
-
}
|
|
55
|
+
return this.color;
|
|
58
56
|
},
|
|
59
57
|
},
|
|
60
58
|
};
|
|
@@ -64,12 +62,50 @@ export default {
|
|
|
64
62
|
<style lang="scss" scoped>
|
|
65
63
|
.wt-button.wt-rounded-action {
|
|
66
64
|
min-width: auto;
|
|
67
|
-
|
|
65
|
+
min-height: 0;
|
|
68
66
|
padding: var(--rounded-action-padding);
|
|
67
|
+
line-height: 0;
|
|
68
|
+
border: var(--btn-border);
|
|
69
|
+
border-color: transparent;
|
|
70
|
+
background: var(--rounded-action-bg-color);
|
|
71
|
+
box-shadow: var(--elevation-1);
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
background: inherit;
|
|
75
|
+
box-shadow: var(--elevation-2);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&--active {
|
|
79
|
+
border-color: var(--icon-color);
|
|
80
|
+
|
|
81
|
+
&.wt-rounded-action--color-secondary {
|
|
82
|
+
border-color: var(--icon-color);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.wt-rounded-action--color-accent {
|
|
86
|
+
border-color: var(--btn-accent--hover-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.wt-rounded-action--color-success {
|
|
90
|
+
border-color: var(--btn-true--hover-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.wt-rounded-action--color-danger {
|
|
94
|
+
border-color: var(--btn-false--hover-color);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.wt-rounded-action--color-hold {
|
|
98
|
+
border-color: var(--btn-hold--hover-color);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.wt-rounded-action--color-transfer {
|
|
102
|
+
border-color: var(--btn-transfer--hover-color);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
69
105
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
box-shadow:
|
|
106
|
+
&.wt-rounded-action--disabled {
|
|
107
|
+
border-color: transparent;
|
|
108
|
+
box-shadow: none;
|
|
73
109
|
}
|
|
74
110
|
}
|
|
75
111
|
</style>
|