@onereach/ui-components 21.0.1 → 21.1.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.
@@ -126,6 +126,7 @@ declare const _default: import("vue").DefineComponent<{
126
126
  selectOption: (value: SelectItem['value']) => void;
127
127
  deselectOption: (value: SelectItem['value']) => void;
128
128
  toggleOption: (value: SelectItem['value']) => void;
129
+ resetSearch: () => void;
129
130
  isDesktop: import("vue").ComputedRef<boolean>;
130
131
  isMobile: import("vue").ComputedRef<boolean>;
131
132
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "focus" | "blur")[], "search" | "update:modelValue" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -671,7 +671,7 @@ var script = defineComponent({
671
671
  }
672
672
  },
673
673
  emits: ['update:modelValue', 'focus', 'blur', 'search'],
674
- expose: ['root', 'open', 'close', 'toggle', 'toggleOption', 'popover', 'popoverState'],
674
+ expose: ['root', 'open', 'close', 'toggle', 'toggleOption', 'resetSearch', 'popover', 'popoverState'],
675
675
  setup(props, context) {
676
676
  var _a;
677
677
  const currentInstance = getCurrentInstance();
@@ -808,7 +808,7 @@ var script = defineComponent({
808
808
  } else {
809
809
  proxyModelValue.value = value;
810
810
  }
811
- searchText.value = '';
811
+ resetSearch();
812
812
  }
813
813
  function deselectOption(value) {
814
814
  if (props.multiple) {
@@ -828,6 +828,9 @@ var script = defineComponent({
828
828
  } else {
829
829
  proxyModelValue.value = proxyModelValue.value !== value ? value : undefined;
830
830
  }
831
+ resetSearch();
832
+ }
833
+ function resetSearch() {
831
834
  searchText.value = '';
832
835
  }
833
836
  // Utils
@@ -869,6 +872,7 @@ var script = defineComponent({
869
872
  selectOption,
870
873
  deselectOption,
871
874
  toggleOption,
875
+ resetSearch,
872
876
  isDesktop,
873
877
  isMobile
874
878
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "21.0.1",
3
+ "version": "21.1.0",
4
4
  "description": "Vue components library for v3",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -44,8 +44,8 @@
44
44
  "@codemirror/view": "^6",
45
45
  "@floating-ui/dom": "1.5.3",
46
46
  "@lezer/highlight": "*",
47
- "@onereach/styles": "^21.0.1",
48
- "@onereach/ui-components-common": "^21.0.1",
47
+ "@onereach/styles": "^21.1.0",
48
+ "@onereach/ui-components-common": "^21.1.0",
49
49
  "@splidejs/splide": "4.0.6",
50
50
  "@tiptap/core": "2.0.3",
51
51
  "@tiptap/extension-blockquote": "2.0.3",
@@ -102,5 +102,5 @@
102
102
  "access": "public"
103
103
  },
104
104
  "npmUnpacked": "4.15.2",
105
- "gitHead": "f95337d592ce13a53032c77552666e097cd40d23"
105
+ "gitHead": "c3da3acde29eb2921ca8dd2808f2f8a3b1f6133d"
106
106
  }