@onereach/ui-components 2.59.1-beta.1840.0 → 2.60.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 (73) hide show
  1. package/dist/v2/{OrConfirm-08975f91.js → OrConfirm-9decce90.js} +1 -1
  2. package/dist/v2/{OrIconButton-a5bd8ce5.js → OrIconButton-42c8459c.js} +2 -2
  3. package/dist/v2/{OrInlineInput-d8f0a6b9.js → OrInlineInput-49630a02.js} +1 -1
  4. package/dist/v2/{OrInlineTextarea-6b7cd3d5.js → OrInlineTextarea-b2185392.js} +1 -1
  5. package/dist/v2/{OrInput-1ef7b272.js → OrInput-5086835d.js} +5 -7
  6. package/dist/v2/{OrMenu-f78fd382.js → OrMenu-adbfd24f.js} +1 -1
  7. package/dist/v2/{OrModal-7d6348e5.js → OrModal-ef90cb0f.js} +1 -1
  8. package/dist/v2/{OrNotification-824e78b8.js → OrNotification-d2f13c11.js} +1 -1
  9. package/dist/v2/{OrPopover-edd82c5d.js → OrPopover-06682070.js} +39 -1
  10. package/dist/v2/{OrSearch-014d1796.js → OrSearch-9ef66e3a.js} +1 -1
  11. package/dist/v2/{OrSelect-6e506f56.js → OrSelect-37f933a7.js} +3 -3
  12. package/dist/v2/{OrTabs-94e45ed2.js → OrTabs-50dd04ee.js} +2 -2
  13. package/dist/v2/{OrTag-23de8510.js → OrTag-6b6ff503.js} +1 -1
  14. package/dist/v2/{OrTooltip-c004189d.js → OrTooltip-e9fd5e45.js} +1 -1
  15. package/dist/v2/components/or-popover-v3/props.d.ts +9 -1
  16. package/dist/v2/components/or-popover-v3/styles.d.ts +2 -0
  17. package/dist/v2/index.js +15 -15
  18. package/dist/v2/index2.js +15 -15
  19. package/dist/v2/index20.js +5 -5
  20. package/dist/v2/index31.js +3 -3
  21. package/dist/v2/index34.js +4 -4
  22. package/dist/v2/index36.js +4 -4
  23. package/dist/v2/index38.js +4 -4
  24. package/dist/v2/index48.js +2 -2
  25. package/dist/v2/index50.js +4 -4
  26. package/dist/v2/index52.js +4 -4
  27. package/dist/v2/index56.js +1 -1
  28. package/dist/v2/index62.js +5 -5
  29. package/dist/v2/index64.js +6 -6
  30. package/dist/v2/index77.js +3 -3
  31. package/dist/v2/index79.js +4 -4
  32. package/dist/v2/index87.js +4 -4
  33. package/dist/v2/index90.js +2 -2
  34. package/dist/v2/{types-868fd994.js → types-96ec9445.js} +1 -1
  35. package/dist/v3/{OrConfirm-fc9d6df7.js → OrConfirm-49fbe920.js} +1 -1
  36. package/dist/v3/{OrIconButton-e914edc4.js → OrIconButton-54618375.js} +2 -2
  37. package/dist/v3/{OrInlineInput-6a70c434.js → OrInlineInput-c8523c5a.js} +1 -1
  38. package/dist/v3/{OrInlineTextarea-d78de94e.js → OrInlineTextarea-2e3359d4.js} +1 -1
  39. package/dist/v3/{OrInput-03eb5e28.js → OrInput-5e4c5c9a.js} +3 -6
  40. package/dist/v3/{OrMenu-2c15e173.js → OrMenu-e9a72243.js} +1 -1
  41. package/dist/v3/{OrModal-a4e95fdd.js → OrModal-17b49caa.js} +1 -1
  42. package/dist/v3/{OrNotification-b9ad2b61.js → OrNotification-9e7e5d16.js} +1 -1
  43. package/dist/v3/{OrPopover-5b07072d.js → OrPopover-f49b5714.js} +39 -1
  44. package/dist/v3/{OrSearch-d49ac793.js → OrSearch-d7c4ed11.js} +1 -1
  45. package/dist/v3/{OrSelect-ab88b818.js → OrSelect-d5376a93.js} +3 -3
  46. package/dist/v3/{OrTabs-ff70020b.js → OrTabs-bfcbbd53.js} +2 -2
  47. package/dist/v3/{OrTag-09cc3f1f.js → OrTag-58145d09.js} +1 -1
  48. package/dist/v3/{OrTooltip-b814fa5e.js → OrTooltip-3928dfdc.js} +1 -1
  49. package/dist/v3/components/or-popover-v3/props.d.ts +9 -1
  50. package/dist/v3/components/or-popover-v3/styles.d.ts +2 -0
  51. package/dist/v3/index.js +15 -15
  52. package/dist/v3/index2.js +15 -15
  53. package/dist/v3/index20.js +5 -5
  54. package/dist/v3/index31.js +3 -3
  55. package/dist/v3/index34.js +4 -4
  56. package/dist/v3/index36.js +4 -4
  57. package/dist/v3/index38.js +4 -4
  58. package/dist/v3/index48.js +2 -2
  59. package/dist/v3/index50.js +4 -4
  60. package/dist/v3/index52.js +4 -4
  61. package/dist/v3/index56.js +1 -1
  62. package/dist/v3/index62.js +5 -5
  63. package/dist/v3/index64.js +6 -6
  64. package/dist/v3/index77.js +3 -3
  65. package/dist/v3/index79.js +4 -4
  66. package/dist/v3/index87.js +4 -4
  67. package/dist/v3/index90.js +2 -2
  68. package/dist/v3/{types-eafe769d.js → types-59395ba4.js} +1 -1
  69. package/package.json +3 -2
  70. package/src/components/or-input-v3/OrInput.vue +19 -21
  71. package/src/components/or-popover-v3/OrPopover.vue +2 -1
  72. package/src/components/or-popover-v3/props.ts +8 -0
  73. package/src/components/or-popover-v3/styles.ts +52 -0
