@onereach/ui-components 2.62.3-beta.1899.0 → 2.62.3-beta.1902.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.
- package/dist/v2/{OrConfirm-d561bf82.js → OrConfirm-f3aed6d3.js} +1 -1
- package/dist/v2/{OrIconButton-1b34f3fa.js → OrIconButton-94c69467.js} +1 -1
- package/dist/v2/{OrInlineInput-e754cb9f.js → OrInlineInput-50da2b1f.js} +1 -1
- package/dist/v2/{OrInlineTextarea-7dc58bb1.js → OrInlineTextarea-94253b64.js} +1 -1
- package/dist/v2/{OrInput-0dcfba2a.js → OrInput-040147f3.js} +1 -1
- package/dist/v2/{OrModal-1ed53441.js → OrModal-e4439825.js} +1 -1
- package/dist/v2/{OrNotification-e2d510b3.js → OrNotification-be6132e6.js} +1 -1
- package/dist/v2/{OrSearch-45ea8c33.js → OrSearch-375ad422.js} +1 -1
- package/dist/v2/{OrSelect-b44cac14.js → OrSelect-846e9a87.js} +33 -13
- package/dist/v2/{OrTag-c42c3f9c.js → OrTag-02320f5f.js} +1 -1
- package/dist/v2/{OrTooltip-caeac590.js → OrTooltip-afe7030b.js} +33 -3
- package/dist/v2/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/v2/components/or-tooltip-v3/styles.d.ts +2 -0
- package/dist/v2/index.d.ts +0 -1
- package/dist/v2/index.js +12 -13
- package/dist/v2/index2.js +12 -13
- package/dist/v2/index20.js +4 -4
- package/dist/v2/index31.js +2 -2
- package/dist/v2/index34.js +3 -3
- package/dist/v2/index36.js +3 -3
- package/dist/v2/index38.js +3 -3
- package/dist/v2/index50.js +3 -3
- package/dist/v2/index52.js +3 -3
- package/dist/v2/index62.js +4 -4
- package/dist/v2/index64.js +5 -6
- package/dist/v2/index79.js +3 -3
- package/dist/v2/index87.js +3 -3
- package/dist/v2/index90.js +1 -1
- package/dist/v2/index91.js +6 -1
- package/dist/v2/index92.js +1 -5
- package/dist/v2/{types-8ea6482d.js → types-dd4c7282.js} +1 -1
- package/dist/v3/{OrConfirm-a9d3f157.js → OrConfirm-58aa4260.js} +1 -1
- package/dist/v3/{OrIconButton-f9226adf.js → OrIconButton-eef9eb43.js} +1 -1
- package/dist/v3/{OrInlineInput-8f473205.js → OrInlineInput-0c87838c.js} +1 -1
- package/dist/v3/{OrInlineTextarea-86f4506d.js → OrInlineTextarea-d50f03b7.js} +1 -1
- package/dist/v3/{OrInput-f51916d4.js → OrInput-d34c8571.js} +1 -1
- package/dist/v3/{OrModal-0713f927.js → OrModal-179f5a1a.js} +1 -1
- package/dist/v3/{OrNotification-7ef1b4e7.js → OrNotification-4a0dc24a.js} +1 -1
- package/dist/v3/{OrSearch-e27cadbf.js → OrSearch-95d4e098.js} +1 -1
- package/dist/v3/{OrSelect-9d821ef2.js → OrSelect-32f188bd.js} +32 -12
- package/dist/v3/{OrTag-60585386.js → OrTag-d1f3a0d0.js} +1 -1
- package/dist/v3/{OrTooltip-30e05f9e.js → OrTooltip-36c6728c.js} +33 -3
- package/dist/v3/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/v3/components/or-tooltip-v3/styles.d.ts +2 -0
- package/dist/v3/index.d.ts +0 -1
- package/dist/v3/index.js +12 -13
- package/dist/v3/index2.js +12 -13
- package/dist/v3/index20.js +4 -4
- package/dist/v3/index31.js +2 -2
- package/dist/v3/index34.js +3 -3
- package/dist/v3/index36.js +3 -3
- package/dist/v3/index38.js +3 -3
- package/dist/v3/index50.js +3 -3
- package/dist/v3/index52.js +3 -3
- package/dist/v3/index62.js +4 -4
- package/dist/v3/index64.js +5 -6
- package/dist/v3/index79.js +3 -3
- package/dist/v3/index87.js +3 -3
- package/dist/v3/index90.js +1 -1
- package/dist/v3/index91.js +6 -1
- package/dist/v3/index92.js +1 -5
- package/dist/v3/{types-e4403486.js → types-8ff779b1.js} +1 -1
- package/package.json +1 -1
- package/src/components/or-select-v3/OrSelect.vue +6 -9
- package/src/components/or-tooltip-v3/OrTooltip.vue +3 -2
- package/src/components/or-tooltip-v3/styles.ts +55 -0
- package/src/index.ts +0 -1
- package/dist/v2/directives/index.d.ts +0 -2
- package/dist/v2/dropdown-open-0d314aa4.js +0 -28
- package/dist/v2/index93.js +0 -3
- package/dist/v3/directives/index.d.ts +0 -2
- package/dist/v3/dropdown-open-0d314aa4.js +0 -28
- package/dist/v3/index93.js +0 -3
- package/src/directives/index.ts +0 -2
package/dist/v3/index64.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from './OrSelect-32f188bd.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,9 +12,9 @@ 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-
|
|
17
|
-
import './OrIconButton-
|
|
18
|
-
import './OrTooltip-
|
|
15
|
+
import './OrInput-d34c8571.js';
|
|
16
|
+
import './OrIconButton-eef9eb43.js';
|
|
17
|
+
import './OrTooltip-36c6728c.js';
|
|
19
18
|
import './OrPopover-3525c670.js';
|
|
20
19
|
import '@floating-ui/dom';
|
|
21
20
|
import './useElevation-0e973238.js';
|
|
@@ -24,4 +23,4 @@ import './OrBottomSheet-9de57dd0.js';
|
|
|
24
23
|
import './OrOverlay-27050c19.js';
|
|
25
24
|
import './OrTeleport.vue3-8099178c.js';
|
|
26
25
|
import './OrMenuItem-8773d073.js';
|
|
27
|
-
import './OrTag-
|
|
26
|
+
import './OrTag-d1f3a0d0.js';
|
package/dist/v3/index79.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
1
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-d1f3a0d0.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import './OrIconButton-
|
|
5
|
+
import './OrIconButton-eef9eb43.js';
|
|
6
6
|
import './OrIcon-b3906e35.js';
|
|
7
7
|
import 'vue';
|
|
8
|
-
import './OrTooltip-
|
|
8
|
+
import './OrTooltip-36c6728c.js';
|
|
9
9
|
import './OrPopover-3525c670.js';
|
|
10
10
|
import '@floating-ui/dom';
|
|
11
11
|
import './useElevation-0e973238.js';
|
package/dist/v3/index87.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
1
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-8ff779b1.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import './OrTeleport.vue3-8099178c.js';
|
|
6
6
|
import 'vue';
|
|
7
|
-
import './OrIconButton-
|
|
7
|
+
import './OrIconButton-eef9eb43.js';
|
|
8
8
|
import './useClassAttribute-47fdb016.js';
|
|
9
9
|
import './OrIcon-b3906e35.js';
|
|
10
|
-
import './OrTooltip-
|
|
10
|
+
import './OrTooltip-36c6728c.js';
|
|
11
11
|
import './OrPopover-3525c670.js';
|
|
12
12
|
import '@floating-ui/dom';
|
|
13
13
|
import './useElevation-0e973238.js';
|
package/dist/v3/index90.js
CHANGED
package/dist/v3/index91.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
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';
|
package/dist/v3/index92.js
CHANGED
|
@@ -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';
|
|
@@ -2,7 +2,7 @@ import { useToggle } from '@vueuse/core';
|
|
|
2
2
|
import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
|
|
3
3
|
import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
|
|
4
4
|
import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
|
|
5
|
-
import { s as script$2 } from './OrIconButton-
|
|
5
|
+
import { s as script$2 } from './OrIconButton-eef9eb43.js';
|
|
6
6
|
import { s as script$3 } from './OrLoader-60943812.js';
|
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, createElementVNode, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
<OrInputBox
|
|
23
23
|
ref="inputBox"
|
|
24
|
-
v-dropdown-open="
|
|
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
|
|
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
|
|
468
|
+
function open(): void {
|
|
468
469
|
if (!readonly.value && !props.disabled) {
|
|
469
470
|
const popoverInstance = popover.value;
|
|
470
471
|
|
|
471
472
|
if (popoverInstance) {
|
|
472
|
-
|
|
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
|
-
|
|
518
|
+
open,
|
|
522
519
|
close,
|
|
523
520
|
deselect,
|
|
524
521
|
innerItems,
|
|
@@ -30,7 +30,7 @@ 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';
|
|
32
32
|
import { TooltipPlacement } from './props';
|
|
33
|
-
import { TooltipBody, TooltipRoot } from './styles';
|
|
33
|
+
import { TooltipBody, TooltipBodyPlacements, TooltipRoot } from './styles';
|
|
34
34
|
|
|
35
35
|
export default defineComponent({
|
|
36
36
|
name: 'OrTooltip',
|
|
@@ -63,7 +63,7 @@ export default defineComponent({
|
|
|
63
63
|
'close',
|
|
64
64
|
],
|
|
65
65
|
|
|
66
|
-
setup() {
|
|
66
|
+
setup(props) {
|
|
67
67
|
// Refs
|
|
68
68
|
const root = ref<HTMLElement>();
|
|
69
69
|
|
|
@@ -81,6 +81,7 @@ export default defineComponent({
|
|
|
81
81
|
|
|
82
82
|
const bodyStyles = computed(() => [
|
|
83
83
|
...TooltipBody,
|
|
84
|
+
...TooltipBodyPlacements[props.placement],
|
|
84
85
|
]);
|
|
85
86
|
|
|
86
87
|
// Methods
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TooltipPlacement } from './props';
|
|
2
|
+
|
|
1
3
|
export const TooltipRoot: string[] = [
|
|
2
4
|
// Layout
|
|
3
5
|
'inline-block',
|
|
@@ -9,6 +11,9 @@ export const TooltipBody: string[] = [
|
|
|
9
11
|
'rounded-sm',
|
|
10
12
|
|
|
11
13
|
// Sizing
|
|
14
|
+
'mx-sm',
|
|
15
|
+
'my-sm',
|
|
16
|
+
|
|
12
17
|
'px-sm',
|
|
13
18
|
'py-xs',
|
|
14
19
|
|
|
@@ -22,3 +27,53 @@ export const TooltipBody: string[] = [
|
|
|
22
27
|
'text-inverse-on-surface',
|
|
23
28
|
'dark:text-inverse-on-surface-dark',
|
|
24
29
|
];
|
|
30
|
+
|
|
31
|
+
export const TooltipBodyPlacements: Record<TooltipPlacement, string[]> = {
|
|
32
|
+
'top': [],
|
|
33
|
+
|
|
34
|
+
'top-start': [
|
|
35
|
+
// Sizing
|
|
36
|
+
'ml-none',
|
|
37
|
+
],
|
|
38
|
+
|
|
39
|
+
'top-end': [
|
|
40
|
+
// Sizing
|
|
41
|
+
'mr-none',
|
|
42
|
+
],
|
|
43
|
+
|
|
44
|
+
'bottom': [],
|
|
45
|
+
|
|
46
|
+
'bottom-start': [
|
|
47
|
+
// Sizing
|
|
48
|
+
'ml-none',
|
|
49
|
+
],
|
|
50
|
+
|
|
51
|
+
'bottom-end': [
|
|
52
|
+
// Sizing
|
|
53
|
+
'mr-none',
|
|
54
|
+
],
|
|
55
|
+
|
|
56
|
+
'left': [],
|
|
57
|
+
|
|
58
|
+
'left-start': [
|
|
59
|
+
// Sizing
|
|
60
|
+
'mt-none',
|
|
61
|
+
],
|
|
62
|
+
|
|
63
|
+
'left-end': [
|
|
64
|
+
// Sizing
|
|
65
|
+
'mb-none',
|
|
66
|
+
],
|
|
67
|
+
|
|
68
|
+
'right': [],
|
|
69
|
+
|
|
70
|
+
'right-start': [
|
|
71
|
+
// Sizing
|
|
72
|
+
'mt-none',
|
|
73
|
+
],
|
|
74
|
+
|
|
75
|
+
'right-end': [
|
|
76
|
+
// Sizing
|
|
77
|
+
'mb-none',
|
|
78
|
+
],
|
|
79
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -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 };
|
package/dist/v2/index93.js
DELETED
|
@@ -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 };
|
package/dist/v3/index93.js
DELETED
package/src/directives/index.ts
DELETED