@onereach/ui-components 2.62.3 → 2.62.4-beta.1908.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 (57) hide show
  1. package/dist/v2/{OrConfirm-d561bf82.js → OrConfirm-f3aed6d3.js} +1 -1
  2. package/dist/v2/{OrIconButton-1b34f3fa.js → OrIconButton-94c69467.js} +1 -1
  3. package/dist/v2/{OrInlineInput-e754cb9f.js → OrInlineInput-50da2b1f.js} +1 -1
  4. package/dist/v2/{OrInlineTextarea-7dc58bb1.js → OrInlineTextarea-94253b64.js} +1 -1
  5. package/dist/v2/{OrInput-0dcfba2a.js → OrInput-040147f3.js} +1 -1
  6. package/dist/v2/{OrModal-1ed53441.js → OrModal-e4439825.js} +1 -1
  7. package/dist/v2/{OrNotification-e2d510b3.js → OrNotification-be6132e6.js} +1 -1
  8. package/dist/v2/{OrSearch-45ea8c33.js → OrSearch-375ad422.js} +1 -1
  9. package/dist/v2/{OrSelect-b44cac14.js → OrSelect-94a7ac91.js} +2 -2
  10. package/dist/v2/{OrTag-c42c3f9c.js → OrTag-02320f5f.js} +1 -1
  11. package/dist/v2/{OrTooltip-caeac590.js → OrTooltip-afe7030b.js} +33 -3
  12. package/dist/v2/components/or-tooltip-v3/styles.d.ts +2 -0
  13. package/dist/v2/index.js +12 -12
  14. package/dist/v2/index2.js +12 -12
  15. package/dist/v2/index20.js +4 -4
  16. package/dist/v2/index31.js +2 -2
  17. package/dist/v2/index34.js +3 -3
  18. package/dist/v2/index36.js +3 -3
  19. package/dist/v2/index38.js +3 -3
  20. package/dist/v2/index50.js +3 -3
  21. package/dist/v2/index52.js +3 -3
  22. package/dist/v2/index62.js +4 -4
  23. package/dist/v2/index64.js +5 -5
  24. package/dist/v2/index79.js +3 -3
  25. package/dist/v2/index87.js +3 -3
  26. package/dist/v2/index90.js +1 -1
  27. package/dist/v2/{types-8ea6482d.js → types-dd4c7282.js} +1 -1
  28. package/dist/v3/{OrConfirm-a9d3f157.js → OrConfirm-58aa4260.js} +1 -1
  29. package/dist/v3/{OrIconButton-f9226adf.js → OrIconButton-eef9eb43.js} +1 -1
  30. package/dist/v3/{OrInlineInput-8f473205.js → OrInlineInput-0c87838c.js} +1 -1
  31. package/dist/v3/{OrInlineTextarea-86f4506d.js → OrInlineTextarea-d50f03b7.js} +1 -1
  32. package/dist/v3/{OrInput-f51916d4.js → OrInput-d34c8571.js} +1 -1
  33. package/dist/v3/{OrModal-0713f927.js → OrModal-179f5a1a.js} +1 -1
  34. package/dist/v3/{OrNotification-7ef1b4e7.js → OrNotification-4a0dc24a.js} +1 -1
  35. package/dist/v3/{OrSearch-e27cadbf.js → OrSearch-95d4e098.js} +1 -1
  36. package/dist/v3/{OrSelect-9d821ef2.js → OrSelect-a873cd9a.js} +2 -2
  37. package/dist/v3/{OrTag-60585386.js → OrTag-d1f3a0d0.js} +1 -1
  38. package/dist/v3/{OrTooltip-30e05f9e.js → OrTooltip-36c6728c.js} +33 -3
  39. package/dist/v3/components/or-tooltip-v3/styles.d.ts +2 -0
  40. package/dist/v3/index.js +12 -12
  41. package/dist/v3/index2.js +12 -12
  42. package/dist/v3/index20.js +4 -4
  43. package/dist/v3/index31.js +2 -2
  44. package/dist/v3/index34.js +3 -3
  45. package/dist/v3/index36.js +3 -3
  46. package/dist/v3/index38.js +3 -3
  47. package/dist/v3/index50.js +3 -3
  48. package/dist/v3/index52.js +3 -3
  49. package/dist/v3/index62.js +4 -4
  50. package/dist/v3/index64.js +5 -5
  51. package/dist/v3/index79.js +3 -3
  52. package/dist/v3/index87.js +3 -3
  53. package/dist/v3/index90.js +1 -1
  54. package/dist/v3/{types-e4403486.js → types-8ff779b1.js} +1 -1
  55. package/package.json +2 -3
  56. package/src/components/or-tooltip-v3/OrTooltip.vue +3 -2
  57. package/src/components/or-tooltip-v3/styles.ts +55 -0
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
3
  import '@vueuse/core';