@@ -1,4 +1,4 @@
1
- export { I as InputType, s as OrInputV3 } from './OrInput-03eb5e28.js';
1
+ export { I as InputType, s as OrInputV3 } from './OrInput-5e4c5c9a.js';
2
2
  export { a as InputSize } from './OrInputBox-f44f1f5f.js';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -6,10 +6,10 @@ import '@vueuse/core';
6
6
  import './OrError-19a62a18.js';
7
7
  import 'vue';
8
8
  import './OrHint-73835593.js';
9
- import './OrIconButton-e914edc4.js';
9
+ import './OrIconButton-54618375.js';
10
10
  import './OrIcon-b3906e35.js';
11
- import './OrTooltip-b814fa5e.js';
12
- import './OrPopover-5b07072d.js';
11
+ import './OrTooltip-3928dfdc.js';
12
+ import './OrPopover-f49b5714.js';
13
13
  import '@floating-ui/dom';
14
14
  import './useElevation-0e973238.js';
15
15
  import './useResponsive-a02e95b7.js';
@@ -1,5 +1,5 @@
1
- export { s as OrMenuV3 } from './OrMenu-2c15e173.js';
2
- export { P as MenuPlacement } from './OrPopover-5b07072d.js';
1
+ export { s as OrMenuV3 } from './OrMenu-e9a72243.js';
2
+ export { P as MenuPlacement } from './OrPopover-f49b5714.js';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
5
5
  import '@vueuse/core';
@@ -1,12 +1,12 @@
1
- export { M as ModalSize, s as OrModalV3 } from './OrModal-a4e95fdd.js';
1
+ export { M as ModalSize, s as OrModalV3 } from './OrModal-17b49caa.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
- import './OrIconButton-e914edc4.js';
5
+ import './OrIconButton-54618375.js';
6
6
  import './OrIcon-b3906e35.js';
7
7
  import 'vue';
8
- import './OrTooltip-b814fa5e.js';
9
- import './OrPopover-5b07072d.js';
8
+ import './OrTooltip-3928dfdc.js';
9
+ import './OrPopover-f49b5714.js';
10
10
  import '@floating-ui/dom';
11
11
  import './useElevation-0e973238.js';
12
12
  import './useResponsive-a02e95b7.js';
@@ -1,12 +1,12 @@
1
- export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-b9ad2b61.js';
1
+ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-9e7e5d16.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
- import './OrIconButton-e914edc4.js';
5
+ import './OrIconButton-54618375.js';
6
6
  import './OrIcon-b3906e35.js';
7
7
  import 'vue';
8
- import './OrTooltip-b814fa5e.js';
9
- import './OrPopover-5b07072d.js';
8
+ import './OrTooltip-3928dfdc.js';
9
+ import './OrPopover-f49b5714.js';
10
10
  import '@floating-ui/dom';
11
11
  import './useElevation-0e973238.js';
12
12
  import './useResponsive-a02e95b7.js';
@@ -1,4 +1,4 @@
1
- export { s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant } from './OrPopover-5b07072d.js';
1
+ export { s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant } from './OrPopover-f49b5714.js';
2
2
  import '@floating-ui/dom';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
