@pushengineering/umg-web-components 2.0.6 → 2.0.10
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/components/modal/modal.js +17 -22
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { css as c, LitElement as m, html as
|
|
2
|
-
import { customElement as
|
|
1
|
+
import { css as c, LitElement as m, html as p } from "lit";
|
|
2
|
+
import { customElement as u } from "lit/decorators/custom-element.js";
|
|
3
3
|
import { property as d } from "lit/decorators/property.js";
|
|
4
|
-
import { classMap as
|
|
4
|
+
import { classMap as b } from "lit/directives/class-map.js";
|
|
5
5
|
import { global as v } from "../../styles/global.js";
|
|
6
6
|
import { settings as g } from "../../scripts/settings.js";
|
|
7
7
|
import { mergeStyles as h } from "../../scripts/mergeStyles.js";
|
|
8
8
|
import "../button-icon/button-icon.js";
|
|
9
|
-
var f = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (e,
|
|
10
|
-
for (var o =
|
|
11
|
-
(s = e[i]) && (o = (
|
|
12
|
-
return
|
|
9
|
+
var f = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (e, l, a, r) => {
|
|
10
|
+
for (var o = r > 1 ? void 0 : r ? _(l, a) : l, i = e.length - 1, s; i >= 0; i--)
|
|
11
|
+
(s = e[i]) && (o = (r ? s(l, a, o) : s(o)) || o);
|
|
12
|
+
return r && o && f(l, a, o), o;
|
|
13
13
|
};
|
|
14
14
|
const { prefix: y } = g;
|
|
15
15
|
let t = class extends m {
|
|
@@ -40,10 +40,10 @@ let t = class extends m {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return
|
|
43
|
+
return p`
|
|
44
44
|
<div
|
|
45
45
|
part="modal"
|
|
46
|
-
class="modal${
|
|
46
|
+
class="modal${b(this.modalClasses())}"
|
|
47
47
|
>
|
|
48
48
|
<div class="modal__close">
|
|
49
49
|
<umg-button-icon
|
|
@@ -54,8 +54,6 @@ let t = class extends m {
|
|
|
54
54
|
label="Close modal"
|
|
55
55
|
borderRadius="full"
|
|
56
56
|
borderWidth='0'
|
|
57
|
-
colorText="240,240,240"
|
|
58
|
-
colorBg="0,0,0"
|
|
59
57
|
colorBgOpacity="0"
|
|
60
58
|
border
|
|
61
59
|
>
|
|
@@ -107,17 +105,15 @@ t.styles = h([
|
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
/* Internal layout */
|
|
110
|
-
.modal-layout--single {
|
|
108
|
+
.modal-layout--single .modal__content {
|
|
111
109
|
justify-content: center;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.modal__content {
|
|
115
110
|
height: 100%;
|
|
116
111
|
display: flex;
|
|
117
112
|
flex-direction: column;
|
|
118
113
|
justify-content: center;
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.modal__content {
|
|
121
117
|
width: calc(var(--um-breakpoint-lg, 64rem) - var(--um-space-48, 3rem));
|
|
122
118
|
}
|
|
123
119
|
.modal__content-inner {
|
|
@@ -130,11 +126,10 @@ t.styles = h([
|
|
|
130
126
|
}
|
|
131
127
|
.modal__close {
|
|
132
128
|
background-color: rgba(var(--um-color-modal-bg, 255, 255, 255), 1);
|
|
133
|
-
box-shadow: 0 0 1rem 0.125rem rgb(0,0,0,0.5);
|
|
134
129
|
display: flex;
|
|
135
130
|
align-items: center;
|
|
136
|
-
justify-content:
|
|
137
|
-
padding: var(--um-space-
|
|
131
|
+
justify-content: end;
|
|
132
|
+
padding: var(--um-space-12) var(--um-space-24);
|
|
138
133
|
position: sticky;
|
|
139
134
|
right: 0;
|
|
140
135
|
top: 0;
|
|
@@ -147,10 +142,10 @@ t.styles = h([
|
|
|
147
142
|
.modal__close {
|
|
148
143
|
top: initial;
|
|
149
144
|
bottom: 0;
|
|
145
|
+
padding: var(--um-space-16);
|
|
150
146
|
}
|
|
151
147
|
|
|
152
148
|
.modal__content {
|
|
153
|
-
padding: var(--um-space-64, 4rem) 0;
|
|
154
149
|
width: 100%;
|
|
155
150
|
}
|
|
156
151
|
|
|
@@ -171,7 +166,7 @@ n([
|
|
|
171
166
|
d()
|
|
172
167
|
], t.prototype, "layout", 2);
|
|
173
168
|
t = n([
|
|
174
|
-
|
|
169
|
+
u(`${y}-modal`)
|
|
175
170
|
], t);
|
|
176
171
|
export {
|
|
177
172
|
t as Modal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushengineering/umg-web-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/components/index.js",
|
|
6
6
|
"files": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"./link-group": "./dist/components/link-group/link-group.js",
|
|
31
31
|
"./logo": "./dist/components/logo/logo.js",
|
|
32
32
|
"./media-gallery": "./dist/components/media-gallery/media-gallery.js",
|
|
33
|
-
"./media": "./dist/components/media/media.js",
|
|
33
|
+
"./media-modal": "./dist/components/media-modal/media-modal.js",
|
|
34
34
|
"./media-text": "./dist/components/media-text/media-text.js",
|
|
35
35
|
"./menu": "./dist/components/menu/menu.js",
|
|
36
36
|
"./menu-bar": "./dist/components/menu-bar/menu-bar.js",
|