@proximus/lavender-device-card 1.4.14-beta.3 → 1.4.14
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 +56 -22
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,23 +1,57 @@
|
|
|
1
|
-
import { VerticallyExtendedElement as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { VerticallyExtendedElement as l } from "@proximus/lavender-common";
|
|
2
|
+
const r = ':host{display:block}:host *{box-sizing:border-box}.device-card{display:flex;flex-direction:column;gap:var(--px-spacing-default-mobile);height:100%;font-family:var(--px-font-family);font-size:var(--px-font-size-base);text-decoration:none;color:var(--px-color-text-neutral-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border-radius:var(--px-radius-main);outline-color:var(--px-color-border-focus-outline-default);outline-width:var(--px-focus-outline-mobile);border:var(--px-size-border-m) solid transparent;background-color:var(--px-color-background-surface-light);padding:var(--px-padding-m-mobile)}.device-card ::slotted([slot="brand"]){font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-dimmed-default)}.device-card ::slotted([slot="model"]){font-size:var(--px-text-size-heading-l-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);color:var(--px-color-text-neutral-default);flex-grow:1}.device-card ::slotted([slot="energy-rating"]),.device-card ::slotted([slot="model-visual"]){flex-shrink:0}.device-card ::slotted([slot="color-options"]),.device-card ::slotted([slot="storage-options"]){display:flex;gap:var(--px-spacing-xs-mobile);flex-wrap:wrap}.device-card ::slotted([slot="as-from-label"]){font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-dimmed-default);text-align:right}.device-card ::slotted([slot="with-subscription-label"]){font-size:var(--px-text-size-body-l-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);color:var(--px-color-text-neutral-default)}.device-card ::slotted([slot="without-subscription-label"]),.device-card ::slotted([slot="without-subscription-price"]){font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.device-card ::slotted([slot="without-subscription-price"]){text-align:right}.device-card:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline-style:solid}.device-card:hover{border-color:var(--px-color-border-state-hover-default);background-color:var(--px-color-background-state-hover-bordered-default)}@media screen and (min-width: 48rem){.device-card{gap:var(--px-spacing-default-tablet);outline-width:var(--px-focus-outline-tablet);padding:var(--px-padding-m-tablet)}.device-card ::slotted([slot="brand"]){font-size:var(--px-text-size-body-m-tablet)}.device-card ::slotted([slot="model"]){font-size:var(--px-text-size-heading-l-tablet)}.device-card ::slotted([slot="color-options"]),.device-card ::slotted([slot="storage-options"]){gap:var(--px-spacing-xs-tablet)}.device-card ::slotted([slot="as-from-label"]){font-size:var(--px-text-size-body-m-tablet)}.device-card ::slotted([slot="with-subscription-label"]){font-size:var(--px-text-size-body-l-tablet)}.device-card ::slotted([slot="without-subscription-label"]),.device-card ::slotted([slot="without-subscription-price"]){font-size:var(--px-text-size-body-m-tablet)}.device-card:focus-visible{outline-offset:var(--px-focus-offset-tablet)}}@media screen and (min-width: 64.0625rem){.device-card{gap:var(--px-spacing-default-laptop);outline-width:var(--px-focus-outline-laptop);padding:var(--px-padding-m-laptop)}.device-card ::slotted([slot="brand"]){font-size:var(--px-text-size-body-m-laptop)}.device-card ::slotted([slot="model"]){font-size:var(--px-text-size-heading-l-laptop)}.device-card ::slotted([slot="color-options"]),.device-card ::slotted([slot="storage-options"]){gap:var(--px-spacing-xs-laptop)}.device-card ::slotted([slot="as-from-label"]){font-size:var(--px-text-size-body-m-laptop)}.device-card ::slotted([slot="with-subscription-label"]){font-size:var(--px-text-size-body-l-laptop)}.device-card ::slotted([slot="without-subscription-label"]),.device-card ::slotted([slot="without-subscription-price"]){font-size:var(--px-text-size-body-m-laptop)}.device-card:focus-visible{outline-offset:var(--px-focus-offset-laptop)}}@media screen and (min-width: 90.0625rem){.device-card{gap:var(--px-spacing-default-desktop);outline-width:var(--px-focus-outline-desktop);padding:var(--px-padding-m-desktop)}.device-card ::slotted([slot="brand"]){font-size:var(--px-text-size-body-m-desktop)}.device-card ::slotted([slot="model"]){font-size:var(--px-text-size-heading-l-desktop)}.device-card ::slotted([slot="color-options"]),.device-card ::slotted([slot="storage-options"]){gap:var(--px-spacing-xs-desktop)}.device-card ::slotted([slot="as-from-label"]){font-size:var(--px-text-size-body-m-desktop)}.device-card ::slotted([slot="with-subscription-label"]){font-size:var(--px-text-size-body-l-desktop)}.device-card ::slotted([slot="without-subscription-label"]),.device-card ::slotted([slot="without-subscription-price"]){font-size:var(--px-text-size-body-m-desktop)}.device-card:focus-visible{outline-offset:var(--px-focus-offset-desktop)}}', a = new CSSStyleSheet();
|
|
3
|
+
a.replaceSync(r);
|
|
4
|
+
const e = class e extends l {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(a), this.template = () => `<a class="device-card">
|
|
7
|
+
<px-hstack gap="xs" grow="1">
|
|
8
|
+
<px-vstack grow="1">
|
|
9
|
+
<slot name="brand"></slot>
|
|
10
|
+
<slot name="model"></slot>
|
|
11
|
+
</px-vstack>
|
|
12
|
+
<slot name="energy-rating"></slot>
|
|
13
|
+
</px-hstack>
|
|
14
|
+
<px-hstack gap="default" grow="1">
|
|
15
|
+
<slot name="model-visual"></slot>
|
|
16
|
+
<px-vstack gap="s">
|
|
17
|
+
<slot name="color-options"></slot>
|
|
18
|
+
<slot name="storage-options"></slot>
|
|
19
|
+
</px-vstack>
|
|
20
|
+
</px-hstack>
|
|
21
|
+
<px-separator></px-separator>
|
|
22
|
+
<px-vstack>
|
|
23
|
+
<slot name="as-from-label"></slot>
|
|
24
|
+
<px-hstack
|
|
25
|
+
gap="xs"
|
|
26
|
+
justify-content="space-between"
|
|
27
|
+
align-items="center"
|
|
28
|
+
>
|
|
29
|
+
<slot name="with-subscription-label"></slot>
|
|
30
|
+
<slot name="with-subscription-price"></slot>
|
|
31
|
+
</px-hstack>
|
|
32
|
+
<px-hstack gap="xs" justify-content="space-between">
|
|
33
|
+
<slot name="without-subscription-label"></slot>
|
|
34
|
+
<slot name="without-subscription-price"></slot>
|
|
35
|
+
</px-hstack>
|
|
36
|
+
</px-vstack>
|
|
37
|
+
</a>`, this.shadowRoot.innerHTML = this.template();
|
|
38
|
+
}
|
|
39
|
+
static get observedAttributes() {
|
|
40
|
+
return [...super.observedAttributes];
|
|
41
|
+
}
|
|
42
|
+
attributeChangedCallback(o, s, i) {
|
|
43
|
+
if (s !== i)
|
|
44
|
+
switch (o) {
|
|
45
|
+
default:
|
|
46
|
+
super.attributeChangedCallback(o, s, i);
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
e.nativeName = "a";
|
|
52
|
+
let t = e;
|
|
53
|
+
customElements.get("px-device-card") || customElements.define("px-device-card", t);
|
|
54
|
+
export {
|
|
55
|
+
t as DeviceCard,
|
|
56
|
+
a as styleSheet
|
|
20
57
|
};
|
|
21
|
-
customElements.get("px-device-card") || customElements.define("px-device-card", r);
|
|
22
|
-
//#endregion
|
|
23
|
-
export { r as DeviceCard, n as styleSheet };
|