@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.
Files changed (88) hide show
  1. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js +56 -0
  2. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  3. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  4. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  5. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
  6. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query.js +34 -0
  7. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  8. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js +260 -0
  9. package/dist/node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js +50 -0
  10. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js +27 -0
  11. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js +37 -0
  12. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js +10 -0
  13. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/map.js +15 -0
  14. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/range.js +14 -0
  15. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js +39 -0
  16. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js +259 -0
  17. package/dist/packages/web-components/classes/event-manager/event-manager.js +50 -0
  18. package/dist/packages/web-components/classes/index.js +4 -0
  19. package/dist/packages/web-components/components/badge/badge.js +146 -0
  20. package/dist/packages/web-components/components/banner/banner.js +389 -0
  21. package/dist/packages/web-components/components/banner-image/banner-image.js +161 -0
  22. package/dist/packages/web-components/components/box/box.js +208 -0
  23. package/dist/packages/web-components/components/button/button.js +336 -0
  24. package/dist/packages/web-components/components/button-group/button-group.js +98 -0
  25. package/dist/packages/web-components/components/button-icon/button-icon.js +246 -0
  26. package/dist/packages/web-components/components/caption-card/caption-card.js +331 -0
  27. package/dist/packages/web-components/components/deferred-media/deferred-media.js +212 -0
  28. package/dist/packages/web-components/components/disclosure/disclosure.js +255 -0
  29. package/dist/packages/web-components/components/event-table/event-content.js +106 -0
  30. package/dist/packages/web-components/components/event-table/event-date.js +45 -0
  31. package/dist/packages/web-components/components/event-table/event-table.js +74 -0
  32. package/dist/packages/web-components/components/event-table/event.js +45 -0
  33. package/dist/packages/web-components/components/footer/footer.js +153 -0
  34. package/dist/packages/web-components/components/grid/grid-cell.js +40 -0
  35. package/dist/packages/web-components/components/grid/grid.js +106 -0
  36. package/dist/packages/web-components/components/header/header.js +368 -0
  37. package/dist/packages/web-components/components/header-drawer/header-drawer.js +292 -0
  38. package/dist/packages/web-components/components/header-drawer/menu-drawer.js +176 -0
  39. package/dist/packages/web-components/components/horizontal-stack/horizontal-stack.js +93 -0
  40. package/dist/packages/web-components/components/icon/icon.js +81 -0
  41. package/dist/packages/web-components/components/icon/icons.svg.js +191 -0
  42. package/dist/packages/web-components/components/image/image.js +157 -0
  43. package/dist/packages/web-components/components/index.js +82 -0
  44. package/dist/packages/web-components/components/link/link.js +95 -0
  45. package/dist/packages/web-components/components/link-group/link-group.js +126 -0
  46. package/dist/packages/web-components/components/logo/logo.js +161 -0
  47. package/dist/packages/web-components/components/media-gallery/media-gallery.js +82 -0
  48. package/dist/packages/web-components/components/media-gallery/media.js +31 -0
  49. package/dist/packages/web-components/components/media-text/media-text.js +276 -0
  50. package/dist/packages/web-components/components/media-text/styles/media-size.js +119 -0
  51. package/dist/packages/web-components/components/menu/menu.js +328 -0
  52. package/dist/packages/web-components/components/modal/modal.js +143 -0
  53. package/dist/packages/web-components/components/number-field/number-field.js +339 -0
  54. package/dist/packages/web-components/components/overlay/overlay.js +77 -0
  55. package/dist/packages/web-components/components/page/page.js +105 -0
  56. package/dist/packages/web-components/components/popover/popover.js +163 -0
  57. package/dist/packages/web-components/components/rich-text/rich-text.js +126 -0
  58. package/dist/packages/web-components/components/section/section.js +400 -0
  59. package/dist/packages/web-components/components/select/select.js +359 -0
  60. package/dist/packages/web-components/components/slider/slide.js +68 -0
  61. package/dist/packages/web-components/components/slider/slider-controls.js +258 -0
  62. package/dist/packages/web-components/components/slider/slider.js +374 -0
  63. package/dist/packages/web-components/components/slider/styles/controls.js +98 -0
  64. package/dist/packages/web-components/components/slider/styles/slider.js +233 -0
  65. package/dist/packages/web-components/components/socials/socials.js +96 -0
  66. package/dist/packages/web-components/components/table/table.js +158 -0
  67. package/dist/packages/web-components/components/text/text.js +245 -0
  68. package/dist/packages/web-components/components/text-field/text-field.js +257 -0
  69. package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slide.js +51 -0
  70. package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slider.js +88 -0
  71. package/dist/packages/web-components/components/vertical-stack/vertical-stack.js +95 -0
  72. package/dist/packages/web-components/components/video/video.js +185 -0
  73. package/dist/packages/web-components/scripts/mergeStyles.js +8 -0
  74. package/dist/packages/web-components/scripts/polyfills/scrollyfills.js +43 -0
  75. package/dist/packages/web-components/scripts/settings.js +7 -0
  76. package/dist/packages/web-components/scripts/themeStyleSheet.js +9 -0
  77. package/dist/packages/web-components/scripts/utilities/debounce.js +9 -0
  78. package/dist/packages/web-components/scripts/utilities/paddingTransformations.js +46 -0
  79. package/dist/packages/web-components/styles/button.js +55 -0
  80. package/dist/packages/web-components/styles/fonts.js +181 -0
  81. package/dist/packages/web-components/styles/global.js +40 -0
  82. package/dist/packages/web-components/styles/grid.js +114 -0
  83. package/dist/packages/web-components/styles/group.js +121 -0
  84. package/dist/packages/web-components/styles/icon-size.js +19 -0
  85. package/dist/packages/web-components/styles/link.js +30 -0
  86. package/dist/packages/web-components/styles/placeholder-media.js +27 -0
  87. package/package.json +92 -0
  88. package/readme.md +266 -0
