@sbb-esta/lyne-elements-dev 4.7.0-dev.1773033279 → 4.7.0-dev.1773045546
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/core/styles/core.scss +13 -13
- package/core.css +18 -9
- package/custom-elements.json +526 -526
- package/development/flip-card/flip-card/flip-card.component.js +9 -19
- package/development/flip-card/flip-card-details/flip-card-details.component.d.ts.map +1 -1
- package/development/flip-card/flip-card-details/flip-card-details.component.js +10 -16
- package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts.map +1 -1
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +11 -18
- package/development/journey-header/journey-header.component.js +4 -1
- package/flip-card/flip-card/flip-card.component.js +17 -17
- package/flip-card/flip-card-details/flip-card-details.component.js +15 -17
- package/flip-card/flip-card-summary/flip-card-summary.component.js +13 -15
- package/journey-header/journey-header.component.js +15 -15
- package/off-brand-theme.css +18 -9
- package/package.json +2 -2
- package/safety-theme.css +18 -9
- package/standard-theme.css +18 -9
|
@@ -2,7 +2,7 @@ var D = (i) => {
|
|
|
2
2
|
throw TypeError(i);
|
|
3
3
|
};
|
|
4
4
|
var E = (i, s, r) => s.has(i) || D("Cannot " + r);
|
|
5
|
-
var
|
|
5
|
+
var m = (i, s, r) => (E(i, s, "read from private field"), r ? r.call(i) : s.get(i)), p = (i, s, r) => s.has(i) ? D("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, r), o = (i, s, r, n) => (E(i, s, "write to private field"), n ? n.call(i, r) : s.set(i, r), r);
|
|
6
6
|
import { __esDecorate as g, __runInitializers as l } from "tslib";
|
|
7
7
|
import { css as N, html as O } from "lit";
|
|
8
8
|
import { customElement as U, property as _ } from "lit/decorators.js";
|
|
@@ -15,40 +15,40 @@ import { boxSizingStyles as G } from "../core/styles.js";
|
|
|
15
15
|
import { SbbTitleBase as B } from "../title.js";
|
|
16
16
|
import "../icon.js";
|
|
17
17
|
import "../screen-reader-only.js";
|
|
18
|
-
const K = N`:host{--sbb-journey-header-gap: var(--sbb-spacing-fixed-1x);display:block}:host([id]){scroll-margin-block-start:var(--sbb-spacing-fixed-10x)}:host([negative]){--sbb-title-text-color-normal: var(--sbb-color-3-negative)}sbb-icon{min-width:var(--sbb-size-icon-ui-small)}.sbb-journey-header{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--sbb-journey-header-gap);width:fit-content}.sbb-journey-header:dir(rtl) sbb-icon{transform:rotate(-180deg)}`, M = /* @__PURE__ */ new Map([
|
|
18
|
+
const K = N`:host{--sbb-journey-header-gap: var(--sbb-spacing-fixed-1x);display:block}:host([id]){scroll-margin-block-start:var(--sbb-spacing-fixed-10x)}:host([negative]){--sbb-title-text-color-normal: var(--sbb-color-3-negative)}sbb-icon{min-width:var(--sbb-size-icon-ui-small)}.sbb-journey-header{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--sbb-journey-header-gap);width:fit-content}.sbb-journey-header:dir(rtl) sbb-icon{transform:rotate(-180deg)}.sbb-journey-header>span{max-width:100%}`, M = /* @__PURE__ */ new Map([
|
|
19
19
|
["s", "6"],
|
|
20
20
|
["m", "5"],
|
|
21
21
|
["l", "4"]
|
|
22
22
|
]);
|
|
23
23
|
let oe = (() => {
|
|
24
|
-
var d, u, h,
|
|
25
|
-
let i = [U("sbb-journey-header")], s, r = [], n, y = A(B), z, v = [],
|
|
24
|
+
var d, u, h, b, a;
|
|
25
|
+
let i = [U("sbb-journey-header")], s, r = [], n, y = A(B), z, v = [], x = [], T, w = [], S = [], j, $ = [], k = [], I, L = [], C = [];
|
|
26
26
|
return a = class extends y {
|
|
27
27
|
constructor() {
|
|
28
28
|
super();
|
|
29
29
|
p(this, d);
|
|
30
30
|
p(this, u);
|
|
31
31
|
p(this, h);
|
|
32
|
-
p(this,
|
|
33
|
-
o(this, d, l(this, v, "")), o(this, u, (l(this,
|
|
32
|
+
p(this, b);
|
|
33
|
+
o(this, d, l(this, v, "")), o(this, u, (l(this, x), l(this, w, ""))), o(this, h, (l(this, S), l(this, $, !1))), o(this, b, (l(this, k), l(this, L, H() ? "s" : "m"))), this._language = (l(this, C), new F(this)), this.level = "3", this.visualLevel = M.get(this.size) ?? null;
|
|
34
34
|
}
|
|
35
35
|
/** Origin location for the journey header. */
|
|
36
36
|
get origin() {
|
|
37
|
-
return
|
|
37
|
+
return m(this, d);
|
|
38
38
|
}
|
|
39
39
|
set origin(t) {
|
|
40
40
|
o(this, d, t);
|
|
41
41
|
}
|
|
42
42
|
/** Destination location for the journey header. */
|
|
43
43
|
get destination() {
|
|
44
|
-
return
|
|
44
|
+
return m(this, u);
|
|
45
45
|
}
|
|
46
46
|
set destination(t) {
|
|
47
47
|
o(this, u, t);
|
|
48
48
|
}
|
|
49
49
|
/** Whether the journey is a round trip. If so, the icon changes to a round-trip one. */
|
|
50
50
|
get roundTrip() {
|
|
51
|
-
return
|
|
51
|
+
return m(this, h);
|
|
52
52
|
}
|
|
53
53
|
set roundTrip(t) {
|
|
54
54
|
o(this, h, t);
|
|
@@ -58,10 +58,10 @@ let oe = (() => {
|
|
|
58
58
|
* @default 'm' / 's' (lean)
|
|
59
59
|
*/
|
|
60
60
|
get size() {
|
|
61
|
-
return
|
|
61
|
+
return m(this, b);
|
|
62
62
|
}
|
|
63
63
|
set size(t) {
|
|
64
|
-
o(this,
|
|
64
|
+
o(this, b, t);
|
|
65
65
|
}
|
|
66
66
|
willUpdate(t) {
|
|
67
67
|
super.willUpdate(t), t.has("size") && (this.visualLevel = M.get(this.size) ?? null);
|
|
@@ -77,13 +77,13 @@ let oe = (() => {
|
|
|
77
77
|
<sbb-screen-reader-only>${e}</sbb-screen-reader-only>
|
|
78
78
|
`;
|
|
79
79
|
}
|
|
80
|
-
}, d = new WeakMap(), u = new WeakMap(), h = new WeakMap(),
|
|
80
|
+
}, d = new WeakMap(), u = new WeakMap(), h = new WeakMap(), b = new WeakMap(), n = a, (() => {
|
|
81
81
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(y[Symbol.metadata] ?? null) : void 0;
|
|
82
|
-
z = [f(), _()],
|
|
82
|
+
z = [f(), _()], T = [f(), _()], j = [f(), _({ attribute: "round-trip", type: Boolean })], I = [_({ reflect: !0 })], g(a, null, z, { kind: "accessor", name: "origin", static: !1, private: !1, access: { has: (e) => "origin" in e, get: (e) => e.origin, set: (e, c) => {
|
|
83
83
|
e.origin = c;
|
|
84
|
-
} }, metadata: t }, v,
|
|
84
|
+
} }, metadata: t }, v, x), g(a, null, T, { kind: "accessor", name: "destination", static: !1, private: !1, access: { has: (e) => "destination" in e, get: (e) => e.destination, set: (e, c) => {
|
|
85
85
|
e.destination = c;
|
|
86
|
-
} }, metadata: t },
|
|
86
|
+
} }, metadata: t }, w, S), g(a, null, j, { kind: "accessor", name: "roundTrip", static: !1, private: !1, access: { has: (e) => "roundTrip" in e, get: (e) => e.roundTrip, set: (e, c) => {
|
|
87
87
|
e.roundTrip = c;
|
|
88
88
|
} }, metadata: t }, $, k), g(a, null, I, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, get: (e) => e.size, set: (e, c) => {
|
|
89
89
|
e.size = c;
|
package/off-brand-theme.css
CHANGED
|
@@ -1564,6 +1564,14 @@ summary {
|
|
|
1564
1564
|
--sbb-expansion-panel-header-padding-inline-s: var(--sbb-spacing-fixed-5x);
|
|
1565
1565
|
--sbb-expansion-panel-header-padding-inline-l: var(--sbb-spacing-fixed-6x);
|
|
1566
1566
|
--sbb-expansion-panel-header-padding-inline-default: var(--sbb-expansion-panel-header-padding-inline-l);
|
|
1567
|
+
--sbb-flip-card-background-color: var(--sbb-background-color-4);
|
|
1568
|
+
--sbb-flip-card-border: var(--sbb-border-width-2x);
|
|
1569
|
+
--sbb-flip-card-border-radius: var(--sbb-border-radius-4x);
|
|
1570
|
+
--sbb-flip-card-button-dimensions: var(--sbb-button-min-height-size-s);
|
|
1571
|
+
--sbb-flip-card-padding: var(--sbb-spacing-responsive-s);
|
|
1572
|
+
--sbb-flip-card-padding-block-end: var(--sbb-spacing-responsive-xs);
|
|
1573
|
+
--sbb-flip-card-min-height: 17.5rem;
|
|
1574
|
+
--sbb-flip-card-details-translate-y: var(--sbb-spacing-fixed-2x);
|
|
1567
1575
|
--sbb-footer-background-color: var(--sbb-background-color-3);
|
|
1568
1576
|
--sbb-footer-clock-width: 4.75rem;
|
|
1569
1577
|
--sbb-footer-color: var(--sbb-color-granite);
|
|
@@ -1801,6 +1809,7 @@ summary {
|
|
|
1801
1809
|
--sbb-chip-group-margin-block-with-label-not-empty: var(--_sbb-chip-group-margin-block-start-default-large) var(--_sbb-chip-group-margin-block-start-default-large);
|
|
1802
1810
|
--sbb-dialog-padding-inline: var(--sbb-spacing-responsive-s);
|
|
1803
1811
|
--sbb-dialog-max-height: calc(100vh - var(--sbb-spacing-fixed-16x));
|
|
1812
|
+
--sbb-flip-card-min-height: 20rem;
|
|
1804
1813
|
}
|
|
1805
1814
|
:root.sbb-lean {
|
|
1806
1815
|
--sbb-title-font-size-level-6-lean: var(--sbb-typo-scale-0-875x);
|
|
@@ -1884,6 +1893,15 @@ sbb-dialog:has(> sbb-dialog-close-button) > sbb-dialog-title, sbb-dialog:is(:sta
|
|
|
1884
1893
|
padding-inline-end: 0;
|
|
1885
1894
|
}
|
|
1886
1895
|
|
|
1896
|
+
sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
|
|
1897
|
+
sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
1898
|
+
--sbb-image-aspect-ratio: auto;
|
|
1899
|
+
--sbb-image-object-fit: cover;
|
|
1900
|
+
border-radius: 0;
|
|
1901
|
+
display: block;
|
|
1902
|
+
height: 100%;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1887
1905
|
:where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
|
|
1888
1906
|
--sbb-option-min-height: var(--sbb-size-element-xxs);
|
|
1889
1907
|
--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
|
|
@@ -2174,15 +2192,6 @@ img {
|
|
|
2174
2192
|
object-position: var(--sbb-image-object-position);
|
|
2175
2193
|
}
|
|
2176
2194
|
|
|
2177
|
-
sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
|
|
2178
|
-
sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2179
|
-
--sbb-image-aspect-ratio: auto;
|
|
2180
|
-
--sbb-image-object-fit: cover;
|
|
2181
|
-
border-radius: 0;
|
|
2182
|
-
display: block;
|
|
2183
|
-
height: 100%;
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
2195
|
sbb-lead-container > [slot=image]:is(sbb-image, img, picture),
|
|
2187
2196
|
sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-overlap-image) {
|
|
2188
2197
|
--sbb-image-aspect-ratio: var(--sbb-lead-container-image-ratio);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-dev",
|
|
3
|
-
"version": "4.7.0-dev.
|
|
3
|
+
"version": "4.7.0-dev.1773045546",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
7
7
|
"web components",
|
|
8
8
|
"lit",
|
|
9
9
|
"storybook",
|
|
10
|
-
"https://github.com/sbb-design-systems/lyne-components/commit/
|
|
10
|
+
"https://github.com/sbb-design-systems/lyne-components/commit/183d6cc93511b2c40131a0ac0debdc2b731acc74"
|
|
11
11
|
],
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
package/safety-theme.css
CHANGED
|
@@ -1564,6 +1564,14 @@ summary {
|
|
|
1564
1564
|
--sbb-expansion-panel-header-padding-inline-s: var(--sbb-spacing-fixed-5x);
|
|
1565
1565
|
--sbb-expansion-panel-header-padding-inline-l: var(--sbb-spacing-fixed-6x);
|
|
1566
1566
|
--sbb-expansion-panel-header-padding-inline-default: var(--sbb-expansion-panel-header-padding-inline-l);
|
|
1567
|
+
--sbb-flip-card-background-color: var(--sbb-background-color-4);
|
|
1568
|
+
--sbb-flip-card-border: var(--sbb-border-width-2x);
|
|
1569
|
+
--sbb-flip-card-border-radius: var(--sbb-border-radius-4x);
|
|
1570
|
+
--sbb-flip-card-button-dimensions: var(--sbb-button-min-height-size-s);
|
|
1571
|
+
--sbb-flip-card-padding: var(--sbb-spacing-responsive-s);
|
|
1572
|
+
--sbb-flip-card-padding-block-end: var(--sbb-spacing-responsive-xs);
|
|
1573
|
+
--sbb-flip-card-min-height: 17.5rem;
|
|
1574
|
+
--sbb-flip-card-details-translate-y: var(--sbb-spacing-fixed-2x);
|
|
1567
1575
|
--sbb-footer-background-color: var(--sbb-background-color-3);
|
|
1568
1576
|
--sbb-footer-clock-width: 4.75rem;
|
|
1569
1577
|
--sbb-footer-color: var(--sbb-color-granite);
|
|
@@ -1801,6 +1809,7 @@ summary {
|
|
|
1801
1809
|
--sbb-chip-group-margin-block-with-label-not-empty: var(--_sbb-chip-group-margin-block-start-default-large) var(--_sbb-chip-group-margin-block-start-default-large);
|
|
1802
1810
|
--sbb-dialog-padding-inline: var(--sbb-spacing-responsive-s);
|
|
1803
1811
|
--sbb-dialog-max-height: calc(100vh - var(--sbb-spacing-fixed-16x));
|
|
1812
|
+
--sbb-flip-card-min-height: 20rem;
|
|
1804
1813
|
}
|
|
1805
1814
|
:root.sbb-lean {
|
|
1806
1815
|
--sbb-title-font-size-level-6-lean: var(--sbb-typo-scale-0-875x);
|
|
@@ -1884,6 +1893,15 @@ sbb-dialog:has(> sbb-dialog-close-button) > sbb-dialog-title, sbb-dialog:is(:sta
|
|
|
1884
1893
|
padding-inline-end: 0;
|
|
1885
1894
|
}
|
|
1886
1895
|
|
|
1896
|
+
sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
|
|
1897
|
+
sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
1898
|
+
--sbb-image-aspect-ratio: auto;
|
|
1899
|
+
--sbb-image-object-fit: cover;
|
|
1900
|
+
border-radius: 0;
|
|
1901
|
+
display: block;
|
|
1902
|
+
height: 100%;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1887
1905
|
:where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
|
|
1888
1906
|
--sbb-option-min-height: var(--sbb-size-element-xxs);
|
|
1889
1907
|
--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
|
|
@@ -2174,15 +2192,6 @@ img {
|
|
|
2174
2192
|
object-position: var(--sbb-image-object-position);
|
|
2175
2193
|
}
|
|
2176
2194
|
|
|
2177
|
-
sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
|
|
2178
|
-
sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2179
|
-
--sbb-image-aspect-ratio: auto;
|
|
2180
|
-
--sbb-image-object-fit: cover;
|
|
2181
|
-
border-radius: 0;
|
|
2182
|
-
display: block;
|
|
2183
|
-
height: 100%;
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
2195
|
sbb-lead-container > [slot=image]:is(sbb-image, img, picture),
|
|
2187
2196
|
sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-overlap-image) {
|
|
2188
2197
|
--sbb-image-aspect-ratio: var(--sbb-lead-container-image-ratio);
|
package/standard-theme.css
CHANGED
|
@@ -1564,6 +1564,14 @@ summary {
|
|
|
1564
1564
|
--sbb-expansion-panel-header-padding-inline-s: var(--sbb-spacing-fixed-5x);
|
|
1565
1565
|
--sbb-expansion-panel-header-padding-inline-l: var(--sbb-spacing-fixed-6x);
|
|
1566
1566
|
--sbb-expansion-panel-header-padding-inline-default: var(--sbb-expansion-panel-header-padding-inline-l);
|
|
1567
|
+
--sbb-flip-card-background-color: var(--sbb-background-color-4);
|
|
1568
|
+
--sbb-flip-card-border: var(--sbb-border-width-2x);
|
|
1569
|
+
--sbb-flip-card-border-radius: var(--sbb-border-radius-4x);
|
|
1570
|
+
--sbb-flip-card-button-dimensions: var(--sbb-button-min-height-size-s);
|
|
1571
|
+
--sbb-flip-card-padding: var(--sbb-spacing-responsive-s);
|
|
1572
|
+
--sbb-flip-card-padding-block-end: var(--sbb-spacing-responsive-xs);
|
|
1573
|
+
--sbb-flip-card-min-height: 17.5rem;
|
|
1574
|
+
--sbb-flip-card-details-translate-y: var(--sbb-spacing-fixed-2x);
|
|
1567
1575
|
--sbb-footer-background-color: var(--sbb-background-color-3);
|
|
1568
1576
|
--sbb-footer-clock-width: 4.75rem;
|
|
1569
1577
|
--sbb-footer-color: var(--sbb-color-granite);
|
|
@@ -1801,6 +1809,7 @@ summary {
|
|
|
1801
1809
|
--sbb-chip-group-margin-block-with-label-not-empty: var(--_sbb-chip-group-margin-block-start-default-large) var(--_sbb-chip-group-margin-block-start-default-large);
|
|
1802
1810
|
--sbb-dialog-padding-inline: var(--sbb-spacing-responsive-s);
|
|
1803
1811
|
--sbb-dialog-max-height: calc(100vh - var(--sbb-spacing-fixed-16x));
|
|
1812
|
+
--sbb-flip-card-min-height: 20rem;
|
|
1804
1813
|
}
|
|
1805
1814
|
:root.sbb-lean {
|
|
1806
1815
|
--sbb-title-font-size-level-6-lean: var(--sbb-typo-scale-0-875x);
|
|
@@ -1884,6 +1893,15 @@ sbb-dialog:has(> sbb-dialog-close-button) > sbb-dialog-title, sbb-dialog:is(:sta
|
|
|
1884
1893
|
padding-inline-end: 0;
|
|
1885
1894
|
}
|
|
1886
1895
|
|
|
1896
|
+
sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
|
|
1897
|
+
sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
1898
|
+
--sbb-image-aspect-ratio: auto;
|
|
1899
|
+
--sbb-image-object-fit: cover;
|
|
1900
|
+
border-radius: 0;
|
|
1901
|
+
display: block;
|
|
1902
|
+
height: 100%;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1887
1905
|
:where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
|
|
1888
1906
|
--sbb-option-min-height: var(--sbb-size-element-xxs);
|
|
1889
1907
|
--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
|
|
@@ -2174,15 +2192,6 @@ img {
|
|
|
2174
2192
|
object-position: var(--sbb-image-object-position);
|
|
2175
2193
|
}
|
|
2176
2194
|
|
|
2177
|
-
sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
|
|
2178
|
-
sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2179
|
-
--sbb-image-aspect-ratio: auto;
|
|
2180
|
-
--sbb-image-object-fit: cover;
|
|
2181
|
-
border-radius: 0;
|
|
2182
|
-
display: block;
|
|
2183
|
-
height: 100%;
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
2195
|
sbb-lead-container > [slot=image]:is(sbb-image, img, picture),
|
|
2187
2196
|
sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-overlap-image) {
|
|
2188
2197
|
--sbb-image-aspect-ratio: var(--sbb-lead-container-image-ratio);
|