@proximus/lavender-action-button 2.0.0-alpha.131 → 2.0.0-alpha.133
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 +7 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "@proximus/lavender-layout";
|
|
2
2
|
import "@proximus/lavender-icon";
|
|
3
3
|
import "@proximus/lavender-span";
|
|
4
|
-
import { PxElement as a, transferAccessibilityAttributes as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { PxElement as a, transferAccessibilityAttributes as l } from "@proximus/lavender-common";
|
|
5
|
+
const p = "button{border-radius:var(--px-radius-pill);background-color:var(--px-color-background-container-secondary-default);width:var(--px-size-l);height:var(--px-size-l)}button:hover{background-color:transparent;border-color:var(--px-color-border-state-hover-default)}@media only screen and (min-width: 64.0625rem){button{border-radius:var(--px-radius-main);width:inherit;height:inherit}}", c = ":host{display:block}:host *{box-sizing:border-box}:host(:not([promoted])){display:none}a,button{display:block;font-family:var(--px-font-family);padding:var(--px-padding-xs-mobile);cursor:pointer;border-radius:var(--px-radius-main);border:var(--px-size-border-m) solid transparent;text-decoration:none;color:var(--px-color-text-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}a px-span,button px-span{font-size:var(--px-text-size-label-s-mobile);line-height:var(--px-line-height-ratio-l)}a:hover,button:hover{background-color:var(--px-color-background-container-secondary-default)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media only screen and (min-width: 48rem){a,button{padding:var(--px-padding-xs-tablet)}a px-span,button px-span{font-size:var(--px-text-size-label-s-tablet)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media only screen and (min-width: 64.0625rem){a,button{min-width:65px;padding:var(--px-padding-xs-laptop)}a px-span,button px-span{font-size:var(--px-text-size-label-s-laptop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}:host(:not([promoted])){display:block}}@media only screen and (min-width: 90.0625rem){a,button{padding:var(--px-padding-xs-desktop)}a px-span,button px-span{font-size:var(--px-text-size-label-s-desktop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}", r = new CSSStyleSheet(), s = new CSSStyleSheet();
|
|
6
|
+
r.replaceSync(p);
|
|
7
|
+
s.replaceSync(c);
|
|
8
8
|
const i = class i extends a {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(
|
|
10
|
+
super(s, r), this.template = () => `
|
|
11
11
|
<button class="action-button">
|
|
12
12
|
<px-vstack gap="none" align-items="center" justify-content="center">
|
|
13
13
|
<px-icon
|
|
@@ -15,6 +15,7 @@ const i = class i extends a {
|
|
|
15
15
|
from="${this.getAttribute("icon-from")}"
|
|
16
16
|
size="m"
|
|
17
17
|
hidden--mobile
|
|
18
|
+
hidden--tablet
|
|
18
19
|
>
|
|
19
20
|
</px-icon>
|
|
20
21
|
<px-span color="brand" font-size="inherit"><slot></slot></px-span>
|
|
@@ -27,7 +28,7 @@ const i = class i extends a {
|
|
|
27
28
|
}
|
|
28
29
|
connectedCallback() {
|
|
29
30
|
var t;
|
|
30
|
-
((t = this.parentElement) == null ? void 0 : t.localName) === "px-header" && this.setAttribute("slot", "header-actions"),
|
|
31
|
+
((t = this.parentElement) == null ? void 0 : t.localName) === "px-header" && this.setAttribute("slot", "header-actions"), l(this, this.$el, !1);
|
|
31
32
|
}
|
|
32
33
|
attributeChangedCallback(t, n, e) {
|
|
33
34
|
if (n !== e)
|