sprintify-ui 0.4.3 → 0.4.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/README.md CHANGED
@@ -6,7 +6,6 @@
6
6
 
7
7
  <p align="center">
8
8
  <a href="https://badge.fury.io/js/sprintify-ui"><img src="https://badge.fury.io/js/sprintify-ui.svg" alt="npm version" height="18"></a>
9
- <img src="https://api.netlify.com/api/v1/badges/e95b44db-1c89-450d-99e1-887c9b261438/deploy-status" height="18" />
10
9
  </p>
11
10
 
12
11
  ## About Sprintify UI
@@ -15,7 +14,7 @@ Sprintify UI is a Vue 3 components library for Vite projects using a Laravel bac
15
14
 
16
15
 
17
16
  **Storybook Documentation**
18
- https://sprintify-ui-storybook.netlify.app
17
+ https://sprintify-ui.witify.io
19
18
 
20
19
  ## Getting started
21
20
 
@@ -20423,7 +20423,7 @@ const y_ = /* @__PURE__ */ Oo(g_), b_ = { class: "text-xs text-slate-600" }, ph
20423
20423
  throw new Error("BaseDropdownAutocomplete: options or url is required");
20424
20424
  }), o = le(null), i = le(null), a = W(() => {
20425
20425
  const f = {};
20426
- return e.url ? f.url = e.url : f.options = e.options ?? [], e.multiple || (f.showModelValue = !1, f.showEmptyOption = !0, f.emptyOptionLabel = e.emptyOptionLabel), f;
20426
+ return e.url ? f.url = e.url : f.options = e.options ?? [], e.multiple || (f.showModelValue = !1, f.showEmptyOption = !e.required, f.emptyOptionLabel = e.emptyOptionLabel), f;
20427
20427
  });
20428
20428
  it(
20429
20429
  () => e.modelValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -47,10 +47,9 @@
47
47
  </div>
48
48
  <div class="shrink-0">
49
49
  <BaseIcon
50
- v-if="
51
- (optionProps.selected ?? false) ||
52
- (optionProps.option[valueKey] == null && newValue == null)
53
- "
50
+ v-if="(optionProps.selected ?? false) ||
51
+ (optionProps.option[valueKey] == null && newValue == null)
52
+ "
54
53
  icon="mdi:check-bold"
55
54
  class="h-4 w-4 text-slate-500"
56
55
  />
@@ -168,7 +167,7 @@ const autocompleteProps = computed(() => {
168
167
 
169
168
  if (!props.multiple) {
170
169
  newProps.showModelValue = false;
171
- newProps.showEmptyOption = true;
170
+ newProps.showEmptyOption = !props.required;
172
171
  newProps.emptyOptionLabel = props.emptyOptionLabel;
173
172
  }
174
173