@onereach/ui-components 2.65.2-beta.1974.0 → 2.65.2-beta.1981.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 (85) hide show
  1. package/dist/v2/{OrCardCollection-064282ad.js → OrCardCollection-de81d05e.js} +2 -2
  2. package/dist/v2/{OrConfirm-924ae32c.js → OrConfirm-50192d26.js} +1 -1
  3. package/dist/v2/{OrIconButton-d4e78dbd.js → OrIconButton-f9d5ff27.js} +2 -2
  4. package/dist/v2/{OrInlineInput-0fea477d.js → OrInlineInput-648fbd08.js} +1 -1
  5. package/dist/v2/{OrInlineTextarea-6d18caed.js → OrInlineTextarea-dd58fdd2.js} +1 -1
  6. package/dist/v2/{OrInput-385f48da.js → OrInput-cbe19788.js} +1 -1
  7. package/dist/v2/{OrMenu-a2dedea3.js → OrMenu-bb81644d.js} +4 -13
  8. package/dist/v2/{OrMenuItem-7fa4798d.js → OrMenuItem-9034aece.js} +2 -2
  9. package/dist/v2/{OrModal-80e15678.js → OrModal-a7b04967.js} +1 -1
  10. package/dist/v2/{OrNotification-3d1dab4c.js → OrNotification-999059f3.js} +1 -1
  11. package/dist/v2/{OrPopover-c6e5acf4.js → OrPopover-9080fc00.js} +4 -13
  12. package/dist/v2/{OrSearch-b087463b.js → OrSearch-9bc1f5c3.js} +1 -1
  13. package/dist/v2/{OrSelect-75c9080c.js → OrSelect-ff4e8858.js} +4 -4
  14. package/dist/v2/{OrTabs-f31ec446.js → OrTabs-b1f0c7b8.js} +3 -3
  15. package/dist/v2/{OrTag-5e12d98e.js → OrTag-92eb418d.js} +1 -1
  16. package/dist/v2/{OrTooltip-c51ebe82.js → OrTooltip-4e1b0d6c.js} +16 -12
  17. package/dist/v2/components/or-menu-v3/OrMenu.stories3.d.ts +0 -5
  18. package/dist/v2/components/or-menu-v3/OrMenu.vue.d.ts +0 -4
  19. package/dist/v2/components/or-popover-v3/OrPopover.vue.d.ts +0 -4
  20. package/dist/v2/index.js +17 -17
  21. package/dist/v2/index11.js +5 -5
  22. package/dist/v2/index2.js +17 -17
  23. package/dist/v2/index21.js +5 -5
  24. package/dist/v2/index32.js +3 -3
  25. package/dist/v2/index35.js +4 -4
  26. package/dist/v2/index37.js +4 -4
  27. package/dist/v2/index39.js +4 -4
  28. package/dist/v2/index48.js +1 -1
  29. package/dist/v2/index49.js +2 -2
  30. package/dist/v2/index51.js +4 -4
  31. package/dist/v2/index53.js +4 -4
  32. package/dist/v2/index57.js +1 -1
  33. package/dist/v2/index63.js +5 -5
  34. package/dist/v2/index66.js +7 -7
  35. package/dist/v2/index80.js +4 -4
  36. package/dist/v2/index82.js +4 -4
  37. package/dist/v2/index90.js +4 -4
  38. package/dist/v2/index93.js +2 -2
  39. package/dist/v2/{types-d1571b53.js → types-69943d37.js} +1 -1
  40. package/dist/v3/{OrCardCollection-aabb79d6.js → OrCardCollection-aabc4ee8.js} +2 -2
  41. package/dist/v3/{OrConfirm-9aa2eb42.js → OrConfirm-648a332f.js} +1 -1
  42. package/dist/v3/{OrIconButton-7905be29.js → OrIconButton-f6e7d913.js} +2 -2
  43. package/dist/v3/{OrInlineInput-acf4170c.js → OrInlineInput-02655710.js} +1 -1
  44. package/dist/v3/{OrInlineTextarea-271d41ba.js → OrInlineTextarea-dd7e58f8.js} +1 -1
  45. package/dist/v3/{OrInput-0accb96c.js → OrInput-c9cbac93.js} +1 -1
  46. package/dist/v3/{OrMenu-320b485f.js → OrMenu-75ef8635.js} +4 -13
  47. package/dist/v3/{OrMenuItem-573e7088.js → OrMenuItem-60afcdcb.js} +2 -2
  48. package/dist/v3/{OrModal-3e294644.js → OrModal-892d7155.js} +1 -1
  49. package/dist/v3/{OrNotification-5806b30e.js → OrNotification-0764ca9b.js} +1 -1
  50. package/dist/v3/{OrPopover-16b6f117.js → OrPopover-3525c670.js} +3 -14
  51. package/dist/v3/{OrSearch-d7662fa5.js → OrSearch-1f71b1db.js} +1 -1
  52. package/dist/v3/{OrSelect-fcc1c859.js → OrSelect-25c0622d.js} +4 -4
  53. package/dist/v3/{OrTabs-3053239f.js → OrTabs-fe7039de.js} +3 -3
  54. package/dist/v3/{OrTag-7e2abc90.js → OrTag-3da3c48e.js} +1 -1
  55. package/dist/v3/{OrTooltip-cbb14b43.js → OrTooltip-91f1a258.js} +16 -12
  56. package/dist/v3/components/or-menu-v3/OrMenu.stories3.d.ts +0 -5
  57. package/dist/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -4
  58. package/dist/v3/components/or-popover-v3/OrPopover.vue.d.ts +0 -4
  59. package/dist/v3/index.js +17 -17
  60. package/dist/v3/index11.js +5 -5
  61. package/dist/v3/index2.js +17 -17
  62. package/dist/v3/index21.js +5 -5
  63. package/dist/v3/index32.js +3 -3
  64. package/dist/v3/index35.js +4 -4
  65. package/dist/v3/index37.js +4 -4
  66. package/dist/v3/index39.js +4 -4
  67. package/dist/v3/index48.js +1 -1
  68. package/dist/v3/index49.js +2 -2
  69. package/dist/v3/index51.js +4 -4
  70. package/dist/v3/index53.js +4 -4
  71. package/dist/v3/index57.js +1 -1
  72. package/dist/v3/index63.js +5 -5
  73. package/dist/v3/index66.js +7 -7
  74. package/dist/v3/index80.js +4 -4
  75. package/dist/v3/index82.js +4 -4
  76. package/dist/v3/index90.js +4 -4
  77. package/dist/v3/index93.js +2 -2
  78. package/dist/v3/{types-ac61ba80.js → types-87510065.js} +1 -1
  79. package/package.json +1 -1
  80. package/src/components/or-menu-item-v3/styles.ts +2 -2
  81. package/src/components/or-menu-v3/OrMenu.stories3.ts +0 -64
  82. package/src/components/or-menu-v3/OrMenu.vue +2 -10
  83. package/src/components/or-menu-v3/styles.ts +1 -2
  84. package/src/components/or-popover-v3/OrPopover.vue +1 -14
  85. package/src/components/or-tooltip-v3/OrTooltip.vue +15 -11
