@onereach/ui-components 2.62.3-beta.1899.0 → 2.62.3-beta.1901.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.
Files changed (39) hide show
  1. package/dist/v2/{OrConfirm-d561bf82.js → OrConfirm-deb66787.js} +1 -1
  2. package/dist/v2/{OrInput-0dcfba2a.js → OrInput-9b87535a.js} +6 -4
  3. package/dist/v2/{OrSearch-45ea8c33.js → OrSearch-8d97eb16.js} +1 -1
  4. package/dist/v2/{OrSelect-b44cac14.js → OrSelect-2d038a44.js} +32 -12
  5. package/dist/v2/components/or-select-v3/OrSelect.vue.d.ts +2 -2
  6. package/dist/v2/index.d.ts +0 -1
  7. package/dist/v2/index.js +4 -5
  8. package/dist/v2/index2.js +4 -5
  9. package/dist/v2/index20.js +2 -2
  10. package/dist/v2/index38.js +1 -1
  11. package/dist/v2/index62.js +2 -2
  12. package/dist/v2/index64.js +2 -3
  13. package/dist/v2/index91.js +6 -1
  14. package/dist/v2/index92.js +1 -5
  15. package/dist/v3/{OrConfirm-a9d3f157.js → OrConfirm-118e052c.js} +1 -1
  16. package/dist/v3/{OrInput-f51916d4.js → OrInput-0a21591a.js} +5 -2
  17. package/dist/v3/{OrSearch-e27cadbf.js → OrSearch-8af88170.js} +1 -1
  18. package/dist/v3/{OrSelect-9d821ef2.js → OrSelect-32207997.js} +31 -11
  19. package/dist/v3/components/or-select-v3/OrSelect.vue.d.ts +2 -2
  20. package/dist/v3/index.d.ts +0 -1
  21. package/dist/v3/index.js +4 -5
  22. package/dist/v3/index2.js +4 -5
  23. package/dist/v3/index20.js +2 -2
  24. package/dist/v3/index38.js +1 -1
  25. package/dist/v3/index62.js +2 -2
  26. package/dist/v3/index64.js +2 -3
  27. package/dist/v3/index91.js +6 -1
  28. package/dist/v3/index92.js +1 -5
  29. package/package.json +1 -1
  30. package/src/components/or-input-v3/OrInput.vue +21 -19
  31. package/src/components/or-select-v3/OrSelect.vue +6 -9
  32. package/src/index.ts +0 -1
  33. package/dist/v2/directives/index.d.ts +0 -2
  34. package/dist/v2/dropdown-open-0d314aa4.js +0 -28
  35. package/dist/v2/index93.js +0 -3
  36. package/dist/v3/directives/index.d.ts +0 -2
  37. package/dist/v3/dropdown-open-0d314aa4.js +0 -28
  38. package/dist/v3/index93.js +0 -3
  39. package/src/directives/index.ts +0 -2
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-eb895669.js';
3
3
  import { _ as __vue_component__$1 } from './OrOverlay-4838a9b0.js';
4
- import { _ as __vue_component__$3 } from './OrInput-0dcfba2a.js';
4
+ import { _ as __vue_component__$3 } from './OrInput-9b87535a.js';
5
5
  import { useMagicKeys, whenever } from '@vueuse/core';
6
6
  import { logicAnd } from '@vueuse/math';
7
7
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -143,7 +143,7 @@ var script = defineComponent({
143
143
  }
144
144
  });
145
145
 
146
- var css_248z = "input[data-v-8536ff50]{min-width:0;background:0 0;outline:0}input[type=number][data-v-8536ff50]::-webkit-inner-spin-button{display:none}input[type=search][data-v-8536ff50]::-webkit-search-cancel-button{display:none}";
146
+ var css_248z = "input[data-v-61c8b450]{min-width:0;background:0 0;outline:0}input[type=number][data-v-61c8b450]::-webkit-inner-spin-button{display:none}input[type=search][data-v-61c8b450]::-webkit-search-cancel-button{display:none}";
147
147
  styleInject(css_248z);
148
148
 
149
149
  /* script */
@@ -302,7 +302,9 @@ var __vue_render__ = function () {
302
302
  _vm.proxyModelValue = $event.target.value;
303
303
  }
304
304
  }
305
- }, 'input', _vm.$attrs, false)), _vm._v(" "), _vm.type === 'password' ? [_c('OrIconButton', {
305
+ }, 'input', _vm.$attrs, false)), _vm._v(" "), _c('div', {
306
+ class: ['-m-xs', 'ml-none']
307
+ }, [_vm.type === 'password' ? [_c('OrIconButton', {
306
308
  attrs: {
307
309
  "icon": {
308
310
  icon: _vm.disclosed ? 'visibility_off' : 'visibility',
@@ -334,7 +336,7 @@ var __vue_render__ = function () {
334
336
  "icon": 'search',
335
337
  "variant": 'outlined'
336
338
  }
337
- })]] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
339
+ })]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
338
340
  attrs: {
339
341
  "disabled": _vm.disabled
340
342
  },
