@dolanske/vui 1.1.3 → 1.1.4

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@dolanske/vui",
3
3
  "type": "module",
4
- "version": "1.1.3",
4
+ "version": "1.1.4",
5
5
  "private": false,
6
6
  "description": "Brother in Christ there's a new UI library",
7
7
  "author": "dolanske",
@@ -7,6 +7,7 @@
7
7
  flex-wrap: nowrap;
8
8
  align-items: center;
9
9
  border: 1px solid var(--color-border);
10
+ width: 100%;
10
11
 
11
12
  .vui-alert-icon {
12
13
  width: 22px;
@@ -147,7 +147,7 @@ const id = useId()
147
147
  <span>
148
148
  {{ renderPlaceholder }}
149
149
  </span>
150
- <template v-if="showClear && !required && selected">
150
+ <template v-if="showClear && !required && (selected && selected.length > 0)">
151
151
  <div class="flex-1" />
152
152
  <Button
153
153
  plain
@@ -166,7 +166,7 @@ const selected2 = ref([])
166
166
  <Select :options="options" label="Required (single)" expand required />
167
167
  <Select :options="options" label="Base + errors" expand :errors="['Hello bro']" />
168
168
  <Select v-model="selected" :options="options" label="Base multi" expand :single="false" />
169
- <Select v-model="selected2" :options="options" label="Multi, max options 2" expand :single="false" :max-active-options="2" />
169
+ <Select v-model="selected2" :options="options" label="Multi, max options 2, showClear" show-clear expand :single="false" :max-active-options="2" />
170
170
  <Select v-model="selected1" :options="options" label="Multi required" required expand :single="false" hint="Must always have at least one option selected" />
171
171
 
172
172
  <select>