@@ -6,7 +6,7 @@
6
6
  >
7
7
  <OrPopover
8
8
  ref="popover"
9
- :variant="'auto'"
9
+ :variant="'popover'"
10
10
  :trigger="trigger"
11
11
  :placement="placement"
12
12
  :full-width="false"
@@ -59,8 +59,6 @@ export default defineComponent({
59
59
  'root',
60
60
  'open',
61
61
  'close',
62
- 'isOpen',
63
- 'toggle',
64
62
  ],
65
63
 
66
64
  setup() {
@@ -69,7 +67,7 @@ export default defineComponent({
69
67
 
70
68
  const popover = ref<InstanceType<typeof OrPopover>>();
71
69
  const popoverRoot = computed(() => popover.value?.root);
72
- const isOpen = computed(() => popover.value?.isOpen);
70
+
73
71
  // Styles
74
72
  const classAttribute = useClassAttribute();
75
73
 
@@ -100,10 +98,6 @@ export default defineComponent({
100
98
  }
101
99
  }
102
100
 
103
- function toggle(): void {
104
- isOpen.value ? close() : open();
105
- }
106
-
107
101
  // Handlers
108
102
  function onClick(event: Event): void {
109
103
  const path = event.composedPath() as HTMLElement[];
@@ -123,10 +117,8 @@ export default defineComponent({
123
117
  popoverRoot,
124
118
  rootStyles,
125
119
  bodyStyles,
126
- isOpen,
127
120
  open,
128
121
  close,
129
- toggle,
130
122
  onClick,
131
123
  };
132
124
  },
@@ -8,7 +8,6 @@ export const MenuBody: string[] = [
8
8
  'overflow-y-auto',
9
9
 
10
10
  // Box
11
- 'min-w-[160px]',
12
- 'md:max-w-[256px]',
11
+ 'max-w-[128px]',
13
12
  'max-h-[340px]',
14
13
  ];
@@ -21,7 +21,7 @@
21
21
  <template v-if="isMobile && variant === 'auto' || variant === 'bottom-sheet'">
22
22
  <OrBottomSheet
23
23
  ref="bottomSheet"
24
- @update:state="handleBottomSheetState"
24
+ @update:state="$emit('update:state', $event)"
25
25
  >
26
26
  <slot />
27
27
  </OrBottomSheet>
@@ -83,7 +83,6 @@ export default defineComponent({
83
83
  expose: [
84
84
  'root',
85
85
  'state',
86
- 'isOpen',
87
86
  'open',
88
87
  'close',
89
88
  ],
@@ -113,7 +112,6 @@ export default defineComponent({
113
112
 
114
113
  // State
115
114
  const state = ref<'open' | 'closed'>('closed');
116
- const isOpen = computed(() => state.value === 'open');
117
115
 
118
116
  // Events
119
117
  watch(state, (value) => {
@@ -187,15 +185,6 @@ export default defineComponent({
187
185
  }
188
186
  }
189
187
 
190
- // Handlers
191
- function handleBottomSheetState(bottomShetState: string): void {
192
- if (bottomShetState === 'closed') {
193
- state.value = 'closed';
194
- } else {
195
- state.value = 'open';
196
- }
197
- }
198
-
199
188
  // Effects
200
189
  watchPostEffect(() => {
201
190
  const rootElement = unref(root);
@@ -244,11 +233,9 @@ export default defineComponent({
244
233
  root,
245
234
  bottomSheet,
246
235
  bottomSheetRoot,
247
- handleBottomSheetState,
248
236
  rootStyles,
249
237
  bodyStyles,
250
238
  state,
251
- isOpen,
252
239
  open,
253
240
  close,
254
241
  };
@@ -25,7 +25,7 @@
25
25
  </template>
26
26
 
27
27
  <script lang="ts">
28
- import { useElementHover } from '@vueuse/core';
28
+ import { useDebounceFn, useElementHover } from '@vueuse/core';
29
29
  import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
30
30
  import { useClassAttribute } from '../../hooks';
31
31
  import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
@@ -85,21 +85,25 @@ export default defineComponent({
85
85
  ]);
86
86
 
87
87
  // Methods
88
- function open(): void {
89
- const popoverInstance = popover.value;
88
+ const open = useDebounceFn(() => {
89
+ if (hover.value) {
90
+ const popoverInstance = popover.value;
90
91
 
91
- if (popoverInstance) {
92
- (popoverInstance.open as () => void)();
92
+ if (popoverInstance) {
93
+ (popoverInstance.open as () => void)();
94
+ }
93
95
  }
94
- }
96
+ }, 1000);
95
97
 
96
- function close(): void {
97
- const popoverInstance = popover.value;
98
+ const close = useDebounceFn(() => {
99
+ if (!hover.value) {
100
+ const popoverInstance = popover.value;
98
101
 
99
- if (popoverInstance) {
100
- (popoverInstance.close as () => void)();
102
+ if (popoverInstance) {
103
+ (popoverInstance.close as () => void)();
104
+ }
101
105
  }
102
- }
106
+ }, 500);
103
107
 
104
108
  // Effects
105
109
  // #region Hover