4
- import { s as script$2 } from './OrIconButton-f9226adf.js';
4
+ import { s as script$2 } from './OrIconButton-eef9eb43.js';
5
5
  import { s as script$1 } from './OrIcon-b3906e35.js';
6
6
  import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, createVNode, renderSlot, withModifiers } from 'vue';
7
7
 
@@ -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-d34c8571.js';
5
5
  import { a as InputBoxSize } from './OrInputBox-634230b1.js';
6
6
  import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
7
7
 
@@ -9,11 +9,11 @@ import { s as script$3 } from './OrExpansionPanel-1e2a6375.js';
9
9
  import { s as script$4 } from './OrHint-73835593.js';
10
10
  import { s as script$5 } from './OrIcon-b3906e35.js';
11
11
  import { s as script$7, a as InputBoxSize } from './OrInputBox-634230b1.js';
12
- import { s as script$6 } from './OrInput-f51916d4.js';
12
+ import { s as script$6 } from './OrInput-d34c8571.js';
13
13
  import { s as script$8 } from './OrLabel-7d4fe80b.js';
14
14
  import { s as script$9 } from './OrMenuItem-8773d073.js';
15
15
  import { s as script$a } from './OrPopover-3525c670.js';
16
- import { s as script$b } from './OrTag-60585386.js';
16
+ import { s as script$b } from './OrTag-d1f3a0d0.js';
17
17
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, normalizeClass, createElementVNode, Fragment, renderList, createVNode, withModifiers } from 'vue';
18
18
 
19
19
  const SelectRoot = [
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watchPostEffect, unref } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
3
  import '@vueuse/core';
4
- import { s as script$1 } from './OrIconButton-f9226adf.js';
4
+ import { s as script$1 } from './OrIconButton-eef9eb43.js';
5
5
  import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, createBlock, normalizeClass, withModifiers, createCommentVNode } from 'vue';
6
6
 
7
7
  var TagVariant;
@@ -11,11 +11,41 @@ const TooltipBody = [
11
11
  // Box
12
12
  'max-w-max', 'rounded-sm',
13
13
  // Sizing
14
- 'px-sm', 'py-xs',
14
+ 'mx-sm', 'my-sm', 'px-sm', 'py-xs',
15
15
  // Typography
16
16
  'typography-caption-regular',
17
17
  // Theme
18
18
  'bg-inverse-surface', 'dark:bg-inverse-surface-dark', 'text-inverse-on-surface', 'dark:text-inverse-on-surface-dark'];
19
+ const TooltipBodyPlacements = {
20
+ 'top': [],
21
+ 'top-start': [
22
+ // Sizing
23
+ 'ml-none'],
24
+ 'top-end': [
25
+ // Sizing
26
+ 'mr-none'],
27
+ 'bottom': [],
28
+ 'bottom-start': [
29
+ // Sizing
30
+ 'ml-none'],
31
+ 'bottom-end': [
32
+ // Sizing
33
+ 'mr-none'],
34
+ 'left': [],
35
+ 'left-start': [
36
+ // Sizing
37
+ 'mt-none'],
38
+ 'left-end': [
39
+ // Sizing
40
+ 'mb-none'],
41
+ 'right': [],
42
+ 'right-start': [
43
+ // Sizing
44
+ 'mt-none'],
45
+ 'right-end': [
46
+ // Sizing
47
+ 'mb-none']
48
+ };
19
49
 
