@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 './props.js';
|
|
3
|
-
import { ModalRoot, ModalRootSizes, ModalHeader } from './styles.js';
|
|
3
|
+
import { ModalRoot, ModalRootSizes, ModalHeader, ModalContent, ModalFooter } from './styles.js';
|
|
4
4
|
import __vue_component__$1 from '../OrOverlayV3/OrOverlay.js';
|
|
5
5
|
import __vue_component__$2 from '../OrIconButtonV3/OrIconButton.js';
|
|
6
6
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
@@ -51,6 +51,8 @@ var script = defineComponent({
|
|
|
51
51
|
// Styles
|
|
52
52
|
const rootStyles = computed(() => ['or-modal-v3', ...ModalRoot, ...ModalRootSizes[props.size]]);
|
|
53
53
|
const headerStyles = computed(() => [...ModalHeader]);
|
|
54
|
+
const contentStyles = computed(() => [...ModalContent]);
|
|
55
|
+
const footerStyles = computed(() => [...ModalFooter]);
|
|
54
56
|
// State
|
|
55
57
|
const isActive = ref(false);
|
|
56
58
|
// Events
|
|
@@ -77,6 +79,8 @@ var script = defineComponent({
|
|
|
77
79
|
root,
|
|
78
80
|
rootStyles,
|
|
79
81
|
headerStyles,
|
|
82
|
+
contentStyles,
|
|
83
|
+
footerStyles,
|
|
80
84
|
isActive,
|
|
81
85
|
open,
|
|
82
86
|
close
|
|
@@ -115,8 +119,10 @@ var __vue_render__ = function () {
|
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
121
|
})], 1), _vm._v(" "), _c('div', {
|
|
118
|
-
class:
|
|
119
|
-
}, [_vm._t("default")], 2), _vm._v(" "),
|
|
122
|
+
class: _vm.contentStyles
|
|
123
|
+
}, [_vm._t("default")], 2), _vm._v(" "), _c('div', {
|
|
124
|
+
class: _vm.footerStyles
|
|
125
|
+
}, [_vm._t("footer")], 2)])]) : _vm._e();
|
|
120
126
|
};
|
|
121
127
|
var __vue_staticRenderFns__ = [];
|
|
122
128
|
|
|
@@ -4,6 +4,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
6
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
|
+
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
9
|
isActive: import("@vue/composition-api").Ref<boolean>;
|
|
8
10
|
open: () => void;
|
|
9
11
|
close: () => void;
|
|
@@ -34,6 +36,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
34
36
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
35
37
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
36
38
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
39
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
40
|
+
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
37
41
|
isActive: import("@vue/composition-api").Ref<boolean>;
|
|
38
42
|
open: () => void;
|
|
39
43
|
close: () => void;
|
|
@@ -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 };
|