@proximus/lavender-heading 1.4.19-beta.2 → 1.4.20-alpha.10

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.
@@ -1,5 +1,6 @@
1
1
  import { PxElement } from '@proximus/lavender-common';
2
2
  export declare abstract class AbstractHeading<HEADING_ELEMENT extends HTMLHeadingElement | HTMLParagraphElement> extends PxElement<HEADING_ELEMENT> {
3
+ static nativeAttributes: {};
3
4
  /** Overridden by each heading level (`<h1>`…`<h6>`). */
4
5
  protected static readonly template: HTMLTemplateElement;
5
6
  constructor();
@@ -11,6 +11,15 @@
11
11
  "description": "",
12
12
  "name": "AbstractHeading",
13
13
  "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "nativeAttributes",
17
+ "type": {
18
+ "text": "object"
19
+ },
20
+ "static": true,
21
+ "default": "{}"
22
+ },
14
23
  {
15
24
  "kind": "field",
16
25
  "name": "template",
@@ -240,6 +249,19 @@
240
249
  "static": true,
241
250
  "default": "'h1'"
242
251
  },
252
+ {
253
+ "kind": "field",
254
+ "name": "nativeAttributes",
255
+ "type": {
256
+ "text": "object"
257
+ },
258
+ "static": true,
259
+ "default": "{}",
260
+ "inheritedFrom": {
261
+ "name": "AbstractHeading",
262
+ "module": "src/AbstractHeading.ts"
263
+ }
264
+ },
243
265
  {
244
266
  "kind": "method",
245
267
  "name": "toggleClass",
@@ -556,6 +578,19 @@
556
578
  "static": true,
557
579
  "default": "'h2'"
558
580
  },
581
+ {
582
+ "kind": "field",
583
+ "name": "nativeAttributes",
584
+ "type": {
585
+ "text": "object"
586
+ },
587
+ "static": true,
588
+ "default": "{}",
589
+ "inheritedFrom": {
590
+ "name": "AbstractHeading",
591
+ "module": "src/AbstractHeading.ts"
592
+ }
593
+ },
559
594
  {
560
595
  "kind": "method",
561
596
  "name": "toggleClass",
@@ -872,6 +907,19 @@
872
907
  "static": true,
873
908
  "default": "'h3'"
874
909
  },
910
+ {
911
+ "kind": "field",
912
+ "name": "nativeAttributes",
913
+ "type": {
914
+ "text": "object"
915
+ },
916
+ "static": true,
917
+ "default": "{}",
918
+ "inheritedFrom": {
919
+ "name": "AbstractHeading",
920
+ "module": "src/AbstractHeading.ts"
921
+ }
922
+ },
875
923
  {
876
924
  "kind": "method",
877
925
  "name": "toggleClass",
@@ -1188,6 +1236,19 @@
1188
1236
  "static": true,
1189
1237
  "default": "'h4'"
1190
1238
  },
1239
+ {
1240
+ "kind": "field",
1241
+ "name": "nativeAttributes",
1242
+ "type": {
1243
+ "text": "object"
1244
+ },
1245
+ "static": true,
1246
+ "default": "{}",
1247
+ "inheritedFrom": {
1248
+ "name": "AbstractHeading",
1249
+ "module": "src/AbstractHeading.ts"
1250
+ }
1251
+ },
1191
1252
  {
1192
1253
  "kind": "method",
1193
1254
  "name": "toggleClass",
@@ -1504,6 +1565,19 @@
1504
1565
  "static": true,
1505
1566
  "default": "'h5'"
1506
1567
  },
1568
+ {
1569
+ "kind": "field",
1570
+ "name": "nativeAttributes",
1571
+ "type": {
1572
+ "text": "object"
1573
+ },
1574
+ "static": true,
1575
+ "default": "{}",
1576
+ "inheritedFrom": {
1577
+ "name": "AbstractHeading",
1578
+ "module": "src/AbstractHeading.ts"
1579
+ }
1580
+ },
1507
1581
  {
1508
1582
  "kind": "method",
1509
1583
  "name": "toggleClass",
@@ -1820,6 +1894,19 @@
1820
1894
  "static": true,
1821
1895
  "default": "'h6'"
1822
1896
  },
1897
+ {
1898
+ "kind": "field",
1899
+ "name": "nativeAttributes",
1900
+ "type": {
1901
+ "text": "object"
1902
+ },
1903
+ "static": true,
1904
+ "default": "{}",
1905
+ "inheritedFrom": {
1906
+ "name": "AbstractHeading",
1907
+ "module": "src/AbstractHeading.ts"
1908
+ }
1909
+ },
1823
1910
  {
1824
1911
  "kind": "method",
1825
1912
  "name": "toggleClass",
package/dist/index.es.js CHANGED
@@ -1,10 +1,13 @@
1
1
  import { PxElement as e, colorValues as t, createTemplate as n, headingValues as r, log as i, renderTemplate as a, textalignValues as o } from "@proximus/lavender-common";
2
- // src/heading.css?inline
2
+ //#region src/heading.css?inline
3
3
  var s = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{font-family:var(--px-font-family);color:var(--heading-color-default,var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile,left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);margin:0}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted,var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-xl-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media screen and (width>=48rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet,left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-tablet)}.style-title-s{font-size:var(--px-text-size-heading-s-tablet)}.style-subtitle{font-size:var(--px-text-size-heading-xl-tablet)}}@media screen and (width>=64.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop,left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-laptop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-laptop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-laptop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-laptop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-laptop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-laptop)}.style-title-s{font-size:var(--px-text-size-heading-s-laptop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-laptop)}}@media screen and (width>=90.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop,left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-s-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}", c = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media screen and (width>=48rem){.font-size-body-l{font-size:var(--px-text-size-body-l-tablet)}.font-size-body-m{font-size:var(--px-text-size-body-m-tablet)}.font-size-body-s{font-size:var(--px-text-size-body-s-tablet)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-tablet)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-tablet)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-tablet)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-tablet)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-tablet)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-tablet)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-tablet)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-tablet)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-tablet)}.font-size-link-m{font-size:var(--px-text-size-link-m-tablet)}.font-size-link-s{font-size:var(--px-text-size-link-s-tablet)}}@media screen and (width>=64.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-laptop)}.font-size-body-m{font-size:var(--px-text-size-body-m-laptop)}.font-size-body-s{font-size:var(--px-text-size-body-s-laptop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-laptop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-laptop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-laptop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-laptop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-laptop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-laptop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-laptop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-laptop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-laptop)}.font-size-link-m{font-size:var(--px-text-size-link-m-laptop)}.font-size-link-s{font-size:var(--px-text-size-link-s-laptop)}}@media screen and (width>=90.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", l = new CSSStyleSheet();