20
50
  var script = defineComponent({
21
51
  name: 'OrTooltip',
@@ -35,7 +65,7 @@ var script = defineComponent({
35
65
  },
36
66
  emits: ['update:state'],
37
67
  expose: ['root', 'open', 'close'],
38
- setup() {
68
+ setup(props) {
39
69
  // Refs
40
70
  const root = ref();
41
71
  const popover = ref();
@@ -46,7 +76,7 @@ var script = defineComponent({
46
76
  // Styles
47
77
  const classAttribute = useClassAttribute();
48
78
  const rootStyles = computed(() => ['or-tooltip', ...TooltipRoot, classAttribute.value]);
49
- const bodyStyles = computed(() => [...TooltipBody]);
79
+ const bodyStyles = computed(() => [...TooltipBody, ...TooltipBodyPlacements[props.placement]]);
50
80
  // Methods
51
81
  function open() {
52
82
  const popoverInstance = popover.value;
@@ -1,2 +1,4 @@
1
+ import { TooltipPlacement } from './props';
1
2
  export declare const TooltipRoot: string[];
2
3
  export declare const TooltipBody: string[];
4
+ export declare const TooltipBodyPlacements: Record<TooltipPlacement, string[]>;
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-58aa4260.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';
@@ -26,14 +26,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
26
26
  export { s as OrHint } from './OrHint-1414c530.js';
27
27
  export { s as OrHintV3 } from './OrHint-73835593.js';
28
28
  export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-e23028f8.js';
29
- export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-f9226adf.js';
29
+ export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-eef9eb43.js';
30
30
  export { a as IconSize, I as IconVariant, s as OrIconV3 } from './OrIcon-b3906e35.js';
31
31
  export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-1b473796.js';
32
- export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-8f473205.js';
32
+ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-0c87838c.js';
33
33
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-455a2d64.js';
34
- export { s as OrInlineTextareaV3 } from './OrInlineTextarea-86f4506d.js';
34
+ export { s as OrInlineTextareaV3 } from './OrInlineTextarea-d50f03b7.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-d34c8571.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';
@@ -46,9 +46,9 @@ export { s as OrMenuItemV3 } from './OrMenuItem-8773d073.js';
46
46
  export { s as OrMenuV3 } from './OrMenu-75ef8635.js';
47
47
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-3525c670.js';
48
48
  export { s as OrModal, O as OrModalSizes } from './OrModal-75c8e5b6.js';
49
- export { M as ModalSize, s as OrModalV3 } from './OrModal-0713f927.js';
49
+ export { M as ModalSize, s as OrModalV3 } from './OrModal-179f5a1a.js';
50
50
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-38664729.js';
51
- export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-7ef1b4e7.js';
51
+ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-4a0dc24a.js';
52
52
  export { s as OrOverflowMenu } from './OrOverflowMenu-7a177537.js';
53
53
  export { s as OrOverlay } from './OrOverlay-451dce49.js';
54
54
  export { s as OrOverlayV3 } from './OrOverlay-27050c19.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-95d4e098.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-a873cd9a.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';
@@ -74,7 +74,7 @@ export { s as OrTabV3 } from './OrTab-97044946.js';
74
74
  export { s as OrTabs } from './OrTabs-d3812c11.js';
75
75
  export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
76
76
  export { s as OrTag } from './OrTag-7e24fdbc.js';
77
- export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-60585386.js';
77
+ export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-d1f3a0d0.js';
78
78
  export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
79
79
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
80
80
  export { s as OrTextV3 } from './OrText-ecb46923.js';
@@ -82,10 +82,10 @@ export { s as OrTextareaV3 } from './OrTextarea-09aa33dc.js';
82
82
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
83
83
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
84
84
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
85
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-e4403486.js';
85
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-8ff779b1.js';
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
- export { s as OrTooltipV3 } from './OrTooltip-30e05f9e.js';
88
+ export { s as OrTooltipV3 } from './OrTooltip-36c6728c.js';
89
89
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
90
90
  export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
91
91
  export { u as useElevation } from './useElevation-0e973238.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-58aa4260.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';
@@ -26,14 +26,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
26
26
  export { s as OrHint } from './OrHint-1414c530.js';
27
27
  export { s as OrHintV3 } from './OrHint-73835593.js';
28
28
  export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-e23028f8.js';
29
- export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-f9226adf.js';
29
+ export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-eef9eb43.js';
30
30
  export { a as IconSize, I as IconVariant, s as OrIconV3 } from './OrIcon-b3906e35.js';
31
31
  export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-1b473796.js';
32
- export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-8f473205.js';
32
+ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-0c87838c.js';
33
33
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-455a2d64.js';
34
- export { s as OrInlineTextareaV3 } from './OrInlineTextarea-86f4506d.js';
34
+ export { s as OrInlineTextareaV3 } from './OrInlineTextarea-d50f03b7.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-d34c8571.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';
@@ -46,9 +46,9 @@ export { s as OrMenuItemV3 } from './OrMenuItem-8773d073.js';
46
46
  export { s as OrMenuV3 } from './OrMenu-75ef8635.js';
47
47
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-3525c670.js';
48
48
  export { s as OrModal, O as OrModalSizes } from './OrModal-75c8e5b6.js';
49
- export { M as ModalSize, s as OrModalV3 } from './OrModal-0713f927.js';
49
+ export { M as ModalSize, s as OrModalV3 } from './OrModal-179f5a1a.js';
50
50
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-38664729.js';
51
- export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-7ef1b4e7.js';
51
+ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-4a0dc24a.js';
52
52
  export { s as OrOverflowMenu } from './OrOverflowMenu-7a177537.js';
53
53
  export { s as OrOverlay } from './OrOverlay-451dce49.js';
54
54
  export { s as OrOverlayV3 } from './OrOverlay-27050c19.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-95d4e098.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-a873cd9a.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';
@@ -74,7 +74,7 @@ export { s as OrTabV3 } from './OrTab-97044946.js';
74
74
  export { s as OrTabs } from './OrTabs-d3812c11.js';
75
75
  export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
76
76
  export { s as OrTag } from './OrTag-7e24fdbc.js';
77
- export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-60585386.js';
77
+ export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-d1f3a0d0.js';
78
78
  export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
79
79
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
80
80
  export { s as OrTextV3 } from './OrText-ecb46923.js';
@@ -82,10 +82,10 @@ export { s as OrTextareaV3 } from './OrTextarea-09aa33dc.js';
82
82
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
83
83
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
84
84
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
85
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-e4403486.js';
85
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-8ff779b1.js';
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
- export { s as OrTooltipV3 } from './OrTooltip-30e05f9e.js';
88
+ export { s as OrTooltipV3 } from './OrTooltip-36c6728c.js';
89
89
  import 'vue-demi';
90
90
  import 'lodash';
91
91
  import 'vue';
@@ -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-58aa4260.js';
2
2
  import 'vue-demi';
3
3
  import './OrButton-12b36e89.js';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -8,12 +8,12 @@ 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-d34c8571.js';
12
12
  import './OrError-19a62a18.js';
13
13
  import './OrHint-73835593.js';
14
- import './OrIconButton-f9226adf.js';
14
+ import './OrIconButton-eef9eb43.js';
15
15
  import './OrIcon-b3906e35.js';
16
- import './OrTooltip-30e05f9e.js';
16
+ import './OrTooltip-36c6728c.js';
17
17
  import './OrPopover-3525c670.js';
18
18
  import '@floating-ui/dom';
19
19
  import './useResponsive-a02e95b7.js';
@@ -1,10 +1,10 @@
1
- export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-f9226adf.js';
1
+ export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-eef9eb43.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
5
  import './OrIcon-b3906e35.js';
6
6
  import 'vue';
7
- import './OrTooltip-30e05f9e.js';
7
+ import './OrTooltip-36c6728c.js';
8
8
  import './OrPopover-3525c670.js';
9
9
  import '@floating-ui/dom';
10
10
  import './useElevation-0e973238.js';
@@ -1,4 +1,4 @@
1
- export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-8f473205.js';
1
+ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-0c87838c.js';
2
2
  export { I as InlineInputSize } from './OrInlineInputBox-1b473796.js';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -6,9 +6,9 @@ import '@vueuse/core';
6
6
  import './OrError-19a62a18.js';
7
7
  import 'vue';
8
8
  import './OrHint-73835593.js';
9
- import './OrIconButton-f9226adf.js';
9
+ import './OrIconButton-eef9eb43.js';
10
10
  import './OrIcon-b3906e35.js';
11
- import './OrTooltip-30e05f9e.js';
11
+ import './OrTooltip-36c6728c.js';
12
12
  import './OrPopover-3525c670.js';
13
13
  import '@floating-ui/dom';
14
14
  import './useElevation-0e973238.js';
@@ -1,13 +1,13 @@
1
- export { s as OrInlineTextareaV3 } from './OrInlineTextarea-86f4506d.js';
1
+ export { s as OrInlineTextareaV3 } from './OrInlineTextarea-d50f03b7.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
5
  import './OrError-19a62a18.js';
6
6
  import 'vue';
7
7
  import './OrHint-73835593.js';
8
- import './OrIconButton-f9226adf.js';
8
+ import './OrIconButton-eef9eb43.js';
9
9
  import './OrIcon-b3906e35.js';
10
- import './OrTooltip-30e05f9e.js';
10
+ import './OrTooltip-36c6728c.js';
11
11
  import './OrPopover-3525c670.js';
12
12
  import '@floating-ui/dom';
13
13
  import './useElevation-0e973238.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-d34c8571.js';
2
2
  export { a as InputSize } from './OrInputBox-634230b1.js';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -6,9 +6,9 @@ import '@vueuse/core';
6
6
  import './OrError-19a62a18.js';
7
7
  import 'vue';
8
8
  import './OrHint-73835593.js';
9
- import './OrIconButton-f9226adf.js';
9
+ import './OrIconButton-eef9eb43.js';
10
10
  import './OrIcon-b3906e35.js';
11
- import './OrTooltip-30e05f9e.js';
11
+ import './OrTooltip-36c6728c.js';
12
12
  import './OrPopover-3525c670.js';
13
13
  import '@floating-ui/dom';
14
14
  import './useElevation-0e973238.js';
@@ -1,11 +1,11 @@
1
- export { M as ModalSize, s as OrModalV3 } from './OrModal-0713f927.js';
1
+ export { M as ModalSize, s as OrModalV3 } from './OrModal-179f5a1a.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
- import './OrIconButton-f9226adf.js';
5
+ import './OrIconButton-eef9eb43.js';
6
6
  import './OrIcon-b3906e35.js';
7
7
  import 'vue';
8
- import './OrTooltip-30e05f9e.js';
8
+ import './OrTooltip-36c6728c.js';
9
9
  import './OrPopover-3525c670.js';
10
10
  import '@floating-ui/dom';
11
11
  import './useElevation-0e973238.js';
@@ -1,11 +1,11 @@
1
- export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-7ef1b4e7.js';
1
+ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-4a0dc24a.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
- import './OrIconButton-f9226adf.js';
5
+ import './OrIconButton-eef9eb43.js';
6
6
  import './OrIcon-b3906e35.js';
7
7
  import 'vue';
8
- import './OrTooltip-30e05f9e.js';
8
+ import './OrTooltip-36c6728c.js';
9
9
  import './OrPopover-3525c670.js';
10
10
  import '@floating-ui/dom';
11
11
  import './useElevation-0e973238.js';
@@ -1,15 +1,15 @@
1
- export { s as OrSearchV3 } from './OrSearch-e27cadbf.js';
1
+ export { s as OrSearchV3 } from './OrSearch-95d4e098.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-d34c8571.js';
7
7
  import './OrError-19a62a18.js';
8
8
  import 'vue';
9
9
  import './OrHint-73835593.js';
10
- import './OrIconButton-f9226adf.js';
10
+ import './OrIconButton-eef9eb43.js';
11
11
  import './OrIcon-b3906e35.js';
12
- import './OrTooltip-30e05f9e.js';
12
+ import './OrTooltip-36c6728c.js';
13
13
  import './OrPopover-3525c670.js';
14
14
  import '@floating-ui/dom';
15
15
  import './useElevation-0e973238.js';
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from './OrSelect-9d821ef2.js';
1
+ export { s as OrSelectV3 } from './OrSelect-a873cd9a.js';
2
2
  export { a as SelectSize } from './OrInputBox-634230b1.js';
3
3
  import 'vue-demi';
4
4
  import './dropdown-open-0d314aa4.js';
@@ -13,9 +13,9 @@ import './OrError-19a62a18.js';
13
13
  import './OrExpansionPanel-1e2a6375.js';
14
14
  import './OrIcon-b3906e35.js';
15
15
  import './OrHint-73835593.js';
16
- import './OrInput-f51916d4.js';
17
- import './OrIconButton-f9226adf.js';
18
- import './OrTooltip-30e05f9e.js';
16
+ import './OrInput-d34c8571.js';
17
+ import './OrIconButton-eef9eb43.js';
18
+ import './OrTooltip-36c6728c.js';
19
19
  import './OrPopover-3525c670.js';
20
20
  import '@floating-ui/dom';
21
21
  import './useElevation-0e973238.js';
@@ -24,4 +24,4 @@ import './OrBottomSheet-9de57dd0.js';
24
24
  import './OrOverlay-27050c19.js';
25
25
  import './OrTeleport.vue3-8099178c.js';
26
26
  import './OrMenuItem-8773d073.js';
27
- import './OrTag-60585386.js';
27
+ import './OrTag-d1f3a0d0.js';
@@ -1,11 +1,11 @@
1
- export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-60585386.js';
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-f9226adf.js';
5
+ import './OrIconButton-eef9eb43.js';
6
6
  import './OrIcon-b3906e35.js';
7
7
  import 'vue';
8
- import './OrTooltip-30e05f9e.js';
8
+ import './OrTooltip-36c6728c.js';
9
9
  import './OrPopover-3525c670.js';
10
10
  import '@floating-ui/dom';
11
11
  import './useElevation-0e973238.js';
@@ -1,13 +1,13 @@
1
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-e4403486.js';
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-f9226adf.js';
7
+ import './OrIconButton-eef9eb43.js';
8
8
  import './useClassAttribute-47fdb016.js';
9
9
  import './OrIcon-b3906e35.js';
10
- import './OrTooltip-30e05f9e.js';
10
+ import './OrTooltip-36c6728c.js';
11
11
  import './OrPopover-3525c670.js';
12
12
  import '@floating-ui/dom';
13
13
  import './useElevation-0e973238.js';
@@ -1,4 +1,4 @@
1
- export { s as OrTooltipV3 } from './OrTooltip-30e05f9e.js';
1
+ export { s as OrTooltipV3 } from './OrTooltip-36c6728c.js';
2
2
  export { P as TooltipPlacement } from './OrPopover-3525c670.js';
3
3
  import '@vueuse/core';
4
4
  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-f9226adf.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.62.3",
3
+ "version": "2.62.4-beta.1908.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -78,6 +78,5 @@
78
78
  },
79
79
  "publishConfig": {
80
80
  "access": "public"
81
- },
82
- "gitHead": "31fed12c298f65ea3e68da2e32588142523a3837"
81
+ }
83
82
  }
@@ -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
+ };