@proximus/lavender-layout 2.0.0-alpha.21 → 2.0.0-alpha.210

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/index.es.js CHANGED
@@ -1,426 +1,429 @@
1
- import { WithExtraAttributes as d, AttributeBreakpointHandlerDelegate as u, gapValues as b, checkName as f, log as p, backgroundColorValues as x } from "@proximus/lavender-common";
2
- const m = ':host{display:block}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', g = new CSSStyleSheet();
3
- g.replaceSync(m);
4
- const v = [
5
- "",
6
- "default",
7
- "row",
8
- "row-reverse",
9
- "column",
10
- "column-reverse"
11
- ], k = [
12
- "",
13
- "default",
14
- "stretch",
15
- "flex-start",
16
- "flex-end",
17
- "center",
18
- "baseline"
19
- ], w = [
20
- "",
21
- "default",
22
- "flex-start",
23
- "flex-end",
24
- "center",
25
- "space-between",
26
- "space-around",
27
- "space-evenly"
28
- ], y = ["", "default", "nowrap", "wrap", "wrap-reverse"], A = ["", "visible", "hidden", "scroll", "auto"];
29
- class l extends d {
30
- constructor() {
31
- super(g), this.overflowXAttributeDelegate = new u(
32
- this,
33
- "overflow-x",
34
- (t) => t,
35
- "--overflow-x"
36
- ), this.template = `<div class="flex-container">
37
- <slot></slot>
38
- </div>`, this.shadowRoot.innerHTML = this.template;
39
- }
40
- connectedCallback() {
41
- this.hasAttribute("direction") || (this.direction = "row"), this.hasAttribute("gap") || (this.gap = "none"), this.hasAttribute("align-items") || (this.alignItems = "stretch"), this.hasAttribute("justify-content") || (this.justifyContent = "flex-start"), this.hasAttribute("wrap") || (this.wrap = "nowrap"), this.hasAttribute("overflow-x") || this.overflowXAttributeDelegate.init("visible");
42
- }
43
- static get observedAttributes() {
44
- return [
45
- ...super.observedAttributes,
46
- "direction",
47
- "direction--mobile",
48
- "direction--tablet",
49
- "direction--laptop",
50
- "direction--desktop",
51
- "gap",
52
- "gap--mobile",
53
- "gap--tablet",
54
- "gap--laptop",
55
- "gap--desktop",
56
- "justify-content",
57
- "justify-content--mobile",
58
- "justify-content--tablet",
59
- "justify-content--laptop",
60
- "justify-content--desktop",
61
- "align-items",
62
- "align-items--mobile",
63
- "align-items--tablet",
64
- "align-items--laptop",
65
- "align-items--desktop",
66
- "wrap",
67
- "wrap--mobile",
68
- "wrap--tablet",
69
- "wrap--laptop",
70
- "wrap--desktop",
71
- "overflow-x",
72
- "overflow-x--mobile",
73
- "overflow-x--tablet",
74
- "overflow-x--laptop",
75
- "overflow-x--desktop"
76
- ];
77
- }
78
- attributeChangedCallback(t, i, e) {
79
- switch (t) {
80
- case "gap":
81
- case "gap--mobile":
82
- case "gap--tablet":
83
- case "gap--laptop":
84
- case "gap--desktop":
85
- this.updateFlexProperties(t, i, e, b);
86
- break;
87
- case "justify-content":
88
- case "justify-content--mobile":
89
- case "justify-content--tablet":
90
- case "justify-content--laptop":
91
- case "justify-content--desktop":
92
- this.updateFlexProperties(
93
- t,
94
- i,
95
- e,
96
- w
97
- );
98
- break;
99
- case "align-items":
100
- case "align-items--mobile":
101
- case "align-items--tablet":
102
- case "align-items--laptop":
103
- case "align-items--desktop":
104
- this.updateFlexProperties(t, i, e, k);
105
- break;
106
- case "wrap":
107
- case "wrap--mobile":
108
- case "wrap--tablet":
109
- case "wrap--laptop":
110
- case "wrap--desktop":
111
- this.updateFlexProperties(t, i, e, y);
112
- break;
113
- case "direction":
114
- case "direction--mobile":
115
- case "direction--tablet":
116
- case "direction--laptop":
117
- case "direction--desktop":
118
- this.updateFlexProperties(t, i, e, v);
119
- break;
120
- case "overflow-x":
121
- case "overflow-x--mobile":
122
- case "overflow-x--tablet":
123
- case "overflow-x--laptop":
124
- case "overflow-x--desktop":
125
- this.updateOverflowX(t, i, e, A);
126
- break;
127
- default:
128
- super.attributeChangedCallback(t, i, e);
129
- break;
130
- }
131
- }
132
- updateOverflowX(t, i, e, o) {
133
- if (!f(o, e)) {
134
- p(
135
- `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
136
- );
137
- return;
138
- }
139
- this.overflowXAttributeDelegate.attributeChangedCallback(
140
- t,
141
- i,
142
- e
143
- );
144
- }
145
- updateFlexProperties(t, i, e, o) {
146
- this.checkName(o, e) || p(
147
- `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
148
- );
149
- const c = t.indexOf("--") > -1, a = c ? t.split("--")[0] : t, s = [];
150
- if (!c)
151
- this.getAttribute(a + "--mobile") || s.push("mobile"), this.getAttribute(a + "--tablet") || s.push("tablet"), this.getAttribute(a + "--laptop") || s.push("laptop"), this.getAttribute(a + "--desktop") || s.push("desktop"), s.forEach((r) => {
152
- this.updateStyle(a, r, i, o), this.updateStyle(a, r, e, o);
153
- });
154
- else {
155
- const r = t.split("--")[1];
156
- this.updateStyle(a, r, i, o), this.updateStyle(a, r, e, o);
157
- }
158
- }
159
- updateStyle(t, i, e, o) {
160
- e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
161
- `--flex-${t}--${i}-value`,
162
- `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
163
- ) : this.$el.style.setProperty(
164
- `--flex-${t}--${i}-value`,
165
- e
166
- ));
167
- }
168
- get direction() {
169
- return this.getAttribute("direction");
170
- }
171
- set direction(t) {
172
- this.setAttribute("direction", t);
173
- }
174
- get directionMobile() {
175
- return this.getAttribute("direction--mobile");
176
- }
177
- set directionMobile(t) {
178
- this.setAttribute("direction--mobile", t);
179
- }
180
- get directionTablet() {
181
- return this.getAttribute("direction--tablet");
182
- }
183
- set directionTablet(t) {
184
- this.setAttribute("direction--tablet", t);
185
- }
186
- get directionLaptop() {
187
- return this.getAttribute("direction--laptop");
188
- }
189
- set directionLaptop(t) {
190
- this.setAttribute("direction--laptop", t);
191
- }
192
- get directionDesktop() {
193
- return this.getAttribute("direction--desktop");
194
- }
195
- set directionDesktop(t) {
196
- this.setAttribute("direction--desktop", t);
197
- }
198
- get gap() {
199
- return this.getAttribute("gap");
200
- }
201
- set gap(t) {
202
- this.setAttribute("gap", t);
203
- }
204
- get gapMobile() {
205
- return this.getAttribute("gap--mobile");
206
- }
207
- set gapMobile(t) {
208
- this.setAttribute("gap--mobile", t);
209
- }
210
- get gapTablet() {
211
- return this.getAttribute("gap--tablet");
212
- }
213
- set gapTablet(t) {
214
- this.setAttribute("gap--tablet", t);
215
- }
216
- get gapLaptop() {
217
- return this.getAttribute("gap--laptop");
218
- }
219
- set gapLaptop(t) {
220
- this.setAttribute("gap--laptop", t);
221
- }
222
- get gapDesktop() {
223
- return this.getAttribute("gap--desktop");
224
- }
225
- set gapDesktop(t) {
226
- this.setAttribute("gap--desktop", t);
227
- }
228
- get justifyContent() {
229
- return this.getAttribute("justify-content");
230
- }
231
- set justifyContent(t) {
232
- this.setAttribute("justify-content", t);
233
- }
234
- get justifyContentMobile() {
235
- return this.getAttribute("justify-content--mobile");
236
- }
237
- set justifyContentMobile(t) {
238
- this.setAttribute("justify-content--mobile", t);
239
- }
240
- get justifyContentTablet() {
241
- return this.getAttribute("justify-content--tablet");
242
- }
243
- set justifyContentTablet(t) {
244
- this.setAttribute("justify-content--tablet", t);
245
- }
246
- get justifyContentLaptop() {
247
- return this.getAttribute("justify-content--laptop");
248
- }
249
- set justifyContentLaptop(t) {
250
- this.setAttribute("justify-content--laptop", t);
251
- }
252
- get justifyContentDesktop() {
253
- return this.getAttribute("justify-content--desktop");
254
- }
255
- set justifyContentDesktop(t) {
256
- this.setAttribute("justify-content--desktop", t);
257
- }
258
- get alignItems() {
259
- return this.getAttribute("align-items");
260
- }
261
- set alignItems(t) {
262
- this.setAttribute("align-items", t);
263
- }
264
- get alignItemsMobile() {
265
- return this.getAttribute("align-items--mobile");
266
- }
267
- set alignItemsMobile(t) {
268
- this.setAttribute("align-items--mobile", t);
269
- }
270
- get alignItemsTablet() {
271
- return this.getAttribute("align-items--tablet");
272
- }
273
- set alignItemsTablet(t) {
274
- this.setAttribute("align-items--tablet", t);
275
- }
276
- get alignItemsLaptop() {
277
- return this.getAttribute("align-items--laptop");
278
- }
279
- set alignItemsLaptop(t) {
280
- this.setAttribute("align-items--laptop", t);
281
- }
282
- get alignItemsDesktop() {
283
- return this.getAttribute("align-items--desktop");
284
- }
285
- set alignItemsDesktop(t) {
286
- this.setAttribute("align-items--desktop", t);
287
- }
288
- get wrap() {
289
- return this.getAttribute("wrap");
290
- }
291
- set wrap(t) {
292
- this.setAttribute("wrap", t);
293
- }
294
- get wrapMobile() {
295
- return this.getAttribute("wrap--mobile");
296
- }
297
- set wrapMobile(t) {
298
- this.setAttribute("wrap--mobile", t);
299
- }
300
- get wrapTablet() {
301
- return this.getAttribute("wrap--tablet");
302
- }
303
- set wrapTablet(t) {
304
- this.setAttribute("wrap--tablet", t);
305
- }
306
- get wrapLaptop() {
307
- return this.getAttribute("wrap--laptop");
308
- }
309
- set wrapLaptop(t) {
310
- this.setAttribute("wrap--laptop", t);
311
- }
312
- get wrapDesktop() {
313
- return this.getAttribute("wrap--desktop");
314
- }
315
- set wrapDesktop(t) {
316
- this.setAttribute("wrap--desktop", t);
317
- }
318
- get overflowX() {
319
- return this.getAttribute("overflow-x");
320
- }
321
- set overflowX(t) {
322
- this.setAttribute("overflow-x", t);
323
- }
324
- get overflowXMobile() {
325
- return this.getAttribute("overflow-x--mobile");
326
- }
327
- set overflowXMobile(t) {
328
- this.setAttribute("overflow-x--mobile", t);
329
- }
330
- get overflowXTablet() {
331
- return this.getAttribute("overflow-x--tablet");
332
- }
333
- set overflowXTablet(t) {
334
- this.setAttribute("overflow-x--tablet", t);
335
- }
336
- get overflowXLaptop() {
337
- return this.getAttribute("overflow-x--laptop");
338
- }
339
- set overflowXLaptop(t) {
340
- this.setAttribute("overflow-x--laptop", t);
341
- }
342
- get overflowXDesktop() {
343
- return this.getAttribute("overflow-x--desktop");
344
- }
345
- set overflowXDesktop(t) {
346
- this.setAttribute("overflow-x--desktop", t);
347
- }
348
- get $el() {
349
- return this.shadowRoot.querySelector(".flex-container");
350
- }
351
- }
352
- customElements.get("px-stack") || customElements.define("px-stack", l);
353
- class C extends l {
354
- constructor() {
355
- super();
356
- }
357
- connectedCallback() {
358
- super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
359
- }
360
- }
361
- customElements.get("px-vstack") || customElements.define("px-vstack", C);
362
- class $ extends l {
363
- constructor() {
364
- super();
365
- }
366
- connectedCallback() {
367
- super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
368
- }
369
- }
370
- customElements.get("px-hstack") || customElements.define("px-hstack", $);
371
- class S extends HTMLElement {
372
- constructor() {
373
- super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
374
- }
375
- static get observedAttributes() {
376
- return ["grow", "nogap"];
377
- }
378
- attributeChangedCallback(t, i, e) {
379
- t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
380
- }
381
- connectedCallback() {
382
- this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
383
- this.handleSizeChange();
384
- }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
385
- }
386
- disconnectedCallback() {
387
- var t;
388
- (t = this.resizeObserver) == null || t.disconnect(), this.recheckHandle && (cancelAnimationFrame(this.recheckHandle), this.recheckHandle = void 0);
389
- }
390
- get grow() {
391
- return this.getAttribute("grow");
392
- }
393
- set grow(t) {
394
- this.setAttribute("grow", t);
395
- }
396
- scheduleRecheck() {
397
- this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
398
- this.recheckHandle = void 0, this.recalculateVisibility();
399
- });
400
- }
401
- recalculateVisibility() {
402
- this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
403
- }
404
- handleSizeChange() {
405
- const t = this.getBoundingClientRect(), i = t.width === 0 && !this.isVertical || t.height === 0 && this.isVertical;
406
- this.isZeroSized !== i && (this.isZeroSized = i, this.updateParticipation());
407
- }
408
- updateParticipation() {
409
- this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
410
- }
411
- get nogap() {
412
- return this.hasAttribute("nogap");
413
- }
414
- set nogap(t) {
415
- t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
416
- }
417
- }
418
- customElements.get("px-spacer") || customElements.define("px-spacer", S);
419
- const j = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", h = new CSSStyleSheet();
420
- h.replaceSync(j);
421
- class z extends d {
422
- constructor() {
423
- super(h), this.template = (t) => `
1
+ import { AttributeBreakpointHandlerDelegate as e, WithExtraAttributes as t, backgroundColorValues as n, checkName as r, gapValues as i, log as a, propertyToAttributeSetter as o, renderTemplate as s } from "@proximus/lavender-common";
2
+ //#region src/Stack.css?inline
3
+ var c = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", l = new CSSStyleSheet();
4
+ l.replaceSync(c);
5
+ var u = document.createElement("template");
6
+ u.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
7
+ var d = [
8
+ "",
9
+ "default",
10
+ "row",
11
+ "row-reverse",
12
+ "column",
13
+ "column-reverse"
14
+ ], f = [
15
+ "",
16
+ "default",
17
+ "stretch",
18
+ "flex-start",
19
+ "start",
20
+ "flex-end",
21
+ "end",
22
+ "center",
23
+ "baseline"
24
+ ], p = [
25
+ "",
26
+ "default",
27
+ "flex-start",
28
+ "start",
29
+ "flex-end",
30
+ "end",
31
+ "center",
32
+ "space-between",
33
+ "space-around",
34
+ "space-evenly"
35
+ ], m = [
36
+ "",
37
+ "default",
38
+ "nowrap",
39
+ "wrap",
40
+ "wrap-reverse"
41
+ ], h = [
42
+ "",
43
+ "visible",
44
+ "hidden",
45
+ "scroll",
46
+ "auto"
47
+ ], g = class n extends t {
48
+ constructor() {
49
+ super(l), this.overflowXAttributeDelegate = new e(this, "overflow-x", (e) => e, "--overflow-x"), this.shadowRoot.firstChild || this.shadowRoot.appendChild(document.importNode(u.content, !0));
50
+ }
51
+ connectedCallback() {}
52
+ static get observedAttributes() {
53
+ return [
54
+ ...super.observedAttributes,
55
+ "direction",
56
+ "direction--mobile",
57
+ "direction--tablet",
58
+ "direction--laptop",
59
+ "direction--desktop",
60
+ "gap",
61
+ "gap--mobile",
62
+ "gap--tablet",
63
+ "gap--laptop",
64
+ "gap--desktop",
65
+ "justify-content",
66
+ "justify-content--mobile",
67
+ "justify-content--tablet",
68
+ "justify-content--laptop",
69
+ "justify-content--desktop",
70
+ "align-items",
71
+ "align-items--mobile",
72
+ "align-items--tablet",
73
+ "align-items--laptop",
74
+ "align-items--desktop",
75
+ "wrap",
76
+ "wrap--mobile",
77
+ "wrap--tablet",
78
+ "wrap--laptop",
79
+ "wrap--desktop",
80
+ "overflow-x",
81
+ "overflow-x--mobile",
82
+ "overflow-x--tablet",
83
+ "overflow-x--laptop",
84
+ "overflow-x--desktop"
85
+ ];
86
+ }
87
+ attributeChangedCallback(e, t, n) {
88
+ switch (e) {
89
+ case "gap":
90
+ case "gap--mobile":
91
+ case "gap--tablet":
92
+ case "gap--laptop":
93
+ case "gap--desktop":
94
+ this.updateFlexProperties(e, t, n, i);
95
+ break;
96
+ case "justify-content":
97
+ case "justify-content--mobile":
98
+ case "justify-content--tablet":
99
+ case "justify-content--laptop":
100
+ case "justify-content--desktop":
101
+ this.updateFlexProperties(e, t, n, p);
102
+ break;
103
+ case "align-items":
104
+ case "align-items--mobile":
105
+ case "align-items--tablet":
106
+ case "align-items--laptop":
107
+ case "align-items--desktop":
108
+ this.updateFlexProperties(e, t, n, f);
109
+ break;
110
+ case "wrap":
111
+ case "wrap--mobile":
112
+ case "wrap--tablet":
113
+ case "wrap--laptop":
114
+ case "wrap--desktop":
115
+ this.updateFlexProperties(e, t, n, m);
116
+ break;
117
+ case "direction":
118
+ case "direction--mobile":
119
+ case "direction--tablet":
120
+ case "direction--laptop":
121
+ case "direction--desktop":
122
+ this.updateFlexProperties(e, t, n, d);
123
+ break;
124
+ case "overflow-x":
125
+ case "overflow-x--mobile":
126
+ case "overflow-x--tablet":
127
+ case "overflow-x--laptop":
128
+ case "overflow-x--desktop":
129
+ this.updateOverflowX(e, t, n, h);
130
+ break;
131
+ default: super.attributeChangedCallback(e, t, n);
132
+ }
133
+ }
134
+ updateOverflowX(e, t, n, i) {
135
+ r(i, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : a(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
136
+ }
137
+ updateFlexProperties(e, t, r, i) {
138
+ r !== null && !this.checkName(i, r) && a(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
139
+ let o = e.indexOf("--");
140
+ if (o === -1) for (let t of n.breakpoints) this.getAttribute(`${e}--${t}`) || this.updateStyle(e, t, r, i);
141
+ else {
142
+ let t = e.slice(0, o), n = e.slice(o + 2);
143
+ this.updateStyle(t, n, r || this.getAttribute(t), i);
144
+ }
145
+ }
146
+ updateStyle(e, t, n, r) {
147
+ let i = `--flex-${e}--${t}-value`, a = e === "gap";
148
+ if (!n) this.$el.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
149
+ else if (a && r && r.includes(n)) {
150
+ let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
151
+ this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
152
+ } else this.$el.style.setProperty(i, n);
153
+ }
154
+ static {
155
+ this.breakpoints = [
156
+ "mobile",
157
+ "tablet",
158
+ "laptop",
159
+ "desktop"
160
+ ];
161
+ }
162
+ get direction() {
163
+ return this.getAttribute("direction") ?? "row";
164
+ }
165
+ set direction(e) {
166
+ o(this, "direction", e);
167
+ }
168
+ get directionMobile() {
169
+ return this.getAttribute("direction--mobile");
170
+ }
171
+ set directionMobile(e) {
172
+ o(this, "direction--mobile", e);
173
+ }
174
+ get directionTablet() {
175
+ return this.getAttribute("direction--tablet");
176
+ }
177
+ set directionTablet(e) {
178
+ o(this, "direction--tablet", e);
179
+ }
180
+ get directionLaptop() {
181
+ return this.getAttribute("direction--laptop");
182
+ }
183
+ set directionLaptop(e) {
184
+ o(this, "direction--laptop", e);
185
+ }
186
+ get directionDesktop() {
187
+ return this.getAttribute("direction--desktop");
188
+ }
189
+ set directionDesktop(e) {
190
+ o(this, "direction--desktop", e);
191
+ }
192
+ get gap() {
193
+ return this.getAttribute("gap") ?? "none";
194
+ }
195
+ set gap(e) {
196
+ o(this, "gap", e);
197
+ }
198
+ get gapMobile() {
199
+ return this.getAttribute("gap--mobile");
200
+ }
201
+ set gapMobile(e) {
202
+ o(this, "gap--mobile", e);
203
+ }
204
+ get gapTablet() {
205
+ return this.getAttribute("gap--tablet");
206
+ }
207
+ set gapTablet(e) {
208
+ o(this, "gap--tablet", e);
209
+ }
210
+ get gapLaptop() {
211
+ return this.getAttribute("gap--laptop");
212
+ }
213
+ set gapLaptop(e) {
214
+ o(this, "gap--laptop", e);
215
+ }
216
+ get gapDesktop() {
217
+ return this.getAttribute("gap--desktop");
218
+ }
219
+ set gapDesktop(e) {
220
+ o(this, "gap--desktop", e);
221
+ }
222
+ get justifyContent() {
223
+ return this.getAttribute("justify-content") ?? "flex-start";
224
+ }
225
+ set justifyContent(e) {
226
+ o(this, "justify-content", e);
227
+ }
228
+ get justifyContentMobile() {
229
+ return this.getAttribute("justify-content--mobile");
230
+ }
231
+ set justifyContentMobile(e) {
232
+ o(this, "justify-content--mobile", e);
233
+ }
234
+ get justifyContentTablet() {
235
+ return this.getAttribute("justify-content--tablet");
236
+ }
237
+ set justifyContentTablet(e) {
238
+ o(this, "justify-content--tablet", e);
239
+ }
240
+ get justifyContentLaptop() {
241
+ return this.getAttribute("justify-content--laptop");
242
+ }
243
+ set justifyContentLaptop(e) {
244
+ o(this, "justify-content--laptop", e);
245
+ }
246
+ get justifyContentDesktop() {
247
+ return this.getAttribute("justify-content--desktop");
248
+ }
249
+ set justifyContentDesktop(e) {
250
+ o(this, "justify-content--desktop", e);
251
+ }
252
+ get alignItems() {
253
+ return this.getAttribute("align-items") ?? "stretch";
254
+ }
255
+ set alignItems(e) {
256
+ o(this, "align-items", e);
257
+ }
258
+ get alignItemsMobile() {
259
+ return this.getAttribute("align-items--mobile");
260
+ }
261
+ set alignItemsMobile(e) {
262
+ o(this, "align-items--mobile", e);
263
+ }
264
+ get alignItemsTablet() {
265
+ return this.getAttribute("align-items--tablet");
266
+ }
267
+ set alignItemsTablet(e) {
268
+ o(this, "align-items--tablet", e);
269
+ }
270
+ get alignItemsLaptop() {
271
+ return this.getAttribute("align-items--laptop");
272
+ }
273
+ set alignItemsLaptop(e) {
274
+ o(this, "align-items--laptop", e);
275
+ }
276
+ get alignItemsDesktop() {
277
+ return this.getAttribute("align-items--desktop");
278
+ }
279
+ set alignItemsDesktop(e) {
280
+ o(this, "align-items--desktop", e);
281
+ }
282
+ get wrap() {
283
+ return this.getAttribute("wrap") ?? "nowrap";
284
+ }
285
+ set wrap(e) {
286
+ o(this, "wrap", e);
287
+ }
288
+ get wrapMobile() {
289
+ return this.getAttribute("wrap--mobile");
290
+ }
291
+ set wrapMobile(e) {
292
+ o(this, "wrap--mobile", e);
293
+ }
294
+ get wrapTablet() {
295
+ return this.getAttribute("wrap--tablet");
296
+ }
297
+ set wrapTablet(e) {
298
+ o(this, "wrap--tablet", e);
299
+ }
300
+ get wrapLaptop() {
301
+ return this.getAttribute("wrap--laptop");
302
+ }
303
+ set wrapLaptop(e) {
304
+ o(this, "wrap--laptop", e);
305
+ }
306
+ get wrapDesktop() {
307
+ return this.getAttribute("wrap--desktop");
308
+ }
309
+ set wrapDesktop(e) {
310
+ o(this, "wrap--desktop", e);
311
+ }
312
+ get overflowX() {
313
+ return this.getAttribute("overflow-x") ?? "visible";
314
+ }
315
+ set overflowX(e) {
316
+ o(this, "overflow-x", e);
317
+ }
318
+ get overflowXMobile() {
319
+ return this.getAttribute("overflow-x--mobile");
320
+ }
321
+ set overflowXMobile(e) {
322
+ o(this, "overflow-x--mobile", e);
323
+ }
324
+ get overflowXTablet() {
325
+ return this.getAttribute("overflow-x--tablet");
326
+ }
327
+ set overflowXTablet(e) {
328
+ o(this, "overflow-x--tablet", e);
329
+ }
330
+ get overflowXLaptop() {
331
+ return this.getAttribute("overflow-x--laptop");
332
+ }
333
+ set overflowXLaptop(e) {
334
+ o(this, "overflow-x--laptop", e);
335
+ }
336
+ get overflowXDesktop() {
337
+ return this.getAttribute("overflow-x--desktop");
338
+ }
339
+ set overflowXDesktop(e) {
340
+ o(this, "overflow-x--desktop", e);
341
+ }
342
+ get $el() {
343
+ return this.shadowRoot.firstElementChild;
344
+ }
345
+ };
346
+ customElements.get("px-stack") || customElements.define("px-stack", g);
347
+ var _ = (e) => e === "direction" || e.startsWith("direction--"), v = class extends g {
348
+ get direction() {
349
+ return "column";
350
+ }
351
+ set direction(e) {
352
+ o(this, "direction", e);
353
+ }
354
+ attributeChangedCallback(e, t, n) {
355
+ _(e) || super.attributeChangedCallback(e, t, n);
356
+ }
357
+ };
358
+ customElements.get("px-vstack") || customElements.define("px-vstack", v);
359
+ var y = class extends g {
360
+ get direction() {
361
+ return "row";
362
+ }
363
+ set direction(e) {
364
+ o(this, "direction", e);
365
+ }
366
+ attributeChangedCallback(e, t, n) {
367
+ _(e) || super.attributeChangedCallback(e, t, n);
368
+ }
369
+ };
370
+ customElements.get("px-hstack") || customElements.define("px-hstack", y);
371
+ //#endregion
372
+ //#region src/Spacer.ts
373
+ var b = class extends HTMLElement {
374
+ constructor() {
375
+ super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
376
+ }
377
+ static get observedAttributes() {
378
+ return ["grow", "nogap"];
379
+ }
380
+ attributeChangedCallback(e, t, n) {
381
+ e === "grow" && (this.growValue = n || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
382
+ }
383
+ connectedCallback() {
384
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && this.parentElement && (this.resizeObserver = new ResizeObserver(() => {
385
+ this.handleSizeChange();
386
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
387
+ }
388
+ disconnectedCallback() {
389
+ this.resizeObserver?.disconnect(), this.recheckHandle &&= (cancelAnimationFrame(this.recheckHandle), void 0);
390
+ }
391
+ get grow() {
392
+ return this.getAttribute("grow");
393
+ }
394
+ set grow(e) {
395
+ this.setAttribute("grow", `${e}`);
396
+ }
397
+ scheduleRecheck() {
398
+ this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
399
+ this.recheckHandle = void 0, this.recalculateVisibility();
400
+ });
401
+ }
402
+ recalculateVisibility() {
403
+ this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
404
+ }
405
+ handleSizeChange() {
406
+ let e = this.getBoundingClientRect(), t = e.width === 0 && !this.isVertical || e.height === 0 && this.isVertical;
407
+ this.isZeroSized !== t && (this.isZeroSized = t, this.updateParticipation());
408
+ }
409
+ updateParticipation() {
410
+ this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
411
+ }
412
+ get nogap() {
413
+ return this.hasAttribute("nogap");
414
+ }
415
+ set nogap(e) {
416
+ e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
417
+ }
418
+ };
419
+ customElements.get("px-spacer") || customElements.define("px-spacer", b);
420
+ //#endregion
421
+ //#region src/Page.css?inline
422
+ var x = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", S = new CSSStyleSheet();
423
+ S.replaceSync(x);
424
+ var C = class extends t {
425
+ constructor() {
426
+ super(S), this.template = () => `
424
427
  <px-container border-radius="none" padding="none">
425
428
  <px-vstack>
426
429
  <px-container id="header-container" border-radius="none">
@@ -457,15 +460,6 @@ class z extends d {
457
460
  <px-spacer></px-spacer>
458
461
  </px-hstack>
459
462
  </px-container>
460
- ${t ? ` <px-hstack>
461
- <px-spacer></px-spacer>
462
- <px-container border-radius="none" box-shadow="xl" id="image-sticky-box" border="s" grow="${this.grow}" basis="${this.basis}" border-radius="m">
463
- <px-vstack gap="s">
464
- <slot name="image-sticky-container"></slot>
465
- </px-vstack>
466
- </px-container>
467
- <px-spacer></px-spacer>
468
- </px-hstack>` : ""}
469
463
  <px-container
470
464
  id="body-container"
471
465
  id="main"
@@ -522,111 +516,93 @@ class z extends d {
522
516
  </px-container>
523
517
  </px-vstack>
524
518
  </px-container>
525
- `, this.shadowRoot.innerHTML = this.template(!!this.$imageStickySlot);
526
- }
527
- static get observedAttributes() {
528
- return [
529
- ...super.observedAttributes,
530
- "background-image",
531
- "gap",
532
- "background-color",
533
- "padding-vertical",
534
- "padding-horizontal"
535
- ];
536
- }
537
- get $wideImage() {
538
- return this.shadowRoot.querySelector("#image-box");
539
- }
540
- get $bodyVStackContainer() {
541
- return this.shadowRoot.querySelector("#header-vstack-container");
542
- }
543
- get $bodyContainer() {
544
- return this.shadowRoot.querySelector("#body-container");
545
- }
546
- get $contactContainer() {
547
- return this.shadowRoot.querySelector("#contact-container");
548
- }
549
- get $footerContainer() {
550
- return this.shadowRoot.querySelector("#footer-container");
551
- }
552
- get $headerContainer() {
553
- return this.shadowRoot.querySelector("#header-container");
554
- }
555
- get $imageContainer() {
556
- return this.shadowRoot.querySelector("#image-container");
557
- }
558
- get backgroundImage() {
559
- return this.getAttribute("background-image");
560
- }
561
- get $imageStickySlot() {
562
- return this.querySelector('*[slot="image-sticky-container"]');
563
- }
564
- get $main() {
565
- return this.shadowRoot.querySelector("#main");
566
- }
567
- get backgroundColor() {
568
- return this.getAttribute("background-color") || "none";
569
- }
570
- get paddingVertical() {
571
- return this.getAttribute("padding-vertical");
572
- }
573
- get paddingHorizontal() {
574
- return this.getAttribute("padding-horizontal");
575
- }
576
- set paddingVertical(t) {
577
- this.setAttribute("padding-vertical", t);
578
- }
579
- set paddingHorizontal(t) {
580
- this.setAttribute("padding-horizontal", t);
581
- }
582
- get gap() {
583
- return this.getAttribute("gap");
584
- }
585
- connectedCallback() {
586
- this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
587
- }
588
- attributeChangedCallback(t, i, e) {
589
- if (i !== e)
590
- switch (t) {
591
- case "background-image":
592
- this.$imageContainer.setAttribute("background-image", e);
593
- break;
594
- case "gap":
595
- this.$bodyVStackContainer.setAttribute("gap", e);
596
- break;
597
- case "background-color":
598
- this.$bodyContainer.setAttribute(
599
- "background-color",
600
- x.indexOf(e) > 0 ? e : "none"
601
- );
602
- break;
603
- case "padding-vertical":
604
- this.handlePaddingVerticalChange(e);
605
- break;
606
- case "padding-horizontal":
607
- this.handlePaddingHorizontalChange(e);
608
- break;
609
- default:
610
- super.attributeChangedCallback(t, i, e);
611
- }
612
- }
613
- handlePaddingVerticalChange(t) {
614
- this.$headerContainer.setAttribute("padding-top", t), this.$footerContainer.setAttribute("padding-bottom", t);
615
- }
616
- handlePaddingHorizontalChange(t) {
617
- this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
618
- }
619
- }
620
- customElements.get("px-page") === void 0 && customElements.define("px-page", z);
621
- export {
622
- $ as HStack,
623
- z as Page,
624
- S as Spacer,
625
- l as Stack,
626
- C as VStack,
627
- k as alignItemsValues,
628
- v as directionValues,
629
- w as justifyContentValues,
630
- A as overflowValues,
631
- y as wrapValues
519
+ `, s(this.shadowRoot, this.template());
520
+ }
521
+ static get observedAttributes() {
522
+ return [
523
+ ...super.observedAttributes,
524
+ "background-image",
525
+ "gap",
526
+ "background-color",
527
+ "padding-vertical",
528
+ "padding-horizontal"
529
+ ];
530
+ }
531
+ get $wideImage() {
532
+ return this.shadowRoot.querySelector("#image-box");
533
+ }
534
+ get $bodyVStackContainer() {
535
+ return this.shadowRoot.querySelector("#header-vstack-container");
536
+ }
537
+ get $bodyContainer() {
538
+ return this.shadowRoot.querySelector("#body-container");
539
+ }
540
+ get $contactContainer() {
541
+ return this.shadowRoot.querySelector("#contact-container");
542
+ }
543
+ get $footerContainer() {
544
+ return this.shadowRoot.querySelector("#footer-container");
545
+ }
546
+ get $headerContainer() {
547
+ return this.shadowRoot.querySelector("#header-container");
548
+ }
549
+ get $imageContainer() {
550
+ return this.shadowRoot.querySelector("#image-container");
551
+ }
552
+ get backgroundImage() {
553
+ return this.getAttribute("background-image");
554
+ }
555
+ get $main() {
556
+ return this.shadowRoot.querySelector("#main");
557
+ }
558
+ get backgroundColor() {
559
+ return this.getAttribute("background-color") || "none";
560
+ }
561
+ get paddingVertical() {
562
+ return this.getAttribute("padding-vertical");
563
+ }
564
+ get paddingHorizontal() {
565
+ return this.getAttribute("padding-horizontal");
566
+ }
567
+ set paddingVertical(e) {
568
+ this.setAttribute("padding-vertical", `${e}`);
569
+ }
570
+ set paddingHorizontal(e) {
571
+ this.setAttribute("padding-horizontal", `${e}`);
572
+ }
573
+ get gap() {
574
+ return this.getAttribute("gap");
575
+ }
576
+ connectedCallback() {
577
+ this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
578
+ }
579
+ attributeChangedCallback(e, t, r) {
580
+ if (t !== r) switch (e) {
581
+ case "background-image":
582
+ this.$imageContainer.setAttribute("background-image", r);
583
+ break;
584
+ case "gap":
585
+ this.$bodyVStackContainer.setAttribute("gap", r);
586
+ break;
587
+ case "background-color":
588
+ this.$bodyContainer.setAttribute("background-color", n.indexOf(r) > 0 ? r : "none");
589
+ break;
590
+ case "padding-vertical":
591
+ this.handlePaddingVerticalChange(r);
592
+ break;
593
+ case "padding-horizontal":
594
+ this.handlePaddingHorizontalChange(r);
595
+ break;
596
+ default: super.attributeChangedCallback(e, t, r);
597
+ }
598
+ }
599
+ handlePaddingVerticalChange(e) {
600
+ this.$bodyContainer.paddingTop = e, this.$bodyContainer.paddingBottom = e;
601
+ }
602
+ handlePaddingHorizontalChange(e) {
603
+ this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
604
+ }
632
605
  };
606
+ customElements.get("px-page") === void 0 && customElements.define("px-page", C);
607
+ //#endregion
608
+ export { y as HStack, C as Page, b as Spacer, g as Stack, v as VStack, f as alignItemsValues, d as directionValues, p as justifyContentValues, h as overflowValues, m as wrapValues };