@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/Page.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { WithExtraAttributes } from '@proximus/lavender-common';
2
2
  import { Stack } from './Stack.ts';
3
- import { Container } from '@proximus/lavender-container';
3
+ import { type Container } from '@proximus/lavender-container';
4
4
  export declare class Page extends WithExtraAttributes {
5
- template: (stickyContainer: boolean) => string;
5
+ template: () => string;
6
6
  constructor();
7
7
  static get observedAttributes(): string[];
8
8
  get $wideImage(): Container;
@@ -12,17 +12,16 @@ export declare class Page extends WithExtraAttributes {
12
12
  get $footerContainer(): Container;
13
13
  get $headerContainer(): Container;
14
14
  get $imageContainer(): Container;
15
- get backgroundImage(): string;
16
- get $imageStickySlot(): Element;
17
- get $main(): Container;
15
+ get backgroundImage(): string | null;
16
+ get $main(): Container | null;
18
17
  get backgroundColor(): string;
19
- get paddingVertical(): string;
20
- get paddingHorizontal(): string;
21
- set paddingVertical(value: string);
22
- set paddingHorizontal(value: string);
23
- get gap(): string;
18
+ get paddingVertical(): string | null;
19
+ get paddingHorizontal(): string | null;
20
+ set paddingVertical(value: string | null);
21
+ set paddingHorizontal(value: string | null);
22
+ get gap(): string | null;
24
23
  connectedCallback(): void;
25
24
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
26
- handlePaddingVerticalChange(newValue: string): void;
27
- handlePaddingHorizontalChange(newValue: string): void;
25
+ handlePaddingVerticalChange(newValue: string | null): void;
26
+ handlePaddingHorizontalChange(newValue: string | null): void;
28
27
  }
package/dist/Spacer.d.ts CHANGED
@@ -10,8 +10,8 @@ export declare class Spacer extends HTMLElement {
10
10
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
11
11
  connectedCallback(): void;
12
12
  disconnectedCallback(): void;
13
- get grow(): string;
14
- set grow(value: string);
13
+ get grow(): string | null;
14
+ set grow(value: string | null);
15
15
  private scheduleRecheck;
16
16
  private recalculateVisibility;
17
17
  private handleSizeChange;
package/dist/Stack.d.ts CHANGED
@@ -6,81 +6,93 @@ export declare const wrapValues: string[];
6
6
  export declare const overflowValues: string[];
7
7
  export declare class Stack extends WithExtraAttributes {
8
8
  overflowXAttributeDelegate: AttributeBreakpointHandlerDelegate;
9
- template: string;
10
9
  constructor();
10
+ /**
11
+ * Defaults (direction: row, gap: none, align-items: stretch,
12
+ * justify-content: flex-start, wrap: nowrap, overflow-x: visible) are
13
+ * provided by Stack.css; nothing is written to the DOM on connection.
14
+ * Kept for subclasses calling super.
15
+ */
11
16
  connectedCallback(): void;
12
17
  static get observedAttributes(): string[];
13
18
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
14
19
  updateOverflowX(name: string, oldValue: string, newValue: string, attrValue: string[]): void;
15
- updateFlexProperties(name: string, oldValue: string, newValue: string, attrValue: string[]): void;
20
+ updateFlexProperties(name: string, _oldValue: string | null, newValue: string | null, attrValue: string[]): void;
21
+ /**
22
+ * Writes the CSS custom properties for one flex property / breakpoint.
23
+ * A null/empty value removes them so the defaults from Stack.css apply.
24
+ */
16
25
  updateStyle(cssName: string, breakpoint: string, value: string | null, attrValue?: string[]): void;
17
- get direction(): string;
18
- set direction(value: string);
19
- get directionMobile(): string;
20
- set directionMobile(value: string);
21
- get directionTablet(): string;
22
- set directionTablet(value: string);
23
- get directionLaptop(): string;
24
- set directionLaptop(value: string);
25
- get directionDesktop(): string;
26
- set directionDesktop(value: string);
27
- get gap(): string;
28
- set gap(value: string);
29
- get gapMobile(): string;
30
- set gapMobile(value: string);
31
- get gapTablet(): string;
32
- set gapTablet(value: string);
33
- get gapLaptop(): string;
34
- set gapLaptop(value: string);
35
- get gapDesktop(): string;
36
- set gapDesktop(value: string);
37
- get justifyContent(): string;
38
- set justifyContent(value: string);
39
- get justifyContentMobile(): string;
40
- set justifyContentMobile(value: string);
41
- get justifyContentTablet(): string;
42
- set justifyContentTablet(value: string);
43
- get justifyContentLaptop(): string;
44
- set justifyContentLaptop(value: string);
45
- get justifyContentDesktop(): string;
46
- set justifyContentDesktop(value: string);
47
- get alignItems(): string;
48
- set alignItems(value: string);
49
- get alignItemsMobile(): string;
50
- set alignItemsMobile(value: string);
51
- get alignItemsTablet(): string;
52
- set alignItemsTablet(value: string);
53
- get alignItemsLaptop(): string;
54
- set alignItemsLaptop(value: string);
55
- get alignItemsDesktop(): string;
56
- set alignItemsDesktop(value: string);
57
- get wrap(): string;
58
- set wrap(value: string);
59
- get wrapMobile(): string;
60
- set wrapMobile(value: string);
61
- get wrapTablet(): string;
62
- set wrapTablet(value: string);
63
- get wrapLaptop(): string;
64
- set wrapLaptop(value: string);
65
- get wrapDesktop(): string;
66
- set wrapDesktop(value: string);
67
- get overflowX(): string;
68
- set overflowX(value: string);
69
- get overflowXMobile(): string;
70
- set overflowXMobile(value: string);
71
- get overflowXTablet(): string;
72
- set overflowXTablet(value: string);
73
- get overflowXLaptop(): string;
74
- set overflowXLaptop(value: string);
75
- get overflowXDesktop(): string;
76
- set overflowXDesktop(value: string);
26
+ private static readonly breakpoints;
27
+ get direction(): string | null;
28
+ set direction(value: string | null);
29
+ get directionMobile(): string | null;
30
+ set directionMobile(value: string | null);
31
+ get directionTablet(): string | null;
32
+ set directionTablet(value: string | null);
33
+ get directionLaptop(): string | null;
34
+ set directionLaptop(value: string | null);
35
+ get directionDesktop(): string | null;
36
+ set directionDesktop(value: string | null);
37
+ get gap(): string | null;
38
+ set gap(value: string | null);
39
+ get gapMobile(): string | null;
40
+ set gapMobile(value: string | null);
41
+ get gapTablet(): string | null;
42
+ set gapTablet(value: string | null);
43
+ get gapLaptop(): string | null;
44
+ set gapLaptop(value: string | null);
45
+ get gapDesktop(): string | null;
46
+ set gapDesktop(value: string | null);
47
+ get justifyContent(): string | null;
48
+ set justifyContent(value: string | null);
49
+ get justifyContentMobile(): string | null;
50
+ set justifyContentMobile(value: string | null);
51
+ get justifyContentTablet(): string | null;
52
+ set justifyContentTablet(value: string | null);
53
+ get justifyContentLaptop(): string | null;
54
+ set justifyContentLaptop(value: string | null);
55
+ get justifyContentDesktop(): string | null;
56
+ set justifyContentDesktop(value: string | null);
57
+ get alignItems(): string | null;
58
+ set alignItems(value: string | null);
59
+ get alignItemsMobile(): string | null;
60
+ set alignItemsMobile(value: string | null);
61
+ get alignItemsTablet(): string | null;
62
+ set alignItemsTablet(value: string | null);
63
+ get alignItemsLaptop(): string | null;
64
+ set alignItemsLaptop(value: string | null);
65
+ get alignItemsDesktop(): string | null;
66
+ set alignItemsDesktop(value: string | null);
67
+ get wrap(): string | null;
68
+ set wrap(value: string | null);
69
+ get wrapMobile(): string | null;
70
+ set wrapMobile(value: string | null);
71
+ get wrapTablet(): string | null;
72
+ set wrapTablet(value: string | null);
73
+ get wrapLaptop(): string | null;
74
+ set wrapLaptop(value: string | null);
75
+ get wrapDesktop(): string | null;
76
+ set wrapDesktop(value: string | null);
77
+ get overflowX(): string | null;
78
+ set overflowX(value: string | null);
79
+ get overflowXMobile(): string | null;
80
+ set overflowXMobile(value: string | null);
81
+ get overflowXTablet(): string | null;
82
+ set overflowXTablet(value: string | null);
83
+ get overflowXLaptop(): string | null;
84
+ set overflowXLaptop(value: string | null);
85
+ get overflowXDesktop(): string | null;
86
+ set overflowXDesktop(value: string | null);
77
87
  get $el(): HTMLDivElement;
78
88
  }
79
89
  export declare class VStack extends Stack {
80
- constructor();
81
- connectedCallback(): void;
90
+ get direction(): string | null;
91
+ set direction(value: string | null);
92
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
82
93
  }
83
94
  export declare class HStack extends Stack {
84
- constructor();
85
- connectedCallback(): void;
95
+ get direction(): string | null;
96
+ set direction(value: string | null);
97
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
86
98
  }