@webitel/ui-sdk 2.1.35 → 2.1.37
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 +31 -27
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +31 -27
- 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-rounded-action/wt-rounded-action.vue +44 -3
- package/src/components/molecules/wt-icon-btn/wt-icon-btn.vue +4 -0
- package/src/components/molecules/wt-textarea/wt-textarea.vue +1 -0
package/package.json
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
`wt-rounded-action--color-${color}`,
|
|
6
6
|
{ 'wt-rounded-action--active': active },
|
|
7
7
|
{ 'wt-rounded-action--disabled': disabled },
|
|
8
|
+
{ 'wt-rounded-action--filled': filled },
|
|
8
9
|
]"
|
|
9
10
|
:size="size"
|
|
10
11
|
class="wt-rounded-action"
|
|
11
|
-
color="secondary"
|
|
12
12
|
@click="$emit('click', $event)"
|
|
13
13
|
>
|
|
14
14
|
<wt-icon
|
|
@@ -28,7 +28,6 @@ export default {
|
|
|
28
28
|
},
|
|
29
29
|
color: {
|
|
30
30
|
type: String,
|
|
31
|
-
default: 'secondary',
|
|
32
31
|
options: ['secondary', 'accent', 'success', 'danger', 'hold', 'transfer'],
|
|
33
32
|
},
|
|
34
33
|
iconColor: {
|
|
@@ -48,13 +47,17 @@ export default {
|
|
|
48
47
|
type: Boolean,
|
|
49
48
|
default: false,
|
|
50
49
|
},
|
|
50
|
+
filled: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false,
|
|
53
|
+
},
|
|
51
54
|
},
|
|
52
55
|
computed: {
|
|
53
56
|
iColor() {
|
|
54
57
|
if (this.iconColor) return this.iconColor;
|
|
55
58
|
if (this.disabled) return 'secondary-50';
|
|
56
59
|
if (this.color === 'secondary') return null; // dont change icon color
|
|
57
|
-
return
|
|
60
|
+
return '';
|
|
58
61
|
},
|
|
59
62
|
},
|
|
60
63
|
};
|
|
@@ -105,6 +108,44 @@ export default {
|
|
|
105
108
|
}
|
|
106
109
|
}
|
|
107
110
|
|
|
111
|
+
&--filled {
|
|
112
|
+
background: inherit;
|
|
113
|
+
|
|
114
|
+
&:hover {
|
|
115
|
+
box-shadow: var(--elevation-5);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&.wt-rounded-action--color-secondary {
|
|
119
|
+
border-color: var(--btn-secondary-color);
|
|
120
|
+
background-color: var(--btn-secondary-color);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.wt-rounded-action--color-accent {
|
|
124
|
+
border-color: var(--btn-accent--hover-color);
|
|
125
|
+
background-color: var(--btn-accent--hover-color);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.wt-rounded-action--color-success {
|
|
129
|
+
border-color: var(--btn-true--hover-color);
|
|
130
|
+
background-color: var(--btn-true--hover-color);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.wt-rounded-action--color-danger {
|
|
134
|
+
border-color: var(--btn-false--hover-color);
|
|
135
|
+
background-color: var(--btn-false--hover-color);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.wt-rounded-action--color-hold {
|
|
139
|
+
border-color: var(--btn-hold--hover-color);
|
|
140
|
+
background-color: var(--btn-false--hover-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.wt-rounded-action--color-transfer {
|
|
144
|
+
border-color: var(--btn-transfer--hover-color);
|
|
145
|
+
background-color: var(--btn-false--hover-color);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
108
149
|
&.wt-rounded-action--disabled {
|
|
109
150
|
border-color: transparent;
|
|
110
151
|
box-shadow: none;
|
|
@@ -58,6 +58,10 @@ export default {
|
|
|
58
58
|
fill: var(--icon-color--hover);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
&:hover ::v-deep .wt-icon--color-icon-secondary .wt-icon__icon {
|
|
62
|
+
fill: var(--icon-color);
|
|
63
|
+
}
|
|
64
|
+
|
|
61
65
|
// icon "disabled" color is set from iconColor computed
|
|
62
66
|
&--disabled {
|
|
63
67
|
pointer-events: none;
|