@@ -1,16 +1,16 @@
1
- export { s as OrSearchV3 } from './OrSearch-d49ac793.js';
1
+ export { s as OrSearchV3 } from './OrSearch-d7c4ed11.js';
2
2
  export { a as SearchSize } from './OrInputBox-f44f1f5f.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
5
5
  import './useClassAttribute-47fdb016.js';
6
- import './OrInput-03eb5e28.js';
6
+ import './OrInput-5e4c5c9a.js';
7
7
  import './OrError-19a62a18.js';
8
8
  import 'vue';
9
9
  import './OrHint-73835593.js';
10
- import './OrIconButton-e914edc4.js';
10
+ import './OrIconButton-54618375.js';
11
11
  import './OrIcon-b3906e35.js';
12
- import './OrTooltip-b814fa5e.js';
13
- import './OrPopover-5b07072d.js';
12
+ import './OrTooltip-3928dfdc.js';
13
+ import './OrPopover-f49b5714.js';
14
14
  import '@floating-ui/dom';
15
15
  import './useElevation-0e973238.js';
16
16
  import './useResponsive-a02e95b7.js';
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from './OrSelect-ab88b818.js';
1
+ export { s as OrSelectV3 } from './OrSelect-d5376a93.js';
2
2
  export { a as SelectSize } from './OrInputBox-f44f1f5f.js';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
@@ -12,10 +12,10 @@ import './OrError-19a62a18.js';
12
12
  import './OrExpansionPanel-1e2a6375.js';
13
13
  import './OrIcon-b3906e35.js';
14
14
  import './OrHint-73835593.js';
15
- import './OrInput-03eb5e28.js';
16
- import './OrIconButton-e914edc4.js';
17
- import './OrTooltip-b814fa5e.js';
18
- import './OrPopover-5b07072d.js';
15
+ import './OrInput-5e4c5c9a.js';
16
+ import './OrIconButton-54618375.js';
17
+ import './OrTooltip-3928dfdc.js';
18
+ import './OrPopover-f49b5714.js';
19
19
  import '@floating-ui/dom';
20
20
  import './useElevation-0e973238.js';
21
21
  import './useResponsive-a02e95b7.js';
@@ -23,4 +23,4 @@ import './OrBottomSheet-20a6e3ee.js';
23
23
  import './OrOverlay-27050c19.js';
24
24
  import './OrTeleport.vue3-8099178c.js';
25
25
  import './OrMenuItem-f7d575ba.js';
26
- import './OrTag-09cc3f1f.js';
26
+ import './OrTag-58145d09.js';
@@ -1,12 +1,12 @@
1
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-ff70020b.js';
1
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-bfcbbd53.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import './useClassAttribute-47fdb016.js';
5
5
  import './OrIcon-b3906e35.js';
6
6
  import 'vue';
7
7
  import './OrMenuItem-f7d575ba.js';
8
- import './OrMenu-2c15e173.js';
9
- import './OrPopover-5b07072d.js';
8
+ import './OrMenu-e9a72243.js';
9
+ import './OrPopover-f49b5714.js';
10
10
  import '@floating-ui/dom';
11
11
  import './useElevation-0e973238.js';
12
12
  import './useResponsive-a02e95b7.js';
@@ -1,12 +1,12 @@
1
- export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-09cc3f1f.js';
1
+ export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-58145d09.js';
2
2
  import 'vue-demi';
3
3
  import './useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
- import './OrIconButton-e914edc4.js';
5
+ import './OrIconButton-54618375.js';
6
6
  import './OrIcon-b3906e35.js';
7
7
  import 'vue';
8
- import './OrTooltip-b814fa5e.js';
9
- import './OrPopover-5b07072d.js';
8
+ import './OrTooltip-3928dfdc.js';
9
+ import './OrPopover-f49b5714.js';
10
10
  import '@floating-ui/dom';
11
11
  import './useElevation-0e973238.js';
12
12
  import './useResponsive-a02e95b7.js';
@@ -1,14 +1,14 @@
1
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-eafe769d.js';
1
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-59395ba4.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-e914edc4.js';
7
+ import './OrIconButton-54618375.js';
8
8
  import './useClassAttribute-47fdb016.js';
9
9
  import './OrIcon-b3906e35.js';
10
- import './OrTooltip-b814fa5e.js';
11
- import './OrPopover-5b07072d.js';
10
+ import './OrTooltip-3928dfdc.js';
11
+ import './OrPopover-f49b5714.js';
12
12
  import '@floating-ui/dom';
13
13
  import './useElevation-0e973238.js';
14
14
  import './useResponsive-a02e95b7.js';
