@onereach/ui-components 2.70.2-beta.2207.0 → 2.70.2-beta.2212.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/bundled/v2/{OrConfirm-23c3ce56.js → OrConfirm-057e997e.js} +12 -5
- package/dist/bundled/v2/{OrSelect-02fb39f0.js → OrSelect-c49e1bcf.js} +1 -1
- package/dist/bundled/v2/{OrTag-30fecee5.js → OrTag-e3e6fdd6.js} +1 -1
- package/dist/bundled/v2/components/index.js +3 -3
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tag-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +4 -4
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-05b21989.js → OrConfirm.vue_vue_type_script_lang-9d9a3917.js} +12 -5
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-83f15704.js → OrSelect.vue_vue_type_script_lang-58e5a52b.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-3e30f662.js → OrTag.vue_vue_type_script_lang-e45c345b.js} +1 -1
- package/dist/bundled/v3/components/index.js +3 -3
- package/dist/bundled/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-tag-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +6 -6
- package/dist/esm/v2/{OrConfirm-e2ab9b4c.js → OrConfirm-047d4086.js} +13 -6
- package/dist/esm/v2/{OrSelect-f8837f5d.js → OrSelect-1d705445.js} +1 -1
- package/dist/esm/v2/{OrTag-5c404031.js → OrTag-52e4cc94.js} +1 -1
- package/dist/esm/v2/components/index.js +3 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +7 -7
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-v3/index.js +1 -1
- package/dist/esm/v2/index.js +3 -3
- package/dist/esm/v3/{OrConfirm-1bcd39b1.js → OrConfirm-fee3c859.js} +13 -6
- package/dist/esm/v3/{OrSelect-8fbd88bc.js → OrSelect-dfa4885f.js} +1 -1
- package/dist/esm/v3/{OrTag-5d54f37d.js → OrTag-efa7578f.js} +1 -1
- package/dist/esm/v3/components/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +6 -6
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-v3/index.js +1 -1
- package/dist/esm/v3/index.js +3 -3
- package/package.json +1 -1
- package/src/components/or-confirm-v3/OrConfirm.vue +11 -10
- package/src/components/or-confirm-v3/styles.ts +13 -3
- package/src/components/or-tag-v3/styles.ts +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
2
|
+
import { logicAnd } from '@vueuse/math';
|
|
1
3
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
4
|
import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-835d4f11.js';
|
|
3
|
-
import { _ as __vue_component__$1 } from './OrOverlay-18ba2dc6.js';
|
|
4
5
|
import { _ as __vue_component__$3 } from './OrInput-ada3a970.js';
|
|
5
|
-
import {
|
|
6
|
-
import { logicAnd } from '@vueuse/math';
|
|
6
|
+
import { _ as __vue_component__$1 } from './OrOverlay-18ba2dc6.js';
|
|
7
7
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
8
8
|
|
|
9
9
|
var ConfirmType;
|
|
@@ -13,12 +13,14 @@ var ConfirmType;
|
|
|
13
13
|
})(ConfirmType || (ConfirmType = {}));
|
|
14
14
|
|
|
15
15
|
const ConfirmRoot = [
|
|
16
|
+
// Position
|
|
17
|
+
'fixed md:static', 'left-none', 'right-none', 'bottom-none',
|
|
16
18
|
// Layout
|
|
17
19
|
'layout-column',
|
|
18
20
|
// Box
|
|
19
|
-
'w-[320px]',
|
|
21
|
+
'w-full md:w-[320px]',
|
|
20
22
|
// Shape
|
|
21
|
-
'rounded-md',
|
|
23
|
+
'rounded-0 md:rounded-md',
|
|
22
24
|
// Spacing
|
|
23
25
|
'px-lg', 'py-lg', 'gap-md',
|
|
24
26
|
// Typography
|
|
@@ -51,8 +53,10 @@ const ConfirmFooterTypes = {
|
|
|
51
53
|
'flex-row-reverse']
|
|
52
54
|
};
|
|
53
55
|
const ConfirmFooterButtons = [
|
|
56
|
+
// Layout
|
|
57
|
+
'grow',
|
|
54
58
|
// Box
|
|
55
|
-
'w-[128px]'];
|
|
59
|
+
'w-auto md:w-[128px]'];
|
|
56
60
|
|
|
57
61
|
var script = defineComponent({
|
|
58
62
|
name: 'OrConfirm',
|
|
@@ -194,6 +198,9 @@ var script = defineComponent({
|
|
|
194
198
|
const inputBoxStyles = computed(() => [...ConfirmInput]);
|
|
195
199
|
const footerStyles = computed(() => [...ConfirmFooter, ...ConfirmFooterTypes[props.confirmType]]);
|
|
196
200
|
const buttonsStyles = computed(() => [...ConfirmFooterButtons]);
|
|
201
|
+
// #region Click Outside
|
|
202
|
+
onClickOutside(root, close);
|
|
203
|
+
// #endregion
|
|
197
204
|
return {
|
|
198
205
|
root,
|
|
199
206
|
confirmationInput,
|
|
@@ -13,7 +13,7 @@ import { _ as __vue_component__$6 } from './OrInput-ada3a970.js';
|
|
|
13
13
|
import { _ as __vue_component__$8 } from './OrLabel-2a9f1477.js';
|
|
14
14
|
import { _ as __vue_component__$9 } from './OrMenuItem-c7f28480.js';
|
|
15
15
|
import { _ as __vue_component__$a } from './OrPopover-9bafbdb4.js';
|
|
16
|
-
import { _ as __vue_component__$b } from './OrTag-
|
|
16
|
+
import { _ as __vue_component__$b } from './OrTag-52e4cc94.js';
|
|
17
17
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
18
18
|
|
|
19
19
|
const SelectRoot = [
|
|
@@ -43,7 +43,7 @@ const TagRootVariants = {
|
|
|
43
43
|
const TagRootColors = {
|
|
44
44
|
'default': [
|
|
45
45
|
// Theme
|
|
46
|
-
'theme-preset-2-primary', 'dark:theme-preset-2-primary-dark'
|
|
46
|
+
'theme-preset-2-primary', 'dark:theme-preset-2-primary-dark'],
|
|
47
47
|
'danger': [
|
|
48
48
|
// Theme
|
|
49
49
|
'theme-preset-2-error', 'dark:theme-preset-2-error-dark']
|
|
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-d4400b42.js';
|
|
|
19
19
|
export { _ as OrCollapse } from '../OrCollapse-4d892ca3.js';
|
|
20
20
|
export { _ 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-75abefdd.js';
|
|
21
21
|
export { _ as OrConfirm } from '../OrConfirm-d7112dd3.js';
|
|
22
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-
|
|
22
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-047d4086.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-349df9b2.js';
|
|
24
24
|
export { _ as OrError } from '../OrError-081130bb.js';
|
|
25
25
|
export { _ as OrErrorTagV3 } from '../OrErrorTag-782dd714.js';
|
|
@@ -68,7 +68,7 @@ export { _ as OrRadioV3 } from '../OrRadio-848ce55d.js';
|
|
|
68
68
|
export { _ as OrSearchV3 } from '../OrSearch-0f08f2f5.js';
|
|
69
69
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-e8dce8f9.js';
|
|
70
70
|
export { _ as OrSelect } from '../OrSelect-dae2b069.js';
|
|
71
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
71
|
+
export { _ as OrSelectV3 } from '../OrSelect-1d705445.js';
|
|
72
72
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-7d6125bb.js';
|
|
73
73
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-fabc7bc9.js';
|
|
74
74
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-cc94bdc9.js';
|
|
@@ -84,7 +84,7 @@ export { _ as OrTabV3 } from '../OrTab-702e7335.js';
|
|
|
84
84
|
export { _ as OrTabs } from '../OrTabs-e1c13d41.js';
|
|
85
85
|
export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-71bd3fd2.js';
|
|
86
86
|
export { _ as OrTag } from '../OrTag-c1fa6901.js';
|
|
87
|
-
export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-
|
|
87
|
+
export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-52e4cc94.js';
|
|
88
88
|
export { _ as OrTeleport } from '../OrTeleportVue2-8ef4ceca.js';
|
|
89
89
|
export { _ as OrTeleportV3 } from '../OrTeleport.vue2-fb92f29f.js';
|
|
90
90
|
export { _ as OrTextV3 } from '../OrText-ba5a2b6c.js';
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-047d4086.js';
|
|
2
|
+
import '@vueuse/core';
|
|
3
|
+
import '@vueuse/math';
|
|
2
4
|
import 'vue-demi';
|
|
3
5
|
import '../../OrButton-835d4f11.js';
|
|
4
6
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
|
-
import '@vueuse/core';
|
|
6
7
|
import '../../OrLoader-f857d55b.js';
|
|
7
8
|
import '../../normalize-component-6e8e3d80.js';
|
|
8
|
-
import '../../OrOverlay-18ba2dc6.js';
|
|
9
|
-
import '../../useElevation-31bfe1f6.js';
|
|
10
|
-
import '../../OrTeleport.vue2-fb92f29f.js';
|
|
11
|
-
import 'portal-vue';
|
|
12
9
|
import '../../OrInput-ada3a970.js';
|
|
13
10
|
import '../../OrError-d267ee9a.js';
|
|
14
11
|
import '../../OrHint-42dc9ebb.js';
|
|
@@ -17,9 +14,12 @@ import '../../OrIcon-5e394c62.js';
|
|
|
17
14
|
import '../../OrTooltip-513bee30.js';
|
|
18
15
|
import '../../OrPopover-9bafbdb4.js';
|
|
19
16
|
import '@floating-ui/dom';
|
|
17
|
+
import '../../useElevation-31bfe1f6.js';
|
|
20
18
|
import '../../useResponsive-a02e95b7.js';
|
|
21
19
|
import '../../OrBottomSheet-16c2e610.js';
|
|
20
|
+
import '../../OrOverlay-18ba2dc6.js';
|
|
21
|
+
import '../../OrTeleport.vue2-fb92f29f.js';
|
|
22
|
+
import 'portal-vue';
|
|
22
23
|
import '../../OrInputBox-4d5a318d.js';
|
|
23
24
|
import '../../OrLabel-2a9f1477.js';
|
|
24
25
|
import '../../browser-82dea9ed.js';
|
|
25
|
-
import '@vueuse/math';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-1d705445.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-4d5a318d.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
@@ -25,4 +25,4 @@ import '../../OrOverlay-18ba2dc6.js';
|
|
|
25
25
|
import '../../OrTeleport.vue2-fb92f29f.js';
|
|
26
26
|
import 'portal-vue';
|
|
27
27
|
import '../../OrMenuItem-c7f28480.js';
|
|
28
|
-
import '../../OrTag-
|
|
28
|
+
import '../../OrTag-52e4cc94.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-d4400b42.js';
|
|
|
19
19
|
export { _ as OrCollapse } from './OrCollapse-4d892ca3.js';
|
|
20
20
|
export { _ 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-75abefdd.js';
|
|
21
21
|
export { _ as OrConfirm } from './OrConfirm-d7112dd3.js';
|
|
22
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-
|
|
22
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-047d4086.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-349df9b2.js';
|
|
24
24
|
export { _ as OrError } from './OrError-081130bb.js';
|
|
25
25
|
export { _ as OrErrorTagV3 } from './OrErrorTag-782dd714.js';
|
|
@@ -68,7 +68,7 @@ export { _ as OrRadioV3 } from './OrRadio-848ce55d.js';
|
|
|
68
68
|
export { _ as OrSearchV3 } from './OrSearch-0f08f2f5.js';
|
|
69
69
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e8dce8f9.js';
|
|
70
70
|
export { _ as OrSelect } from './OrSelect-dae2b069.js';
|
|
71
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
71
|
+
export { _ as OrSelectV3 } from './OrSelect-1d705445.js';
|
|
72
72
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-7d6125bb.js';
|
|
73
73
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-fabc7bc9.js';
|
|
74
74
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-cc94bdc9.js';
|
|
@@ -84,7 +84,7 @@ export { _ as OrTabV3 } from './OrTab-702e7335.js';
|
|
|
84
84
|
export { _ as OrTabs } from './OrTabs-e1c13d41.js';
|
|
85
85
|
export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-71bd3fd2.js';
|
|
86
86
|
export { _ as OrTag } from './OrTag-c1fa6901.js';
|
|
87
|
-
export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
87
|
+
export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-52e4cc94.js';
|
|
88
88
|
export { _ as OrTeleport } from './OrTeleportVue2-8ef4ceca.js';
|
|
89
89
|
export { _ as OrTeleportV3 } from './OrTeleport.vue2-fb92f29f.js';
|
|
90
90
|
export { _ as OrTextV3 } from './OrText-ba5a2b6c.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
2
|
+
import { logicAnd } from '@vueuse/math';
|
|
1
3
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
4
|
import { s as script$2, a as ButtonColor } from './OrButton-0fa67a0d.js';
|
|
3
|
-
import { s as script$1 } from './OrOverlay-738a44d5.js';
|
|
4
5
|
import { s as script$3 } from './OrInput-9c0426b9.js';
|
|
5
|
-
import {
|
|
6
|
-
import { logicAnd } from '@vueuse/math';
|
|
6
|
+
import { s as script$1 } from './OrOverlay-738a44d5.js';
|
|
7
7
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, normalizeClass, renderSlot, createTextVNode, toDisplayString, createElementBlock, createVNode, createCommentVNode } from 'vue';
|
|
8
8
|
|
|
9
9
|
var ConfirmType;
|
|
@@ -13,12 +13,14 @@ var ConfirmType;
|
|
|
13
13
|
})(ConfirmType || (ConfirmType = {}));
|
|
14
14
|
|
|
15
15
|
const ConfirmRoot = [
|
|
16
|
+
// Position
|
|
17
|
+
'fixed md:static', 'left-none', 'right-none', 'bottom-none',
|
|
16
18
|
// Layout
|
|
17
19
|
'layout-column',
|
|
18
20
|
// Box
|
|
19
|
-
'w-[320px]',
|
|
21
|
+
'w-full md:w-[320px]',
|
|
20
22
|
// Shape
|
|
21
|
-
'rounded-md',
|
|
23
|
+
'rounded-0 md:rounded-md',
|
|
22
24
|
// Spacing
|
|
23
25
|
'px-lg', 'py-lg', 'gap-md',
|
|
24
26
|
// Typography
|
|
@@ -51,8 +53,10 @@ const ConfirmFooterTypes = {
|
|
|
51
53
|
'flex-row-reverse']
|
|
52
54
|
};
|
|
53
55
|
const ConfirmFooterButtons = [
|
|
56
|
+
// Layout
|
|
57
|
+
'grow',
|
|
54
58
|
// Box
|
|
55
|
-
'w-[128px]'];
|
|
59
|
+
'w-auto md:w-[128px]'];
|
|
56
60
|
|
|
57
61
|
var script = defineComponent({
|
|
58
62
|
name: 'OrConfirm',
|
|
@@ -194,6 +198,9 @@ var script = defineComponent({
|
|
|
194
198
|
const inputBoxStyles = computed(() => [...ConfirmInput]);
|
|
195
199
|
const footerStyles = computed(() => [...ConfirmFooter, ...ConfirmFooterTypes[props.confirmType]]);
|
|
196
200
|
const buttonsStyles = computed(() => [...ConfirmFooterButtons]);
|
|
201
|
+
// #region Click Outside
|
|
202
|
+
onClickOutside(root, close);
|
|
203
|
+
// #endregion
|
|
197
204
|
return {
|
|
198
205
|
root,
|
|
199
206
|
confirmationInput,
|
|
@@ -13,7 +13,7 @@ import { s as script$6 } from './OrInput-9c0426b9.js';
|
|
|
13
13
|
import { s as script$8 } from './OrLabel-bdaec602.js';
|
|
14
14
|
import { s as script$9 } from './OrMenuItem-9da279f6.js';
|
|
15
15
|
import { s as script$a } from './OrPopover-1075dd38.js';
|
|
16
|
-
import { s as script$b } from './OrTag-
|
|
16
|
+
import { s as script$b } from './OrTag-efa7578f.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 = [
|
|
@@ -43,7 +43,7 @@ const TagRootVariants = {
|
|
|
43
43
|
const TagRootColors = {
|
|
44
44
|
'default': [
|
|
45
45
|
// Theme
|
|
46
|
-
'theme-preset-2-primary', 'dark:theme-preset-2-primary-dark'
|
|
46
|
+
'theme-preset-2-primary', 'dark:theme-preset-2-primary-dark'],
|
|
47
47
|
'danger': [
|
|
48
48
|
// Theme
|
|
49
49
|
'theme-preset-2-error', 'dark:theme-preset-2-error-dark']
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode-5ed69c23.js';
|
|
|
16
16
|
export { s as OrCollapse } from '../OrCollapse-445141ab.js';
|
|
17
17
|
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-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from '../OrConfirm-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-fee3c859.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from '../OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from '../OrErrorTag-98252eef.js';
|
|
@@ -63,7 +63,7 @@ export { s as OrRadioV3 } from '../OrRadio-54b6d0de.js';
|
|
|
63
63
|
export { s as OrSearchV3 } from '../OrSearch-9885d178.js';
|
|
64
64
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-171cad78.js';
|
|
65
65
|
export { s as OrSelect } from '../OrSelect-0821b907.js';
|
|
66
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
66
|
+
export { s as OrSelectV3 } from '../OrSelect-dfa4885f.js';
|
|
67
67
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
68
68
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-a62972f5.js';
|
|
69
69
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
|
|
@@ -79,7 +79,7 @@ export { s as OrTabV3 } from '../OrTab-c131cf60.js';
|
|
|
79
79
|
export { s as OrTabs } from '../OrTabs-d3812c11.js';
|
|
80
80
|
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-d0ee6cef.js';
|
|
81
81
|
export { s as OrTag } from '../OrTag-1b5e43fa.js';
|
|
82
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-
|
|
82
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-efa7578f.js';
|
|
83
83
|
export { s as OrTeleport } from '../OrTeleportVue3-ad639f12.js';
|
|
84
84
|
export { s as OrTeleportV3 } from '../OrTeleport.vue3-8099178c.js';
|
|
85
85
|
export { s as OrTextV3 } from '../OrText-ecb46923.js';
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-fee3c859.js';
|
|
2
|
+
import '@vueuse/core';
|
|
3
|
+
import '@vueuse/math';
|
|
2
4
|
import 'vue-demi';
|
|
3
5
|
import '../../OrButton-0fa67a0d.js';
|
|
4
6
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
|
-
import '@vueuse/core';
|
|
6
7
|
import '../../OrLoader-b3cf4231.js';
|
|
7
8
|
import 'vue';
|
|
8
|
-
import '../../OrOverlay-738a44d5.js';
|
|
9
|
-
import '../../useElevation-31bfe1f6.js';
|
|
10
|
-
import '../../OrTeleport.vue3-8099178c.js';
|
|
11
9
|
import '../../OrInput-9c0426b9.js';
|
|
12
10
|
import '../../OrError-ec8c709d.js';
|
|
13
11
|
import '../../OrHint-74bb732d.js';
|
|
@@ -16,9 +14,11 @@ import '../../OrIcon-b195169c.js';
|
|
|
16
14
|
import '../../OrTooltip-50d27b4f.js';
|
|
17
15
|
import '../../OrPopover-1075dd38.js';
|
|
18
16
|
import '@floating-ui/dom';
|
|
17
|
+
import '../../useElevation-31bfe1f6.js';
|
|
19
18
|
import '../../useResponsive-a02e95b7.js';
|
|
20
19
|
import '../../OrBottomSheet-62817aec.js';
|
|
20
|
+
import '../../OrOverlay-738a44d5.js';
|
|
21
|
+
import '../../OrTeleport.vue3-8099178c.js';
|
|
21
22
|
import '../../OrInputBox-6d1b6059.js';
|
|
22
23
|
import '../../OrLabel-bdaec602.js';
|
|
23
24
|
import '../../style-inject.es-4c6f2515.js';
|
|
24
|
-
import '@vueuse/math';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect-dfa4885f.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-6d1b6059.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
@@ -24,4 +24,4 @@ import '../../OrBottomSheet-62817aec.js';
|
|
|
24
24
|
import '../../OrOverlay-738a44d5.js';
|
|
25
25
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
26
26
|
import '../../OrMenuItem-9da279f6.js';
|
|
27
|
-
import '../../OrTag-
|
|
27
|
+
import '../../OrTag-efa7578f.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
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-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-fee3c859.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-98252eef.js';
|
|
@@ -63,7 +63,7 @@ export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
|
|
|
63
63
|
export { s as OrSearchV3 } from './OrSearch-9885d178.js';
|
|
64
64
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
|
|
65
65
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
66
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
66
|
+
export { s as OrSelectV3 } from './OrSelect-dfa4885f.js';
|
|
67
67
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
68
68
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
69
69
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -79,7 +79,7 @@ export { s as OrTabV3 } from './OrTab-c131cf60.js';
|
|
|
79
79
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
80
80
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-d0ee6cef.js';
|
|
81
81
|
export { s as OrTag } from './OrTag-1b5e43fa.js';
|
|
82
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
82
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-efa7578f.js';
|
|
83
83
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
84
84
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
85
85
|
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
package/package.json
CHANGED
|
@@ -65,20 +65,17 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<script lang="ts">
|
|
68
|
+
import { onClickOutside, useMagicKeys, whenever } from '@vueuse/core';
|
|
69
|
+
import { logicAnd } from '@vueuse/math';
|
|
68
70
|
import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
|
|
69
|
-
import { OrButtonV3 as OrButton
|
|
70
|
-
import { OrOverlayV3 as OrOverlay } from '../or-overlay-v3';
|
|
71
|
+
import { ButtonColor, OrButtonV3 as OrButton } from '../or-button-v3';
|
|
71
72
|
import { OrInputV3 as OrInput } from '../or-input-v3';
|
|
72
|
-
import {
|
|
73
|
-
import { logicAnd } from '@vueuse/math';
|
|
73
|
+
import { OrOverlayV3 as OrOverlay } from '../or-overlay-v3';
|
|
74
74
|
import { ConfirmType } from './props';
|
|
75
75
|
import {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
ConfirmInput,
|
|
80
|
-
ConfirmRoot,
|
|
81
|
-
ConfirmFooterButtons,
|
|
76
|
+
ConfirmFooter, ConfirmFooterButtons, ConfirmFooterTypes, ConfirmHeader,
|
|
77
|
+
ConfirmInput,
|
|
78
|
+
ConfirmRoot
|
|
82
79
|
} from './styles';
|
|
83
80
|
|
|
84
81
|
export default defineComponent({
|
|
@@ -261,6 +258,10 @@ export default defineComponent({
|
|
|
261
258
|
...ConfirmFooterButtons,
|
|
262
259
|
]);
|
|
263
260
|
|
|
261
|
+
// #region Click Outside
|
|
262
|
+
onClickOutside(root, close);
|
|
263
|
+
// #endregion
|
|
264
|
+
|
|
264
265
|
return {
|
|
265
266
|
root,
|
|
266
267
|
confirmationInput,
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { ConfirmType } from './props';
|
|
2
2
|
|
|
3
3
|
export const ConfirmRoot: string[] = [
|
|
4
|
+
// Position
|
|
5
|
+
'fixed md:static',
|
|
6
|
+
|
|
7
|
+
'left-none',
|
|
8
|
+
'right-none',
|
|
9
|
+
'bottom-none',
|
|
10
|
+
|
|
4
11
|
// Layout
|
|
5
12
|
'layout-column',
|
|
6
13
|
|
|
7
14
|
// Box
|
|
8
|
-
'w-[320px]',
|
|
15
|
+
'w-full md:w-[320px]',
|
|
9
16
|
|
|
10
17
|
// Shape
|
|
11
|
-
'rounded-md',
|
|
18
|
+
'rounded-0 md:rounded-md',
|
|
12
19
|
|
|
13
20
|
// Spacing
|
|
14
21
|
'px-lg',
|
|
@@ -71,6 +78,9 @@ export const ConfirmFooterTypes: Record<ConfirmType, string[]> = {
|
|
|
71
78
|
};
|
|
72
79
|
|
|
73
80
|
export const ConfirmFooterButtons: string[] = [
|
|
81
|
+
// Layout
|
|
82
|
+
'grow',
|
|
83
|
+
|
|
74
84
|
// Box
|
|
75
|
-
'w-[128px]',
|
|
85
|
+
'w-auto md:w-[128px]',
|
|
76
86
|
];
|