@proximus/lavender-dropdown 1.4.19-beta.1 → 1.4.20-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.
- package/dist/index.es.js +6 -3
- package/dist/web-types.json +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { WithExtraAttributes as e, booleanPropertyToAttributeSetter as t, log as n, propertyToAttributeSetter as r, renderTemplate as i } from "@proximus/lavender-common";
|
|
2
|
-
|
|
2
|
+
//#region src/dropdown.css?inline
|
|
3
3
|
var a = ":host{position:relative}::slotted([slot=popover]){border-radius:var(--px-radius-main,8px);background:var(--px-color-background-surface-light,#fff);margin:var(--px-spacing-xs-mobile) 0 0 0;width:auto;max-height:var(--px-popover-max-height);max-width:var(--px-popover-max-width);border:0;padding:0;position:fixed;right:0;box-shadow:0 0 4px #2525251f,0 2px 8px #2525251a,0 4px 12px #25252524,0 16px 40px #2525252e}:host([grow]) ::slotted([slot=trigger]):after{padding-right:var(--px-padding-xs-mobile);right:0}:host([anchoralignment=top-left]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-mobile) 0;top:auto}:host([anchoralignment=top-right]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-mobile) 0;top:auto;left:auto}:host([anchoralignment=bottom-right]) ::slotted([slot=popover]){margin:var(--px-spacing-xs-mobile) 0 0 0;left:auto}@media screen and (width<=47.938rem){::slotted([slot=trigger]){width:100%;display:block}: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 (width>=48rem){::slotted([slot=popover]){margin:var(--px-spacing-xs-tablet) 0 0 0;width:auto;padding:0;right:auto}:host([anchoralignment=top-left]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-tablet) 0}:host([anchoralignment=top-right]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-tablet) 0}:host([anchoralignment=bottom-right]) ::slotted([slot=popover]){margin:var(--px-spacing-xs-tablet) 0 0 0}}@media screen and (width>=64.0625rem){::slotted([slot=popover]){margin:var(--px-spacing-xs-desktop) 0 0 0;width:auto;padding:0;right:auto}}@media screen and (width>=90.0625rem){::slotted([slot=popover]){width:auto;padding:0;right:auto}:host([anchoralignment=bottom-right]) ::slotted([slot=popover]){margin:var(--px-spacing-xs-desktop) 0 0 0}:host([anchoralignment=top-left]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-desktop) 0}:host([anchoralignment=top-right]) ::slotted([slot=popover]){margin:0 0 var(--px-spacing-xs-desktop) 0}}:host([inverted]) ::slotted([slot=popover]){background:var(--px-color-background-surface-dark,#333)}", o = [
|
|
4
4
|
"top-left",
|
|
5
5
|
"top-right",
|
|
6
6
|
"bottom-left",
|
|
7
7
|
"bottom-right"
|
|
8
8
|
];
|
|
9
|
-
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/anchorPolyfill.ts
|
|
10
11
|
function s(e, t, n = "bottom-left", r, i = !1) {
|
|
11
12
|
"anchorName" in document.documentElement.style && i === !1 || t.addEventListener("toggle", () => {
|
|
12
13
|
if (!e || !t) return;
|
|
@@ -15,7 +16,8 @@ function s(e, t, n = "bottom-left", r, i = !1) {
|
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
/* v8 ignore end */
|
|
18
|
-
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/Dropdown.ts
|
|
19
21
|
var c = new CSSStyleSheet();
|
|
20
22
|
c.replaceSync(a);
|
|
21
23
|
var l = "bottom-left", u = class extends e {
|
|
@@ -187,4 +189,5 @@ var l = "bottom-left", u = class extends e {
|
|
|
187
189
|
}
|
|
188
190
|
};
|
|
189
191
|
customElements.get("px-dropdown") || customElements.define("px-dropdown", u);
|
|
192
|
+
//#endregion
|
|
190
193
|
export { u as Dropdown };
|
package/dist/web-types.json
CHANGED
|
@@ -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-dropdown",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.20-alpha.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "px-dropdown",
|
|
11
|
-
"description": "\n---\n",
|
|
11
|
+
"description": "\n\n---\n",
|
|
12
12
|
"doc-url": "",
|
|
13
13
|
"attributes": [
|
|
14
14
|
{ "name": "id", "value": { "type": "string" } },
|