@weni/unnnic-system 1.16.34 → 1.16.35-develop.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/dist/unnnic.common.js +662 -659
- package/dist/unnnic.common.js.map +1 -1
- package/dist/unnnic.css +1 -1
- package/dist/unnnic.umd.js +662 -659
- package/dist/unnnic.umd.js.map +1 -1
- package/dist/unnnic.umd.min.js +55 -55
- package/dist/unnnic.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AudioRecorder/AudioHandler.vue +1 -1
- package/src/components/AudioRecorder/AudioPlayer.vue +3 -3
- package/src/components/AudioRecorder/AudioRecorder.vue +1 -1
- package/src/components/AutocompleteSelect/AutocompleteSelect.vue +1 -1
- package/src/components/Banner/InfoBanner.vue +1 -1
- package/src/components/Button/Button.vue +4 -4
- package/src/components/Button/ButtonIcon.vue +1 -1
- package/src/components/Card/CardCompany.vue +1 -1
- package/src/components/Card/ContentCard.vue +1 -1
- package/src/components/CardFlow/CardFlow.vue +2 -2
- package/src/components/ChartRainbow/ChartRainbow.vue +1 -1
- package/src/components/CircleProgressBar/CircleProgressBar.vue +1 -1
- package/src/components/Indicator/Indicator.vue +1 -1
- package/src/components/Input/Autocomplete.vue +2 -2
- package/src/components/Input/BaseInput.vue +1 -1
- package/src/components/InputNext/InputNext.vue +3 -3
- package/src/components/ModalNext/ModalNext.vue +1 -1
- package/src/components/Select/Select.vue +3 -3
- package/src/components/SelectSmart/SelectSmart.vue +14 -8
- package/src/components/Sidebar/SidebarPrimary.vue +2 -2
- package/src/components/Slider/Slider.vue +2 -2
- package/src/components/StarRating/StarRating.vue +1 -1
- package/src/components/Tab/Tab.vue +1 -1
- package/src/components/Table/Table.vue +2 -2
- package/src/components/Tag/DefaultTag.vue +1 -1
- package/src/components/Tag/IndicatorTag.vue +1 -1
- package/src/components/TextArea/TextArea.vue +4 -4
- package/src/components/TextEditor/TextEditor.vue +3 -3
- package/src/components/UploadArea/UploadArea.vue +1 -1
- package/src/stories/SelectSmart.stories.js +16 -12
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
width: 11.5 * $unnnic-font-size;
|
|
63
63
|
height: 2px;
|
|
64
64
|
border-radius: $unnnic-border-radius-sm;
|
|
65
|
-
background: $unnnic-color-neutral-
|
|
65
|
+
background: $unnnic-color-neutral-cleanest;
|
|
66
66
|
|
|
67
67
|
&__bar {
|
|
68
68
|
background: $unnnic-color-neutral-darkest;
|
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
height: 100%;
|
|
148
148
|
|
|
149
149
|
border-radius: $unnnic-border-radius-sm;
|
|
150
|
-
background: $unnnic-color-neutral-
|
|
150
|
+
background: $unnnic-color-neutral-cleanest;
|
|
151
151
|
}
|
|
152
152
|
&::-webkit-slider-thumb {
|
|
153
153
|
opacity: 0;
|
|
@@ -160,7 +160,7 @@ export default {
|
|
|
160
160
|
height: 100%;
|
|
161
161
|
|
|
162
162
|
border-radius: $unnnic-border-radius-sm;
|
|
163
|
-
background: $unnnic-color-neutral-
|
|
163
|
+
background: $unnnic-color-neutral-cleanest;
|
|
164
164
|
}
|
|
165
165
|
&::-moz-range-thumb {
|
|
166
166
|
opacity: 0;
|
|
@@ -179,7 +179,7 @@ export default {
|
|
|
179
179
|
.bar {
|
|
180
180
|
width: 3px;
|
|
181
181
|
|
|
182
|
-
background: $unnnic-color-neutral-
|
|
182
|
+
background: $unnnic-color-neutral-cleanest;
|
|
183
183
|
border-radius: 1.5px;
|
|
184
184
|
|
|
185
185
|
&.active {
|
|
@@ -332,7 +332,7 @@ export default {
|
|
|
332
332
|
width: 11.5 * $unnnic-font-size;
|
|
333
333
|
height: 2px;
|
|
334
334
|
border-radius: $unnnic-border-radius-sm;
|
|
335
|
-
background: $unnnic-color-neutral-
|
|
335
|
+
background: $unnnic-color-neutral-cleanest;
|
|
336
336
|
|
|
337
337
|
&__bar {
|
|
338
338
|
background: $unnnic-color-neutral-darkest;
|
|
@@ -144,7 +144,7 @@ export default {
|
|
|
144
144
|
&__divider {
|
|
145
145
|
align-self: center;
|
|
146
146
|
|
|
147
|
-
border-left: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
147
|
+
border-left: $unnnic-border-width-thinner solid $unnnic-color-neutral-cleanest;
|
|
148
148
|
height: 36px;
|
|
149
149
|
margin: 0 $unnnic-inline-md;
|
|
150
150
|
}
|
|
@@ -204,7 +204,7 @@ $scheme-colors:
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
&--secondary {
|
|
207
|
-
background-color: rgba($unnnic-color-neutral-
|
|
207
|
+
background-color: rgba($unnnic-color-neutral-cleanest, $unnnic-opacity-level-light);
|
|
208
208
|
color: $unnnic-color-neutral-dark;
|
|
209
209
|
position: relative;
|
|
210
210
|
|
|
@@ -217,7 +217,7 @@ $scheme-colors:
|
|
|
217
217
|
left: 0;
|
|
218
218
|
right: 0;
|
|
219
219
|
border-radius: $unnnic-border-radius-sm;
|
|
220
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
220
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-cleanest;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
&:hover:enabled:after {
|
|
@@ -230,7 +230,7 @@ $scheme-colors:
|
|
|
230
230
|
cursor: not-allowed;
|
|
231
231
|
|
|
232
232
|
&:after {
|
|
233
|
-
border: $unnnic-border-width-thinner dashed $unnnic-color-neutral-
|
|
233
|
+
border: $unnnic-border-width-thinner dashed $unnnic-color-neutral-cleanest;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -255,7 +255,7 @@ $scheme-colors:
|
|
|
255
255
|
|
|
256
256
|
&:disabled {
|
|
257
257
|
background-color: $unnnic-color-neutral-light;
|
|
258
|
-
color: $unnnic-color-neutral-
|
|
258
|
+
color: $unnnic-color-neutral-cleanest;
|
|
259
259
|
cursor: not-allowed;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
86
86
|
right: 0;
|
|
87
87
|
top: 0;
|
|
88
88
|
bottom: 0;
|
|
89
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
89
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-cleanest;
|
|
90
90
|
border-radius: inherit;
|
|
91
91
|
pointer-events: none;
|
|
92
92
|
}
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
78
78
|
flex-direction: column;
|
|
79
79
|
background-color: $unnnic-color-background-snow;
|
|
80
80
|
border-radius: $unnnic-border-radius-md;
|
|
81
|
-
border: $unnnic-border-width-thin solid $unnnic-color-neutral-
|
|
81
|
+
border: $unnnic-border-width-thin solid $unnnic-color-neutral-clean;
|
|
82
82
|
width: min-content;
|
|
83
83
|
min-width: 13.75 * $unnnic-font-size;
|
|
84
84
|
|
|
@@ -162,7 +162,7 @@ export default {
|
|
|
162
162
|
|
|
163
163
|
&.has-content {
|
|
164
164
|
background-color: $unnnic-color-neutral-snow;
|
|
165
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
165
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-clean;
|
|
166
166
|
|
|
167
167
|
&.u.font {
|
|
168
168
|
line-height: 0.875 * $unnnic-font-size;
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.description {
|
|
151
|
-
color: $unnnic-color-neutral-
|
|
151
|
+
color: $unnnic-color-neutral-clean;
|
|
152
152
|
font-family: $unnnic-font-family-secondary;
|
|
153
153
|
font-size: $unnnic-font-size-body-lg;
|
|
154
154
|
line-height: $unnnic-font-size-body-lg + $unnnic-line-height-md;
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
left: 50%;
|
|
137
137
|
transform: translate(-50%, -50%);
|
|
138
138
|
|
|
139
|
-
color: $unnnic-color-neutral-
|
|
139
|
+
color: $unnnic-color-neutral-clean;
|
|
140
140
|
font-family: $unnnic-font-family-secondary;
|
|
141
141
|
font-weight: $unnnic-font-weight-regular;
|
|
142
142
|
font-size: $unnnic-font-size-body-gt;
|
|
@@ -100,7 +100,7 @@ export default {
|
|
|
100
100
|
left: 50%;
|
|
101
101
|
top: 100%;
|
|
102
102
|
margin: $unnnic-inline-xs 0 0 0;
|
|
103
|
-
color: $unnnic-color-neutral-
|
|
103
|
+
color: $unnnic-color-neutral-clean;
|
|
104
104
|
font-size: $unnnic-font-size-body-gt;
|
|
105
105
|
line-height: $unnnic-font-size-body-gt + $unnnic-line-height-medium;
|
|
106
106
|
}
|
|
@@ -237,7 +237,7 @@ $scroll-size: 4px;
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
&::-webkit-scrollbar-thumb {
|
|
240
|
-
background: $unnnic-color-neutral-
|
|
240
|
+
background: $unnnic-color-neutral-cleanest;
|
|
241
241
|
border-radius: $unnnic-border-radius-pill;
|
|
242
242
|
}
|
|
243
243
|
|
|
@@ -280,7 +280,7 @@ $scroll-size: 4px;
|
|
|
280
280
|
font-weight: $unnnic-font-weight-bold;
|
|
281
281
|
font-size: $unnnic-font-size-body-md;
|
|
282
282
|
line-height: $unnnic-font-size-body-md + $unnnic-line-height-md;
|
|
283
|
-
color: $unnnic-color-neutral-
|
|
283
|
+
color: $unnnic-color-neutral-cleanest;
|
|
284
284
|
margin: 0 $unnnic-spacing-inline-sm;
|
|
285
285
|
margin-top: $unnnic-spacing-stack-sm;
|
|
286
286
|
margin-bottom: $unnnic-spacing-stack-xs;
|
|
@@ -93,7 +93,7 @@ export default {
|
|
|
93
93
|
outline-offset: -$unnnic-border-width-thinner;
|
|
94
94
|
border-radius: $unnnic-border-radius-sm;
|
|
95
95
|
color: $unnnic-color-neutral-dark;
|
|
96
|
-
caret-color: $unnnic-color-neutral-
|
|
96
|
+
caret-color: $unnnic-color-neutral-clean;
|
|
97
97
|
font-weight: $unnnic-font-weight-regular;
|
|
98
98
|
font-family: $unnnic-font-family-secondary;
|
|
99
99
|
box-sizing: border-box;
|
|
@@ -178,12 +178,12 @@ export default {
|
|
|
178
178
|
column-gap: $unnnic-spacing-inline-xs;
|
|
179
179
|
|
|
180
180
|
&:focus-within {
|
|
181
|
-
outline-color: $unnnic-color-neutral-
|
|
181
|
+
outline-color: $unnnic-color-neutral-clean;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
&:has(input:disabled) {
|
|
185
185
|
outline-style: dashed;
|
|
186
|
-
outline-color: $unnnic-color-neutral-
|
|
186
|
+
outline-color: $unnnic-color-neutral-cleanest;
|
|
187
187
|
background-color: $unnnic-color-neutral-light;
|
|
188
188
|
cursor: default;
|
|
189
189
|
}
|
|
@@ -198,7 +198,7 @@ export default {
|
|
|
198
198
|
color: $unnnic-color-neutral-dark;
|
|
199
199
|
|
|
200
200
|
&:focus::placeholder {
|
|
201
|
-
color: $unnnic-color-neutral-
|
|
201
|
+
color: $unnnic-color-neutral-cleanest;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
&::placeholder {
|
|
@@ -289,7 +289,7 @@ export default {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
::-webkit-scrollbar-thumb {
|
|
292
|
-
background: $unnnic-color-neutral-
|
|
292
|
+
background: $unnnic-color-neutral-cleanest;
|
|
293
293
|
border-radius: $unnnic-border-radius-pill;
|
|
294
294
|
}
|
|
295
295
|
|
|
@@ -338,7 +338,7 @@ export default {
|
|
|
338
338
|
|
|
339
339
|
&--inactive {
|
|
340
340
|
border: 1px solid $unnnic-color-neutral-soft;
|
|
341
|
-
color: $unnnic-color-neutral-
|
|
341
|
+
color: $unnnic-color-neutral-cleanest;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
&--active {
|
|
@@ -368,7 +368,7 @@ export default {
|
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
&::-webkit-scrollbar-thumb {
|
|
371
|
-
background: $unnnic-color-neutral-
|
|
371
|
+
background: $unnnic-color-neutral-cleanest;
|
|
372
372
|
border-radius: $unnnic-border-radius-pill;
|
|
373
373
|
}
|
|
374
374
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div @keydown="onKeyDownSelect" v-click-outside="onClickOutside" class="unnnic-select-smart">
|
|
3
|
-
<dropdown-skeleton type="manual" :value="active" position="bottom"
|
|
3
|
+
<dropdown-skeleton type="manual" :value="active" position="bottom">
|
|
4
4
|
<text-input
|
|
5
5
|
class="unnnic-select-smart__input"
|
|
6
6
|
ref="selectSmartInput"
|
|
@@ -120,6 +120,10 @@ export default {
|
|
|
120
120
|
type: Boolean,
|
|
121
121
|
default: false,
|
|
122
122
|
},
|
|
123
|
+
orderedByIndex: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false,
|
|
126
|
+
},
|
|
123
127
|
multiple: {
|
|
124
128
|
type: Boolean,
|
|
125
129
|
default: false,
|
|
@@ -172,8 +176,6 @@ export default {
|
|
|
172
176
|
watch: {
|
|
173
177
|
active(newValue) {
|
|
174
178
|
this.$nextTick(() => {
|
|
175
|
-
this.$refs['dropdown-skeleton'].calculatePosition();
|
|
176
|
-
|
|
177
179
|
if (newValue && !this.multiple) {
|
|
178
180
|
const activeOptionIndex = this.getOptionIndex('active');
|
|
179
181
|
|
|
@@ -185,10 +187,6 @@ export default {
|
|
|
185
187
|
},
|
|
186
188
|
|
|
187
189
|
searchValue() {
|
|
188
|
-
this.$nextTick(() => {
|
|
189
|
-
this.$refs['dropdown-skeleton'].calculatePosition();
|
|
190
|
-
});
|
|
191
|
-
|
|
192
190
|
this.focusedOption = null;
|
|
193
191
|
|
|
194
192
|
if (!this.active) this.active = true;
|
|
@@ -330,6 +328,10 @@ export default {
|
|
|
330
328
|
return isValueUnique && matchesSearchTerms && value;
|
|
331
329
|
});
|
|
332
330
|
|
|
331
|
+
if (this.orderedByIndex) {
|
|
332
|
+
return filteredOptions;
|
|
333
|
+
}
|
|
334
|
+
|
|
333
335
|
const sortedOptions = filteredOptions.sort((a, b) => {
|
|
334
336
|
const labelA = normalizeLabel(a.label);
|
|
335
337
|
const labelB = normalizeLabel(b.label);
|
|
@@ -339,7 +341,6 @@ export default {
|
|
|
339
341
|
|
|
340
342
|
return numberA - numberB || labelA.localeCompare(labelB);
|
|
341
343
|
});
|
|
342
|
-
|
|
343
344
|
return sortedOptions;
|
|
344
345
|
},
|
|
345
346
|
|
|
@@ -480,6 +481,11 @@ export default {
|
|
|
480
481
|
|
|
481
482
|
cursor: pointer;
|
|
482
483
|
|
|
484
|
+
.dropdown-data {
|
|
485
|
+
position: absolute !important;
|
|
486
|
+
top: 100% !important;
|
|
487
|
+
}
|
|
488
|
+
|
|
483
489
|
&__options {
|
|
484
490
|
left: 0;
|
|
485
491
|
right: 0;
|
|
@@ -343,11 +343,11 @@ $transition-time: 0.4s;
|
|
|
343
343
|
cursor: not-allowed;
|
|
344
344
|
|
|
345
345
|
.unnnic-icon ::v-deep .primary {
|
|
346
|
-
fill: $unnnic-color-neutral-
|
|
346
|
+
fill: $unnnic-color-neutral-clean;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.label {
|
|
350
|
-
color: $unnnic-color-neutral-
|
|
350
|
+
color: $unnnic-color-neutral-clean;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
|
|
@@ -177,13 +177,13 @@ export default {
|
|
|
177
177
|
right: 0;
|
|
178
178
|
top: 0;
|
|
179
179
|
bottom: 0;
|
|
180
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
180
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-cleanest;
|
|
181
181
|
border-radius: inherit;
|
|
182
182
|
pointer-events: none;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
&:focus:before {
|
|
186
|
-
border-color: $unnnic-color-neutral-
|
|
186
|
+
border-color: $unnnic-color-neutral-clean;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
&:focus {
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
61
61
|
font-weight: $unnnic-font-weight-bold;
|
|
62
62
|
font-size: $unnnic-font-size-body-lg;
|
|
63
63
|
line-height: $unnnic-font-size-body-lg + $unnnic-line-height-md;
|
|
64
|
-
color: $unnnic-color-neutral-
|
|
64
|
+
color: $unnnic-color-neutral-clean;
|
|
65
65
|
|
|
66
66
|
.highlight {
|
|
67
67
|
color: $unnnic-color-neutral-darkest;
|
|
@@ -84,7 +84,7 @@ export default {
|
|
|
84
84
|
display: flex;
|
|
85
85
|
align-items: flex-start;
|
|
86
86
|
justify-content: space-between;
|
|
87
|
-
color: $unnnic-color-neutral-
|
|
87
|
+
color: $unnnic-color-neutral-cleanest;
|
|
88
88
|
font-family: $unnnic-font-family-secondary;
|
|
89
89
|
font-weight: $unnnic-font-weight-bold;
|
|
90
90
|
font-size: $unnnic-font-size-body-lg;
|
|
@@ -56,7 +56,7 @@ $scroll-size: 4px;
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&::-webkit-scrollbar-thumb {
|
|
59
|
-
background: $unnnic-color-neutral-
|
|
59
|
+
background: $unnnic-color-neutral-cleanest;
|
|
60
60
|
border-radius: $unnnic-border-radius-pill;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -100,7 +100,7 @@ $scroll-size: 4px;
|
|
|
100
100
|
|
|
101
101
|
&.loading {
|
|
102
102
|
font-family: $unnnic-font-family-secondary;
|
|
103
|
-
color: $unnnic-color-neutral-
|
|
103
|
+
color: $unnnic-color-neutral-clean;
|
|
104
104
|
font-size: $unnnic-font-size-body-gt;
|
|
105
105
|
font-weight: $unnnic-font-weight-regular;
|
|
106
106
|
line-height: $unnnic-font-size-body-gt + $unnnic-line-height-md;
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
@each $name, $color in $scheme-colors {
|
|
91
91
|
&.unnnic-tag-scheme--#{$name}:hover {
|
|
92
92
|
outline-style: solid;
|
|
93
|
-
outline-color: $unnnic-color-neutral-
|
|
93
|
+
outline-color: $unnnic-color-neutral-clean;
|
|
94
94
|
outline-width: $unnnic-border-width-thinner;
|
|
95
95
|
outline-offset: -$unnnic-border-width-thinner;
|
|
96
96
|
}
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
border: $unnnic-border-width-thinner solid $unnnic-color-background-sky;
|
|
70
70
|
|
|
71
71
|
&:hover {
|
|
72
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
72
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-clean;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
&--clickable {
|
|
@@ -125,7 +125,7 @@ export default {
|
|
|
125
125
|
box-sizing: border-box;
|
|
126
126
|
padding: $unnnic-spacing-inset-nano;
|
|
127
127
|
border-radius: $unnnic-border-radius-sm;
|
|
128
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
128
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-cleanest;
|
|
129
129
|
background-color: $unnnic-color-neutral-snow;
|
|
130
130
|
|
|
131
131
|
color: $unnnic-color-neutral-dark;
|
|
@@ -141,9 +141,9 @@ export default {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
&:focus {
|
|
144
|
-
border-color: $unnnic-color-neutral-
|
|
144
|
+
border-color: $unnnic-color-neutral-clean;
|
|
145
145
|
&::placeholder {
|
|
146
|
-
color: $unnnic-color-neutral-
|
|
146
|
+
color: $unnnic-color-neutral-cleanest;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -160,7 +160,7 @@ export default {
|
|
|
160
160
|
|
|
161
161
|
&.disabled {
|
|
162
162
|
textarea::placeholder {
|
|
163
|
-
color: $unnnic-color-neutral-
|
|
163
|
+
color: $unnnic-color-neutral-clean;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -437,11 +437,11 @@ export default {
|
|
|
437
437
|
border-radius: $unnnic-border-radius-sm $unnnic-border-radius-sm 0 0;
|
|
438
438
|
position: relative;
|
|
439
439
|
overflow: hidden;
|
|
440
|
-
background-color: rgba($unnnic-color-neutral-
|
|
440
|
+
background-color: rgba($unnnic-color-neutral-clean, $unnnic-opacity-level-light);
|
|
441
441
|
|
|
442
442
|
.indicator {
|
|
443
443
|
height: $unnnic-border-width-thin;
|
|
444
|
-
background-color: $unnnic-color-neutral-
|
|
444
|
+
background-color: $unnnic-color-neutral-clean;
|
|
445
445
|
transition: width 0.2s;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
@@ -458,7 +458,7 @@ export default {
|
|
|
458
458
|
background-color: $unnnic-color-neutral-snow;
|
|
459
459
|
border-radius: 0 0 $unnnic-border-radius-sm $unnnic-border-radius-sm;
|
|
460
460
|
padding: $unnnic-spacing-inset-sm;
|
|
461
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
461
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-cleanest;
|
|
462
462
|
outline: none;
|
|
463
463
|
color: $unnnic-color-neutral-cloudy;
|
|
464
464
|
font-family: $unnnic-font-family-secondary;
|
|
@@ -315,7 +315,7 @@ export default {
|
|
|
315
315
|
padding: $unnnic-spacing-inset-lg;
|
|
316
316
|
|
|
317
317
|
// Dashed border with increased dashes spacing and color neutral clean
|
|
318
|
-
background-image: borderDashed($unnnic-color-neutral-
|
|
318
|
+
background-image: borderDashed($unnnic-color-neutral-cleanest);
|
|
319
319
|
|
|
320
320
|
&__has-error {
|
|
321
321
|
background-image: borderDashed($unnnic-color-feedback-red);
|
|
@@ -6,6 +6,7 @@ export default {
|
|
|
6
6
|
argTypes: {
|
|
7
7
|
size: { control: { type: 'select', options: ['md', 'sm'] } },
|
|
8
8
|
type: { control: { type: 'select', options: ['normal', 'error'] } },
|
|
9
|
+
orderedByIndex: { control: { type: 'boolean' } },
|
|
9
10
|
autocomplete: { control: { type: 'boolean' } },
|
|
10
11
|
autocompleteIconLeft: { control: { type: 'boolean' } },
|
|
11
12
|
autocompleteClearOnFocus: { control: { type: 'boolean' } },
|
|
@@ -34,27 +35,24 @@ const Template = (args, { argTypes }) => ({
|
|
|
34
35
|
|
|
35
36
|
template: `
|
|
36
37
|
<div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
<unnnic-select-smart
|
|
39
|
+
v-model="exampleValue"
|
|
40
|
+
:options="exampleOptions"
|
|
41
|
+
v-bind="$props"
|
|
42
|
+
/>
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<p v-if="!disabled">v-model: {{exampleValue}}</p>
|
|
44
|
+
<button v-if="!(disabled || autocomplete)" @click="addDynamicOption">Add dynamic option</button>
|
|
46
45
|
</div>
|
|
47
46
|
`,
|
|
48
47
|
});
|
|
49
48
|
|
|
50
49
|
const exampleOptionsDefault = [
|
|
51
50
|
{ value: '', label: 'Select some option' },
|
|
52
|
-
{ value: '
|
|
53
|
-
{ value: '2', label: 'Option 2' },
|
|
51
|
+
{ value: '5', label: 'Option 5' },
|
|
54
52
|
{ value: '3', label: 'Option 3' },
|
|
53
|
+
{ value: '1', label: 'Option 1' },
|
|
55
54
|
{ value: '4', label: 'Option 4' },
|
|
56
|
-
{ value: '
|
|
57
|
-
{ value: '5', label: 'Option 5' },
|
|
55
|
+
{ value: '2', label: 'Option 2' },
|
|
58
56
|
];
|
|
59
57
|
|
|
60
58
|
const exampleOptionsWithDescriptions = [
|
|
@@ -109,6 +107,12 @@ FirstSelected.args = {
|
|
|
109
107
|
exampleOptions: exampleOptionsFirstSelected,
|
|
110
108
|
};
|
|
111
109
|
|
|
110
|
+
export const OrderedByIndex = Template.bind({});
|
|
111
|
+
OrderedByIndex.args = {
|
|
112
|
+
exampleOptions: exampleOptionsDefault,
|
|
113
|
+
orderedByIndex: true,
|
|
114
|
+
};
|
|
115
|
+
|
|
112
116
|
export const Disabled = Template.bind({});
|
|
113
117
|
Disabled.args = {
|
|
114
118
|
disabled: true,
|