@sbb-esta/lyne-elements 1.2.0 → 1.2.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/icon.js CHANGED
@@ -1,71 +1,71 @@
1
- import { state as g, property as h, customElement as y } from "lit/decorators.js";
2
- import { css as N, LitElement as I, html as u, nothing as b } from "lit";
1
+ import { state as v, property as f, customElement as w } from "lit/decorators.js";
2
+ import { isServer as y, css as N, LitElement as I, html as c, nothing as p } from "lit";
3
3
  import { unsafeHTML as $ } from "lit/directives/unsafe-html.js";
4
4
  import { until as A } from "lit/directives/until.js";
5
5
  import { hostAttributes as S } from "./core/decorators.js";
6
6
  import { readConfig as L } from "./core/config.js";
7
- const E = (e) => typeof e == "string", _ = (e) => {
8
- if (e.nodeType === 1) {
9
- if (e.nodeName.toLowerCase() === "script")
7
+ const C = (t) => typeof t == "string", g = (t) => {
8
+ if (t.nodeType === 1) {
9
+ if (t.nodeName.toLowerCase() === "script")
10
10
  return !1;
11
- for (let t = 0; t < e.attributes.length; t++) {
12
- const o = e.attributes[t].name;
13
- if (E(o) && o.toLowerCase().indexOf("on") === 0)
11
+ for (let e = 0; e < t.attributes.length; e++) {
12
+ const o = t.attributes[e].name;
13
+ if (C(o) && o.toLowerCase().indexOf("on") === 0)
14
14
  return !1;
15
15
  }
16
- for (let t = 0; t < e.childNodes.length; t++)
17
- if (!_(e.childNodes[t]))
16
+ for (let e = 0; e < t.childNodes.length; e++)
17
+ if (!g(t.childNodes[e]))
18
18
  return !1;
19
19
  }
20
20
  return !0;
21
- }, P = (e, t = !0, o = !1) => {
21
+ }, E = (t, e = !0, o = !1) => {
22
22
  const r = document.createElement("div");
23
- r.innerHTML = e;
23
+ r.innerHTML = t;
24
24
  for (let i = r.childNodes.length - 1; i >= 0; i--)
25
25
  r.childNodes[i].nodeName.toLowerCase() !== "svg" && r.removeChild(r.childNodes[i]);
26
26
  const s = r.firstElementChild;
27
- return s && s.nodeName.toLowerCase() === "svg" && (o && !s.classList.contains("color-immutable") && s.classList.add("color-immutable"), t === !1 || _(s)) ? r.innerHTML : "";
28
- }, m = "https://icons.app.sbb.ch/", C = (/* @__PURE__ */ new Map()).set("default", `${m}icons/`).set("picto", `${m}picto/`), v = /* @__PURE__ */ new Map(), O = (e, t, o) => {
29
- var p;
30
- const r = L().icon ?? {}, s = ((p = r.namespaces) == null ? void 0 : p.get(e)) ?? C.get(e);
31
- if (s === void 0)
27
+ return s && s.nodeName.toLowerCase() === "svg" && (o && !s.classList.contains("color-immutable") && s.classList.add("color-immutable"), e === !1 || g(s)) ? r.innerHTML : "";
28
+ }, b = "https://icons.app.sbb.ch/", P = (/* @__PURE__ */ new Map()).set("default", `${b}icons/`).set("picto", `${b}picto/`), m = /* @__PURE__ */ new Map(), O = (t, e, o) => {
29
+ var h;
30
+ const r = L().icon ?? {}, s = ((h = r.namespaces) == null ? void 0 : h.get(t)) ?? P.get(t);
31
+ if (s == null)
32
32
  throw Error(
33
- `Unable to find the namespace "${e}". Please register your custom namespace.`
33
+ `Unable to find the namespace "${t}". Please register your custom namespace.`
34
34
  );
35
- const i = `${s}${t}.svg`;
36
- let a = v.get(i);
35
+ const i = `${s}${e}.svg`;
36
+ let a = m.get(i);
37
37
  if (!a)
38
- if (typeof fetch < "u" && typeof document < "u")
38
+ if (typeof fetch < "u" && !y)
39
39
  a = (r.interceptor ?? ((l) => l.request()))({
40
- namespace: e,
41
- name: t,
40
+ namespace: t,
41
+ name: e,
42
42
  url: i,
43
- request: () => fetch(i).then((l) => {
44
- if (l.ok)
45
- return l.text().then((c) => (c && (c = P(c, o)), c));
46
- throw new Error("Failed to load icon " + e + ":" + t);
43
+ request: () => fetch(i).then(async (l) => {
44
+ if (!l.ok)
45
+ throw new Error("Failed to load icon " + t + ":" + e);
46
+ return E(await l.text(), o);
47
47
  }).catch((l) => {
48
48
  throw Error(l);
49
49
  })
50
- }), v.set(i, a);
50
+ }), m.set(i, a);
51
51
  else
52
52
  return Promise.resolve("");
53
53
  return a;
54
54
  }, x = N`*,:before,:after{box-sizing:border-box}:host{display:inline-block;line-height:0;-webkit-tap-highlight-color:transparent}:host([data-empty]){--sbb-icon-default-dimension: 0}:host([data-empty][data-namespace=default][name$=-small]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-small)}:host([data-empty][data-namespace=default][name$=-medium]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-medium)}:host([data-empty][data-namespace=default][name$=-large]){--sbb-icon-default-dimension: var(--sbb-size-icon-ui-large)}svg{width:var(--sbb-icon-svg-width, var(--sbb-icon-default-dimension));height:var(--sbb-icon-svg-height, var(--sbb-icon-default-dimension));stroke:var(--sbb-icon-svg-stroke-color);stroke-width:var(--sbb-icon-svg-stroke-width)}svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}svg:not(.color-immutable) [stroke]:not([stroke=none]){stroke:currentcolor}svg:not(.color-immutable)>:where(path,polygon,polyline):where(:not([stroke]):not([fill])),svg:not(.color-immutable) :where(:not([stroke]):not([fill])) :where(path,polygon,polyline):where(:not([stroke]):not([fill])){fill:currentcolor}`;
55
- var z = Object.defineProperty, M = Object.getOwnPropertyDescriptor, d = (e, t, o, r) => {
56
- for (var s = r > 1 ? void 0 : r ? M(t, o) : t, i = e.length - 1, a; i >= 0; i--)
57
- (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
58
- return r && s && z(t, o, s), s;
55
+ var z = Object.defineProperty, M = Object.getOwnPropertyDescriptor, u = (t, e, o, r) => {
56
+ for (var s = r > 1 ? void 0 : r ? M(e, o) : e, i = t.length - 1, a; i >= 0; i--)
57
+ (a = t[i]) && (s = (r ? a(e, o, s) : a(s)) || s);
58
+ return r && s && z(e, o, s), s;
59
59
  };
60
60
  let n = class extends I {
61
61
  constructor() {
62
62
  super(...arguments), this._svgNamespace = n._defaultNamespace, this.noSanitize = !1;
63
63
  }
64
- async loadSvgIcon(e) {
65
- if (!e)
64
+ async loadSvgIcon(t) {
65
+ if (!t)
66
66
  return;
67
- const [t, o] = this._splitIconName(e);
68
- this._svgNamespace = t, this.setAttribute("data-namespace", this._svgNamespace);
67
+ const [e, o] = this._splitIconName(t);
68
+ this._svgNamespace = e, this.setAttribute("data-namespace", this._svgNamespace);
69
69
  const r = this.fetchSvgIcon(this._svgNamespace, o);
70
70
  this._svgIcon = r.then((s) => $(s));
71
71
  try {
@@ -74,101 +74,101 @@ let n = class extends I {
74
74
  this.toggleAttribute("data-empty", !0);
75
75
  }
76
76
  }
77
- async fetchSvgIcon(e, t) {
78
- return await O(e, t, !this.noSanitize);
77
+ async fetchSvgIcon(t, e) {
78
+ return await O(t, e, !this.noSanitize);
79
79
  }
80
- _splitIconName(e) {
81
- if (!e)
80
+ _splitIconName(t) {
81
+ if (!t)
82
82
  return ["", ""];
83
- const t = e.split(":");
84
- switch (t.length) {
83
+ const e = t.split(":");
84
+ switch (e.length) {
85
85
  case 1:
86
- return [n._defaultNamespace, t[0]];
86
+ return [n._defaultNamespace, e[0]];
87
87
  case 2:
88
- return t;
88
+ return e;
89
89
  default:
90
- throw Error(`Invalid icon name: "${e}"`);
90
+ throw Error(`Invalid icon name: "${t}"`);
91
91
  }
92
92
  }
93
- firstUpdated(e) {
94
- super.firstUpdated(e), this.setAttribute("role", this.getAttribute("role") ?? "img");
93
+ firstUpdated(t) {
94
+ super.firstUpdated(t), this.setAttribute("role", this.getAttribute("role") ?? "img");
95
95
  }
96
96
  render() {
97
- return u`<span class="sbb-icon-inner"
97
+ return c`<span class="sbb-icon-inner"
98
98
  >${A(
99
99
  this._svgIcon,
100
100
  // To reserve space, we need an empty svg to apply dimension to.
101
- u`<svg width="0" height="0"></svg>`
101
+ c`<svg width="0" height="0"></svg>`
102
102
  )}</span
103
103
  >`;
104
104
  }
105
105
  };
106
106
  n.styles = x;
107
107
  n._defaultNamespace = "default";
108
- d([
109
- g()
108
+ u([
109
+ v()
110
110
  ], n.prototype, "_svgNamespace", 2);
111
- d([
112
- g()
111
+ u([
112
+ v()
113
113
  ], n.prototype, "_svgIcon", 2);
114
- d([
115
- h({ attribute: "no-sanitize", type: Boolean })
114
+ u([
115
+ f({ attribute: "no-sanitize", type: Boolean })
116
116
  ], n.prototype, "noSanitize", 2);
117
- n = d([
117
+ n = u([
118
118
  S({
119
119
  "data-namespace": n._defaultNamespace,
120
120
  "data-empty": ""
121
121
  })
122
122
  ], n);
123
- var U = Object.defineProperty, j = Object.getOwnPropertyDescriptor, w = (e, t, o, r) => {
124
- for (var s = r > 1 ? void 0 : r ? j(t, o) : t, i = e.length - 1, a; i >= 0; i--)
125
- (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
126
- return r && s && U(t, o, s), s;
123
+ var U = Object.defineProperty, j = Object.getOwnPropertyDescriptor, _ = (t, e, o, r) => {
124
+ for (var s = r > 1 ? void 0 : r ? j(e, o) : e, i = t.length - 1, a; i >= 0; i--)
125
+ (a = t[i]) && (s = (r ? a(e, o, s) : a(s)) || s);
126
+ return r && s && U(e, o, s), s;
127
127
  };
128
- let f = class extends n {
128
+ let d = class extends n {
129
129
  constructor() {
130
130
  super(...arguments), this._defaultAriaLabel = "";
131
131
  }
132
- async fetchSvgIcon(e, t) {
133
- return this.getAttribute("aria-label") === this._defaultAriaLabel && this.removeAttribute("aria-label"), this._defaultAriaLabel = `Icon ${t.replace(/-/g, " ")}`, this.getAttribute("aria-hidden") === "false" && !this.hasAttribute("aria-label") && t && this.setAttribute("aria-label", this._defaultAriaLabel), super.fetchSvgIcon(e, t);
132
+ async fetchSvgIcon(t, e) {
133
+ return this.getAttribute("aria-label") === this._defaultAriaLabel && this.removeAttribute("aria-label"), this._defaultAriaLabel = `Icon ${e.replace(/-/g, " ")}`, this.getAttribute("aria-hidden") === "false" && !this.hasAttribute("aria-label") && e && this.setAttribute("aria-label", this._defaultAriaLabel), super.fetchSvgIcon(t, e);
134
134
  }
135
- willUpdate(e) {
136
- super.willUpdate(e), e.has("name") && this.loadSvgIcon(this.name);
135
+ willUpdate(t) {
136
+ super.willUpdate(t), t.has("name") && this.loadSvgIcon(this.name);
137
137
  }
138
- firstUpdated(e) {
139
- super.firstUpdated(e), this.hasAttribute("aria-hidden") || this.setAttribute("aria-hidden", "true");
138
+ firstUpdated(t) {
139
+ super.firstUpdated(t), this.hasAttribute("aria-hidden") || this.setAttribute("aria-hidden", "true");
140
140
  }
141
141
  };
142
- w([
143
- h({ reflect: !0 })
144
- ], f.prototype, "name", 2);
145
- f = w([
146
- y("sbb-icon")
147
- ], f);
148
- var T = Object.defineProperty, q = (e, t, o, r) => {
149
- for (var s = void 0, i = e.length - 1, a; i >= 0; i--)
150
- (a = e[i]) && (s = a(t, o, s) || s);
151
- return s && T(t, o, s), s;
142
+ _([
143
+ f({ reflect: !0 })
144
+ ], d.prototype, "name", 2);
145
+ d = _([
146
+ w("sbb-icon")
147
+ ], d);
148
+ var T = Object.defineProperty, q = (t, e, o, r) => {
149
+ for (var s = void 0, i = t.length - 1, a; i >= 0; i--)
150
+ (a = t[i]) && (s = a(e, o, s) || s);
151
+ return s && T(e, o, s), s;
152
152
  };
153
- const J = (e) => {
154
- class t extends e {
153
+ const J = (t) => {
154
+ class e extends t {
155
155
  renderIconSlot(r) {
156
- return u`
156
+ return c`
157
157
  <slot name="icon">
158
- ${this.iconName ? u`<sbb-icon name=${this.iconName} class=${r || b}></sbb-icon>` : b}
158
+ ${this.iconName ? c`<sbb-icon name=${this.iconName} class=${r || p}></sbb-icon>` : p}
159
159
  </slot>
160
160
  `;
161
161
  }
162
162
  }
163
163
  return q([
164
- h({ attribute: "icon-name", reflect: !0 })
165
- ], t.prototype, "iconName"), t;
164
+ f({ attribute: "icon-name", reflect: !0 })
165
+ ], e.prototype, "iconName"), e;
166
166
  };
167
167
  export {
168
168
  n as SbbIconBase,
169
- f as SbbIconElement,
169
+ d as SbbIconElement,
170
170
  J as SbbIconNameMixin,
171
171
  O as getSvgContent,
172
- _ as isValid,
173
- P as validateContent
172
+ g as isValid,
173
+ E as validateContent
174
174
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
@@ -15,8 +15,8 @@ export declare class SbbToggleCheckElement extends SbbToggleCheckElement_base {
15
15
  static readonly events: {
16
16
  readonly didChange: "didChange";
17
17
  };
18
- /** Size variant, either m or s. */
19
- size: 's' | 'm';
18
+ /** Size variant, either m, s or xs. */
19
+ size: 'xs' | 's' | 'm';
20
20
  /** The svg name for the true state - default -> 'tick-small' */
21
21
  iconName: string;
22
22
  /** The label position relative to the toggle. Defaults to 'after' */
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-check.d.ts","sourceRoot":"","sources":["../../../src/elements/toggle-check/toggle-check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AASvC;;;;;;;;GAQG;AACH,qBACa,qBAAsB,SAAQ,0BAE1C;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;MAElB;IAEX,mCAAmC;IACC,IAAI,EAAE,GAAG,GAAG,GAAG,CAAO;IAE1D,gEAAgE;IACV,QAAQ,SAAgB;IAE9E,qEAAqE;IAE9D,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAW;;cAO3B,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;cASxE,MAAM,IAAI,cAAc;CAgB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
1
+ {"version":3,"file":"toggle-check.d.ts","sourceRoot":"","sources":["../../../src/elements/toggle-check/toggle-check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AASvC;;;;;;;;GAQG;AACH,qBACa,qBAAsB,SAAQ,0BAE1C;IACC,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;MAElB;IAEX,uCAAuC;IACH,IAAI,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,CAAO;IAEjE,gEAAgE;IACV,QAAQ,SAAgB;IAE9E,qEAAqE;IAE9D,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAW;;cAO3B,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;cASxE,MAAM,IAAI,cAAc;CAgB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
@@ -1,13 +1,13 @@
1
- import { css as v, LitElement as h, html as t, nothing as d } from "lit";
1
+ import { css as d, LitElement as v, html as t, nothing as h } from "lit";
2
2
  import { property as n, customElement as u } from "lit/decorators.js";
3
3
  import { SbbDisabledMixin as k, SbbNegativeMixin as x } from "./core/mixins.js";
4
- const m = v`*,:before,:after{box-sizing:border-box}:host{--sbb-visual-checkbox-dimension: var(--sbb-size-icon-ui-small);--sbb-visual-checkbox-background-color: var(--sbb-color-white);--sbb-visual-checkbox-border-color: var(--sbb-color-smoke);--sbb-visual-checkbox-border-style: solid;--sbb-visual-checkbox-border-width: var(--sbb-border-width-1x);--sbb-visual-checkbox-selection-color: var(--sbb-color-red);--sbb-visual-checkbox-cursor: pointer;display:block}@media (forced-colors: active){:host{--sbb-visual-checkbox-selection-color: Canvas;--sbb-visual-checkbox-border-width: 0}}:host([negative]){--sbb-visual-checkbox-background-color: var(--sbb-color-midnight);--sbb-visual-checkbox-border-color: var(--sbb-color-smoke);--sbb-visual-checkbox-selection-color: var(--sbb-color-red)}@media (forced-colors: active){:host([negative]){--sbb-visual-checkbox-selection-color: Canvas}}:host([disabled]){--sbb-visual-checkbox-background-color: var(--sbb-color-milk);--sbb-visual-checkbox-border-color: var(--sbb-color-smoke);--sbb-visual-checkbox-border-style: dashed;--sbb-visual-checkbox-selection-color: var(--sbb-color-charcoal);--sbb-visual-checkbox-cursor: default}@media (forced-colors: active){:host([disabled]){--sbb-visual-checkbox-selection-color: Canvas}}:host([disabled][negative]){--sbb-visual-checkbox-background-color: var(--sbb-color-charcoal);--sbb-visual-checkbox-border-color: var(--sbb-color-smoke);--sbb-visual-checkbox-selection-color: var(--sbb-color-white)}@media (forced-colors: active){:host([disabled][negative]){--sbb-visual-checkbox-selection-color: Canvas}}@media (forced-colors: active){:host([indeterminate]){--sbb-visual-checkbox-selection-color: ButtonBorder}}@media (forced-colors: active){:host([indeterminate][disabled]){--sbb-visual-checkbox-selection-color: GrayText}}.sbb-visual-checkbox{position:relative;display:flex;align-items:center;justify-content:center;width:var(--sbb-visual-checkbox-dimension);height:var(--sbb-visual-checkbox-dimension);border-radius:var(--sbb-border-radius-2x);border:var(--sbb-visual-checkbox-border-width) var(--sbb-visual-checkbox-border-style) var(--sbb-visual-checkbox-border-color);background-color:var(--sbb-visual-checkbox-background-color);cursor:var(--sbb-visual-checkbox-cursor)}@media (forced-colors: active){.sbb-visual-checkbox{outline:var(--sbb-border-width-2x) solid ButtonBorder;outline-offset:calc(-1 * var(--sbb-border-width-2x))}:host([checked]) .sbb-visual-checkbox{background-color:HighLight;outline:none}:host([disabled]) .sbb-visual-checkbox{outline-color:GrayText}:host([checked][disabled]) .sbb-visual-checkbox{background-color:GrayText}}.sbb-visual-checkbox__icon{display:inline-flex;width:var(--sbb-visual-checkbox-dimension);height:var(--sbb-visual-checkbox-dimension)}.sbb-visual-checkbox__icon svg{margin:auto}.sbb-visual-checkbox__icon path{stroke:var(--sbb-visual-checkbox-selection-color)}`;
4
+ const m = d`*,:before,:after{box-sizing:border-box}:host{--sbb-visual-checkbox-dimension: var(--sbb-size-icon-ui-small);--sbb-visual-checkbox-background-color: var(--sbb-color-white);--sbb-visual-checkbox-border-color: var(--sbb-color-smoke);--sbb-visual-checkbox-border-style: solid;--sbb-visual-checkbox-border-width: var(--sbb-border-width-1x);--sbb-visual-checkbox-selection-color: var(--sbb-color-red);--sbb-visual-checkbox-cursor: pointer;display:block}@media (forced-colors: active){:host{--sbb-visual-checkbox-selection-color: Canvas;--sbb-visual-checkbox-border-width: 0}}:host([negative]){--sbb-visual-checkbox-background-color: var(--sbb-color-midnight);--sbb-visual-checkbox-border-color: var(--sbb-color-smoke);--sbb-visual-checkbox-selection-color: var(--sbb-color-red)}@media (forced-colors: active){:host([negative]){--sbb-visual-checkbox-selection-color: Canvas}}:host([disabled]){--sbb-visual-checkbox-background-color: var(--sbb-color-milk);--sbb-visual-checkbox-border-color: var(--sbb-color-smoke);--sbb-visual-checkbox-border-style: dashed;--sbb-visual-checkbox-selection-color: var(--sbb-color-charcoal);--sbb-visual-checkbox-cursor: default}@media (forced-colors: active){:host([disabled]){--sbb-visual-checkbox-selection-color: Canvas}}:host([disabled][negative]){--sbb-visual-checkbox-background-color: var(--sbb-color-charcoal);--sbb-visual-checkbox-border-color: var(--sbb-color-smoke);--sbb-visual-checkbox-selection-color: var(--sbb-color-white)}@media (forced-colors: active){:host([disabled][negative]){--sbb-visual-checkbox-selection-color: Canvas}}@media (forced-colors: active){:host([indeterminate]){--sbb-visual-checkbox-selection-color: ButtonBorder}}@media (forced-colors: active){:host([indeterminate][disabled]){--sbb-visual-checkbox-selection-color: GrayText}}.sbb-visual-checkbox{position:relative;display:flex;align-items:center;justify-content:center;width:var(--sbb-visual-checkbox-dimension);height:var(--sbb-visual-checkbox-dimension);border-radius:var(--sbb-border-radius-2x);border:var(--sbb-visual-checkbox-border-width) var(--sbb-visual-checkbox-border-style) var(--sbb-visual-checkbox-border-color);background-color:var(--sbb-visual-checkbox-background-color);cursor:var(--sbb-visual-checkbox-cursor)}@media (forced-colors: active){.sbb-visual-checkbox{outline:var(--sbb-border-width-2x) solid ButtonBorder;outline-offset:calc(-1 * var(--sbb-border-width-2x))}:host([checked]:not([indeterminate])) .sbb-visual-checkbox{background-color:HighLight;outline:none}:host([disabled]) .sbb-visual-checkbox{outline-color:GrayText}:host([checked][disabled]:not([indeterminate])) .sbb-visual-checkbox{background-color:GrayText}}.sbb-visual-checkbox__icon{display:inline-flex;width:var(--sbb-visual-checkbox-dimension);height:var(--sbb-visual-checkbox-dimension)}.sbb-visual-checkbox__icon svg{margin:auto}.sbb-visual-checkbox__icon path{stroke:var(--sbb-visual-checkbox-selection-color)}`;
5
5
  var p = Object.defineProperty, g = Object.getOwnPropertyDescriptor, a = (l, s, c, b) => {
6
6
  for (var o = b > 1 ? void 0 : b ? g(s, c) : s, r = l.length - 1, i; r >= 0; r--)
7
7
  (i = l[r]) && (o = (b ? i(s, c, o) : i(o)) || o);
8
8
  return b && o && p(s, c, o), o;
9
9
  };
10
- let e = class extends k(x(h)) {
10
+ let e = class extends k(x(v)) {
11
11
  constructor() {
12
12
  super(...arguments), this.checked = !1, this.indeterminate = !1;
13
13
  }
@@ -28,7 +28,7 @@ let e = class extends k(x(h)) {
28
28
  stroke-linecap="round"
29
29
  stroke-linejoin="round"
30
30
  />
31
- </svg>` : d}
31
+ </svg>` : h}
32
32
  </span>
33
33
  </span>
34
34
  `;