@sbb-esta/lyne-elements 3.4.0 → 3.6.0
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/button/common.js +1 -1
- package/button.js +1 -1
- package/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/core/mixins/element-internals-mixin.js +66 -62
- package/core/styles/core.scss +3 -3
- package/core.css +38 -24
- package/custom-elements.json +377 -366
- package/development/button/common.js +1 -1
- package/development/button.js +1 -1
- package/development/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/development/core/mixins/element-internals-mixin.js +7 -2
- package/development/dialog/dialog/dialog.component.d.ts +2 -0
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +8 -4
- package/development/file-selector/common.js +1 -1
- package/development/{file-selector-common-BxXdRZxt.js → file-selector-common-B4I8rwJE.js} +3 -3
- package/development/file-selector.js +1 -1
- package/development/form-field/form-field/form-field.component.js +28 -42
- package/development/header/header-environment/header-environment.component.js +6 -6
- package/development/notification/notification.component.js +2 -2
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +3 -2
- package/development/radio-button/common.js +1 -1
- package/development/{radio-button-common-hZiiLJDY.js → radio-button-common-BRyEhlYf.js} +6 -2
- package/development/radio-button.js +1 -1
- package/development/selection-action-panel/selection-action-panel.component.js +3 -3
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +3 -3
- package/development/title/title-base.d.ts +1 -1
- package/development/title/title-base.d.ts.map +1 -1
- package/development/title/title-base.js +2 -2
- package/development/title/title.component.d.ts +3 -1
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +30 -4
- package/development/train/train-formation/train-formation.component.d.ts.map +1 -1
- package/development/train/train-formation/train-formation.component.js +6 -4
- package/development/{transparent-button-Dun6bh2G.js → transparent-button-COe-YB_U.js} +2 -2
- package/dialog/dialog/dialog.component.d.ts +2 -0
- package/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/dialog/dialog/dialog.component.js +14 -10
- package/form-field/form-field/form-field.component.js +1 -1
- package/notification/notification.component.js +1 -1
- package/package.json +1 -1
- package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +10 -9
- package/radio-button/common.js +1 -1
- package/radio-button-common-DzALx3X7.js +5 -0
- package/radio-button.js +1 -1
- package/selection-action-panel/selection-action-panel.component.js +3 -3
- package/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
- package/standard-theme.css +38 -24
- package/title/title-base.d.ts +1 -1
- package/title/title-base.d.ts.map +1 -1
- package/title/title-base.js +1 -1
- package/title/title.component.d.ts +3 -1
- package/title/title.component.d.ts.map +1 -1
- package/title/title.component.js +34 -15
- package/train/train-formation/train-formation.component.d.ts.map +1 -1
- package/train/train-formation/train-formation.component.js +19 -17
- package/{transparent-button-rf30m88X.js → transparent-button-xudJxob_.js} +1 -1
- package/radio-button-common-DJKWrKor.js +0 -5
package/button/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SbbButtonCommonElementMixin as n } from "./common/button-common.js";
|
|
2
|
-
import { a, b as r, p as b, s as m, t as s } from "../transparent-button-
|
|
2
|
+
import { a, b as r, p as b, s as m, t as s } from "../transparent-button-xudJxob_.js";
|
|
3
3
|
export {
|
|
4
4
|
n as SbbButtonCommonElementMixin,
|
|
5
5
|
a as buttonAccentStyle,
|
package/button.js
CHANGED
|
@@ -13,7 +13,7 @@ import { SbbSecondaryButtonStaticElement as T } from "./button/secondary-button-
|
|
|
13
13
|
import { SbbAccentButtonStaticElement as C } from "./button/accent-button-static/accent-button-static.component.js";
|
|
14
14
|
import { SbbTransparentButtonStaticElement as P } from "./button/transparent-button-static/transparent-button-static.component.js";
|
|
15
15
|
import { SbbButtonCommonElementMixin as h } from "./button/common/button-common.js";
|
|
16
|
-
import { a as q, b as v, p as w, s as z, t as D } from "./transparent-button-
|
|
16
|
+
import { a as q, b as v, p as w, s as z, t as D } from "./transparent-button-xudJxob_.js";
|
|
17
17
|
export {
|
|
18
18
|
m as SbbAccentButtonElement,
|
|
19
19
|
s as SbbAccentButtonLinkElement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-internals-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/element-internals-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAA2B,MAAM,KAAK,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA8C5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5C,oBAAoB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACnD,mBAAmB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/C,wBAAwB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,sBAAsB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAClD,gBAAgB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;KAC7C;CACF;AAyKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,4BAA4B;IACxD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC/C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAC5D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACjC,OAAO,EAAE,GAAG,IAGd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACvC,OAAO,EAAE,GAAG,IAId,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EAChF,YAAY,CAAC,KACZ,mBAAmB,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"element-internals-mixin.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/mixins/element-internals-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAA2B,MAAM,KAAK,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA8C5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,2BAA2B,EAAE,OAAO,GAAG,IAAI,CAAC;QAC5C,oBAAoB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACnD,mBAAmB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/C,wBAAwB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,sBAAsB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;QAClD,gBAAgB,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;KAC7C;CACF;AAyKD,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,4BAA4B;IACxD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC/C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;CAC5D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACjC,OAAO,EAAE,GAAG,IAGd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,WAAW,SAAS,OAAO,EAAE,GAAG,IAAI,EACpC,GAAG,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KACvC,OAAO,EAAE,GAAG,IAId,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,CAAC,UAAU,CAAC,EAChF,YAAY,CAAC,KACZ,mBAAmB,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,8BA2C1D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isServer as
|
|
2
|
-
const
|
|
1
|
+
import { isServer as E } from "lit";
|
|
2
|
+
const g = E || !CSS.supports("selector(:state(loading))") ? class extends Set {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
super(), this._host = e, this._host.addController(this);
|
|
5
5
|
}
|
|
@@ -19,40 +19,40 @@ const E = !g && !CSS.supports("selector(:state(loading))") ? class extends Set {
|
|
|
19
19
|
this._host.toggleAttribute(`state--${e}`, a);
|
|
20
20
|
}
|
|
21
21
|
} : null;
|
|
22
|
-
if (!
|
|
23
|
-
let
|
|
24
|
-
const e = (
|
|
22
|
+
if (!E) {
|
|
23
|
+
let h = 0;
|
|
24
|
+
const e = (r) => r.shadowRoot?.host ?? (r instanceof Element ? r : (() => {
|
|
25
25
|
throw new Error("Unable to resolve related element! This should never happen.");
|
|
26
|
-
})()), a = { attributes: !0, attributeFilter: ["id"] }, c = (
|
|
26
|
+
})()), a = { attributes: !0, attributeFilter: ["id"] }, c = (r, d, m) => {
|
|
27
27
|
const i = m[Element.name] ?? m[ElementInternals.name];
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
28
|
+
r.setAttribute(d, i.id ||= `aria-ref-${h++}`);
|
|
29
|
+
}, u = (r, d, m) => {
|
|
30
|
+
r.setAttribute(d, Object.values(m).reduce((i, l) => i.concat(l)).filter((i, l, t) => t.indexOf(i) === l).map((i) => i.id || (i.id = `aria-ref-${h++}`)).join(" "));
|
|
31
31
|
};
|
|
32
|
-
for (const
|
|
33
|
-
const
|
|
34
|
-
if (!("ariaActiveDescendantElement" in
|
|
32
|
+
for (const r of [ElementInternals, Element]) {
|
|
33
|
+
const d = r.prototype;
|
|
34
|
+
if (!("ariaActiveDescendantElement" in d)) {
|
|
35
35
|
const m = "aria-activedescendant", i = /* @__PURE__ */ new WeakMap();
|
|
36
|
-
Object.defineProperty(
|
|
36
|
+
Object.defineProperty(d, "ariaActiveDescendantElement", {
|
|
37
37
|
enumerable: !0,
|
|
38
38
|
configurable: !0,
|
|
39
39
|
get() {
|
|
40
|
-
const
|
|
41
|
-
return t ?
|
|
40
|
+
const l = e(this), t = l.getAttribute(m)?.split(/\s+/)[0] ?? null;
|
|
41
|
+
return t ? l.getRootNode().getElementById?.(t) ?? null : null;
|
|
42
42
|
},
|
|
43
|
-
set(
|
|
44
|
-
if (
|
|
45
|
-
throw new TypeError(`Failed to set the 'ariaActiveDescendantElement' property on '${
|
|
46
|
-
const t = e(this),
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
else if (
|
|
50
|
-
|
|
43
|
+
set(l) {
|
|
44
|
+
if (l !== null && !(l instanceof Element))
|
|
45
|
+
throw new TypeError(`Failed to set the 'ariaActiveDescendantElement' property on '${r.name}': Failed to convert value to 'Element'.`);
|
|
46
|
+
const t = e(this), n = i.get(t);
|
|
47
|
+
if (n?.observer?.disconnect(), l === null)
|
|
48
|
+
n && (delete n.elements[r.name], Object.keys(n).length ? n.observer.observe(Object.values(n.elements)[0], a) : (i.delete(t), t.removeAttribute(m)));
|
|
49
|
+
else if (n)
|
|
50
|
+
n.elements[r.name] = l, c(t, m, n.elements), Object.values(n.elements).forEach((s) => n.observer.observe(s, a));
|
|
51
51
|
else {
|
|
52
|
-
const
|
|
53
|
-
c(t, m,
|
|
54
|
-
const
|
|
55
|
-
|
|
52
|
+
const s = { [r.name]: l };
|
|
53
|
+
c(t, m, s);
|
|
54
|
+
const o = new MutationObserver(() => c(t, m, s));
|
|
55
|
+
o.observe(l, a), i.set(t, { elements: s, observer: o });
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
});
|
|
@@ -65,63 +65,67 @@ if (!g) {
|
|
|
65
65
|
"ariaLabelledByElements",
|
|
66
66
|
"ariaOwnsElements"
|
|
67
67
|
])
|
|
68
|
-
if (!(m in
|
|
69
|
-
const i = /* @__PURE__ */ new WeakMap(),
|
|
70
|
-
Object.defineProperty(
|
|
68
|
+
if (!(m in d)) {
|
|
69
|
+
const i = /* @__PURE__ */ new WeakMap(), l = `aria-${m.slice(4, -8).toLowerCase()}`;
|
|
70
|
+
Object.defineProperty(d, m, {
|
|
71
71
|
enumerable: !0,
|
|
72
72
|
configurable: !0,
|
|
73
73
|
get() {
|
|
74
|
-
const t = e(this),
|
|
75
|
-
return
|
|
74
|
+
const t = e(this), n = t.getAttribute(l)?.split(/\s+/).filter((s, o, f) => f.indexOf(s) === o).map((s) => t.getRootNode().getElementById?.(s)).filter((s) => s instanceof Element);
|
|
75
|
+
return n?.length ? Object.freeze(n) : null;
|
|
76
76
|
},
|
|
77
77
|
set(t) {
|
|
78
|
-
if (t !== null && (!Array.isArray(t) || t.some((
|
|
79
|
-
throw new TypeError(`Failed to set the '${m}' property on '${
|
|
80
|
-
const
|
|
81
|
-
t = t?.filter((
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
else if (
|
|
86
|
-
|
|
78
|
+
if (t !== null && (!Array.isArray(t) || t.some((o) => !(o instanceof Element))))
|
|
79
|
+
throw new TypeError(`Failed to set the '${m}' property on '${r.name}': Failed to convert value to 'Element'.`);
|
|
80
|
+
const n = e(this);
|
|
81
|
+
t = t?.filter((o, f, b) => b.indexOf(o) === f) ?? null;
|
|
82
|
+
const s = i.get(n);
|
|
83
|
+
if (s?.observer?.disconnect(), t === null)
|
|
84
|
+
s && (delete s.elements[r.name], Object.keys(s.elements).length ? Object.values(s.elements).reduce((o, f) => o.concat(f)).forEach((o) => s.observer.observe(o, a)) : i.delete(n));
|
|
85
|
+
else if (s)
|
|
86
|
+
s.elements[r.name] = t, u(n, l, s.elements), Object.values(s.elements).reduce((o, f) => o.concat(f)).forEach((o) => s.observer.observe(o, a));
|
|
87
87
|
else {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
t.forEach((b) =>
|
|
88
|
+
const o = { [r.name]: t };
|
|
89
|
+
u(n, l, o);
|
|
90
|
+
const f = new MutationObserver(() => u(n, l, o));
|
|
91
|
+
t.forEach((b) => f.observe(b, a)), i.set(n, { elements: o, observer: f });
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
const y = (
|
|
98
|
+
const y = (h, ...e) => {
|
|
99
99
|
const a = e.filter((c) => !!c);
|
|
100
|
-
return
|
|
101
|
-
}, O = (
|
|
100
|
+
return h?.length ? h.concat(a) : e.length ? a : null;
|
|
101
|
+
}, O = (h, ...e) => {
|
|
102
102
|
e = e.filter((c) => !!c);
|
|
103
|
-
const a =
|
|
103
|
+
const a = h?.filter((c) => !e.includes(c)) ?? null;
|
|
104
104
|
return a?.length ? a : null;
|
|
105
|
-
},
|
|
106
|
-
class e extends
|
|
105
|
+
}, A = (h) => {
|
|
106
|
+
class e extends h {
|
|
107
107
|
constructor(...c) {
|
|
108
|
-
super(...c), this.internals = this.attachInternals(),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
if (super(...c), this.internals = this.attachInternals(), g)
|
|
109
|
+
Object.defineProperty(this.internals, "states", {
|
|
110
|
+
value: new g(this),
|
|
111
|
+
writable: !1,
|
|
112
|
+
configurable: !1,
|
|
113
|
+
enumerable: !1
|
|
114
|
+
});
|
|
115
|
+
else
|
|
116
|
+
for (const r of this.getAttributeNames().filter((d) => d.startsWith("state--")))
|
|
117
|
+
this.internals.states.add(r.slice(7)), this.removeAttribute(r);
|
|
118
|
+
const u = this.constructor.role;
|
|
119
|
+
u && (this.internals.role = u);
|
|
116
120
|
}
|
|
117
|
-
toggleState(c,
|
|
118
|
-
|
|
121
|
+
toggleState(c, u) {
|
|
122
|
+
u || u !== !1 && !this.internals.states.has(c) ? this.internals.states.add(c) : this.internals.states.delete(c);
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
125
|
return e;
|
|
122
126
|
};
|
|
123
127
|
export {
|
|
124
|
-
|
|
128
|
+
A as SbbElementInternalsMixin,
|
|
125
129
|
y as appendAriaElements,
|
|
126
130
|
O as removeAriaElements
|
|
127
131
|
};
|
package/core/styles/core.scss
CHANGED
|
@@ -205,7 +205,7 @@ sbb-form-field {
|
|
|
205
205
|
&:has(
|
|
206
206
|
:is(
|
|
207
207
|
:is(input, textarea, select):user-invalid,
|
|
208
|
-
:
|
|
208
|
+
:state(interacted):invalid,
|
|
209
209
|
.ng-touched.ng-invalid,
|
|
210
210
|
.sbb-invalid
|
|
211
211
|
)
|
|
@@ -563,13 +563,13 @@ sbb-dialog-actions {
|
|
|
563
563
|
--sbb-dialog-actions-border-color: var(--sbb-color-iron);
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
sbb-dialog:
|
|
566
|
+
sbb-dialog:state(overflows) & {
|
|
567
567
|
--sbb-dialog-actions-border-color: transparent;
|
|
568
568
|
|
|
569
569
|
@include shadows.shadow-level-9-soft;
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
sbb-dialog[negative]:
|
|
572
|
+
sbb-dialog[negative]:state(overflows) & {
|
|
573
573
|
@include shadows.shadow-level-9-soft-negative;
|
|
574
574
|
}
|
|
575
575
|
}
|
package/core.css
CHANGED
|
@@ -991,24 +991,6 @@
|
|
|
991
991
|
--sbb-size-element-s: var(--sbb-size-element-s-zero);
|
|
992
992
|
--sbb-size-element-m: var(--sbb-size-element-m-zero);
|
|
993
993
|
--sbb-size-element-l: var(--sbb-size-element-l-zero);
|
|
994
|
-
/**
|
|
995
|
-
* Micro (value corresponds to --sbb-breakpoint-micro-min)
|
|
996
|
-
*/
|
|
997
|
-
/**
|
|
998
|
-
* Small (value corresponds to --sbb-breakpoint-small-min)
|
|
999
|
-
*/
|
|
1000
|
-
/**
|
|
1001
|
-
* Medium (value corresponds to --sbb-breakpoint-medium-min)
|
|
1002
|
-
*/
|
|
1003
|
-
/**
|
|
1004
|
-
* Large (value corresponds to --sbb-breakpoint-large-min)
|
|
1005
|
-
*/
|
|
1006
|
-
/**
|
|
1007
|
-
* Wide (value corresponds to --sbb-breakpoint-wide-min)
|
|
1008
|
-
*/
|
|
1009
|
-
/**
|
|
1010
|
-
* Ultra (value corresponds to --sbb-breakpoint-ultra-min)
|
|
1011
|
-
*/
|
|
1012
994
|
}
|
|
1013
995
|
@media (forced-colors: active) {
|
|
1014
996
|
:root {
|
|
@@ -1018,6 +1000,11 @@
|
|
|
1018
1000
|
--sbb-focus-outline-width: var(--sbb-border-width-2x);
|
|
1019
1001
|
}
|
|
1020
1002
|
}
|
|
1003
|
+
:root {
|
|
1004
|
+
/**
|
|
1005
|
+
* Micro (value corresponds to --sbb-breakpoint-micro-min)
|
|
1006
|
+
*/
|
|
1007
|
+
}
|
|
1021
1008
|
@media (min-width: 22.5rem) {
|
|
1022
1009
|
:root {
|
|
1023
1010
|
/* Layout */
|
|
@@ -1026,6 +1013,11 @@
|
|
|
1026
1013
|
--sbb-grid-base-gutter-responsive: var(--sbb-layout-base-grid-gutter-responsive-micro);
|
|
1027
1014
|
}
|
|
1028
1015
|
}
|
|
1016
|
+
:root {
|
|
1017
|
+
/**
|
|
1018
|
+
* Small (value corresponds to --sbb-breakpoint-small-min)
|
|
1019
|
+
*/
|
|
1020
|
+
}
|
|
1029
1021
|
@media (min-width: 37.5rem) {
|
|
1030
1022
|
:root {
|
|
1031
1023
|
/* Title */
|
|
@@ -1040,6 +1032,11 @@
|
|
|
1040
1032
|
--sbb-grid-base-gutter-responsive: var(--sbb-layout-base-grid-gutter-responsive-small);
|
|
1041
1033
|
}
|
|
1042
1034
|
}
|
|
1035
|
+
:root {
|
|
1036
|
+
/**
|
|
1037
|
+
* Medium (value corresponds to --sbb-breakpoint-medium-min)
|
|
1038
|
+
*/
|
|
1039
|
+
}
|
|
1043
1040
|
@media (min-width: 52.5rem) {
|
|
1044
1041
|
:root {
|
|
1045
1042
|
/* Title */
|
|
@@ -1076,6 +1073,11 @@
|
|
|
1076
1073
|
--sbb-size-element-l: var(--sbb-size-element-l-medium);
|
|
1077
1074
|
}
|
|
1078
1075
|
}
|
|
1076
|
+
:root {
|
|
1077
|
+
/**
|
|
1078
|
+
* Large (value corresponds to --sbb-breakpoint-large-min)
|
|
1079
|
+
*/
|
|
1080
|
+
}
|
|
1079
1081
|
@media (min-width: 64rem) {
|
|
1080
1082
|
:root {
|
|
1081
1083
|
/* Title */
|
|
@@ -1090,6 +1092,11 @@
|
|
|
1090
1092
|
--sbb-grid-base-gutter-responsive: var(--sbb-layout-base-grid-gutter-responsive-large);
|
|
1091
1093
|
}
|
|
1092
1094
|
}
|
|
1095
|
+
:root {
|
|
1096
|
+
/**
|
|
1097
|
+
* Wide (value corresponds to --sbb-breakpoint-wide-min)
|
|
1098
|
+
*/
|
|
1099
|
+
}
|
|
1093
1100
|
@media (min-width: 80rem) {
|
|
1094
1101
|
:root {
|
|
1095
1102
|
/* Spacing */
|
|
@@ -1100,6 +1107,11 @@
|
|
|
1100
1107
|
--sbb-grid-base-gutter-responsive: var(--sbb-layout-base-grid-gutter-responsive-wide);
|
|
1101
1108
|
}
|
|
1102
1109
|
}
|
|
1110
|
+
:root {
|
|
1111
|
+
/**
|
|
1112
|
+
* Ultra (value corresponds to --sbb-breakpoint-ultra-min)
|
|
1113
|
+
*/
|
|
1114
|
+
}
|
|
1103
1115
|
@media (min-width: 90rem) {
|
|
1104
1116
|
:root {
|
|
1105
1117
|
/* Title */
|
|
@@ -1136,7 +1148,6 @@
|
|
|
1136
1148
|
--sbb-title-margin-block-end-level-4: var(--sbb-spacing-fixed-3x);
|
|
1137
1149
|
--sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-2x);
|
|
1138
1150
|
--sbb-title-margin-block-end-level-6: var(--sbb-spacing-fixed-1x);
|
|
1139
|
-
--sbb-border-radius-infinity: 100000em;
|
|
1140
1151
|
}
|
|
1141
1152
|
:root.sbb-lean {
|
|
1142
1153
|
--sbb-title-font-size-level-1: var(--sbb-font-size-title-2);
|
|
@@ -1154,6 +1165,9 @@
|
|
|
1154
1165
|
--sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-1x);
|
|
1155
1166
|
--sbb-title-margin-block-end-level-6: 0;
|
|
1156
1167
|
}
|
|
1168
|
+
:root {
|
|
1169
|
+
--sbb-border-radius-infinity: 100000em;
|
|
1170
|
+
}
|
|
1157
1171
|
:root:has(sbb-header[size=s]) {
|
|
1158
1172
|
--sbb-header-height: 3.25rem;
|
|
1159
1173
|
}
|
|
@@ -1343,14 +1357,14 @@ sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-button, sbb-form-fi
|
|
|
1343
1357
|
}
|
|
1344
1358
|
}
|
|
1345
1359
|
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1346
|
-
:is(:state(interacted),
|
|
1360
|
+
:is(:state(interacted),[state--interacted]):invalid,
|
|
1347
1361
|
.ng-touched.ng-invalid,
|
|
1348
1362
|
.sbb-invalid)), :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid)) {
|
|
1349
1363
|
--sbb-form-field-border-color: var(--sbb-color-red125);
|
|
1350
1364
|
--sbb-form-field-text-color: var(--sbb-color-red125);
|
|
1351
1365
|
}
|
|
1352
1366
|
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1353
|
-
:is(:state(interacted),
|
|
1367
|
+
:is(:state(interacted),[state--interacted]):invalid,
|
|
1354
1368
|
.ng-touched.ng-invalid,
|
|
1355
1369
|
.sbb-invalid))[negative], :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid))[negative] {
|
|
1356
1370
|
--sbb-form-field-border-color: var(--sbb-color-red-mode-dark);
|
|
@@ -1358,7 +1372,7 @@ sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
|
1358
1372
|
}
|
|
1359
1373
|
@media (forced-colors: active) {
|
|
1360
1374
|
sbb-form-field:has(:is(:is(input, textarea, select):user-invalid,
|
|
1361
|
-
:is(:state(interacted),
|
|
1375
|
+
:is(:state(interacted),[state--interacted]):invalid,
|
|
1362
1376
|
.ng-touched.ng-invalid,
|
|
1363
1377
|
.sbb-invalid)), :is(.ng-submitted, .sbb-show-errors) sbb-form-field:has(:is(:invalid, .ng-invalid)) {
|
|
1364
1378
|
--sbb-form-field-border-color: LinkText !important;
|
|
@@ -1620,11 +1634,11 @@ sbb-toggle:has(:focus-visible) {
|
|
|
1620
1634
|
sbb-dialog[negative] sbb-dialog-actions {
|
|
1621
1635
|
--sbb-dialog-actions-border-color: var(--sbb-color-iron);
|
|
1622
1636
|
}
|
|
1623
|
-
sbb-dialog:is(:state(overflows),
|
|
1637
|
+
sbb-dialog:is(:state(overflows),[state--overflows]) sbb-dialog-actions {
|
|
1624
1638
|
--sbb-dialog-actions-border-color: transparent;
|
|
1625
1639
|
box-shadow: var(--sbb-shadow-elevation-level-9-shadow-2-offset-x) var(--sbb-shadow-elevation-level-9-shadow-2-offset-y) var(--sbb-shadow-elevation-level-9-shadow-2-blur) var(--sbb-shadow-elevation-level-9-shadow-2-spread) var(--sbb-shadow-elevation-level-9-soft-2-color), var(--sbb-shadow-elevation-level-9-shadow-1-offset-x) var(--sbb-shadow-elevation-level-9-shadow-1-offset-y) var(--sbb-shadow-elevation-level-9-shadow-1-blur) var(--sbb-shadow-elevation-level-9-shadow-1-spread) var(--sbb-shadow-elevation-level-9-soft-1-color);
|
|
1626
1640
|
}
|
|
1627
|
-
sbb-dialog[negative]:is(:state(overflows),
|
|
1641
|
+
sbb-dialog[negative]:is(:state(overflows),[state--overflows]) sbb-dialog-actions {
|
|
1628
1642
|
box-shadow: var(--sbb-shadow-elevation-level-9-shadow-2-offset-x) var(--sbb-shadow-elevation-level-9-shadow-2-offset-y) var(--sbb-shadow-elevation-level-9-shadow-2-blur) var(--sbb-shadow-elevation-level-9-shadow-2-spread) var(--sbb-shadow-elevation-level-9-soft-negative-2-color), var(--sbb-shadow-elevation-level-9-shadow-1-offset-x) var(--sbb-shadow-elevation-level-9-shadow-1-offset-y) var(--sbb-shadow-elevation-level-9-shadow-1-blur) var(--sbb-shadow-elevation-level-9-shadow-1-spread) var(--sbb-shadow-elevation-level-9-soft-negative-1-color);
|
|
1629
1643
|
}
|
|
1630
1644
|
|