@pushengineering/umg-web-components 2.0.4 → 2.0.6
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 +21 -15
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as c, LitElement as m, html as b } from "lit";
|
|
2
2
|
import { customElement as p } from "lit/decorators/custom-element.js";
|
|
3
|
-
import { property as
|
|
3
|
+
import { property as d } from "lit/decorators/property.js";
|
|
4
4
|
import { classMap as u } 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
|
-
import { mergeStyles as
|
|
7
|
+
import { mergeStyles as h } from "../../scripts/mergeStyles.js";
|
|
8
8
|
import "../button-icon/button-icon.js";
|
|
9
|
-
var
|
|
9
|
+
var f = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (e, r, a, l) => {
|
|
10
10
|
for (var o = l > 1 ? void 0 : l ? _(r, a) : r, i = e.length - 1, s; i >= 0; i--)
|
|
11
11
|
(s = e[i]) && (o = (l ? s(r, a, o) : s(o)) || o);
|
|
12
|
-
return l && o &&
|
|
12
|
+
return l && o && f(r, a, o), o;
|
|
13
13
|
};
|
|
14
14
|
const { prefix: y } = g;
|
|
15
|
-
let t = class extends
|
|
15
|
+
let t = class extends m {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(), this.visible = !1, this.layout = "list", this.addEventListener("keyup", (e) => {
|
|
18
18
|
e.code.toUpperCase() === "ESCAPE" && this.toggleModal();
|
|
@@ -70,9 +70,9 @@ let t = class extends c {
|
|
|
70
70
|
`;
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
t.styles =
|
|
73
|
+
t.styles = h([
|
|
74
74
|
v,
|
|
75
|
-
|
|
75
|
+
c`
|
|
76
76
|
/* Base */
|
|
77
77
|
.modal {
|
|
78
78
|
background-color: rgba(var(--um-color-modal-bg, 255, 255, 255), var(--um-opacity-modal-bg, 0.95));
|
|
@@ -112,11 +112,17 @@ t.styles = f([
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.modal__content {
|
|
115
|
-
|
|
115
|
+
height: 100%;
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
align-items: center;
|
|
120
|
+
padding: var(--um-space-24, 1.5rem) 0;
|
|
116
121
|
width: calc(var(--um-breakpoint-lg, 64rem) - var(--um-space-48, 3rem));
|
|
117
122
|
}
|
|
118
123
|
.modal__content-inner {
|
|
119
124
|
padding: 0 var(--um-space-24, 1.5rem);
|
|
125
|
+
min-height: 0;
|
|
120
126
|
}
|
|
121
127
|
.modal__content-inner ::slotted(*) {
|
|
122
128
|
display: block;
|
|
@@ -129,7 +135,7 @@ t.styles = f([
|
|
|
129
135
|
align-items: center;
|
|
130
136
|
justify-content: center;
|
|
131
137
|
padding: var(--um-space-16) 0;
|
|
132
|
-
position:
|
|
138
|
+
position: sticky;
|
|
133
139
|
right: 0;
|
|
134
140
|
top: 0;
|
|
135
141
|
left: 0;
|
|
@@ -158,13 +164,13 @@ t.styles = f([
|
|
|
158
164
|
}
|
|
159
165
|
`
|
|
160
166
|
]);
|
|
161
|
-
|
|
162
|
-
|
|
167
|
+
n([
|
|
168
|
+
d({ type: Boolean })
|
|
163
169
|
], t.prototype, "visible", 2);
|
|
164
|
-
|
|
165
|
-
|
|
170
|
+
n([
|
|
171
|
+
d()
|
|
166
172
|
], t.prototype, "layout", 2);
|
|
167
|
-
t =
|
|
173
|
+
t = n([
|
|
168
174
|
p(`${y}-modal`)
|
|
169
175
|
], t);
|
|
170
176
|
export {
|