@@ -0,0 +1,126 @@
1
+ import "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
2
+ import { html as g } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js";
3
+ import { LitElement as c } from "../../../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js";
4
+ import { classMap as h } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js";
5
+ import { customElement as x } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";
6
+ import { property as r } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";
7
+ import { global as p } from "../../styles/global.js";
8
+ import { fontSizes as f, fontMargins as d } from "../../styles/fonts.js";
9
+ import { settings as u } from "../../scripts/settings.js";
10
+ import { mergeStyles as v } from "../../scripts/mergeStyles.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 y = Object.defineProperty, z = Object.getOwnPropertyDescriptor, s = (t, l, o, n) => {
13
+ for (var e = n > 1 ? void 0 : n ? z(l, o) : l, a = t.length - 1, m; a >= 0; a--)
14
+ (m = t[a]) && (e = (n ? m(l, o, e) : m(e)) || e);
15
+ return n && e && y(l, o, e), e;
16
+ };
17
+ const { prefix: j } = u;
18
+ let i = class extends c {
19
+ constructor() {
20
+ super(...arguments), this.size = "bodyMd", this.alignment = "start";
21
+ }
22
+ textClasses() {
23
+ const t = {};
24
+ return this.size && (t["txt--" + this.size] = !0), this.lineHeight && (t["txt--line-height-" + this.lineHeight] = !0), this.alignment && (t["txt--align-" + this.alignment] = !0), this.mobileAlignment ? t["txt--mobile-align-" + this.mobileAlignment] = !0 : t["txt--mobile-align-" + this.alignment] = !0, t;
25
+ }
26
+ render() {
27
+ return g`
28
+ <slot name="content" class="rich-text${h(this.textClasses())}">
29
+ <div class="rich-text-skeleton">
30
+ <div class="skeleton"></div>
31
+ <div class="skeleton"></div>
32
+ <div class="skeleton"></div>
33
+ <div class="skeleton"></div>
34
+ <div class="skeleton"></div>
35
+ </div>
36
+ </slot>
37
+ `;
38
+ }
39
+ };
40
+ i.styles = v([
41
+ p,
42
+ f,
43
+ b`
44
+ .rich-text-skeleton {
45
+ display: flex;
46
+ flex-direction: column;
47
+ gap: 1rem;
48
+ width: 100%;
49
+ }
50
+ .skeleton {
51
+ background-color: rgb(var(--um-color-skeleton-bg, 1));
52
+ height: 0.5rem;
53
+ border-radius: 0.5rem;
54
+ width: 100%;
55
+ }
56
+ .rich-text {
57
+ color: inherit
58
+ }
59
+
60
+ /* Text line-height */
61
+ .txt--line-height-extra-loose {
62
+ line-height: calc(1 + 1 / max(1, var(--um-font-size-body-scale, 1)));
63
+ }
64
+ .txt--line-height-loose {
65
+ line-height: calc(1 + 0.8 / max(1, var(--um-font-size-body-scale, 1)));
66
+ }
67
+ .txt--line-height-regular {
68
+ line-height: calc(1 + 0.5 / max(1, var(--um-font-size-body-scale, 1)));
69
+ }
70
+ .txt--line-height-compact {
71
+ line-height: calc(1 + 0.3 / max(1, var(--um-font-size-body-scale, 1)));
72
+ }
73
+
74
+ /* Text justification */
75
+ @media screen and (max-width: 48rem) {
76
+ .txt--mobile-align-start {
77
+ text-align: left;
78
+ }
79
+ .txt--mobile-align-center {
80
+ text-align: center;
81
+ }
82
+ .txt--mobile-align-end {
83
+ text-align: right;
84
+ }
85
+ .txt--mobile-align-justify {
86
+ text-align: justify;
87
+ }
88
+ }
89
+ @media screen and (min-width: 48.06rem) {
90
+ .txt--margin {
91
+ margin-bottom: var(--um-space-16, 1rem);
92
+ }
93
+ .txt--align-start {
94
+ text-align: left;
95
+ }
96
+ .txt--align-center {
97
+ text-align: center;
98
+ }
99
+ .txt--align-end {
100
+ text-align: right;
101
+ }
102
+ .txt--align-justify {
103
+ text-align: justify;
104
+ }
105
+ }
106
+ `,
107
+ d
108
+ ]);
109
+ s([
110
+ r({ type: String })
111
+ ], i.prototype, "size", 2);
112
+ s([
113
+ r({ type: String })
114
+ ], i.prototype, "lineHeight", 2);
115
+ s([
116
+ r({ type: String })
117
+ ], i.prototype, "alignment", 2);
118
+ s([
119
+ r({ type: String })
120
+ ], i.prototype, "mobileAlignment", 2);
121
+ i = s([
122
+ x(`${j}-rich-text`)
123
+ ], i);
124
+ export {
125
+ i as RichText
126
+ };
@@ -0,0 +1,400 @@
1
+ import "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
2
+ import { html as l } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js";
3
+ import { LitElement as g } from "../../../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js";
4
+ import { customElement as u } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js";
5
+ import { property as o } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js";
6
+ import { state as h } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js";
7
+ import { classMap as p } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js";
8
+ import { styleMap as m } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js";
9
+ import { paddingToCssShorthandArray as f, mergePaddingArrays as b } from "../../scripts/utilities/paddingTransformations.js";
10
+ import { global as _ } from "../../styles/global.js";
11
+ import { settings as w } from "../../scripts/settings.js";
12
+ import { mergeStyles as v } from "../../scripts/mergeStyles.js";
13
+ import { css as y } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
14
+ var x = Object.defineProperty, P = Object.getOwnPropertyDescriptor, i = (e, a, d, r) => {
15
+ for (var n = r > 1 ? void 0 : r ? P(a, d) : a, s = e.length - 1, c; s >= 0; s--)
16
+ (c = e[s]) && (n = (r ? c(a, d, n) : c(n)) || n);
17
+ return r && n && x(a, d, n), n;
18
+ };
19
+ const { prefix: S } = w;
20
+ let t = class extends g {
21
+ constructor() {
22
+ super(...arguments), this.outerWidth = "full-width", this.innerWidth = "page-width", this.compactHeader = !1, this.bleedContent = !1, this._withoutHeader = !0, this._withoutFooter = !0;
23
+ }
24
+ handleSlotchange(e) {
25
+ e.target && e.target.getAttribute("name") === "footer-link" && (this._withoutFooter = !1), (e.target && e.target.getAttribute("name") === "title" || e.target.getAttribute("name") === "header-link" || e.target.getAttribute("name") === "subtitle" || e.target.getAttribute("name") === "description") && (this._withoutHeader = !1);
26
+ }
27
+ firstUpdated() {
28
+ this.mobilePadding && this.convertMobilePadding(this.mobilePadding);
29
+ }
30
+ updated(e) {
31
+ e.has("mobilePadding") && this.mobilePadding && this.mobilePadding && this.convertMobilePadding(this.mobilePadding);
32
+ }
33
+ convertMobilePadding(e) {
34
+ if (e) {
35
+ const d = [f(e)];
36
+ this._mobilePadding = b(d);
37
+ }
38
+ }
39
+ sectionClasses() {
40
+ const e = {
41
+ section: !0,
42
+ "section--compact-header": this.compactHeader,
43
+ "section--without-header": this._withoutHeader,
44
+ "section--without-footer": this._withoutFooter
45
+ };
46
+ return this.outerWidth && (e["section-width--" + this.outerWidth] = !0), e;
47
+ }
48
+ sectionInnerClasses() {
49
+ const e = {};
50
+ return this.innerWidth && (e["section-inner-width--" + this.innerWidth] = !0), this.bleedContent && (e["section-inner--bleed-content"] = !0), e;
51
+ }
52
+ sectionStyles() {
53
+ let e = {};
54
+ return this.maxInnerWidth && (e = {
55
+ ...e,
56
+ "--um-size-max-section-width": this.maxInnerWidth / 16 + "rem"
57
+ }), this.colorText && (e = {
58
+ ...e,
59
+ "--um-color-section-text": this.colorText
60
+ }), this.colorBg && (e = {
61
+ ...e,
62
+ "--um-color-section-bg": this.colorBg
63
+ }), this.paddingTop && (e = {
64
+ ...e,
65
+ "--um-space-section-padding-top": Number(this.paddingTop) / 16 + "rem"
66
+ }), this.paddingBottom && (e = {
67
+ ...e,
68
+ "--um-space-section-padding-bottom": Number(this.paddingBottom) / 16 + "rem"
69
+ }), this.paddingLeft && (e = {
70
+ ...e,
71
+ "--um-space-section-padding-left": Number(this.paddingLeft) / 16 + "rem"
72
+ }), this.paddingRight && (e = {
73
+ ...e,
74
+ "--um-space-section-padding-right": Number(this.paddingRight) / 16 + "rem"
75
+ }), this._mobilePadding && typeof this._mobilePadding == "object" && "rem" in this._mobilePadding && (e = {
76
+ ...e,
77
+ "--um-space-section-mobile-padding-top": this._mobilePadding.rem.top,
78
+ "--um-space-section-mobile-padding-right": this._mobilePadding.rem.right,
79
+ "--um-space-section-mobile-padding-bottom": this._mobilePadding.rem.bottom,
80
+ "--um-space-section-mobile-padding-left": this._mobilePadding.rem.left
81
+ }), e;
82
+ }
83
+ headerStyles() {
84
+ let e = {};
85
+ return this._withoutHeader && (e = {
86
+ ...e,
87
+ display: "none"
88
+ }), e;
89
+ }
90
+ footerStyles() {
91
+ let e = {};
92
+ return this._withoutFooter && (e = {
93
+ ...e,
94
+ display: "none"
95
+ }), e;
96
+ }
97
+ header() {
98
+ return l`
99
+ <div
100
+ part="section-header"
101
+ class="section__header"
102
+ style="${m(this.headerStyles())}"
103
+ >
104
+ <div class="header">
105
+ <div part="header__main" class="header-main">
106
+ <div class="title" part="header-title">
107
+ <slot
108
+ name="title"
109
+ @slotchange=${this.handleSlotchange}
110
+ >
111
+ </slot>
112
+ </div>
113
+ <div class="header__link" part="header-link">
114
+ <slot
115
+ name="header-link"
116
+ @slotchange=${this.handleSlotchange}
117
+ >
118
+ </slot>
119
+ </div>
120
+ </div>
121
+ <slot
122
+ name="subtitle"
123
+ @slotchange=${this.handleSlotchange}
124
+ >
125
+ </slot>
126
+ <slot
127
+ name="description"
128
+ @slotchange=${this.handleSlotchange}
129
+ >
130
+ </slot>
131
+ </div>
132
+ </div>
133
+ `;
134
+ }
135
+ footer() {
136
+ return l`
137
+ <div
138
+ part="section_footer"
139
+ class="section__footer"
140
+ style="${m(this.footerStyles())}"
141
+ >
142
+ <div class="footer">
143
+ <div class="footer__link" part="footer-link">
144
+ <slot
145
+ name="footer-link"
146
+ @slotchange=${this.handleSlotchange}
147
+ >
148
+ </slot>
149
+ </div>
150
+ </div>
151
+ </div>
152
+ `;
153
+ }
154
+ render() {
155
+ return l`
156
+ <section
157
+ class="${p(this.sectionClasses())}"
158
+ style="${m(this.sectionStyles())}"
159
+ part="section"
160
+ >
161
+ <div
162
+ class="section__inner${p(this.sectionInnerClasses())}"
163
+ part="section-inner"
164
+ >
165
+ ${this.header()}
166
+ <div
167
+ class="section__content"
168
+ part="section-content"
169
+ >
170
+ <slot name="content"></slot>
171
+ </div>
172
+ ${this.footer()}
173
+ </div>
174
+ </section>
175
+ `;
176
+ }
177
+ };
178
+ t.styles = v([
179
+ _,
180
+ y`
181
+ :host {
182
+ display: block;
183
+ width: 100%;
184
+ }
185
+
186
+ /* Layout */
187
+ .section {
188
+ margin: 0 auto;
189
+ margin-top: var(--um-space-section-margin-top, 0);
190
+ margin-bottom: var(--um-space-section-margin-bottom, 0);
191
+ max-width: var(--um-size-page-width, 75rem);
192
+ width: 100%;
193
+ }
194
+
195
+ .section__inner {
196
+ color: rgb(var(--um-color-section-text, var(--um-color-page-text, var(--um-color-base-text))), 1);
197
+ background-color: rgb(var(--um-color-section-bg, var(--um-color-page-bg, var(--um-color-base-bg))), 1);
198
+ }
199
+
200
+ /* Section widths */
201
+
202
+ /* Outer section width */
203
+ .section.section-width--full-width,
204
+ .section.section-width--full-bleed {
205
+ max-width: 100%;
206
+ }
207
+
208
+ /* Inner section width */
209
+ .section-inner-width--full-width .section__content,
210
+ .section-inner-width--full-bleed .section__content {
211
+ max-width: 100%;
212
+ }
213
+
214
+ .section-inner-width--page-width .section__header,
215
+ .section-inner-width--page-width .section__content,
216
+ .section-inner-width--page-width .section__footer {
217
+ margin: 0 auto;
218
+ max-width: var(--um-size-page-width, 75rem);
219
+ width: 100%;
220
+ }
221
+ .section-inner-width--full-bleed .section__header,
222
+ .section-inner-width--full-bleed .section__content,
223
+ .section-inner-width--full-bleed .section__footer,
224
+ .section-inner-width--full-width .section__header,
225
+ .section-inner-width--full-width .section__content,
226
+ .section-inner-width--full-width .section__footer {
227
+ margin: 0 auto;
228
+ max-width: var(--um-size-max-section-width);
229
+ width: 100%;
230
+ }
231
+
232
+ /* Header */
233
+ .header {
234
+ display: flex;
235
+ flex-direction: column;
236
+ gap: var(--um--space-16, 1rem);
237
+ padding-top: var(--um-space-section-padding-top, 1.5rem);
238
+ padding-bottom: var(--um-space-32, 2rem);
239
+ }
240
+ @media only screen and (max-width: 48rem) {
241
+ .header {
242
+ padding-top: var(--um-space-section-mobile-padding-top, 1.5rem);
243
+ }
244
+ }
245
+
246
+ .header-main {
247
+ display: flex;
248
+ align-items: center;
249
+ column-gap: var(--um-space-16, 1rem);
250
+ row-gap: var(--um-space-12, 0.75rem);
251
+ flex-wrap: wrap;
252
+ }
253
+ .header-main .title {
254
+ flex: 1;
255
+ }
256
+
257
+ @media screen and (max-width: 48rem) {
258
+ .header-main .title {
259
+ flex: 1 0 100%;
260
+ }
261
+ }
262
+
263
+ /* Compact header */
264
+ .section--compact-header .header {
265
+ gap: 0;
266
+ padding-bottom: var(--um-space-12, 0.75rem);
267
+ }
268
+
269
+ /* Footer */
270
+ .footer {
271
+ display: flex;
272
+ justify-content: center;
273
+ padding-top: var(--um-space-32, 2rem);
274
+ padding-bottom: var(--um-space-section-padding-bottom, 1.5rem);
275
+ }
276
+ @media only screen and (max-width: 48rem) {
277
+ .footer {
278
+ padding-bottom: var(--um-space-section-mobile-padding-bottom, 1.5rem);
279
+ }
280
+ }
281
+
282
+ /* Empty header and footer */
283
+ .section--without-header .section__header,
284
+ .section--without-footer .section__footer {
285
+ display: none;
286
+ }
287
+
288
+ /* Padding states */
289
+ .section__inner > * {
290
+ padding-left: var(--um-space-section-padding-left, 1.5rem);
291
+ padding-right: var(--um-space-section-padding-right, 1.5rem);
292
+ }
293
+ @media only screen and (max-width: 48rem) {
294
+ .section__inner > * {
295
+ padding-left: var(--um-space-section-mobile-padding-left, 1rem);
296
+ padding-right: var(--um-space-section-mobile-padding-right, 1rem);
297
+ }
298
+ }
299
+
300
+ .section--without-header :not(.section-inner-width--full-bleed) .section__content {
301
+ padding-top: var(--um-space-section-padding-top, 1.5rem);
302
+ }
303
+ .section--without-footer :not(.section-inner-width--full-bleed) .section__content {
304
+ padding-bottom: var(--um-space-section-padding-bottom, 1.5rem);
305
+ }
306
+ @media only screen and (max-width: 48rem) {
307
+ .section--without-header :not(.section-inner-width--full-bleed) .section__content {
308
+ padding-top: var(--um-space-section-mobile-padding-top, 1.5rem);
309
+ }
310
+ .section--without-footer :not(.section-inner-width--full-bleed) .section__content {
311
+ padding-bottom: var(--um-space-section-mobile-padding-bottom, 1.5rem);
312
+ }
313
+ }
314
+
315
+
316
+ /* Desktop full bleed removes all padding except header and footer */
317
+ .section-inner-width--full-bleed {
318
+ padding: 0;
319
+ }
320
+
321
+ /* Header and footer always padded */
322
+ .section-inner-width--full-bleed .section__header,
323
+ .section-inner-width--full-bleed .section__footer {
324
+ padding-left: var(--um-space-section-padding-left, 1.5rem);
325
+ padding-right: var(--um-space-section-padding-right, 1.5rem);
326
+ }
327
+
328
+ @media only screen and (min-width: 48.06rem) {
329
+ /* Content always full bleed on mobile*/
330
+ .section.section-width--page-width .section-inner-width--full-bleed .section__content {
331
+ padding-left: var(--um-space-section-padding-left, 1.5rem);
332
+ padding-right: var(--um-space-section-padding-right, 1.5rem);
333
+ }
334
+ }
335
+ @media only screen and (max-width: 48rem) {
336
+ /* Header and footer always padded */
337
+ .section-inner-width--full-bleed .section__header,
338
+ .section-inner-width--full-bleed .section__footer {
339
+ padding-left: var(--um-space-section-mobile-padding-left, 1rem);
340
+ padding-right: var(--um-space-section-mobile-padding-right, 1rem);
341
+ }
342
+ }
343
+
344
+ /* Full bleed side removes content padding */
345
+ .section-inner-width--full-bleed .section__content {
346
+ padding: 0;
347
+ }
348
+ `
349
+ ]);
350
+ i([
351
+ o()
352
+ ], t.prototype, "outerWidth", 2);
353
+ i([
354
+ o()
355
+ ], t.prototype, "innerWidth", 2);
356
+ i([
357
+ o({ type: Number })
358
+ ], t.prototype, "maxInnerWidth", 2);
359
+ i([
360
+ o({ type: Boolean })
361
+ ], t.prototype, "compactHeader", 2);
362
+ i([
363
+ o({ type: Boolean })
364
+ ], t.prototype, "bleedContent", 2);
365
+ i([
366
+ o()
367
+ ], t.prototype, "mobilePadding", 2);
368
+ i([
369
+ o()
370
+ ], t.prototype, "paddingTop", 2);
371
+ i([
372
+ o()
373
+ ], t.prototype, "paddingBottom", 2);
374
+ i([
375
+ o()
376
+ ], t.prototype, "paddingLeft", 2);
377
+ i([
378
+ o()
379
+ ], t.prototype, "paddingRight", 2);
380
+ i([
381
+ o()
382
+ ], t.prototype, "colorBg", 2);
383
+ i([
384
+ o()
385
+ ], t.prototype, "colorText", 2);
386
+ i([
387
+ h()
388
+ ], t.prototype, "_withoutHeader", 2);
389
+ i([
390
+ h()
391
+ ], t.prototype, "_withoutFooter", 2);
392
+ i([
393
+ h()
394
+ ], t.prototype, "_mobilePadding", 2);
395
+ t = i([
396
+ u(`${S}-section`)
397
+ ], t);
398
+ export {
399
+ t as Section
400
+ };