@pushengineering/umg-web-components 2.0.1 → 2.0.3
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/classes/event-manager/event-manager.d.ts +52 -0
- package/dist/classes/event-manager/types.d.ts +6 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/components/badge/badge.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/badge/badge.js +47 -49
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/banner/banner.d.ts +39 -0
- package/dist/{packages/web-components/components → components}/banner/banner.js +23 -25
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner-image/banner-image.d.ts +23 -0
- package/dist/{packages/web-components/components → components}/banner-image/banner-image.js +26 -29
- package/dist/components/banner-image/index.d.ts +2 -0
- package/dist/components/box/box.d.ts +28 -0
- package/dist/components/box/box.js +229 -0
- package/dist/components/box/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +31 -0
- package/dist/{packages/web-components/components → components}/button/button.js +21 -24
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button-group/button-group.d.ts +12 -0
- package/dist/{packages/web-components/components → components}/button-group/button-group.js +20 -23
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-icon/button-icon.d.ts +31 -0
- package/dist/{packages/web-components/components → components}/button-icon/button-icon.js +25 -28
- package/dist/components/button-icon/index.d.ts +2 -0
- package/dist/components/caption-card/caption-card.d.ts +38 -0
- package/dist/{packages/web-components/components → components}/caption-card/caption-card.js +19 -21
- package/dist/components/caption-card/index.d.ts +2 -0
- package/dist/components/deferred-media/deferred-media.d.ts +25 -0
- package/dist/{packages/web-components/components → components}/deferred-media/deferred-media.js +27 -27
- package/dist/components/deferred-media/index.d.ts +2 -0
- package/dist/components/disclosure/disclosure.d.ts +23 -0
- package/dist/{packages/web-components/components → components}/disclosure/disclosure.js +16 -19
- package/dist/components/disclosure/index.d.ts +2 -0
- package/dist/components/event-table/event-content.d.ts +7 -0
- package/dist/{packages/web-components/components → components}/event-table/event-content.js +19 -22
- package/dist/components/event-table/event-date.d.ts +5 -0
- package/dist/components/event-table/event-date.js +42 -0
- package/dist/components/event-table/event-table.d.ts +10 -0
- package/dist/components/event-table/event-table.js +71 -0
- package/dist/components/event-table/event.d.ts +5 -0
- package/dist/components/event-table/event.js +42 -0
- package/dist/components/event-table/index.d.ts +2 -0
- package/dist/components/footer/footer.d.ts +16 -0
- package/dist/{packages/web-components/components → components}/footer/footer.js +15 -18
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/grid/grid-cell.d.ts +5 -0
- package/dist/components/grid/grid-cell.js +37 -0
- package/dist/components/grid/grid.d.ts +12 -0
- package/dist/{packages/web-components/components → components}/grid/grid.js +37 -40
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/header/header.d.ts +36 -0
- package/dist/{packages/web-components/components → components}/header/header.js +25 -29
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/header-drawer/header-drawer.d.ts +32 -0
- package/dist/{packages/web-components/components → components}/header-drawer/header-drawer.js +18 -21
- package/dist/components/header-drawer/index.d.ts +2 -0
- package/dist/components/header-drawer/menu-drawer.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/header-drawer/menu-drawer.js +16 -19
- package/dist/components/horizontal-stack/horizontal-stack.d.ts +13 -0
- package/dist/components/horizontal-stack/horizontal-stack.js +90 -0
- package/dist/components/horizontal-stack/index.d.ts +2 -0
- package/dist/components/icon/icon.d.ts +14 -0
- package/dist/{packages/web-components/components → components}/icon/icon.js +20 -23
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/image/image.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/image/image.js +17 -20
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/index.d.ts +41 -0
- package/dist/{packages/web-components/components → components}/index.js +38 -36
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/link.d.ts +10 -0
- package/dist/{packages/web-components/components → components}/link/link.js +27 -30
- package/dist/components/link-group/index.d.ts +2 -0
- package/dist/components/link-group/link-group.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/link-group/link-group.js +15 -18
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/logo/logo.js +32 -35
- package/dist/components/media-gallery/index.d.ts +2 -0
- package/dist/components/media-gallery/media-gallery.d.ts +14 -0
- package/dist/{packages/web-components/components → components}/media-gallery/media-gallery.js +19 -22
- package/dist/components/media-gallery/media.d.ts +5 -0
- package/dist/components/media-gallery/media.js +29 -0
- package/dist/components/media-text/index.d.ts +2 -0
- package/dist/components/media-text/media-text.d.ts +30 -0
- package/dist/{packages/web-components/components → components}/media-text/media-text.js +20 -34
- package/dist/components/media-text/styles/media-size.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/media-text/styles/media-size.js +5 -8
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +36 -0
- package/dist/{packages/web-components/components → components}/menu/menu.js +39 -38
- package/dist/components/menu-bar/index.d.ts +2 -0
- package/dist/components/menu-bar/menu-bar.d.ts +16 -0
- package/dist/components/menu-bar/menu-bar.js +110 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/modal/modal.js +70 -41
- package/dist/components/multiselect/index.d.ts +2 -0
- package/dist/components/multiselect/multiselect.d.ts +60 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/number-field.d.ts +28 -0
- package/dist/{packages/web-components/components → components}/number-field/number-field.js +22 -25
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/overlay.d.ts +13 -0
- package/dist/components/overlay/overlay.js +74 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/page.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/page/page.js +16 -19
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +19 -0
- package/dist/components/popover/popover.js +181 -0
- package/dist/components/rich-text/index.d.ts +2 -0
- package/dist/components/rich-text/rich-text.d.ts +11 -0
- package/dist/{packages/web-components/components → components}/rich-text/rich-text.js +25 -28
- package/dist/components/section/index.d.ts +2 -0
- package/dist/components/section/section.d.ts +33 -0
- package/dist/{packages/web-components/components → components}/section/section.js +71 -59
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +44 -0
- package/dist/{packages/web-components/components → components}/select/select.js +48 -63
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slide.d.ts +8 -0
- package/dist/components/slider/slide.js +65 -0
- package/dist/components/slider/slider-controls.d.ts +27 -0
- package/dist/{packages/web-components/components → components}/slider/slider-controls.js +45 -47
- package/dist/components/slider/slider.d.ts +68 -0
- package/dist/{packages/web-components/components → components}/slider/slider.js +25 -28
- package/dist/components/slider/styles/controls.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/slider/styles/controls.js +3 -6
- package/dist/components/slider/styles/slider.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/slider/styles/slider.js +3 -6
- package/dist/components/socials/index.d.ts +2 -0
- package/dist/components/socials/socials.d.ts +26 -0
- package/dist/components/socials/socials.js +93 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/table.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/table/table.js +30 -33
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/text.d.ts +24 -0
- package/dist/{packages/web-components/components → components}/text/text.js +65 -57
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field.d.ts +25 -0
- package/dist/{packages/web-components/components → components}/text-field/text-field.js +13 -16
- package/dist/components/thumbnail-slider/index.d.ts +2 -0
- package/dist/components/thumbnail-slider/thumbnail-slide.d.ts +5 -0
- package/dist/components/thumbnail-slider/thumbnail-slide.js +48 -0
- package/dist/components/thumbnail-slider/thumbnail-slider.d.ts +20 -0
- package/dist/{packages/web-components/components → components}/thumbnail-slider/thumbnail-slider.js +15 -15
- package/dist/components/vertical-stack/index.d.ts +2 -0
- package/dist/components/vertical-stack/vertical-stack.d.ts +13 -0
- package/dist/components/vertical-stack/vertical-stack.js +92 -0
- package/dist/components/video/index.d.ts +2 -0
- package/dist/components/video/video.d.ts +29 -0
- package/dist/{packages/web-components/components → components}/video/video.js +22 -26
- package/dist/{packages/web-components/styles → styles}/button.js +4 -7
- package/dist/{packages/web-components/styles → styles}/fonts.js +21 -14
- package/dist/{packages/web-components/styles → styles}/global.js +3 -6
- package/dist/{packages/web-components/styles → styles}/grid.js +3 -6
- package/dist/{packages/web-components/styles → styles}/group.js +11 -14
- package/dist/{packages/web-components/styles → styles}/link.js +3 -6
- package/dist/{packages/web-components/styles → styles}/placeholder-media.js +3 -6
- package/dist/types.d.ts +66 -0
- package/package.json +47 -48
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js +0 -56
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js +0 -37
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -19
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query.js +0 -34
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js +0 -12
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js +0 -260
- package/dist/node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js +0 -50
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js +0 -37
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js +0 -10
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/map.js +0 -15
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/range.js +0 -14
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js +0 -39
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js +0 -259
- package/dist/packages/web-components/components/box/box.js +0 -208
- package/dist/packages/web-components/components/event-table/event-date.js +0 -45
- package/dist/packages/web-components/components/event-table/event-table.js +0 -74
- package/dist/packages/web-components/components/event-table/event.js +0 -45
- package/dist/packages/web-components/components/grid/grid-cell.js +0 -40
- package/dist/packages/web-components/components/horizontal-stack/horizontal-stack.js +0 -93
- package/dist/packages/web-components/components/media-gallery/media.js +0 -31
- package/dist/packages/web-components/components/overlay/overlay.js +0 -77
- package/dist/packages/web-components/components/popover/popover.js +0 -163
- package/dist/packages/web-components/components/slider/slide.js +0 -68
- package/dist/packages/web-components/components/socials/socials.js +0 -96
- package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slide.js +0 -51
- package/dist/packages/web-components/components/vertical-stack/vertical-stack.js +0 -95
- /package/dist/{packages/web-components/classes → classes}/event-manager/event-manager.js +0 -0
- /package/dist/{packages/web-components/classes → classes}/index.js +0 -0
- /package/dist/{packages/web-components/components → components}/icon/icons.svg.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/mergeStyles.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/polyfills/scrollyfills.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/settings.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/themeStyleSheet.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/utilities/debounce.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/utilities/paddingTransformations.js +0 -0
- /package/dist/{packages/web-components/styles → styles}/icon-size.js +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { css as m, LitElement as n, html as f } from "lit";
|
|
2
|
+
import { styleMap as g } from "lit/directives/style-map.js";
|
|
3
|
+
import { classMap as c } from "lit/directives/class-map.js";
|
|
4
|
+
import { customElement as h } from "lit/decorators/custom-element.js";
|
|
5
|
+
import { property as i } from "lit/decorators/property.js";
|
|
6
|
+
import { settings as y } from "../../scripts/settings.js";
|
|
7
|
+
import { global as b } from "../../styles/global.js";
|
|
8
|
+
import { groupMobileAlign as k, groupMobileJustify as v, groupAlign as d, groupJustify as j } from "../../styles/group.js";
|
|
9
|
+
import { mergeStyles as z } from "../../scripts/mergeStyles.js";
|
|
10
|
+
var x = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, r = (t, e, p, l) => {
|
|
11
|
+
for (var o = l > 1 ? void 0 : l ? _(e, p) : e, a = t.length - 1, u; a >= 0; a--)
|
|
12
|
+
(u = t[a]) && (o = (l ? u(e, p, o) : u(o)) || o);
|
|
13
|
+
return l && o && x(e, p, o), o;
|
|
14
|
+
};
|
|
15
|
+
const { prefix: A } = y;
|
|
16
|
+
let s = class extends n {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments), this.align = "start", this.justify = "start";
|
|
19
|
+
}
|
|
20
|
+
stackStyles() {
|
|
21
|
+
let t = {};
|
|
22
|
+
return this.gap !== void 0 && (t = {
|
|
23
|
+
...t,
|
|
24
|
+
"--um-space-horizontal-stack-gap": this.gap / 16 + "rem"
|
|
25
|
+
}), t;
|
|
26
|
+
}
|
|
27
|
+
stackClasses() {
|
|
28
|
+
const t = {};
|
|
29
|
+
return t["group-justify--" + this.justify] = !0, t["group-align--" + this.align] = !0, this.mobileJustify ? t["group-mobile-justify--" + this.mobileJustify] = !0 : t["group-mobile-justify--" + this.justify] = !0, this.mobileAlign ? t["group-mobile-align--" + this.mobileAlign] = !0 : t["group-mobile-align--" + this.align] = !0, t;
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return f`
|
|
33
|
+
<div
|
|
34
|
+
part="horizontal-stack"
|
|
35
|
+
class="horizontal-stack${c(this.stackClasses())}"
|
|
36
|
+
style="${g(this.stackStyles())}"
|
|
37
|
+
>
|
|
38
|
+
<slot></slot>
|
|
39
|
+
</div>
|
|
40
|
+
`;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
s.styles = z([
|
|
44
|
+
b,
|
|
45
|
+
m`
|
|
46
|
+
:host {
|
|
47
|
+
display: block;
|
|
48
|
+
width: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
::slotted(*) {
|
|
52
|
+
flex-shrink: 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.horizontal-stack {
|
|
56
|
+
display: flex;
|
|
57
|
+
gap: var(--um-space-horizontal-stack-gap, var(--um-space-grid-desktop-horizontal, 1rem));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.horizontal-stack.group-justify--stretch ::slotted(*) {
|
|
61
|
+
flex-grow: 1;
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
}
|
|
64
|
+
`,
|
|
65
|
+
k,
|
|
66
|
+
v,
|
|
67
|
+
d,
|
|
68
|
+
j
|
|
69
|
+
]);
|
|
70
|
+
r([
|
|
71
|
+
i({ type: Number })
|
|
72
|
+
], s.prototype, "gap", 2);
|
|
73
|
+
r([
|
|
74
|
+
i()
|
|
75
|
+
], s.prototype, "align", 2);
|
|
76
|
+
r([
|
|
77
|
+
i()
|
|
78
|
+
], s.prototype, "mobileAlign", 2);
|
|
79
|
+
r([
|
|
80
|
+
i()
|
|
81
|
+
], s.prototype, "justify", 2);
|
|
82
|
+
r([
|
|
83
|
+
i()
|
|
84
|
+
], s.prototype, "mobileJustify", 2);
|
|
85
|
+
s = r([
|
|
86
|
+
h(`${A}-horizontal-stack`)
|
|
87
|
+
], s);
|
|
88
|
+
export {
|
|
89
|
+
s as HorizontalStack
|
|
90
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { FontBodySize } from '../../types';
|
|
3
|
+
export declare class Icon extends LitElement {
|
|
4
|
+
icon: string;
|
|
5
|
+
colorText: string | undefined;
|
|
6
|
+
size?: FontBodySize;
|
|
7
|
+
_blobUrl: string;
|
|
8
|
+
constructor();
|
|
9
|
+
dataURItoBlobUrl(iconSprites: string): string;
|
|
10
|
+
svgStyles(): {};
|
|
11
|
+
icontemplate(): import("lit").TemplateResult<2>;
|
|
12
|
+
render(): import("lit").TemplateResult<1>;
|
|
13
|
+
static styles: import("lit").CSSResultArray;
|
|
14
|
+
}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { mergeStyles as g } from "../../scripts/mergeStyles.js";
|
|
11
|
-
import x from "./icons.svg.js";
|
|
12
|
-
import { css as U } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
1
|
+
import { css as p, LitElement as a, svg as f, html as u } from "lit";
|
|
2
|
+
import { customElement as h } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as l } from "lit/decorators.js";
|
|
4
|
+
import { styleMap as v } from "lit/directives/style-map.js";
|
|
5
|
+
import { global as b } from "../../styles/global.js";
|
|
6
|
+
import { iconSize as y } from "../../styles/icon-size.js";
|
|
7
|
+
import { settings as g } from "../../scripts/settings.js";
|
|
8
|
+
import { mergeStyles as x } from "../../scripts/mergeStyles.js";
|
|
9
|
+
import U from "./icons.svg.js";
|
|
13
10
|
var _ = Object.defineProperty, z = Object.getOwnPropertyDescriptor, s = (t, r, n, i) => {
|
|
14
11
|
for (var o = i > 1 ? void 0 : i ? z(r, n) : r, c = t.length - 1, m; c >= 0; c--)
|
|
15
12
|
(m = t[c]) && (o = (i ? m(r, n, o) : m(o)) || o);
|
|
16
13
|
return i && o && _(r, n, o), o;
|
|
17
14
|
};
|
|
18
|
-
const { prefix: d } =
|
|
19
|
-
let e = class extends
|
|
15
|
+
const { prefix: d } = g;
|
|
16
|
+
let e = class extends a {
|
|
20
17
|
constructor() {
|
|
21
|
-
super(), this.icon = "user", this.size = void 0, this._blobUrl = this.dataURItoBlobUrl(
|
|
18
|
+
super(), this.icon = "user", this.size = void 0, this._blobUrl = this.dataURItoBlobUrl(U);
|
|
22
19
|
}
|
|
23
20
|
dataURItoBlobUrl(t) {
|
|
24
21
|
const r = new Blob([t], { type: "image/svg+xml" });
|
|
@@ -28,30 +25,30 @@ let e = class extends f {
|
|
|
28
25
|
let t = {};
|
|
29
26
|
return this.size && (t = {
|
|
30
27
|
...t,
|
|
31
|
-
"--um-font-size-icon":
|
|
28
|
+
"--um-font-size-icon": y(this.size)
|
|
32
29
|
}), this.colorText && (t = {
|
|
33
30
|
...t,
|
|
34
31
|
"--um-color-icon-text": this.colorText
|
|
35
32
|
}), t;
|
|
36
33
|
}
|
|
37
34
|
icontemplate() {
|
|
38
|
-
return
|
|
35
|
+
return f`
|
|
39
36
|
<svg height="1em" width="1em">
|
|
40
37
|
<use href="${this._blobUrl}#${this.icon}"></use>
|
|
41
38
|
</svg>
|
|
42
39
|
`;
|
|
43
40
|
}
|
|
44
41
|
render() {
|
|
45
|
-
return
|
|
46
|
-
<span class="icon" part="icon" style="${
|
|
42
|
+
return u`
|
|
43
|
+
<span class="icon" part="icon" style="${v(this.svgStyles())}">
|
|
47
44
|
${this.icontemplate()}
|
|
48
45
|
</span>
|
|
49
46
|
`;
|
|
50
47
|
}
|
|
51
48
|
};
|
|
52
|
-
e.styles =
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
e.styles = x([
|
|
50
|
+
b,
|
|
51
|
+
p`
|
|
55
52
|
.icon {
|
|
56
53
|
display: flex;
|
|
57
54
|
align-items: center;
|
|
@@ -74,7 +71,7 @@ s([
|
|
|
74
71
|
l({ state: !0 })
|
|
75
72
|
], e.prototype, "_blobUrl", 2);
|
|
76
73
|
e = s([
|
|
77
|
-
|
|
74
|
+
h(`${d}-icon`)
|
|
78
75
|
], e);
|
|
79
76
|
export {
|
|
80
77
|
e as Icon
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { MediaFit, ImageLazy } from '../../types';
|
|
3
|
+
export declare class Image extends LitElement {
|
|
4
|
+
imgAlt: string;
|
|
5
|
+
src?: string | undefined;
|
|
6
|
+
srcSet?: string | undefined;
|
|
7
|
+
sizes?: string | undefined;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
fit: MediaFit;
|
|
11
|
+
load: ImageLazy;
|
|
12
|
+
dispatchEvents(): void;
|
|
13
|
+
containerStyles(): {};
|
|
14
|
+
containerClasses(): any;
|
|
15
|
+
imageClasses(): any;
|
|
16
|
+
image(): import("lit").TemplateResult<1>;
|
|
17
|
+
render(): import("lit").TemplateResult<1>;
|
|
18
|
+
static styles: import("lit").CSSResultArray;
|
|
19
|
+
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { settings as v } from "../../scripts/settings.js";
|
|
12
|
-
import { mergeStyles as w } from "../../scripts/mergeStyles.js";
|
|
13
|
-
import { css as $ } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
1
|
+
import { css as g, LitElement as f, html as l } from "lit";
|
|
2
|
+
import { customElement as d } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as s } from "lit/decorators/property.js";
|
|
4
|
+
import { ifDefined as c } from "lit/directives/if-defined.js";
|
|
5
|
+
import { styleMap as u } from "lit/directives/style-map.js";
|
|
6
|
+
import { classMap as p } from "lit/directives/class-map.js";
|
|
7
|
+
import { global as y } from "../../styles/global.js";
|
|
8
|
+
import { placeholderMedia as v } from "../../styles/placeholder-media.js";
|
|
9
|
+
import { settings as w } from "../../scripts/settings.js";
|
|
10
|
+
import { mergeStyles as $ } from "../../scripts/mergeStyles.js";
|
|
14
11
|
var b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, e = (t, r, h, o) => {
|
|
15
12
|
for (var a = o > 1 ? void 0 : o ? x(r, h) : r, m = t.length - 1, n; m >= 0; m--)
|
|
16
13
|
(n = t[m]) && (a = (o ? n(r, h, a) : n(a)) || a);
|
|
17
14
|
return o && a && b(r, h, a), a;
|
|
18
15
|
};
|
|
19
|
-
const { prefix: C } =
|
|
20
|
-
let i = class extends
|
|
16
|
+
const { prefix: C } = w;
|
|
17
|
+
let i = class extends f {
|
|
21
18
|
constructor() {
|
|
22
19
|
super(...arguments), this.imgAlt = "", this.width = 100, this.height = 100, this.fit = "contain", this.load = "lazy";
|
|
23
20
|
}
|
|
@@ -79,7 +76,7 @@ let i = class extends g {
|
|
|
79
76
|
return this.dispatchEvents(), l`
|
|
80
77
|
<div
|
|
81
78
|
class="image-container${p(this.imageClasses())}"
|
|
82
|
-
style=${
|
|
79
|
+
style=${u(this.containerStyles())}
|
|
83
80
|
part="image-container"
|
|
84
81
|
>
|
|
85
82
|
${this.image()}
|
|
@@ -87,10 +84,10 @@ let i = class extends g {
|
|
|
87
84
|
`;
|
|
88
85
|
}
|
|
89
86
|
};
|
|
90
|
-
i.styles =
|
|
91
|
-
u,
|
|
87
|
+
i.styles = $([
|
|
92
88
|
y,
|
|
93
|
-
|
|
89
|
+
v,
|
|
90
|
+
g`
|
|
94
91
|
:host {
|
|
95
92
|
display: block;
|
|
96
93
|
height: 100%;
|
|
@@ -150,7 +147,7 @@ e([
|
|
|
150
147
|
s({ type: String })
|
|
151
148
|
], i.prototype, "load", 2);
|
|
152
149
|
i = e([
|
|
153
|
-
|
|
150
|
+
d(`${C}-image`)
|
|
154
151
|
], i);
|
|
155
152
|
export {
|
|
156
153
|
i as Image
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { Banner } from './banner/banner';
|
|
2
|
+
export { BannerImage } from './banner-image/';
|
|
3
|
+
export { Box } from './box/';
|
|
4
|
+
export { Button } from './button/';
|
|
5
|
+
export { ButtonIcon } from './button-icon/';
|
|
6
|
+
export { ButtonGroup } from './button-group/';
|
|
7
|
+
export { CaptionCard } from './caption-card/';
|
|
8
|
+
export { DeferredMedia } from './deferred-media/';
|
|
9
|
+
export { Disclosure } from './disclosure/';
|
|
10
|
+
export { EventTable } from './event-table/';
|
|
11
|
+
export { Footer } from './footer/';
|
|
12
|
+
export { Grid } from './grid/';
|
|
13
|
+
export { Header } from './header/';
|
|
14
|
+
export { HeaderDrawer } from './header-drawer/';
|
|
15
|
+
export { HorizontalStack } from './horizontal-stack/';
|
|
16
|
+
export { Icon } from './icon/';
|
|
17
|
+
export { Image } from './image/';
|
|
18
|
+
export { Link } from './link/';
|
|
19
|
+
export { LinkGroup } from './link-group/';
|
|
20
|
+
export { Logo } from './logo/';
|
|
21
|
+
export { MediaGallery } from './media-gallery/';
|
|
22
|
+
export { MediaText } from './media-text/';
|
|
23
|
+
export { Menu } from './menu/';
|
|
24
|
+
export { MenuBar } from './menu-bar/';
|
|
25
|
+
export { Modal } from './modal/';
|
|
26
|
+
export { NumberField } from './number-field/';
|
|
27
|
+
export { Overlay } from './overlay/';
|
|
28
|
+
export { Page } from './page/';
|
|
29
|
+
export { Popover } from './popover/';
|
|
30
|
+
export { Section } from './section/';
|
|
31
|
+
export { Select } from './select/';
|
|
32
|
+
export { Slider } from './slider/';
|
|
33
|
+
export { Socials } from './socials/';
|
|
34
|
+
export { Table } from './table/';
|
|
35
|
+
export { Text } from './text/';
|
|
36
|
+
export { TextField } from './text-field/';
|
|
37
|
+
export { RichText } from './rich-text/';
|
|
38
|
+
export { ThumbnailSlider } from './thumbnail-slider';
|
|
39
|
+
export { Video } from './video/';
|
|
40
|
+
export { VerticalStack } from './vertical-stack/';
|
|
41
|
+
export { Badge } from './badge/';
|
|
@@ -6,7 +6,7 @@ import { ButtonIcon as n } from "./button-icon/button-icon.js";
|
|
|
6
6
|
import { ButtonGroup as d } from "./button-group/button-group.js";
|
|
7
7
|
import { CaptionCard as u } from "./caption-card/caption-card.js";
|
|
8
8
|
import { DeferredMedia as S } from "./deferred-media/deferred-media.js";
|
|
9
|
-
import { Disclosure as
|
|
9
|
+
import { Disclosure as M } from "./disclosure/disclosure.js";
|
|
10
10
|
import { EventTable as b } from "./event-table/event-table.js";
|
|
11
11
|
import { Footer as G } from "./footer/footer.js";
|
|
12
12
|
import { Grid as s } from "./grid/grid.js";
|
|
@@ -21,25 +21,26 @@ import { Logo as R } from "./logo/logo.js";
|
|
|
21
21
|
import { MediaGallery as q } from "./media-gallery/media-gallery.js";
|
|
22
22
|
import { MediaText as J } from "./media-text/media-text.js";
|
|
23
23
|
import { Menu as Q } from "./menu/menu.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
24
|
+
import { MenuBar as W } from "./menu-bar/menu-bar.js";
|
|
25
|
+
import { Modal as Y } from "./modal/modal.js";
|
|
26
|
+
import { NumberField as _ } from "./number-field/number-field.js";
|
|
27
|
+
import { Overlay as rr } from "./overlay/overlay.js";
|
|
28
|
+
import { Page as er } from "./page/page.js";
|
|
29
|
+
import { Popover as xr } from "./popover/popover.js";
|
|
30
|
+
import { Section as pr } from "./section/section.js";
|
|
31
|
+
import { Select as ar } from "./select/select.js";
|
|
32
|
+
import { Slider as nr } from "./slider/slider.js";
|
|
33
|
+
import { Socials as dr } from "./socials/socials.js";
|
|
34
|
+
import { Table as ur } from "./table/table.js";
|
|
35
|
+
import { Text as Sr } from "./text/text.js";
|
|
36
|
+
import { TextField as Mr } from "./text-field/text-field.js";
|
|
37
|
+
import { RichText as br } from "./rich-text/rich-text.js";
|
|
38
|
+
import { ThumbnailSlider as Gr } from "./thumbnail-slider/thumbnail-slider.js";
|
|
39
|
+
import { Video as sr } from "./video/video.js";
|
|
40
|
+
import { VerticalStack as Dr } from "./vertical-stack/vertical-stack.js";
|
|
41
|
+
import { Badge as Hr } from "./badge/badge.js";
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
+
Hr as Badge,
|
|
43
44
|
e as Banner,
|
|
44
45
|
x as BannerImage,
|
|
45
46
|
p as Box,
|
|
@@ -48,7 +49,7 @@ export {
|
|
|
48
49
|
n as ButtonIcon,
|
|
49
50
|
u as CaptionCard,
|
|
50
51
|
S as DeferredMedia,
|
|
51
|
-
|
|
52
|
+
M as Disclosure,
|
|
52
53
|
b as EventTable,
|
|
53
54
|
G as Footer,
|
|
54
55
|
s as Grid,
|
|
@@ -63,20 +64,21 @@ export {
|
|
|
63
64
|
q as MediaGallery,
|
|
64
65
|
J as MediaText,
|
|
65
66
|
Q as Menu,
|
|
66
|
-
W as
|
|
67
|
-
Y as
|
|
68
|
-
_ as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
67
|
+
W as MenuBar,
|
|
68
|
+
Y as Modal,
|
|
69
|
+
_ as NumberField,
|
|
70
|
+
rr as Overlay,
|
|
71
|
+
er as Page,
|
|
72
|
+
xr as Popover,
|
|
73
|
+
br as RichText,
|
|
74
|
+
pr as Section,
|
|
75
|
+
ar as Select,
|
|
76
|
+
nr as Slider,
|
|
77
|
+
dr as Socials,
|
|
78
|
+
ur as Table,
|
|
79
|
+
Sr as Text,
|
|
80
|
+
Mr as TextField,
|
|
81
|
+
Gr as ThumbnailSlider,
|
|
82
|
+
Dr as VerticalStack,
|
|
83
|
+
sr as Video
|
|
82
84
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { LinkTarget } from '../../types';
|
|
3
|
+
export declare class Link extends LitElement {
|
|
4
|
+
url?: string | undefined;
|
|
5
|
+
target: LinkTarget;
|
|
6
|
+
underline?: boolean | undefined;
|
|
7
|
+
linkClasses(): any;
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
static styles: import("lit").CSSResultArray;
|
|
10
|
+
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
for (var e = n > 1 ? void 0 : n ? b(r, l) : r, s = i.length - 1, a; s >= 0; s--)
|
|
14
|
-
(a = i[s]) && (e = (n ? a(r, l, e) : a(e)) || e);
|
|
15
|
-
return n && e && y(r, l, e), e;
|
|
1
|
+
import { css as m, LitElement as f, html as u } from "lit";
|
|
2
|
+
import { customElement as c } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as p } from "lit/decorators/property.js";
|
|
4
|
+
import { ifDefined as d } from "lit/directives/if-defined.js";
|
|
5
|
+
import { classMap as h } from "lit/directives/class-map.js";
|
|
6
|
+
import { global as g } from "../../styles/global.js";
|
|
7
|
+
import { settings as v } from "../../scripts/settings.js";
|
|
8
|
+
import { mergeStyles as x } from "../../scripts/mergeStyles.js";
|
|
9
|
+
var y = Object.defineProperty, b = Object.getOwnPropertyDescriptor, l = (o, r, i, n) => {
|
|
10
|
+
for (var e = n > 1 ? void 0 : n ? b(r, i) : r, s = o.length - 1, a; s >= 0; s--)
|
|
11
|
+
(a = o[s]) && (e = (n ? a(r, i, e) : a(e)) || e);
|
|
12
|
+
return n && e && y(r, i, e), e;
|
|
16
13
|
};
|
|
17
|
-
const { prefix: k } =
|
|
14
|
+
const { prefix: k } = v;
|
|
18
15
|
let t = class extends f {
|
|
19
16
|
constructor() {
|
|
20
17
|
super(...arguments), this.url = void 0, this.target = "_self", this.underline = !1;
|
|
@@ -25,11 +22,11 @@ let t = class extends f {
|
|
|
25
22
|
};
|
|
26
23
|
}
|
|
27
24
|
render() {
|
|
28
|
-
return
|
|
25
|
+
return u`
|
|
29
26
|
<a
|
|
30
27
|
part="link"
|
|
31
|
-
href="${
|
|
32
|
-
class="link${
|
|
28
|
+
href="${d(this.url)}"
|
|
29
|
+
class="link${h(this.linkClasses())}"
|
|
33
30
|
target="${this.target}"
|
|
34
31
|
>
|
|
35
32
|
<slot part="label"></slot>
|
|
@@ -38,9 +35,9 @@ let t = class extends f {
|
|
|
38
35
|
`;
|
|
39
36
|
}
|
|
40
37
|
};
|
|
41
|
-
t.styles =
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
t.styles = x([
|
|
39
|
+
g,
|
|
40
|
+
m`
|
|
44
41
|
:host {
|
|
45
42
|
display: inline-block;
|
|
46
43
|
}
|
|
@@ -78,17 +75,17 @@ t.styles = v([
|
|
|
78
75
|
}
|
|
79
76
|
`
|
|
80
77
|
]);
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
l([
|
|
79
|
+
p()
|
|
83
80
|
], t.prototype, "url", 2);
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
l([
|
|
82
|
+
p()
|
|
86
83
|
], t.prototype, "target", 2);
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
l([
|
|
85
|
+
p({ type: Boolean })
|
|
89
86
|
], t.prototype, "underline", 2);
|
|
90
|
-
t =
|
|
91
|
-
|
|
87
|
+
t = l([
|
|
88
|
+
c(`${k}-link`)
|
|
92
89
|
], t);
|
|
93
90
|
export {
|
|
94
91
|
t as Link
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { GroupSpacing, GroupAlign } from '../../types';
|
|
3
|
+
export declare class LinkGroup extends LitElement {
|
|
4
|
+
spacing: GroupSpacing;
|
|
5
|
+
justify: GroupAlign;
|
|
6
|
+
mobileJustify: GroupAlign | undefined;
|
|
7
|
+
noWrap: boolean;
|
|
8
|
+
stack: boolean;
|
|
9
|
+
mobileStack: boolean;
|
|
10
|
+
getClasses(): any;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResultArray;
|
|
13
|
+
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { settings as v } from "../../scripts/settings.js";
|
|
10
|
-
import { mergeStyles as k } from "../../scripts/mergeStyles.js";
|
|
11
|
-
import { css as x } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
1
|
+
import { css as n, LitElement as c, html as m } from "lit";
|
|
2
|
+
import { customElement as g } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as i } from "lit/decorators/property.js";
|
|
4
|
+
import { classMap as b } from "lit/directives/class-map.js";
|
|
5
|
+
import { global as f } from "../../styles/global.js";
|
|
6
|
+
import { groupSpacing as h, groupMobileJustify as d, groupMobileAlign as y, groupJustify as w, groupAlign as v } from "../../styles/group.js";
|
|
7
|
+
import { settings as k } from "../../scripts/settings.js";
|
|
8
|
+
import { mergeStyles as x } from "../../scripts/mergeStyles.js";
|
|
12
9
|
var j = Object.defineProperty, J = Object.getOwnPropertyDescriptor, e = (r, s, p, a) => {
|
|
13
10
|
for (var t = a > 1 ? void 0 : a ? J(s, p) : s, l = r.length - 1, u; l >= 0; l--)
|
|
14
11
|
(u = r[l]) && (t = (a ? u(s, p, t) : u(t)) || t);
|
|
15
12
|
return a && t && j(s, p, t), t;
|
|
16
13
|
};
|
|
17
|
-
const { prefix: S } =
|
|
14
|
+
const { prefix: S } = k;
|
|
18
15
|
let o = class extends c {
|
|
19
16
|
constructor() {
|
|
20
17
|
super(...arguments), this.spacing = "normal", this.justify = "start", this.noWrap = !1, this.stack = !1, this.mobileStack = !1;
|
|
@@ -24,9 +21,9 @@ let o = class extends c {
|
|
|
24
21
|
return r["group-spacing--" + this.spacing] = !0, r["group--no-wrap"] = this.noWrap, r["group--stack"] = this.stack, r["group--mobile-stack"] = this.mobileStack, this.stack ? r["group-align--" + this.justify] = !0 : r["group-justify--" + this.justify] = !0, this.mobileStack ? r["group-mobile-align--" + this.mobileJustify] = !0 : this.mobileJustify ? r["group-mobile-justify--" + this.mobileJustify] = !0 : r["group-mobile-justify--" + this.justify] = !0, r;
|
|
25
22
|
}
|
|
26
23
|
render() {
|
|
27
|
-
return
|
|
24
|
+
return m`
|
|
28
25
|
<div
|
|
29
|
-
class="link-group${
|
|
26
|
+
class="link-group${b(this.getClasses())}"
|
|
30
27
|
part="link-group"
|
|
31
28
|
>
|
|
32
29
|
<slot></slot>
|
|
@@ -34,14 +31,14 @@ let o = class extends c {
|
|
|
34
31
|
`;
|
|
35
32
|
}
|
|
36
33
|
};
|
|
37
|
-
o.styles =
|
|
38
|
-
b,
|
|
34
|
+
o.styles = x([
|
|
39
35
|
f,
|
|
40
36
|
h,
|
|
41
37
|
d,
|
|
42
38
|
y,
|
|
43
39
|
w,
|
|
44
|
-
|
|
40
|
+
v,
|
|
41
|
+
n`
|
|
45
42
|
|
|
46
43
|
:host([noWrap]) {
|
|
47
44
|
display: block;
|
|
@@ -119,7 +116,7 @@ e([
|
|
|
119
116
|
i({ type: Boolean })
|
|
120
117
|
], o.prototype, "mobileStack", 2);
|
|
121
118
|
o = e([
|
|
122
|
-
|
|
119
|
+
g(`${S}-link-group`)
|
|
123
120
|
], o);
|
|
124
121
|
export {
|
|
125
122
|
o as LinkGroup
|