@onereach/ui-components 4.3.9 → 4.3.10-beta.2655.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/components/OrModalV3/OrModal.js +9 -3
- package/dist/bundled/v2/components/OrModalV3/OrModal.vue.d.ts +4 -0
- package/dist/bundled/v2/components/OrModalV3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/OrModalV3/styles.js +13 -3
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-c71dafa8.js → OrModal.vue_vue_type_script_lang-61c8fc41.js} +5 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +7 -6
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +2 -0
- package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
- package/dist/bundled/v3/components/OrModalV3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/OrModalV3/styles.js +13 -3
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/index.js +2 -2
- package/dist/esm/v2/{OrModal-a4c0fa77.js → OrModal-c78d6ff6.js} +20 -4
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +4 -0
- package/dist/esm/v2/components/or-modal-v3/index.js +1 -1
- package/dist/esm/v2/components/or-modal-v3/styles.d.ts +2 -0
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrModal-0908f20a.js → OrModal-033350be.js} +21 -6
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-modal-v3/index.js +1 -1
- package/dist/esm/v3/components/or-modal-v3/styles.d.ts +2 -0
- package/dist/esm/v3/index.js +1 -1
- package/package.json +2 -3
- package/src/components/or-modal-v3/OrModal.vue +15 -4
- package/src/components/or-modal-v3/styles.ts +21 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { ModalSize } from './components/OrModalV3/props.js';
|
|
3
|
-
import { ModalRoot, ModalRootSizes, ModalHeader } from './components/OrModalV3/styles.js';
|
|
3
|
+
import { ModalRoot, ModalRootSizes, ModalHeader, ModalContent, ModalFooter } from './components/OrModalV3/styles.js';
|
|
4
4
|
import './components/OrOverlayV3/OrOverlay.js';
|
|
5
5
|
import './components/OrIconButtonV3/OrIconButton.js';
|
|
6
6
|
import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-86c7b93a.js';
|
|
@@ -31,6 +31,8 @@ var script = defineComponent({
|
|
|
31
31
|
// Styles
|
|
32
32
|
const rootStyles = computed(() => ['or-modal-v3', ...ModalRoot, ...ModalRootSizes[props.size]]);
|
|
33
33
|
const headerStyles = computed(() => [...ModalHeader]);
|
|
34
|
+
const contentStyles = computed(() => [...ModalContent]);
|
|
35
|
+
const footerStyles = computed(() => [...ModalFooter]);
|
|
34
36
|
// State
|
|
35
37
|
const isActive = ref(false);
|
|
36
38
|
// Events
|
|
@@ -57,6 +59,8 @@ var script = defineComponent({
|
|
|
57
59
|
root,
|
|
58
60
|
rootStyles,
|
|
59
61
|
headerStyles,
|
|
62
|
+
contentStyles,
|
|
63
|
+
footerStyles,
|
|
60
64
|
isActive,
|
|
61
65
|
open,
|
|
62
66
|
close
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as script } from '../../OrModal.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrModal.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrModal.vue_vue_type_script_lang-61c8fc41.js';
|
|
2
|
+
export { s as default } from '../../OrModal.vue_vue_type_script_lang-61c8fc41.js';
|
|
3
3
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, normalizeClass, renderSlot, createVNode, withModifiers, createCommentVNode } from 'vue';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import './props.js';
|
|
@@ -37,9 +37,6 @@ import '../../hooks/useResponsive/useResponsive.js';
|
|
|
37
37
|
const _hoisted_1 = {
|
|
38
38
|
class: /*#__PURE__*/normalizeClass(['grow'])
|
|
39
39
|
};
|
|
40
|
-
const _hoisted_2 = {
|
|
41
|
-
class: /*#__PURE__*/normalizeClass(['grow', 'overflow-y-auto'])
|
|
42
|
-
};
|
|
43
40
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44
41
|
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
45
42
|
const _component_OrOverlay = resolveComponent("OrOverlay");
|
|
@@ -57,7 +54,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
57
54
|
icon: 'close',
|
|
58
55
|
size: 'l',
|
|
59
56
|
onClick: withModifiers(_ctx.close, ["stop"])
|
|
60
|
-
}, null, 8 /* PROPS */, ["onClick"])], 2 /* CLASS */), createElementVNode("div",
|
|
57
|
+
}, null, 8 /* PROPS */, ["onClick"])], 2 /* CLASS */), createElementVNode("div", {
|
|
58
|
+
class: normalizeClass(_ctx.contentStyles)
|
|
59
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), createElementVNode("div", {
|
|
60
|
+
class: normalizeClass(_ctx.footerStyles)
|
|
61
|
+
}, [renderSlot(_ctx.$slots, "footer")], 2 /* CLASS */)], 16 /* FULL_PROPS */)]),
|
|
61
62
|
|
|
62
63
|
_: 3 /* FORWARDED */
|
|
63
64
|
})) : createCommentVNode("v-if", true);
|
|
@@ -13,6 +13,8 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
13
13
|
root: import("vue-demi").Ref<HTMLElement | undefined>;
|
|
14
14
|
rootStyles: import("vue-demi").ComputedRef<string[]>;
|
|
15
15
|
headerStyles: import("vue-demi").ComputedRef<string[]>;
|
|
16
|
+
contentStyles: import("vue-demi").ComputedRef<string[]>;
|
|
17
|
+
footerStyles: import("vue-demi").ComputedRef<string[]>;
|
|
16
18
|
isActive: import("vue-demi").Ref<boolean>;
|
|
17
19
|
open: () => void;
|
|
18
20
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ModalSize } from './props.js';
|
|
2
|
-
export { s as OrModalV3 } from '../../OrModal.vue_vue_type_script_lang-
|
|
2
|
+
export { s as OrModalV3 } from '../../OrModal.vue_vue_type_script_lang-61c8fc41.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './styles.js';
|
|
5
5
|
import '../OrOverlayV3/OrOverlay.js';
|
|
@@ -2,3 +2,5 @@ import { ModalSize } from './props';
|
|
|
2
2
|
export declare const ModalRoot: string[];
|
|
3
3
|
export declare const ModalRootSizes: Record<ModalSize, string[]>;
|
|
4
4
|
export declare const ModalHeader: string[];
|
|
5
|
+
export declare const ModalContent: string[];
|
|
6
|
+
export declare const ModalFooter: string[];
|
|
@@ -6,7 +6,7 @@ const ModalRoot = [
|
|
|
6
6
|
// Shape
|
|
7
7
|
'md:rounded-md',
|
|
8
8
|
// Spacing
|
|
9
|
-
'
|
|
9
|
+
'gap-md md:gap-lg',
|
|
10
10
|
// Typography
|
|
11
11
|
'typography-body-2-regular',
|
|
12
12
|
// Theme
|
|
@@ -25,9 +25,19 @@ const ModalRootSizes = {
|
|
|
25
25
|
'md:w-[480px]']
|
|
26
26
|
};
|
|
27
27
|
const ModalHeader = [
|
|
28
|
-
//
|
|
28
|
+
// Layout
|
|
29
29
|
'layout-row',
|
|
30
|
+
// Spacing
|
|
31
|
+
'px-md md:px-lg', 'pt-md md:pt-lg',
|
|
30
32
|
// Typography
|
|
31
33
|
'typography-headline-2'];
|
|
34
|
+
const ModalContent = [
|
|
35
|
+
// Box
|
|
36
|
+
'grow', 'overflow-auto',
|
|
37
|
+
// Spacing
|
|
38
|
+
'px-md md:px-lg'];
|
|
39
|
+
const ModalFooter = [
|
|
40
|
+
// Spacing
|
|
41
|
+
'px-md md:px-lg', 'pb-md md:pb-lg'];
|
|
32
42
|
|
|
33
|
-
export { ModalHeader, ModalRoot, ModalRootSizes };
|
|
43
|
+
export { ModalContent, ModalFooter, ModalHeader, ModalRoot, ModalRootSizes };
|
|
@@ -82,7 +82,7 @@ export { s as OrMenuV3 } from '../OrMenu.vue_vue_type_script_lang-a18d3c8d.js';
|
|
|
82
82
|
export { PopoverPlacement as MenuPlacement, PopoverPlacement, PopoverVariant, PopoverPlacement as TooltipPlacement } from './OrPopoverV3/props.js';
|
|
83
83
|
export { s as OrModal } from '../OrModal.vue_vue_type_script_lang-ae842e5b.js';
|
|
84
84
|
export { OrModalSizes } from './OrModal/constants.js';
|
|
85
|
-
export { s as OrModalV3 } from '../OrModal.vue_vue_type_script_lang-
|
|
85
|
+
export { s as OrModalV3 } from '../OrModal.vue_vue_type_script_lang-61c8fc41.js';
|
|
86
86
|
export { ModalSize } from './OrModalV3/props.js';
|
|
87
87
|
export { s as OrNotification } from '../OrNotification.vue_vue_type_script_lang-cf2e272c.js';
|
|
88
88
|
export { OR_NOTIFICATION_SIZE, OR_NOTIFICATION_TYPE } from './OrNotification/constants.js';
|