@proximus/heading-group 1.4.20-beta.1 → 1.4.21-alpha.1

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 (2) hide show
  1. package/dist/index.es.js +31 -12
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- // src/headinggroup.css?inline
1
+ //#region src/headinggroup.css?inline
2
2
  var e = "div{--px-heading-margin-title:0 0 15px 0}", t = {
3
3
  BASE_URL: "/",
4
4
  DEV: !0,
@@ -15,16 +15,27 @@ function i(e) {
15
15
  r() && console.error(e);
16
16
  }
17
17
  typeof window < "u" && (window.isComponentDebug = r);
18
- // ../common/src/common.css?inline
18
+ //#endregion
19
+ //#region ../common/src/common.css?inline
19
20
  var a = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
20
- // ../common/src/attributeSetters.ts
21
+ //#endregion
22
+ //#region ../common/src/attributeSetters.ts
21
23
  function o(e, t, n) {
22
- n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
24
+ if (n == null || n === "") {
25
+ e.removeAttribute(t);
26
+ return;
27
+ }
28
+ e.setAttribute(t, n.toString());
23
29
  }
24
30
  function s(e, t, n) {
25
- n ? e.setAttribute(t, "") : e.removeAttribute(t);
31
+ if (!n) {
32
+ e.removeAttribute(t);
33
+ return;
34
+ }
35
+ e.setAttribute(t, "");
26
36
  }
27
- // ../common/src/values.ts
37
+ //#endregion
38
+ //#region ../common/src/values.ts
28
39
  var c = [
29
40
  "",
30
41
  "default",
@@ -88,7 +99,8 @@ var c = [
88
99
  "L",
89
100
  "Xl"
90
101
  ].map((e) => e.toLowerCase())];
91
- // ../common/src/WithExtraAttributes.ts
102
+ //#endregion
103
+ //#region ../common/src/WithExtraAttributes.ts
92
104
  var p = new CSSStyleSheet();
93
105
  p.replaceSync(a);
94
106
  var m = class e extends HTMLElement {
@@ -170,8 +182,11 @@ var m = class e extends HTMLElement {
170
182
  let e = this.parentElement;
171
183
  for (; e;) {
172
184
  if (e.localName === "px-grid" || e.localName === "px-stack" && e?.getAttribute("direction") === "row") return !0;
173
- if (window.getComputedStyle(e).display === "contents") e = e.parentElement;
174
- else break;
185
+ if (window.getComputedStyle(e).display === "contents") {
186
+ e = e.parentElement;
187
+ continue;
188
+ }
189
+ break;
175
190
  }
176
191
  return !1;
177
192
  }
@@ -550,7 +565,8 @@ var m = class e extends HTMLElement {
550
565
  s(this, e, t);
551
566
  }
552
567
  });
553
- // ../common/src/nativeProperties.ts
568
+ //#endregion
569
+ //#region ../common/src/nativeProperties.ts
554
570
  var h = {
555
571
  validity: "readonly",
556
572
  validationMessage: "readonly",
@@ -561,7 +577,8 @@ var h = {
561
577
  "setCustomValidity"
562
578
  ];
563
579
  ({ ...h }), [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g], { ...h }, [...g];
564
- // ../common/src/template.ts
580
+ //#endregion
581
+ //#region ../common/src/template.ts
565
582
  var _ = /* @__PURE__ */ new Map(), v = 500;
566
583
  function y(e) {
567
584
  let t = document.createElement("template");
@@ -578,7 +595,8 @@ function S(e, t) {
578
595
  let n = typeof t == "string" ? x(t) : t;
579
596
  e.replaceChildren(document.importNode(n.content, !0));
580
597
  }
581
- // src/HeadingGroup.ts
598
+ //#endregion
599
+ //#region src/HeadingGroup.ts
582
600
  var C = new CSSStyleSheet();
583
601
  C.replaceSync(e);
584
602
  var w = class e extends HTMLElement {
@@ -593,4 +611,5 @@ var w = class e extends HTMLElement {
593
611
  }
594
612
  };
595
613
  customElements.get("px-heading-group") || customElements.define("px-heading-group", w);
614
+ //#endregion
596
615
  export { w as HeadingGroup };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/heading-group",
3
- "version": "1.4.20-beta.1",
3
+ "version": "1.4.21-alpha.1",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",