@flux-ui/components 3.0.0-next.7 → 3.0.0-next.8

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": "@flux-ui/components",
3
3
  "description": "A set of opiniated UI components.",
4
- "version": "3.0.0-next.7",
4
+ "version": "3.0.0-next.8",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/basmilius",
@@ -53,8 +53,8 @@
53
53
  "sideEffects": false,
54
54
  "dependencies": {
55
55
  "@basmilius/utils": "^2.1.0",
56
- "@flux-ui/internals": "3.0.0-next.7",
57
- "@flux-ui/types": "3.0.0-next.7",
56
+ "@flux-ui/internals": "3.0.0-next.8",
57
+ "@flux-ui/types": "3.0.0-next.8",
58
58
  "@fortawesome/fontawesome-common-types": "^6.7.2",
59
59
  "clsx": "^2.1.1",
60
60
  "imask": "^7.6.1",
@@ -208,7 +208,7 @@
208
208
 
209
209
  if (value) {
210
210
  mask.value = value;
211
- localValue.value = mask.value;
211
+ modelValue.value = mask.value;
212
212
  }
213
213
 
214
214
  onCleanup(() => mask.destroy());
@@ -41,7 +41,7 @@
41
41
  }>();
42
42
 
43
43
  const disabled = useDisabled(toRef(() => componentDisabled));
44
- const {groups, selected, values} = useFormSelect(modelValue, isMultiple, options, modelSearch);
44
+ const {groups, selected, values} = useFormSelect(modelValue, isMultiple, toRef(() => options), modelSearch);
45
45
 
46
46
  function onDeselect(id: string | number | null): void {
47
47
  if (unref(isMultiple)) {
@@ -1,9 +1,9 @@
1
1
  import type { FluxFormSelectEntry, FluxFormSelectOption, FluxFormSelectOptions, FluxFormSelectValue } from '@flux-ui/types';
2
- import type { MaybeRef, Ref } from 'vue';
2
+ import type { Ref } from 'vue';
3
3
  import { computed, unref } from 'vue';
4
4
  import { isFluxFormSelectGroup, isFluxFormSelectOption } from '$flux/data';
5
5
 
6
- export default function (modelValue: Ref<FluxFormSelectValue>, isMultiple: boolean, options: MaybeRef<FluxFormSelectEntry[]>, searchQuery?: Ref<string>) {
6
+ export default function (modelValue: Ref<FluxFormSelectValue>, isMultiple: boolean, options: Ref<FluxFormSelectEntry[]>, searchQuery?: Ref<string>) {
7
7
  const values = computed(() => {
8
8
  const model = unref(modelValue);
9
9
  return Array.isArray(model) ? model : [model];