@onereach/ui-components 19.4.0 → 19.4.1
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/bundled/components/OrDrawerV3/OrDrawer.js +1 -1
- package/dist/bundled/components/OrDrawerV3/index.js +1 -1
- package/dist/bundled/components/OrDrawerV3/styles.js +1 -1
- package/dist/bundled/components/{OrDrawerV3-6c45a5e8.js → OrDrawerV3-279e0777.js} +8 -2
- package/dist/bundled/components/index.js +1 -1
- package/dist/bundled/index.js +1 -1
- package/dist/esm/components/or-drawer-v3/index.js +8 -2
- package/package.json +3 -3
- package/src/components/or-drawer-v3/OrDrawer.vue +8 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDrawerV3-
|
|
1
|
+
export { s as default } from '../OrDrawerV3-279e0777.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DrawerPlacement, s as OrDrawerV3 } from '../OrDrawerV3-
|
|
1
|
+
export { D as DrawerPlacement, s as OrDrawerV3 } from '../OrDrawerV3-279e0777.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as Drawer, d as DrawerContent, c as DrawerPadding, b as DrawerPlacements } from '../OrDrawerV3-
|
|
1
|
+
export { a as Drawer, d as DrawerContent, c as DrawerPadding, b as DrawerPlacements } from '../OrDrawerV3-279e0777.js';
|
|
@@ -87,8 +87,14 @@ var script = defineComponent({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
// Effects
|
|
90
|
-
onClickOutside(root,
|
|
91
|
-
|
|
90
|
+
onClickOutside(root, event => {
|
|
91
|
+
const path = event.composedPath();
|
|
92
|
+
const ignoreClasses = ['or-popover-v3', 'or-bottom-sheet-v3', 'or-modal-v3'];
|
|
93
|
+
if (!path.some(({
|
|
94
|
+
classList
|
|
95
|
+
}) => ignoreClasses.some(ignoreClass => classList === null || classList === void 0 ? void 0 : classList.contains(ignoreClass)))) {
|
|
96
|
+
close();
|
|
97
|
+
}
|
|
92
98
|
});
|
|
93
99
|
useSwipe(root, {
|
|
94
100
|
onSwipeEnd: (event, direction) => {
|
|
@@ -31,7 +31,7 @@ export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-ab4a5170.js';
|
|
|
31
31
|
export { s as OrDateTimeFormatV3 } from './OrDateTimeFormatV3-4d670434.js';
|
|
32
32
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, n as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-9b959de2.js';
|
|
33
33
|
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './OrDateTimePickerV3-fae2c559.js';
|
|
34
|
-
export { D as DrawerPlacement, s as OrDrawerV3 } from './OrDrawerV3-
|
|
34
|
+
export { D as DrawerPlacement, s as OrDrawerV3 } from './OrDrawerV3-279e0777.js';
|
|
35
35
|
export { D as DropAreaSize, s as OrDropAreaV3, a as approximateFileSize } from './OrDropAreaV3-f5cf734e.js';
|
|
36
36
|
export { E as EditorTabsOverflow, s as OrEditorTabsV3 } from './OrEditorTabsV3-36ef6b73.js';
|
|
37
37
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyStateV3-9f88aee1.js';
|
package/dist/bundled/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export { s as OrDateFormatV3 } from './components/OrDateFormatV3-3495075a.js';
|
|
|
21
21
|
export { s as OrDateRangePickerV3 } from './components/OrDateRangePickerV3-ab4a5170.js';
|
|
22
22
|
export { s as OrDateTimeFormatV3 } from './components/OrDateTimeFormatV3-4d670434.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, n as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './components/OrDateTimePicker-9b959de2.js';
|
|
24
|
-
export { D as DrawerPlacement, s as OrDrawerV3 } from './components/OrDrawerV3-
|
|
24
|
+
export { D as DrawerPlacement, s as OrDrawerV3 } from './components/OrDrawerV3-279e0777.js';
|
|
25
25
|
export { D as DropAreaSize, s as OrDropAreaV3, a as approximateFileSize } from './components/OrDropAreaV3-f5cf734e.js';
|
|
26
26
|
export { E as EditorTabsOverflow, s as OrEditorTabsV3 } from './components/OrEditorTabsV3-36ef6b73.js';
|
|
27
27
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './components/OrEmptyStateV3-9f88aee1.js';
|
|
@@ -96,8 +96,14 @@ var script = defineComponent({
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
// Effects
|
|
99
|
-
onClickOutside(root,
|
|
100
|
-
|
|
99
|
+
onClickOutside(root, event => {
|
|
100
|
+
const path = event.composedPath();
|
|
101
|
+
const ignoreClasses = ['or-popover-v3', 'or-bottom-sheet-v3', 'or-modal-v3'];
|
|
102
|
+
if (!path.some(({
|
|
103
|
+
classList
|
|
104
|
+
}) => ignoreClasses.some(ignoreClass => classList === null || classList === void 0 ? void 0 : classList.contains(ignoreClass)))) {
|
|
105
|
+
close();
|
|
106
|
+
}
|
|
101
107
|
});
|
|
102
108
|
useSwipe(root, {
|
|
103
109
|
onSwipeEnd: (event, direction) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "19.4.
|
|
3
|
+
"version": "19.4.1",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@codemirror/view": "^6",
|
|
34
34
|
"@floating-ui/dom": "1.5.3",
|
|
35
35
|
"@lezer/highlight": "*",
|
|
36
|
-
"@onereach/styles": "^19.4.
|
|
36
|
+
"@onereach/styles": "^19.4.1",
|
|
37
37
|
"@splidejs/splide": "4.0.6",
|
|
38
38
|
"@tiptap/core": "2.0.3",
|
|
39
39
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
},
|
|
142
142
|
"./package.json": "./package.json"
|
|
143
143
|
},
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "e4d92db0a04d7d6ae57881105d6a1aa9d3d29477"
|
|
145
145
|
}
|
|
@@ -97,8 +97,14 @@ export default defineComponent({
|
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
// Effects
|
|
100
|
-
onClickOutside(root, () => {
|
|
101
|
-
|
|
100
|
+
onClickOutside(root, (event) => {
|
|
101
|
+
const path = event.composedPath() as Element[];
|
|
102
|
+
const ignoreClasses = ['or-popover-v3', 'or-bottom-sheet-v3', 'or-modal-v3'];
|
|
103
|
+
|
|
104
|
+
if (!path.some(({ classList }) => ignoreClasses.some((ignoreClass) => classList?.contains(ignoreClass)))) {
|
|
105
|
+
close();
|
|
106
|
+
}
|
|
107
|
+
|
|
102
108
|
});
|
|
103
109
|
|
|
104
110
|
useSwipe(root, {
|