@enso-ui/select 3.1.0 → 3.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enso-ui/select",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Select",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  ref="dropdown">
21
21
  <template #trigger="{ triggerEvents, open }">
22
22
  <button class="button input"
23
- :class="{ 'has-error': hasError }"
23
+ :class="[{ 'has-error': hasError }, { 'is-successful': isSuccess }]"
24
24
  type="button"
25
25
  :disabled="disabled"
26
26
  @click="reload"
@@ -163,6 +163,10 @@ export default {
163
163
  type: Boolean,
164
164
  default: false,
165
165
  },
166
+ isSuccess: {
167
+ type: Boolean,
168
+ default: false,
169
+ },
166
170
  labels: {
167
171
  type: Object,
168
172
  default: () => ({
@@ -225,6 +229,9 @@ export default {
225
229
  &.has-error {
226
230
  border-color: $danger;
227
231
  }
232
+ &.is-successful {
233
+ border-color: $success;
234
+ }
228
235
 
229
236
  .control-display {
230
237
  &.with-clear-button {