@@ -363,7 +365,7 @@ var __vue_staticRenderFns__ = [];
363
365
  /* style */
364
366
  const __vue_inject_styles__ = undefined;
365
367
  /* scoped */
366
- const __vue_scope_id__ = "data-v-8536ff50";
368
+ const __vue_scope_id__ = "data-v-61c8b450";
367
369
  /* module identifier */
368
370
  const __vue_module_identifier__ = undefined;
369
371
  /* functional template */
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
- import { _ as __vue_component__$1 } from './OrInput-0dcfba2a.js';
4
+ import { _ as __vue_component__$1 } from './OrInput-9b87535a.js';
5
5
  import { a as InputBoxSize } from './OrInputBox-208dceac.js';
6
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
7
7
 
@@ -1,5 +1,4 @@
1
- import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
2
- import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
1
+ import { isVue3, defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
3
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
3
  import { u as useOverflow } from './useOverflow-ac506c65.js';
5
4
  import '@vueuse/core';
@@ -9,13 +8,38 @@ import { _ as __vue_component__$3 } from './OrExpansionPanel-ce82a6fd.js';
9
8
  import { _ as __vue_component__$4 } from './OrHint-44356417.js';
10
9
  import { _ as __vue_component__$5 } from './OrIcon-124f3bad.js';
11
10
  import { _ as __vue_component__$7, a as InputBoxSize } from './OrInputBox-208dceac.js';
12
- import { _ as __vue_component__$6 } from './OrInput-0dcfba2a.js';
11
+ import { _ as __vue_component__$6 } from './OrInput-9b87535a.js';
13
12
  import { _ as __vue_component__$8 } from './OrLabel-5670468e.js';
14
13
  import { _ as __vue_component__$9 } from './OrMenuItem-3a28db7b.js';
15
14
  import { _ as __vue_component__$a } from './OrPopover-9080fc00.js';
16
15
  import { _ as __vue_component__$b } from './OrTag-c42c3f9c.js';
17
16
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
18
17
 
18
+ const created$1 = (element, binding) => {
19
+ element.addEventListener('keydown', event => {
20
+ event.preventDefault();
21
+ if (['Escape'].includes(event.key)) {
22
+ binding.value(event);
23
+ }
24
+ });
25
+ };
26
+ const DropdownClose = {
27
+ [isVue3 ? 'created' : 'bind']: created$1
28
+ };
29
+
30
+ const created = (element, binding) => {
31
+ element.addEventListener('keydown', event => {
32
+ event.preventDefault();
33
+ if (['Enter', ' '].includes(event.key)) {
34
+ binding.value(event);
35
+ }
36
+ });
37
+ element.addEventListener('click', binding.value);
38
+ };
39
+ const DropdownOpen = {
40
+ [isVue3 ? 'created' : 'bind']: created
41
+ };
42
+
19
43
  const SelectRoot = [
20
44
  // Layout
21
45
  'flex', 'flex-col',
@@ -223,15 +247,11 @@ var script = defineComponent({
223
247
  };
224
248
  });
225
249
  // Methods
226
- function toggle() {
250
+ function open() {
227
251
  if (!readonly.value && !props.disabled) {
228
252
  const popoverInstance = popover.value;
229
253
  if (popoverInstance) {
230
- if (popoverState.value === 'open') {
231
- popoverInstance.close();
232
- } else {
233
- popoverInstance.open();
234
- }
254
+ popoverInstance.open();
235
255
  }
236
256
  }
237
257
  }
@@ -273,7 +293,7 @@ var script = defineComponent({
273
293
  internalSearchOptions,
274
294
  resolvedSearchOptions,
275
295
  groupedOptions,
276
- toggle,
296
+ open,
277
297
  close,
278
298
  deselect,
279
299
  innerItems,
@@ -311,8 +331,8 @@ var __vue_render__ = function () {
311
331
  directives: [{
312
332
  name: "dropdown-open",
313
333
  rawName: "v-dropdown-open",
314
- value: _vm.toggle,
315
- expression: "toggle"
334
+ value: _vm.open,
335
+ expression: "open"
316
336
  }, {
317
337
  name: "dropdown-close",
318
338
  rawName: "v-dropdown-close",
@@ -34,7 +34,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
34
34
  }[]>;
35
35
  resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
36
36
  groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
37
- toggle: () => void;
37
+ open: () => void;
38
38
  close: () => void;
39
39
  deselect: (option: SelectOption) => void;
40
40
  innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
@@ -221,7 +221,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
221
221
  }[]>;
222
222
  resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
223
223
  groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
224
- toggle: () => void;
224
+ open: () => void;
225
225
  close: () => void;
226
226
  deselect: (option: SelectOption) => void;
227
227
  innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
@@ -1,4 +1,3 @@
1
1
  export * from './components';
2
- export * from './directives';
3
2
  export * from './hooks';
4
3
  export * from './utils/functions/text';
package/dist/v2/index.js CHANGED
@@ -18,7 +18,7 @@ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-da64b7ee.js';
18
18
  export { _ as OrCollapse } from './OrCollapse-50e3914c.js';
19
19
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-0abe3636.js';
20
20
  export { _ as OrConfirm } from './OrConfirm-812badbf.js';
21
- export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-d561bf82.js';
21
+ export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-deb66787.js';
22
22
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-63b2d841.js';
23
23
  export { _ as OrError } from './OrError-efc74907.js';
24
24
  export { _ as OrErrorTagV3 } from './OrErrorTag-9d592185.js';
@@ -36,7 +36,7 @@ export { I as InlineInputType, _ as OrInlineInputV3 } from './OrInlineInput-e754
36
36
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, _ as OrInlineTextEdit } from './OrInlineTextEdit-60227e46.js';
37
37
  export { _ as OrInlineTextareaV3 } from './OrInlineTextarea-7dc58bb1.js';
38
38
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, _ as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-208dceac.js';
39
- export { I as InputType, _ as OrInputV3 } from './OrInput-0dcfba2a.js';
39
+ export { I as InputType, _ as OrInputV3 } from './OrInput-9b87535a.js';
40
40
  export { a as OrNumberInput, b as OrPassword, _ as OrTextarea } from './OrPassword-a8b36c5b.js';
41
41
  export { _ as OrInput } from './OrSearch.vue_rollup-plugin-vue_styles.0-aafbcd86.js';
42
42
  export { _ as OrSearch } from './OrSearch-b228915a.js';
@@ -62,9 +62,9 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
62
62
  export { _ as OrRadio } from './OrRadio-514e8de8.js';
63
63
  export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
64
64
  export { _ as OrRadioV3 } from './OrRadio-4ba56887.js';
65
- export { _ as OrSearchV3 } from './OrSearch-45ea8c33.js';
65
+ export { _ as OrSearchV3 } from './OrSearch-8d97eb16.js';
66
66
  export { _ as OrSelect } from './OrSelect-ea27a70e.js';
67
- export { _ as OrSelectV3 } from './OrSelect-b44cac14.js';
67
+ export { _ as OrSelectV3 } from './OrSelect-2d038a44.js';
68
68
  export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
69
69
  export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-fabc7bc9.js';
70
70
  export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-38aef640.js';
@@ -92,7 +92,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-06654
92
92
  export { _ as OrTooltip } from './OrTooltip-b31bd78d.js';
93
93
  export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
94
94
  export { _ as OrTooltipV3 } from './OrTooltip-caeac590.js';
95
- export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
96
95
  export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
97
96
  export { u as useElevation } from './useElevation-0e973238.js';
98
97
  export { u as useOverflow } from './useOverflow-ac506c65.js';
package/dist/v2/index2.js CHANGED
@@ -18,7 +18,7 @@ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-da64b7ee.js';
18
18
  export { _ as OrCollapse } from './OrCollapse-50e3914c.js';
19
19
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-0abe3636.js';
20
20
  export { _ as OrConfirm } from './OrConfirm-812badbf.js';
21
- export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-d561bf82.js';
21
+ export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-deb66787.js';
22
22
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-63b2d841.js';
23
23
  export { _ as OrError } from './OrError-efc74907.js';
24
24
  export { _ as OrErrorTagV3 } from './OrErrorTag-9d592185.js';
@@ -36,7 +36,7 @@ export { I as InlineInputType, _ as OrInlineInputV3 } from './OrInlineInput-e754
36
36
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, _ as OrInlineTextEdit } from './OrInlineTextEdit-60227e46.js';
37
37
  export { _ as OrInlineTextareaV3 } from './OrInlineTextarea-7dc58bb1.js';
38
38
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, _ as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-208dceac.js';
39
- export { I as InputType, _ as OrInputV3 } from './OrInput-0dcfba2a.js';
39
+ export { I as InputType, _ as OrInputV3 } from './OrInput-9b87535a.js';
40
40
  export { a as OrNumberInput, b as OrPassword, _ as OrTextarea } from './OrPassword-a8b36c5b.js';
41
41
  export { _ as OrInput } from './OrSearch.vue_rollup-plugin-vue_styles.0-aafbcd86.js';
42
42
  export { _ as OrSearch } from './OrSearch-b228915a.js';
@@ -62,9 +62,9 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
62
62
  export { _ as OrRadio } from './OrRadio-514e8de8.js';
63
63
  export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
64
64
  export { _ as OrRadioV3 } from './OrRadio-4ba56887.js';
65
- export { _ as OrSearchV3 } from './OrSearch-45ea8c33.js';
65
+ export { _ as OrSearchV3 } from './OrSearch-8d97eb16.js';
66
66
  export { _ as OrSelect } from './OrSelect-ea27a70e.js';
67
- export { _ as OrSelectV3 } from './OrSelect-b44cac14.js';
67
+ export { _ as OrSelectV3 } from './OrSelect-2d038a44.js';
68
68
  export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
69
69
  export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-fabc7bc9.js';
70
70
  export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-38aef640.js';
@@ -117,7 +117,6 @@ import 'sortablejs';
117
117
  import './useElevation-0e973238.js';
118
118
  import './useResponsive-a02e95b7.js';
119
119
  import '@vueuse/integrations/useFocusTrap';
120
- import './dropdown-open-0d314aa4.js';
121
120
  import './useOverflow-ac506c65.js';
122
121
  import 'vue';
123
122
  import 'portal-vue';
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-d561bf82.js';
1
+ export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-deb66787.js';
2
2
  import 'vue-demi';
3
3
  import './OrButton-eb895669.js';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -9,7 +9,7 @@ import './OrOverlay-4838a9b0.js';
9
9
  import './useElevation-0e973238.js';
10
10
  import './OrTeleport.vue2-fb92f29f.js';
11
11
  import 'portal-vue';
12
- import './OrInput-0dcfba2a.js';
12
+ import './OrInput-9b87535a.js';
13
13
  import './OrError-be656098.js';
14
14
  import './OrHint-44356417.js';
15
15
  import './OrIconButton-1b34f3fa.js';
@@ -1,4 +1,4 @@
1
- export { I as InputType, _ as OrInputV3 } from './OrInput-0dcfba2a.js';
1
+ export { I as InputType, _ as OrInputV3 } from './OrInput-9b87535a.js';
2
2
  export { a as InputSize } from './OrInputBox-208dceac.js';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -1,9 +1,9 @@
1
- export { _ as OrSearchV3 } from './OrSearch-45ea8c33.js';
1
+ export { _ as OrSearchV3 } from './OrSearch-8d97eb16.js';
2
2
  export { a as SearchSize } from './OrInputBox-208dceac.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
5
5
  import './useClassAttribute-47fdb016.js';
6
- import './OrInput-0dcfba2a.js';
6
+ import './OrInput-9b87535a.js';
7
7
  import './OrError-be656098.js';
8
8
  import './normalize-component-6e8e3d80.js';
9
9
  import './OrHint-44356417.js';
@@ -1,7 +1,6 @@
1
- export { _ as OrSelectV3 } from './OrSelect-b44cac14.js';
1
+ export { _ as OrSelectV3 } from './OrSelect-2d038a44.js';
2
2
  export { a as SelectSize } from './OrInputBox-208dceac.js';
3
3
  import 'vue-demi';
4
- import './dropdown-open-0d314aa4.js';
5
4
  import './useClassAttribute-47fdb016.js';
6
5
  import './useOverflow-ac506c65.js';
7
6
  import '@vueuse/core';
@@ -13,7 +12,7 @@ import './OrError-be656098.js';
13
12
  import './OrExpansionPanel-ce82a6fd.js';
14
13
  import './OrIcon-124f3bad.js';
15
14
  import './OrHint-44356417.js';
16
- import './OrInput-0dcfba2a.js';
15
+ import './OrInput-9b87535a.js';
17
16
  import './OrIconButton-1b34f3fa.js';
18
17
  import './OrTooltip-caeac590.js';
19
18
  import './OrPopover-9080fc00.js';
@@ -1,2 +1,7 @@
1
- export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
1
+ export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
2
+ export { u as useElevation } from './useElevation-0e973238.js';
3
+ export { u as useOverflow } from './useOverflow-ac506c65.js';
4
+ export { u as useResponsive } from './useResponsive-a02e95b7.js';
5
+ export { u as useToggle } from './useToggle-29e4d7c7.js';
2
6
  import 'vue-demi';
7
+ import '@vueuse/core';
@@ -1,7 +1,3 @@
1
- export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
2
- export { u as useElevation } from './useElevation-0e973238.js';
3
- export { u as useOverflow } from './useOverflow-ac506c65.js';
4
1
  export { u as useResponsive } from './useResponsive-a02e95b7.js';
5
- export { u as useToggle } from './useToggle-29e4d7c7.js';
6
- import 'vue-demi';
7
2
  import '@vueuse/core';
3
+ import 'vue-demi';
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { s as script$2, a as ButtonColor } from './OrButton-12b36e89.js';
3
3
  import { s as script$1 } from './OrOverlay-27050c19.js';
4
- import { s as script$3 } from './OrInput-f51916d4.js';
4
+ import { s as script$3 } from './OrInput-0a21591a.js';
5
5
  import { useMagicKeys, whenever } from '@vueuse/core';
6
6
  import { logicAnd } from '@vueuse/math';
7
7
  import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, normalizeClass, renderSlot, createTextVNode, toDisplayString, createElementBlock, createVNode, createCommentVNode } from 'vue';
@@ -144,6 +144,9 @@ var script = defineComponent({
144
144
  });
145
145
 
146
146
  const _hoisted_1 = ["id", "type", "placeholder", "required", "disabled"];
147
+ const _hoisted_2 = {
148
+ class: /*#__PURE__*/normalizeClass(['-m-xs', 'ml-none'])
149
+ };
147
150
  function render(_ctx, _cache, $props, $setup, $data, $options) {
148
151
  const _component_OrLabel = resolveComponent("OrLabel");
149
152
  const _component_OrIconButton = resolveComponent("OrIconButton");
@@ -186,7 +189,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
186
189
  onKeyup: _cache[2] || (_cache[2] = $event => _ctx.$emit('keyup', $event)),
187
190
  onFocus: _cache[3] || (_cache[3] = $event => _ctx.$emit('focus', $event)),
188
191
  onBlur: _cache[4] || (_cache[4] = $event => _ctx.$emit('blur', $event))
189
- }), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), _ctx.type === 'password' ? (openBlock(), createBlock(_component_OrIconButton, {
192
+ }), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), createElementVNode("div", _hoisted_2, [_ctx.type === 'password' ? (openBlock(), createBlock(_component_OrIconButton, {
190
193
  key: 0,
191
194
  icon: {
192
195
  icon: _ctx.disclosed ? 'visibility_off' : 'visibility',
@@ -207,7 +210,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
207
210
  key: 1,
208
211
  icon: 'search',
209
212
  variant: 'outlined'
210
- }))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)]),
213
+ }))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)])]),
211
214
  _: 1 /* STABLE */
