@pushengineering/umg-web-components 2.0.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/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js +56 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query.js +34 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js +260 -0
- package/dist/node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js +50 -0
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js +37 -0
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js +10 -0
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/map.js +15 -0
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/range.js +14 -0
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js +39 -0
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js +259 -0
- package/dist/packages/web-components/classes/event-manager/event-manager.js +50 -0
- package/dist/packages/web-components/classes/index.js +4 -0
- package/dist/packages/web-components/components/badge/badge.js +146 -0
- package/dist/packages/web-components/components/banner/banner.js +389 -0
- package/dist/packages/web-components/components/banner-image/banner-image.js +161 -0
- package/dist/packages/web-components/components/box/box.js +208 -0
- package/dist/packages/web-components/components/button/button.js +336 -0
- package/dist/packages/web-components/components/button-group/button-group.js +98 -0
- package/dist/packages/web-components/components/button-icon/button-icon.js +246 -0
- package/dist/packages/web-components/components/caption-card/caption-card.js +331 -0
- package/dist/packages/web-components/components/deferred-media/deferred-media.js +212 -0
- package/dist/packages/web-components/components/disclosure/disclosure.js +255 -0
- package/dist/packages/web-components/components/event-table/event-content.js +106 -0
- package/dist/packages/web-components/components/event-table/event-date.js +45 -0
- package/dist/packages/web-components/components/event-table/event-table.js +74 -0
- package/dist/packages/web-components/components/event-table/event.js +45 -0
- package/dist/packages/web-components/components/footer/footer.js +153 -0
- package/dist/packages/web-components/components/grid/grid-cell.js +40 -0
- package/dist/packages/web-components/components/grid/grid.js +106 -0
- package/dist/packages/web-components/components/header/header.js +368 -0
- package/dist/packages/web-components/components/header-drawer/header-drawer.js +292 -0
- package/dist/packages/web-components/components/header-drawer/menu-drawer.js +176 -0
- package/dist/packages/web-components/components/horizontal-stack/horizontal-stack.js +93 -0
- package/dist/packages/web-components/components/icon/icon.js +81 -0
- package/dist/packages/web-components/components/icon/icons.svg.js +191 -0
- package/dist/packages/web-components/components/image/image.js +157 -0
- package/dist/packages/web-components/components/index.js +82 -0
- package/dist/packages/web-components/components/link/link.js +95 -0
- package/dist/packages/web-components/components/link-group/link-group.js +126 -0
- package/dist/packages/web-components/components/logo/logo.js +161 -0
- package/dist/packages/web-components/components/media-gallery/media-gallery.js +82 -0
- package/dist/packages/web-components/components/media-gallery/media.js +31 -0
- package/dist/packages/web-components/components/media-text/media-text.js +276 -0
- package/dist/packages/web-components/components/media-text/styles/media-size.js +119 -0
- package/dist/packages/web-components/components/menu/menu.js +328 -0
- package/dist/packages/web-components/components/modal/modal.js +143 -0
- package/dist/packages/web-components/components/number-field/number-field.js +339 -0
- package/dist/packages/web-components/components/overlay/overlay.js +77 -0
- package/dist/packages/web-components/components/page/page.js +105 -0
- package/dist/packages/web-components/components/popover/popover.js +163 -0
- package/dist/packages/web-components/components/rich-text/rich-text.js +126 -0
- package/dist/packages/web-components/components/section/section.js +400 -0
- package/dist/packages/web-components/components/select/select.js +359 -0
- package/dist/packages/web-components/components/slider/slide.js +68 -0
- package/dist/packages/web-components/components/slider/slider-controls.js +258 -0
- package/dist/packages/web-components/components/slider/slider.js +374 -0
- package/dist/packages/web-components/components/slider/styles/controls.js +98 -0
- package/dist/packages/web-components/components/slider/styles/slider.js +233 -0
- package/dist/packages/web-components/components/socials/socials.js +96 -0
- package/dist/packages/web-components/components/table/table.js +158 -0
- package/dist/packages/web-components/components/text/text.js +245 -0
- package/dist/packages/web-components/components/text-field/text-field.js +257 -0
- package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slide.js +51 -0
- package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slider.js +88 -0
- package/dist/packages/web-components/components/vertical-stack/vertical-stack.js +95 -0
- package/dist/packages/web-components/components/video/video.js +185 -0
- package/dist/packages/web-components/scripts/mergeStyles.js +8 -0
- package/dist/packages/web-components/scripts/polyfills/scrollyfills.js +43 -0
- package/dist/packages/web-components/scripts/settings.js +7 -0
- package/dist/packages/web-components/scripts/themeStyleSheet.js +9 -0
- package/dist/packages/web-components/scripts/utilities/debounce.js +9 -0
- package/dist/packages/web-components/scripts/utilities/paddingTransformations.js +46 -0
- package/dist/packages/web-components/styles/button.js +55 -0
- package/dist/packages/web-components/styles/fonts.js +181 -0
- package/dist/packages/web-components/styles/global.js +40 -0
- package/dist/packages/web-components/styles/grid.js +114 -0
- package/dist/packages/web-components/styles/group.js +121 -0
- package/dist/packages/web-components/styles/icon-size.js +19 -0
- package/dist/packages/web-components/styles/link.js +30 -0
- package/dist/packages/web-components/styles/placeholder-media.js +27 -0
- package/package.json +92 -0
- package/readme.md +266 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as n } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as v } from "../../../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as p } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { queryAssignedElements as d } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js";
|
|
6
|
+
import { global as c } from "../../styles/global.js";
|
|
7
|
+
import { settings as u } from "../../scripts/settings.js";
|
|
8
|
+
import { mergeStyles as f } from "../../scripts/mergeStyles.js";
|
|
9
|
+
import { EventManager as h } from "../../classes/event-manager/event-manager.js";
|
|
10
|
+
import "./media.js";
|
|
11
|
+
import { css as b } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
12
|
+
var g = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, l = (t, e, r, a) => {
|
|
13
|
+
for (var i = a > 1 ? void 0 : a ? _(e, r) : e, m = t.length - 1, o; m >= 0; m--)
|
|
14
|
+
(o = t[m]) && (i = (a ? o(e, r, i) : o(i)) || i);
|
|
15
|
+
return a && i && g(e, r, i), i;
|
|
16
|
+
};
|
|
17
|
+
const { prefix: y } = u;
|
|
18
|
+
let s = class extends v {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(), this.mediaEventManager = new h(this), this._customEventsHandler = (t) => {
|
|
21
|
+
t.type === "active-media" && this._updateActiveMedia(t.detail.mediaId);
|
|
22
|
+
}, this.mediaEventManager.addEventListener("active-media", this._customEventsHandler);
|
|
23
|
+
}
|
|
24
|
+
_updateActiveMedia(t) {
|
|
25
|
+
t && this._mediaItems.forEach((e) => {
|
|
26
|
+
e.hasAttribute("active") && e.removeAttribute("active"), t === e.getAttribute("mediaId") && e.setAttribute("active", "");
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return n`
|
|
31
|
+
<div class="media-gallery">
|
|
32
|
+
<div class="media-main">
|
|
33
|
+
<div class="media-stack">
|
|
34
|
+
<slot name="media"></slot>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="media-thumbnails">
|
|
38
|
+
<slot name="thumbnail-slider"></slot>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
s.styles = f([
|
|
45
|
+
c,
|
|
46
|
+
b`
|
|
47
|
+
.media-main {
|
|
48
|
+
padding-bottom: var(--um-space-grid-desktop-vertical, var(--um-space-16, 1rem));
|
|
49
|
+
}
|
|
50
|
+
.media-stack {
|
|
51
|
+
border: 0.0625rem solid rgb(0,0,0,0.1);
|
|
52
|
+
position: relative;
|
|
53
|
+
aspect-ratio: 1/1;
|
|
54
|
+
}
|
|
55
|
+
.media-stack ::slotted(*) {
|
|
56
|
+
visibility: hidden;
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
z-index: 1;
|
|
63
|
+
}
|
|
64
|
+
.media-stack ::slotted(*[active]) {
|
|
65
|
+
visibility: visible;
|
|
66
|
+
position: relative;
|
|
67
|
+
z-index: 10;
|
|
68
|
+
}
|
|
69
|
+
`
|
|
70
|
+
]);
|
|
71
|
+
l([
|
|
72
|
+
d({ slot: "media", selector: "umg-media" })
|
|
73
|
+
], s.prototype, "_mediaItems", 2);
|
|
74
|
+
l([
|
|
75
|
+
d({ slot: "thumbnail-slider", selector: "umg-thumbnail-slider" })
|
|
76
|
+
], s.prototype, "_slideItems", 2);
|
|
77
|
+
s = l([
|
|
78
|
+
p(`${y}-media-gallery`)
|
|
79
|
+
], s);
|
|
80
|
+
export {
|
|
81
|
+
s as MediaGallery
|
|
82
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as a } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as f } from "../../../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { property as l } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";
|
|
5
|
+
import { customElement as c } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
6
|
+
import { settings as u } from "../../scripts/settings.js";
|
|
7
|
+
var d = Object.defineProperty, v = Object.getOwnPropertyDescriptor, n = (i, t, o, e) => {
|
|
8
|
+
for (var r = e > 1 ? void 0 : e ? v(t, o) : t, s = i.length - 1, m; s >= 0; s--)
|
|
9
|
+
(m = i[s]) && (r = (e ? m(t, o, r) : m(r)) || r);
|
|
10
|
+
return e && r && d(t, o, r), r;
|
|
11
|
+
};
|
|
12
|
+
const { prefix: _ } = u;
|
|
13
|
+
let p = class extends f {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.mediaId = "";
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
return a`
|
|
19
|
+
<slot></slot>
|
|
20
|
+
`;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
n([
|
|
24
|
+
l()
|
|
25
|
+
], p.prototype, "mediaId", 2);
|
|
26
|
+
p = n([
|
|
27
|
+
c(`${_}-media`)
|
|
28
|
+
], p);
|
|
29
|
+
export {
|
|
30
|
+
p as Media
|
|
31
|
+
};
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as p } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as h } from "../../../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as c } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as a } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import { ifDefined as d } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js";
|
|
7
|
+
import { classMap as g } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js";
|
|
8
|
+
import { styleMap as x } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js";
|
|
9
|
+
import "../box/box.js";
|
|
10
|
+
import "../vertical-stack/vertical-stack.js";
|
|
11
|
+
import { global as _ } from "../../styles/global.js";
|
|
12
|
+
import { mediaSize as y } from "./styles/media-size.js";
|
|
13
|
+
import { settings as f } from "../../scripts/settings.js";
|
|
14
|
+
import { mergeStyles as u } from "../../scripts/mergeStyles.js";
|
|
15
|
+
import { css as b } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
16
|
+
var v = Object.defineProperty, C = Object.getOwnPropertyDescriptor, e = (i, r, s, n) => {
|
|
17
|
+
for (var o = n > 1 ? void 0 : n ? C(r, s) : r, m = i.length - 1, l; m >= 0; m--)
|
|
18
|
+
(l = i[m]) && (o = (n ? l(r, s, o) : l(o)) || o);
|
|
19
|
+
return n && o && v(r, s, o), o;
|
|
20
|
+
};
|
|
21
|
+
const { prefix: w } = f;
|
|
22
|
+
let t = class extends h {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments), this.setSizeBy = "width", this.mediaHeight = "adapt", this.mediaWidth = "medium", this.mediaOnRight = !1, this.blendMedia = !1, this.alignContent = "center", this.mobileAlignContent = "center", this.justifyContent = "center", this.mobileJustifyContent = "center", this.spacing = "8";
|
|
25
|
+
}
|
|
26
|
+
gridClasses() {
|
|
27
|
+
const i = {};
|
|
28
|
+
return i["media-text__grid--" + this.mediaWidth] = this.setSizeBy === "width", i["media-height--" + this.mediaHeight] = this.setSizeBy === "height", i["media-height"] = this.setSizeBy === "height", i["media-right"] = this.mediaOnRight, i["media-blend"] = this.blendMedia, i;
|
|
29
|
+
}
|
|
30
|
+
contentStackClasses() {
|
|
31
|
+
const i = {};
|
|
32
|
+
return i["align--" + this.alignContent] = !0, i["justify--" + this.justifyContent] = !0, i["mobile-justify--" + this.mobileJustifyContent] = !0, i["mobile-align--" + this.mobileAlignContent] = !0, i;
|
|
33
|
+
}
|
|
34
|
+
mediaTextStyles() {
|
|
35
|
+
let i = {};
|
|
36
|
+
return i = {
|
|
37
|
+
...i,
|
|
38
|
+
"--um-color-box-bg": this.colorBg,
|
|
39
|
+
"--um-opacity-box-bg": this.opacity
|
|
40
|
+
}, i;
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
return p`
|
|
44
|
+
<div
|
|
45
|
+
class="media-text"
|
|
46
|
+
style="${x(this.mediaTextStyles())}"
|
|
47
|
+
part="media-text"
|
|
48
|
+
>
|
|
49
|
+
<div
|
|
50
|
+
class="media-text__grid${g(this.gridClasses())}"
|
|
51
|
+
part="media-text-grid"
|
|
52
|
+
>
|
|
53
|
+
<div
|
|
54
|
+
class="media-text__media"
|
|
55
|
+
part="media"
|
|
56
|
+
>
|
|
57
|
+
<slot name="media"></slot>
|
|
58
|
+
</div>
|
|
59
|
+
<div
|
|
60
|
+
class="media-text__content"
|
|
61
|
+
part="content"
|
|
62
|
+
>
|
|
63
|
+
<umg-box
|
|
64
|
+
class="media-text__content-inner"
|
|
65
|
+
padding="${d(this.padding)}"
|
|
66
|
+
mobilePadding="${d(this.mobilePadding)}"
|
|
67
|
+
paddingTop="${d(this.paddingTop)}"
|
|
68
|
+
paddingLeft="${d(this.paddingLeft)}"
|
|
69
|
+
paddingRight="${d(this.paddingRight)}"
|
|
70
|
+
paddingBottom="${d(this.paddingBottom)}"
|
|
71
|
+
colortext="${d(this.colorText)}"
|
|
72
|
+
colorBg="${d(this.colorBg)}"
|
|
73
|
+
opacity="${d(this.opacity)}"
|
|
74
|
+
width="expand"
|
|
75
|
+
exportparts="box,box-content"
|
|
76
|
+
>
|
|
77
|
+
<umg-vertical-stack
|
|
78
|
+
class="media-text__content-stack${g(this.contentStackClasses())}"
|
|
79
|
+
gap=${this.spacing}
|
|
80
|
+
justify="${this.alignContent}"
|
|
81
|
+
mobileJustify="${this.mobileJustifyContent}"
|
|
82
|
+
align="${this.justifyContent}"
|
|
83
|
+
mobileAlign="${this.mobileAlignContent}"
|
|
84
|
+
>
|
|
85
|
+
<slot name="content"></slot>
|
|
86
|
+
</umg-vertical-stack>
|
|
87
|
+
</umg-box>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
`;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
t.styles = u([
|
|
95
|
+
_,
|
|
96
|
+
y,
|
|
97
|
+
b`
|
|
98
|
+
:host {
|
|
99
|
+
display: block;
|
|
100
|
+
width: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Height set by value */
|
|
104
|
+
.media-text__grid.media-height {
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** Prevent extended clicks outside the container */
|
|
109
|
+
.media-text,
|
|
110
|
+
.media-text__media {
|
|
111
|
+
position: relative
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Content position */
|
|
115
|
+
.media-text__grid.media-right div:first-child {
|
|
116
|
+
order: 1;
|
|
117
|
+
}
|
|
118
|
+
.media-text__grid.media-right div:last-child {
|
|
119
|
+
order: 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media screen and (min-width: 48.06rem) {
|
|
123
|
+
.media-text__grid.media-right div:first-child {
|
|
124
|
+
order: 2;
|
|
125
|
+
}
|
|
126
|
+
.media-text__grid.media-right div:last-child {
|
|
127
|
+
order: 1;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Blend media */
|
|
132
|
+
.media-text__grid.media-blend .media-text__media {
|
|
133
|
+
background-color: rgb(var(--um-color-box-bg), var(--um-opacity-box-bg, 1));
|
|
134
|
+
}
|
|
135
|
+
@media only screen and (min-width: 48.06rem) {
|
|
136
|
+
.media-text__grid.media-blend .media-text__media ::slotted(*) {
|
|
137
|
+
mask-image: linear-gradient(to right, rgb(0,0,0) 0 70%, transparent 100%);
|
|
138
|
+
}
|
|
139
|
+
.media-text__grid.media-blend.media-right .media-text__media ::slotted(*) {
|
|
140
|
+
mask-image: linear-gradient(to left, rgb(0,0,0) 0 70%, transparent 100%);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
@media only screen and (max-width: 48rem) {
|
|
144
|
+
.media-text__grid.media-blend .media-text__media ::slotted(*) {
|
|
145
|
+
mask-image: linear-gradient(to bottom, rgb(0,0,0) 0 70%, transparent 100%);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Content */
|
|
150
|
+
.media-text__content {
|
|
151
|
+
display: flex;
|
|
152
|
+
width: auto;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Text content alignment */
|
|
156
|
+
.justify--start {
|
|
157
|
+
text-align: left;
|
|
158
|
+
}
|
|
159
|
+
.justify--center {
|
|
160
|
+
text-align: center;
|
|
161
|
+
}
|
|
162
|
+
.justify--end {
|
|
163
|
+
text-align: right;
|
|
164
|
+
}
|
|
165
|
+
@media screen and (max-width: 48.06rem) {
|
|
166
|
+
.mobile-align--start {
|
|
167
|
+
text-align: left;
|
|
168
|
+
}
|
|
169
|
+
.mobile-align--center {
|
|
170
|
+
text-align: center;
|
|
171
|
+
}
|
|
172
|
+
.mobile-align--end {
|
|
173
|
+
text-align: right;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Normalise heights in grid layouts */
|
|
178
|
+
@media screen and (max-width: 48.06rem) {
|
|
179
|
+
.media-text,
|
|
180
|
+
.media-text__grid {
|
|
181
|
+
height: 100%;
|
|
182
|
+
}
|
|
183
|
+
.media-text__grid {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
justify-content: stretch;
|
|
187
|
+
}
|
|
188
|
+
.media-text__grid > div:last-child {
|
|
189
|
+
display: flex;flex: 1 0 auto;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Desktop */
|
|
194
|
+
@media screen and (min-width: 48.06rem) {
|
|
195
|
+
/* Media left/right position */
|
|
196
|
+
.media-right .media-text__container {
|
|
197
|
+
flex-direction: row-reverse;
|
|
198
|
+
}
|
|
199
|
+
/* Constrain text width */
|
|
200
|
+
.media-text__grid:not(.media-text__grid--2Xlarge, .media-text__grid--xLarge) .justify--start.media-text__content-stack {
|
|
201
|
+
max-width: 80%;
|
|
202
|
+
}
|
|
203
|
+
.media-text__grid:not(.media-text__grid--2Xlarge, .media-text__grid--xLarge) .justify--end.media-text__content-stack {
|
|
204
|
+
max-width: 80%;
|
|
205
|
+
margin-left: auto;
|
|
206
|
+
}
|
|
207
|
+
.media-text__grid:not(.media-text__grid--2Xlarge, .media-text__grid--xLarge) .justify--center.media-text__content-stack {
|
|
208
|
+
max-width: 80%;
|
|
209
|
+
margin: 0 auto;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
`
|
|
213
|
+
]);
|
|
214
|
+
e([
|
|
215
|
+
a()
|
|
216
|
+
], t.prototype, "setSizeBy", 2);
|
|
217
|
+
e([
|
|
218
|
+
a()
|
|
219
|
+
], t.prototype, "mediaHeight", 2);
|
|
220
|
+
e([
|
|
221
|
+
a()
|
|
222
|
+
], t.prototype, "mediaWidth", 2);
|
|
223
|
+
e([
|
|
224
|
+
a({ type: Boolean })
|
|
225
|
+
], t.prototype, "mediaOnRight", 2);
|
|
226
|
+
e([
|
|
227
|
+
a({ type: Boolean })
|
|
228
|
+
], t.prototype, "blendMedia", 2);
|
|
229
|
+
e([
|
|
230
|
+
a()
|
|
231
|
+
], t.prototype, "alignContent", 2);
|
|
232
|
+
e([
|
|
233
|
+
a()
|
|
234
|
+
], t.prototype, "mobileAlignContent", 2);
|
|
235
|
+
e([
|
|
236
|
+
a()
|
|
237
|
+
], t.prototype, "justifyContent", 2);
|
|
238
|
+
e([
|
|
239
|
+
a()
|
|
240
|
+
], t.prototype, "mobileJustifyContent", 2);
|
|
241
|
+
e([
|
|
242
|
+
a()
|
|
243
|
+
], t.prototype, "spacing", 2);
|
|
244
|
+
e([
|
|
245
|
+
a()
|
|
246
|
+
], t.prototype, "padding", 2);
|
|
247
|
+
e([
|
|
248
|
+
a()
|
|
249
|
+
], t.prototype, "mobilePadding", 2);
|
|
250
|
+
e([
|
|
251
|
+
a()
|
|
252
|
+
], t.prototype, "paddingTop", 2);
|
|
253
|
+
e([
|
|
254
|
+
a()
|
|
255
|
+
], t.prototype, "paddingRight", 2);
|
|
256
|
+
e([
|
|
257
|
+
a()
|
|
258
|
+
], t.prototype, "paddingBottom", 2);
|
|
259
|
+
e([
|
|
260
|
+
a()
|
|
261
|
+
], t.prototype, "paddingLeft", 2);
|
|
262
|
+
e([
|
|
263
|
+
a()
|
|
264
|
+
], t.prototype, "colorBg", 2);
|
|
265
|
+
e([
|
|
266
|
+
a()
|
|
267
|
+
], t.prototype, "colorText", 2);
|
|
268
|
+
e([
|
|
269
|
+
a()
|
|
270
|
+
], t.prototype, "opacity", 2);
|
|
271
|
+
t = e([
|
|
272
|
+
c(`${w}-media-text`)
|
|
273
|
+
], t);
|
|
274
|
+
export {
|
|
275
|
+
t as MediaText
|
|
276
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import "../../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as e } from "../../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const m = e`
|
|
6
|
+
|
|
7
|
+
@media screen and (min-width: 48.06rem ) {
|
|
8
|
+
.media-text__grid {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: repeat(12, [start] 1fr);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Media size by height */
|
|
14
|
+
.media-text__grid.media-height {
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
.media-text__grid.media-height .media-text__media {
|
|
18
|
+
flex: 0 1 auto;
|
|
19
|
+
}
|
|
20
|
+
.media-text__grid.media-height .media-text__content {
|
|
21
|
+
flex: 1 0 auto;
|
|
22
|
+
}
|
|
23
|
+
.media-text__grid.media-height--xsmall {
|
|
24
|
+
height: 15rem;
|
|
25
|
+
}
|
|
26
|
+
.media-text__grid.media-height--small {
|
|
27
|
+
height: 20rem;
|
|
28
|
+
}
|
|
29
|
+
.media-text__grid.media-height--medium {
|
|
30
|
+
height: 25rem;
|
|
31
|
+
}
|
|
32
|
+
.media-text__grid.media-height--large {
|
|
33
|
+
height: 30rem;
|
|
34
|
+
}
|
|
35
|
+
.media-text__grid.media-height--xlarge {
|
|
36
|
+
height: 37rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Media width sizing */
|
|
40
|
+
.media-text__grid--2Xlarge .media-text__media {
|
|
41
|
+
grid-column: start / span 8;
|
|
42
|
+
}
|
|
43
|
+
.media-text__grid--xLarge .media-text__media {
|
|
44
|
+
grid-column: start / span 7;
|
|
45
|
+
}
|
|
46
|
+
.media-text__grid--large .media-text__media {
|
|
47
|
+
grid-column: start / span 6;
|
|
48
|
+
}
|
|
49
|
+
.media-text__grid--medium .media-text__media {
|
|
50
|
+
grid-column: start / span 5;
|
|
51
|
+
}
|
|
52
|
+
.media-text__grid--small .media-text__media {
|
|
53
|
+
grid-column: start / span 4;
|
|
54
|
+
}
|
|
55
|
+
.media-text__grid--xSmall .media-text__media {
|
|
56
|
+
grid-column: start / span 3;
|
|
57
|
+
}
|
|
58
|
+
.media-text__grid--2Xlarge.media-right .media-text__media {
|
|
59
|
+
grid-column: span 7;
|
|
60
|
+
}
|
|
61
|
+
.media-text__grid--xLarge.media-right .media-text__media {
|
|
62
|
+
grid-column: span 7;
|
|
63
|
+
}
|
|
64
|
+
.media-text__grid--large.media-right .media-text__media {
|
|
65
|
+
grid-column: span 6;
|
|
66
|
+
}
|
|
67
|
+
.media-text__grid--medium.media-right .media-text__media {
|
|
68
|
+
grid-column: span 5;
|
|
69
|
+
}
|
|
70
|
+
.media-text__grid--small.media-right .media-text__media {
|
|
71
|
+
grid-column: span 4;
|
|
72
|
+
}
|
|
73
|
+
.media-text__grid--xSmall.media-right .media-text__media {
|
|
74
|
+
grid-column: span 3;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Text content width sizing */
|
|
78
|
+
.media-text__grid--2Xlarge .media-text__content {
|
|
79
|
+
grid-column: span 4;
|
|
80
|
+
}
|
|
81
|
+
.media-text__grid--xLarge .media-text__content {
|
|
82
|
+
grid-column: span 5;
|
|
83
|
+
}
|
|
84
|
+
.media-text__grid--large .media-text__content {
|
|
85
|
+
grid-column: span 6;
|
|
86
|
+
}
|
|
87
|
+
.media-text__grid--medium .media-text__content {
|
|
88
|
+
grid-column: span 7;
|
|
89
|
+
}
|
|
90
|
+
.media-text__grid--small .media-text__content {
|
|
91
|
+
grid-column: span 8;
|
|
92
|
+
}
|
|
93
|
+
.media-text__grid--xSmall .media-text__content {
|
|
94
|
+
grid-column: span 9;
|
|
95
|
+
}
|
|
96
|
+
.media-text__grid--2Xlarge.media-right .media-text__content {
|
|
97
|
+
grid-column: start / span 4;
|
|
98
|
+
}
|
|
99
|
+
.media-text__grid--xLarge.media-right .media-text__content {
|
|
100
|
+
grid-column: start / span 5;
|
|
101
|
+
}
|
|
102
|
+
.media-text__grid--large.media-right .media-text__content {
|
|
103
|
+
grid-column: start / span 6;
|
|
104
|
+
}
|
|
105
|
+
.media-text__grid--medium.media-right .media-text__content {
|
|
106
|
+
grid-column: start / span 7;
|
|
107
|
+
}
|
|
108
|
+
.media-text__grid--small.media-right .media-text__content {
|
|
109
|
+
grid-column: start / span 8;
|
|
110
|
+
}
|
|
111
|
+
.media-text__grid--xSmall.media-right .media-text__content {
|
|
112
|
+
grid-column: start / span 9;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
`;
|
|
117
|
+
export {
|
|
118
|
+
m as mediaSize
|
|
119
|
+
};
|