@@ -1,5 +1,5 @@
1
- export { s as OrTooltipV3 } from './OrTooltip-b814fa5e.js';
2
- export { P as TooltipPlacement } from './OrPopover-5b07072d.js';
1
+ export { s as OrTooltipV3 } from './OrTooltip-3928dfdc.js';
2
+ export { P as TooltipPlacement } from './OrPopover-f49b5714.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
5
  import './useClassAttribute-47fdb016.js';
@@ -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-e914edc4.js';
5
+ import { s as script$2 } from './OrIconButton-54618375.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.59.1-beta.1840.0",
3
+ "version": "2.60.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -75,5 +75,6 @@
75
75
  "portal-vue": {
76
76
  "optional": true
77
77
  }
78
- }
78
+ },
79
+ "gitHead": "a6d8285aee8f32ec3db7d20f5488d71de5dc45bb"
79
80
  }
@@ -41,34 +41,32 @@
41
41
  @blur="$emit('blur', $event)"
42
42
  >
43
43
 
44
- <div :class="['-m-xs', 'ml-none']">
45
- <template v-if="type === 'password'">
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">
46
55
  <OrIconButton
47
- :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
56
+ :icon="'close'"
48
57
  :color="'inherit'"
49
58
  :disabled="disabled"
50
- @click.stop="disclosed = !disclosed"
59
+ @click.stop="$emit('update:modelValue', '')"
51
60
  />
52
61
  </template>
53
62
 
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>
63
+ <template v-else>
64
+ <OrIcon
65
+ :icon="'search'"
66
+ :variant="'outlined'"
67
+ />
70
68
  </template>
71
- </div>
69
+ </template>
72
70
  </OrInputBox>
73
71
 
74
72
  <template v-if="!invalid">
@@ -37,7 +37,7 @@ import { useClassAttribute, useElevation, useResponsive } from '../../hooks';
37
37
  import { OrBottomSheetV3 as OrBottomSheet } from '../or-bottom-sheet-v3';
38
38
  import { OrTeleportV3 as OrTeleport } from '../or-teleport-v3';
39
39
  import { PopoverPlacement, PopoverVariant } from './props';
40
- import { PopoverBody, PopoverRoot } from './styles';
40
+ import { PopoverBody, PopoverBodyPlacements, PopoverRoot } from './styles';
41
41
 
42
42
  export default defineComponent({
43
43
  name: 'OrPopover',
@@ -107,6 +107,7 @@ export default defineComponent({
107
107
 
108
108
  const bodyStyles = computed(() => [
109
109
  ...PopoverBody,
110
+ ...PopoverBodyPlacements[props.placement],
110
111
  ]);
111
112
 
112
113
  // State
@@ -6,7 +6,15 @@ export enum PopoverVariant {
6
6
 
7
7
  export enum PopoverPlacement {
8
8
  Top = 'top',
9
+ TopStart = 'top-start',
10
+ TopEnd = 'top-end',
9
11
  Bottom = 'bottom',
12
+ BottomStart = 'bottom-start',
13
+ BottomEnd = 'bottom-end',
10
14
  Left = 'left',
15
+ LeftStart = 'left-start',
16
+ LeftEnd = 'left-end',
11
17
  Right = 'right',
18
+ RightStart = 'right-start',
19
+ RightEnd = 'right-end',
12
20
  }
@@ -1,3 +1,5 @@
1
+ import { PopoverPlacement } from './props';
2
+
1
3
  export const PopoverRoot: string[] = [
2
4
  // Position
3
5
  'absolute',
@@ -17,3 +19,53 @@ export const PopoverBody: string[] = [
17
19
  'shadow-contextual',
18
20
  'dark:shadow-contextual-dark',
19
21
  ];
22
+
23
+ export const PopoverBodyPlacements: Record<PopoverPlacement, string[]> = {
24
+ 'top': [],
25
+
26
+ 'top-start': [
27
+ // Sizing
28
+ 'ml-none',
29
+ ],
30
+
31
+ 'top-end': [
32
+ // Sizing
33
+ 'mr-none',
34
+ ],
35
+
36
+ 'bottom': [],
37
+
38
+ 'bottom-start': [
39
+ // Sizing
40
+ 'ml-none',
41
+ ],
42
+
43
+ 'bottom-end': [
44
+ // Sizing
45
+ 'mr-none',
46
+ ],
47
+
48
+ 'left': [],
49
+
50
+ 'left-start': [
51
+ // Sizing
52
+ 'mt-none',
53
+ ],
54
+
55
+ 'left-end': [
56
+ // Sizing
57
+ 'mb-none',
58
+ ],
59
+
60
+ 'right': [],
61
+
62
+ 'right-start': [
63
+ // Sizing
64
+ 'mt-none',
65
+ ],
66
+
67
+ 'right-end': [
68
+ // Sizing
69
+ 'mb-none',
70
+ ],
71
+ };