@enso-ui/select 3.2.0 → 3.3.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.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Select",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,7 +20,11 @@
20
20
  ref="dropdown">
21
21
  <template #trigger="{ triggerEvents, open }">
22
22
  <button class="button input"
23
- :class="[{ 'has-error': hasError }, { 'is-successful': isSuccess }]"
23
+ :class="[
24
+ { 'has-error': hasError },
25
+ { 'is-successful': isSuccess },
26
+ { 'has-warning': hasWarning },
27
+ ]"
24
28
  type="button"
25
29
  :disabled="disabled"
26
30
  @click="reload"
@@ -163,6 +167,10 @@ export default {
163
167
  type: Boolean,
164
168
  default: false,
165
169
  },
170
+ hasWarning: {
171
+ type: Boolean,
172
+ default: false,
173
+ },
166
174
  isSuccess: {
167
175
  type: Boolean,
168
176
  default: false,
@@ -232,6 +240,9 @@ export default {
232
240
  &.is-successful {
233
241
  border-color: $success;
234
242
  }
243
+ &.has-warning {
244
+ border-color: $warning;
245
+ }
235
246
 
236
247
  .control-display {
237
248
  &.with-clear-button {