@proximus/lavender-dropdown 2.0.0-alpha.4 → 2.0.0-alpha.42

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 +7 -7
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -3,8 +3,8 @@ var x = (o) => {
3
3
  };
4
4
  var b = (o, t, e) => t.has(o) || x("Cannot " + e);
5
5
  var s = (o, t, e) => (b(o, t, "read from private field"), e ? e.call(o) : t.get(o)), c = (o, t, e) => t.has(o) ? x("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), u = (o, t, e, i) => (b(o, t, "write to private field"), i ? i.call(o, e) : t.set(o, e), e), f = (o, t, e) => (b(o, t, "access private method"), e);
6
- import { WithExtraAttributes as C } from "@proximus/lavender-common";
7
- const P = ':host{position:relative}::slotted([slot="popover"]){position:absolute;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 767px){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 768px){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}', S = [
6
+ import { WithExtraAttributes as C, log as P } from "@proximus/lavender-common";
7
+ const S = ':host{position:relative}::slotted([slot="popover"]){position:absolute;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 767px){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 768px){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}', T = [
8
8
  "top-left",
9
9
  "top-right",
10
10
  "bottom-left",
@@ -22,10 +22,10 @@ function y(o, t, e = "bottom-left", i, d = !1) {
22
22
  });
23
23
  }
24
24
  const w = new CSSStyleSheet();
25
- w.replaceSync(P);
25
+ w.replaceSync(S);
26
26
  const m = "bottom-left";
27
27
  var p, A, l, a, h, E;
28
- class T extends C {
28
+ class L extends C {
29
29
  constructor() {
30
30
  super(w);
31
31
  c(this, p);
@@ -145,7 +145,7 @@ class T extends C {
145
145
  return this.getAttribute("anchoralignment") || m;
146
146
  }
147
147
  set anchorAlignment(e) {
148
- S.includes(e) ? this.setAttribute("anchoralignment", e) : (console.warn(
148
+ T.includes(e) ? this.setAttribute("anchoralignment", e) : (P(
149
149
  `Invalid anchor alignment value: ${e}. Using default ${m}.`
150
150
  ), this.setAttribute("anchoralignment", m));
151
151
  }
@@ -171,7 +171,7 @@ p = new WeakSet(), A = function() {
171
171
  E = function() {
172
172
  this.$trigger && !["button", "input"].includes(this.$trigger.localName) && (this.$trigger.addEventListener("click", s(this, l)), this.$popoverElement.addEventListener("beforetoggle", s(this, a)), this.$popoverElement.addEventListener("toggle", s(this, h)));
173
173
  };
174
- customElements.get("px-dropdown") || customElements.define("px-dropdown", T);
174
+ customElements.get("px-dropdown") || customElements.define("px-dropdown", L);
175
175
  export {
176
- T as Dropdown
176
+ L as Dropdown
177
177
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-dropdown",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.42",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "clean": "rm -rf dist",
14
14
  "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
15
  "test": "vitest run --coverage",
16
- "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"