212
215
  }, 8 /* PROPS */, ["variant", "size", "invalid", "readonly", "disabled"]), !_ctx.invalid ? (openBlock(), createBlock(_component_OrHint, {
213
216
  key: 1,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
- import { s as script$1 } from './OrInput-f51916d4.js';
4
+ import { s as script$1 } from './OrInput-0a21591a.js';
5
5
  import { a as InputBoxSize } from './OrInputBox-634230b1.js';
6
6
  import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
7
7
 
@@ -1,5 +1,4 @@
1
- import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
2
- import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
1
+ import { isVue3, defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
3
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
3
  import { u as useOverflow } from './useOverflow-ac506c65.js';
5
4
  import '@vueuse/core';
@@ -9,13 +8,38 @@ import { s as script$3 } from './OrExpansionPanel-1e2a6375.js';
9
8
  import { s as script$4 } from './OrHint-73835593.js';
10
9
  import { s as script$5 } from './OrIcon-b3906e35.js';
11
10
  import { s as script$7, a as InputBoxSize } from './OrInputBox-634230b1.js';
12
- import { s as script$6 } from './OrInput-f51916d4.js';
11
+ import { s as script$6 } from './OrInput-0a21591a.js';
13
12
  import { s as script$8 } from './OrLabel-7d4fe80b.js';
14
13
  import { s as script$9 } from './OrMenuItem-8773d073.js';
15
14
  import { s as script$a } from './OrPopover-3525c670.js';
16
15
  import { s as script$b } from './OrTag-60585386.js';
17
16
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, normalizeClass, createElementVNode, Fragment, renderList, createVNode, withModifiers } from 'vue';
18
17
 
18
+ const created$1 = (element, binding) => {
19
+ element.addEventListener('keydown', event => {
20
+ event.preventDefault();
21
+ if (['Escape'].includes(event.key)) {
22
+ binding.value(event);
23
+ }
24
+ });
25
+ };
26
+ const DropdownClose = {
27
+ [isVue3 ? 'created' : 'bind']: created$1
28
+ };
29
+
30
+ const created = (element, binding) => {
31
+ element.addEventListener('keydown', event => {
32
+ event.preventDefault();
33
+ if (['Enter', ' '].includes(event.key)) {
34
+ binding.value(event);
35
+ }
36
+ });
37
+ element.addEventListener('click', binding.value);
38
+ };
39
+ const DropdownOpen = {
40
+ [isVue3 ? 'created' : 'bind']: created
41
+ };
42
+
19
43
  const SelectRoot = [
20
44
  // Layout
21
45
  'flex', 'flex-col',
@@ -223,15 +247,11 @@ var script = defineComponent({
223
247
  };
224
248
  });
225
249
  // Methods
226
- function toggle() {
250
+ function open() {
227
251
  if (!readonly.value && !props.disabled) {
228
252
  const popoverInstance = popover.value;
229
253
  if (popoverInstance) {
230
- if (popoverState.value === 'open') {
231
- popoverInstance.close();
232
- } else {
233
- popoverInstance.open();
234
- }
254
+ popoverInstance.open();
235
255
  }
236
256
  }
237
257
  }
@@ -273,7 +293,7 @@ var script = defineComponent({
273
293
  internalSearchOptions,
274
294
  resolvedSearchOptions,
275
295
  groupedOptions,
276
- toggle,
296
+ open,
277
297
  close,
278
298
  deselect,
279
299
  innerItems,
@@ -464,7 +484,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
464
484
  _: 3 /* FORWARDED */
465
485
  }, 8 /* PROPS */, ["class", "trigger"])]),
466
486
  _: 3 /* FORWARDED */
467
- }, 8 /* PROPS */, ["class", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.toggle], [_directive_dropdown_close, _ctx.close]]), !_ctx.invalid ? (openBlock(), createBlock(_component_OrHint, {
487
+ }, 8 /* PROPS */, ["class", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.open], [_directive_dropdown_close, _ctx.close]]), !_ctx.invalid ? (openBlock(), createBlock(_component_OrHint, {
468
488
  key: 1,
469
489
  disabled: _ctx.disabled
470
490
  }, {
@@ -34,7 +34,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
34
34
  }[]>;
35
35
  resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
36
36
  groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
37
- toggle: () => void;
37
+ open: () => void;
38
38
  close: () => void;
39
39
  deselect: (option: SelectOption) => void;
40
40
  innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
@@ -221,7 +221,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
221
221
  }[]>;
222
222
  resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
223
223
  groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
224
- toggle: () => void;
224
+ open: () => void;
225
225
  close: () => void;
226
226
  deselect: (option: SelectOption) => void;
227
227
  innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
@@ -1,4 +1,3 @@
1
1
  export * from './components';
2
- export * from './directives';
3
2
  export * from './hooks';
4
3
  export * from './utils/functions/text';
package/dist/v3/index.js CHANGED
@@ -15,7 +15,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-feeec003.js';
15
15
  export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
16
16
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-0a944d25.js';
17
17
  export { s as OrConfirm } from './OrConfirm-00134f53.js';
18
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-a9d3f157.js';
18
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-118e052c.js';
19
19
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-6c79a764.js';
20
20
  export { s as OrError } from './OrError-f90296db.js';
21
21
  export { s as OrErrorTagV3 } from './OrErrorTag-ceefd643.js';
@@ -33,7 +33,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-8f47
33
33
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-455a2d64.js';
34
34
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-86f4506d.js';
35
35
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-634230b1.js';
36
- export { I as InputType, s as OrInputV3 } from './OrInput-f51916d4.js';
36
+ export { I as InputType, s as OrInputV3 } from './OrInput-0a21591a.js';
37
37
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-2874026c.js';
38
38
  export { s as OrLabel } from './OrLabel-876f8729.js';
39
39
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-7d4fe80b.js';
@@ -57,9 +57,9 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
57
57
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
58
58
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
59
59
  export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
60
- export { s as OrSearchV3 } from './OrSearch-e27cadbf.js';
60
+ export { s as OrSearchV3 } from './OrSearch-8af88170.js';
61
61
  export { s as OrSelect } from './OrSelect-056731af.js';
62
- export { s as OrSelectV3 } from './OrSelect-9d821ef2.js';
62
+ export { s as OrSelectV3 } from './OrSelect-32207997.js';
63
63
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
64
64
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
65
65
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
@@ -86,7 +86,6 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-e
86
86
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
87
87
  export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-121eae2b.js';
88
88
  export { s as OrTooltipV3 } from './OrTooltip-30e05f9e.js';
89
- export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
90
89
  export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
91
90
  export { u as useElevation } from './useElevation-0e973238.js';
92
91
  export { u as useOverflow } from './useOverflow-ac506c65.js';
package/dist/v3/index2.js CHANGED
@@ -15,7 +15,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-feeec003.js';
15
15
  export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
16
16
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-0a944d25.js';
17
17
  export { s as OrConfirm } from './OrConfirm-00134f53.js';
18
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-a9d3f157.js';
18
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-118e052c.js';
19
19
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-6c79a764.js';
20
20
  export { s as OrError } from './OrError-f90296db.js';
21
21
  export { s as OrErrorTagV3 } from './OrErrorTag-ceefd643.js';
@@ -33,7 +33,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-8f47
33
33
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-455a2d64.js';
34
34
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-86f4506d.js';
35
35
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-634230b1.js';
36
- export { I as InputType, s as OrInputV3 } from './OrInput-f51916d4.js';
36
+ export { I as InputType, s as OrInputV3 } from './OrInput-0a21591a.js';
37
37
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-2874026c.js';
38
38
  export { s as OrLabel } from './OrLabel-876f8729.js';
39
39
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-7d4fe80b.js';
@@ -57,9 +57,9 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
57
57
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
58
58
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
59
59
  export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
60
- export { s as OrSearchV3 } from './OrSearch-e27cadbf.js';
60
+ export { s as OrSearchV3 } from './OrSearch-8af88170.js';
61
61
  export { s as OrSelect } from './OrSelect-056731af.js';
62
- export { s as OrSelectV3 } from './OrSelect-9d821ef2.js';
62
+ export { s as OrSelectV3 } from './OrSelect-32207997.js';
63
63
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
64
64
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
65
65
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
@@ -111,5 +111,4 @@ import 'sortablejs';
111
111
  import './useElevation-0e973238.js';
112
112
  import './useResponsive-a02e95b7.js';
113
113
  import '@vueuse/integrations/useFocusTrap';
114
- import './dropdown-open-0d314aa4.js';
115
114
  import './useOverflow-ac506c65.js';
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-a9d3f157.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-118e052c.js';
2
2
  import 'vue-demi';
3
3
  import './OrButton-12b36e89.js';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -8,7 +8,7 @@ import 'vue';
8
8
  import './OrOverlay-27050c19.js';
9
9
  import './useElevation-0e973238.js';
10
10
  import './OrTeleport.vue3-8099178c.js';
11
- import './OrInput-f51916d4.js';
11
+ import './OrInput-0a21591a.js';
12
12
  import './OrError-19a62a18.js';
13
13
  import './OrHint-73835593.js';
14
14
  import './OrIconButton-f9226adf.js';
@@ -1,4 +1,4 @@
1
- export { I as InputType, s as OrInputV3 } from './OrInput-f51916d4.js';
1
+ export { I as InputType, s as OrInputV3 } from './OrInput-0a21591a.js';
2
2
  export { a as InputSize } from './OrInputBox-634230b1.js';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -1,9 +1,9 @@
1
- export { s as OrSearchV3 } from './OrSearch-e27cadbf.js';
1
+ export { s as OrSearchV3 } from './OrSearch-8af88170.js';
2
2
  export { a as SearchSize } from './OrInputBox-634230b1.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
5
5
  import './useClassAttribute-47fdb016.js';
6
- import './OrInput-f51916d4.js';
6
+ import './OrInput-0a21591a.js';
7
7
  import './OrError-19a62a18.js';
8
8
  import 'vue';
9
9
  import './OrHint-73835593.js';
@@ -1,7 +1,6 @@
1
- export { s as OrSelectV3 } from './OrSelect-9d821ef2.js';
1
+ export { s as OrSelectV3 } from './OrSelect-32207997.js';
2
2
  export { a as SelectSize } from './OrInputBox-634230b1.js';
3
3
  import 'vue-demi';
4
- import './dropdown-open-0d314aa4.js';
5
4
  import './useClassAttribute-47fdb016.js';
6
5
  import './useOverflow-ac506c65.js';
7
6
  import '@vueuse/core';
@@ -13,7 +12,7 @@ import './OrError-19a62a18.js';
13
12
  import './OrExpansionPanel-1e2a6375.js';
14
13
  import './OrIcon-b3906e35.js';
15
14
  import './OrHint-73835593.js';
16
- import './OrInput-f51916d4.js';
15
+ import './OrInput-0a21591a.js';
17
16
  import './OrIconButton-f9226adf.js';
18
17
  import './OrTooltip-30e05f9e.js';
19
18
  import './OrPopover-3525c670.js';
@@ -1,2 +1,7 @@
1
- export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
1
+ export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
2
+ export { u as useElevation } from './useElevation-0e973238.js';
3
+ export { u as useOverflow } from './useOverflow-ac506c65.js';
4
+ export { u as useResponsive } from './useResponsive-a02e95b7.js';
5
+ export { u as useToggle } from './useToggle-29e4d7c7.js';
2
6
  import 'vue-demi';
7
+ import '@vueuse/core';
@@ -1,7 +1,3 @@
1
- export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
2
- export { u as useElevation } from './useElevation-0e973238.js';
3
- export { u as useOverflow } from './useOverflow-ac506c65.js';
4
1
  export { u as useResponsive } from './useResponsive-a02e95b7.js';
5
- export { u as useToggle } from './useToggle-29e4d7c7.js';
6
- import 'vue-demi';
7
2
  import '@vueuse/core';
3
+ import 'vue-demi';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.62.3-beta.1899.0",
3
+ "version": "2.62.3-beta.1901.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -41,32 +41,34 @@
41
41
  @blur="$emit('blur', $event)"
42
42
  >
43
43
 
44
- <template v-if="type === 'password'">
45
- <OrIconButton
46
- :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
47
- :color="'inherit'"
48
- :disabled="disabled"
49
- @click.stop="disclosed = !disclosed"
50
- />
51
- </template>
52
-
53
- <template v-if="type === 'search'">
54
- <template v-if="modelValue">
44
+ <div :class="['-m-xs', 'ml-none']">
45
+ <template v-if="type === 'password'">
55
46
  <OrIconButton
56
- :icon="'close'"
47
+ :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
57
48
  :color="'inherit'"
58
49
  :disabled="disabled"
59
- @click.stop="$emit('update:modelValue', '')"
50
+ @click.stop="disclosed = !disclosed"
60
51
  />
61
52
  </template>
62
53
 
63
- <template v-else>
64
- <OrIcon
65
- :icon="'search'"
66
- :variant="'outlined'"
67
- />
54
+ <template v-if="type === 'search'">
55
+ <template v-if="modelValue">
56
+ <OrIconButton
57
+ :icon="'close'"
58
+ :color="'inherit'"
59
+ :disabled="disabled"
60
+ @click.stop="$emit('update:modelValue', '')"
61
+ />
62
+ </template>
63
+
64
+ <template v-else>
65
+ <OrIcon
66
+ :icon="'search'"
67
+ :variant="'outlined'"
68
+ />
69
+ </template>
68
70
  </template>
69
- </template>
71
+ </div>
70
72
  </OrInputBox>
71
73
 
72
74
  <template v-if="!invalid">
@@ -21,7 +21,7 @@
21
21
 
22
22
  <OrInputBox
23
23
  ref="inputBox"
24
- v-dropdown-open="toggle"
24
+ v-dropdown-open="open"
25
25
  v-dropdown-close="close"
26
26
  :class="[popoverState === 'open' && 'rounded-b-0']"
27
27
  :size="size"
@@ -208,7 +208,8 @@
208
208
 
209
209
  <script lang="ts">
210
210
  import { computed, defineComponent, getCurrentInstance, onMounted, PropType, ref, watch } from 'vue-demi';
211
- import { DropdownClose, DropdownOpen } from '../../directives';
211
+ import { DropdownClose } from '../../directives/dropdown-close';
212
+ import { DropdownOpen } from '../../directives/dropdown-open';
212
213
  import { useClassAttribute, useOverflow } from '../../hooks';
213
214
  import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3';
214
215
  import { OrErrorV3 as OrError } from '../or-error-v3';
@@ -464,16 +465,12 @@ export default defineComponent({
464
465
  });
465
466
 
466
467
  // Methods
467
- function toggle(): void {
468
+ function open(): void {
468
469
  if (!readonly.value && !props.disabled) {
469
470
  const popoverInstance = popover.value;
470
471
 
471
472
  if (popoverInstance) {
472
- if (popoverState.value === 'open') {
473
- (popoverInstance.close as () => void)();
474
- } else {
475
- (popoverInstance.open as () => void)();
476
- }
473
+ (popoverInstance.open as () => void)();
477
474
  }
478
475
  }
479
476
  }
@@ -518,7 +515,7 @@ export default defineComponent({
518
515
  internalSearchOptions,
519
516
  resolvedSearchOptions,
520
517
  groupedOptions,
521
- toggle,
518
+ open,
522
519
  close,
523
520
  deselect,
524
521
  innerItems,
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './components';
2
- export * from './directives';
3
2
  export * from './hooks';
4
3
  export * from './utils/functions/text';
@@ -1,2 +0,0 @@
1
- export * from './dropdown-close';
2
- export * from './dropdown-open';
@@ -1,28 +0,0 @@
1
- import { isVue3 } from 'vue-demi';
2
-
3
- const created$1 = (element, binding) => {
4
- element.addEventListener('keydown', event => {
5
- event.preventDefault();
6
- if (['Escape'].includes(event.key)) {
7
- binding.value(event);
8
- }
9
- });
10
- };
11
- const DropdownClose = {
12
- [isVue3 ? 'created' : 'bind']: created$1
13
- };
14
-
15
- const created = (element, binding) => {
16
- element.addEventListener('keydown', event => {
17
- event.preventDefault();
18
- if (['Enter', ' '].includes(event.key)) {
19
- binding.value(event);
20
- }
21
- });
22
- element.addEventListener('click', binding.value);
23
- };
24
- const DropdownOpen = {
25
- [isVue3 ? 'created' : 'bind']: created
26
- };
27
-
28
- export { DropdownClose as D, DropdownOpen as a };
@@ -1,3 +0,0 @@
1
- export { u as useResponsive } from './useResponsive-a02e95b7.js';
2
- import '@vueuse/core';
3
- import 'vue-demi';
@@ -1,2 +0,0 @@
1
- export * from './dropdown-close';
2
- export * from './dropdown-open';
@@ -1,28 +0,0 @@
1
- import { isVue3 } from 'vue-demi';
2
-
3
- const created$1 = (element, binding) => {
4
- element.addEventListener('keydown', event => {
5
- event.preventDefault();
6
- if (['Escape'].includes(event.key)) {
7
- binding.value(event);
8
- }
9
- });
10
- };
11
- const DropdownClose = {
12
- [isVue3 ? 'created' : 'bind']: created$1
13
- };
14
-
15
- const created = (element, binding) => {
16
- element.addEventListener('keydown', event => {
17
- event.preventDefault();
18
- if (['Enter', ' '].includes(event.key)) {
19
- binding.value(event);
20
- }
21
- });
22
- element.addEventListener('click', binding.value);
23
- };
24
- const DropdownOpen = {
25
- [isVue3 ? 'created' : 'bind']: created
26
- };
27
-
28
- export { DropdownClose as D, DropdownOpen as a };
@@ -1,3 +0,0 @@
1
- export { u as useResponsive } from './useResponsive-a02e95b7.js';
2
- import '@vueuse/core';
3
- import 'vue-demi';
@@ -1,2 +0,0 @@
1
- export * from './dropdown-close';
2
- export * from './dropdown-open';