4
4
  l.replaceSync(s);
5
5
  var u = new CSSStyleSheet();
6
6
  u.replaceSync(c);
7
7
  var d = class extends e {
8
+ static {
9
+ this.nativeAttributes = {};
10
+ }
8
11
  constructor() {
9
12
  super(l, u), a(this.shadowRoot, this.constructor.template);
10
13
  }
@@ -140,7 +143,8 @@ var d = class extends e {
140
143
  }
141
144
  };
142
145
  customElements.get("px-h1") || customElements.define("px-h1", f);
143
- // src/H2.ts
146
+ //#endregion
147
+ //#region src/H2.ts
144
148
  var p = class extends d {
145
149
  static {
146
150
  this.template = n("<h2><slot></slot></h2>");
@@ -150,7 +154,8 @@ var p = class extends d {
150
154
  }
151
155
  };
152
156
  customElements.get("px-h2") || customElements.define("px-h2", p);
153
- // src/H3.ts
157
+ //#endregion
158
+ //#region src/H3.ts
154
159
  var m = class extends d {
155
160
  static {
156
161
  this.template = n("<h3><slot></slot></h3>");
@@ -160,7 +165,8 @@ var m = class extends d {
160
165
  }
161
166
  };
162
167
  customElements.get("px-h3") || customElements.define("px-h3", m);
163
- // src/H4.ts
168
+ //#endregion
169
+ //#region src/H4.ts
164
170
  var h = class extends d {
165
171
  static {
166
172
  this.template = n("<h4><slot></slot></h4>");
@@ -170,7 +176,8 @@ var h = class extends d {
170
176
  }
171
177
  };
172
178
  customElements.get("px-h4") || customElements.define("px-h4", h);
173
- // src/H5.ts
179
+ //#endregion
180
+ //#region src/H5.ts
174
181
  var g = class extends d {
175
182
  static {
176
183
  this.template = n("<h5><slot></slot></h5>");
@@ -180,7 +187,8 @@ var g = class extends d {
180
187
  }
181
188
  };
182
189
  customElements.get("px-h5") || customElements.define("px-h5", g);
183
- // src/H6.ts
190
+ //#endregion
191
+ //#region src/H6.ts
184
192
  var _ = class extends d {
185
193
  static {
186
194
  this.template = n("<h6><slot></slot></h6>");
@@ -190,4 +198,5 @@ var _ = class extends d {
190
198
  }
191
199
  };
192
200
  customElements.get("px-h6") || customElements.define("px-h6", _);
201
+ //#endregion
193
202
  export { f as H1, p as H2, m as H3, h as H4, g as H5, _ as H6 };
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@proximus/lavender-heading",
4
- "version": "1.4.19-beta.2",
4
+ "version": "1.4.20-alpha.10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "px-h1",
11
- "description": "\n---\n",
11
+ "description": "\n\n---\n",
12
12
  "doc-url": "",
13
13
  "attributes": [
14
14
  { "name": "variant", "value": { "type": "string" } },
@@ -39,7 +39,7 @@
39
39
  },
40
40
  {
41
41
  "name": "px-h2",
42
- "description": "\n---\n",
42
+ "description": "\n\n---\n",
43
43
  "doc-url": "",
44
44
  "attributes": [
45
45
  { "name": "variant", "value": { "type": "string" } },
@@ -70,7 +70,7 @@
70
70
  },
71
71
  {
72
72
  "name": "px-h3",
73
- "description": "\n---\n",
73
+ "description": "\n\n---\n",
74
74
  "doc-url": "",
75
75
  "attributes": [
76
76
  { "name": "variant", "value": { "type": "string" } },
@@ -101,7 +101,7 @@
101
101
  },
102
102
  {
103
103
  "name": "px-h4",
104
- "description": "\n---\n",
104
+ "description": "\n\n---\n",
105
105
  "doc-url": "",
106
106
  "attributes": [
107
107
  { "name": "variant", "value": { "type": "string" } },
@@ -132,7 +132,7 @@
132
132
  },
133
133
  {
134
134
  "name": "px-h5",
135
- "description": "\n---\n",
135
+ "description": "\n\n---\n",
136
136
  "doc-url": "",
137
137
  "attributes": [
138
138
  { "name": "variant", "value": { "type": "string" } },
@@ -163,7 +163,7 @@
163
163
  },
164
164
  {
165
165
  "name": "px-h6",
166
- "description": "\n---\n",
166
+ "description": "\n\n---\n",
167
167
  "doc-url": "",
168
168
  "attributes": [
169
169
  { "name": "variant", "value": { "type": "string" } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-heading",
3
- "version": "1.4.19-beta.2",
3
+ "version": "1.4.20-alpha.10",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",