@onereach/ui-components-vue2 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.
@@ -22,12 +22,12 @@ import '@onereach/styles/tailwind.config.json';
22
22
  import '../../constants-2e3ea701.js';
23
23
  import '../or-icon-v3/index.js';
24
24
  import '../or-tooltip-v3/index.js';
25
+ import '../../style-inject.es-87955792.js';
25
26
  import '@floating-ui/dom';
26
27
  import '../or-bottom-sheet-v3/index.js';
27
28
  import '../or-overlay-v3/index.js';
28
29
  import '../or-teleport-v3/index.js';
29
30
  import 'portal-vue';
30
- import '../../style-inject.es-87955792.js';
31
31
  import '../or-tag-v3/index.js';
32
32
  import '../or-button-v3/index.js';
33
33
  import '../../props-bba3dca8.js';
@@ -813,7 +813,7 @@ var script = defineComponent({
813
813
  }
814
814
  },
815
815
  emits: ['update:modelValue', 'focus', 'blur', 'search'],
816
- expose: ['root', 'open', 'close', 'toggle', 'toggleOption', 'popover', 'popoverState'],
816
+ expose: ['root', 'open', 'close', 'toggle', 'toggleOption', 'resetSearch', 'popover', 'popoverState'],
817
817
  setup(props, context) {
818
818
  var _a;
819
819
  const currentInstance = getCurrentInstance();
@@ -950,7 +950,7 @@ var script = defineComponent({
950
950
  } else {
951
951
  proxyModelValue.value = value;
952
952
  }
953
- searchText.value = '';
953
+ resetSearch();
954
954
  }
955
955
  function deselectOption(value) {
956
956
  if (props.multiple) {
@@ -970,6 +970,9 @@ var script = defineComponent({
970
970
  } else {
971
971
  proxyModelValue.value = proxyModelValue.value !== value ? value : undefined;
972
972
  }
973
+ resetSearch();
974
+ }
975
+ function resetSearch() {
973
976
  searchText.value = '';
974
977
  }
975
978
  // Utils
@@ -1011,6 +1014,7 @@ var script = defineComponent({
1011
1014
  selectOption,
1012
1015
  deselectOption,
1013
1016
  toggleOption,
1017
+ resetSearch,
1014
1018
  isDesktop,
1015
1019
  isMobile
1016
1020
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components-vue2",
3
- "version": "21.0.1",
3
+ "version": "21.1.0",
4
4
  "description": "Vue components library for v2",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -39,8 +39,8 @@
39
39
  "@codemirror/view": "^6",
40
40
  "@floating-ui/dom": "1.5.3",
41
41
  "@lezer/highlight": "*",
42
- "@onereach/styles": "^21.0.1",
43
- "@onereach/ui-components-common": "^21.0.1",
42
+ "@onereach/styles": "^21.1.0",
43
+ "@onereach/ui-components-common": "^21.1.0",
44
44
  "@splidejs/splide": "4.0.6",
45
45
  "@tiptap/core": "2.0.3",
46
46
  "@tiptap/extension-blockquote": "2.0.3",
@@ -104,5 +104,5 @@
104
104
  "access": "public"
105
105
  },
106
106
  "npmUnpacked": "4.15.2",
107
- "gitHead": "f95337d592ce13a53032c77552666e097cd40d23"
107
+ "gitHead": "c3da3acde29eb2921ca8dd2808f2f8a3b1f6133d"
108
108
  }