@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/core/mixins.js CHANGED
@@ -1,16 +1,16 @@
1
- import { property as o, state as _ } from "lit/decorators.js";
2
- import { defaultConverter as b, html as l, nothing as h, css as y } from "lit";
3
- import { hostAttributes as C } from "./decorators.js";
4
- import { preventScrollOnSpacebarPress as u, forwardEventToHost as x, EventEmitter as k } from "./eventing.js";
5
- import { getLocalName as p } from "./dom.js";
1
+ import { property as o, state as y } from "lit/decorators.js";
2
+ import { defaultConverter as u, html as b, nothing as p, css as x } from "lit";
3
+ import { hostAttributes as k } from "./decorators.js";
4
+ import { preventScrollOnSpacebarPress as v, EventEmitter as w } from "./eventing.js";
5
+ import { getLocalName as f } from "./dom.js";
6
6
  import "../screen-reader-only.js";
7
- var w = Object.defineProperty, S = Object.getOwnPropertyDescriptor, E = (n, r, s, t) => {
8
- for (var e = S(r, s), i = n.length - 1, a; i >= 0; i--)
9
- (a = n[i]) && (e = a(r, s, e) || e);
10
- return e && w(r, s, e), e;
7
+ var S = Object.defineProperty, E = Object.getOwnPropertyDescriptor, P = (n, s, r, t) => {
8
+ for (var e = E(s, r), i = n.length - 1, a; i >= 0; i--)
9
+ (a = n[i]) && (e = a(s, r, e) || e);
10
+ return e && S(s, r, e), e;
11
11
  };
12
- const g = (n) => {
13
- class r extends n {
12
+ const C = (n) => {
13
+ class s extends n {
14
14
  constructor() {
15
15
  super(...arguments), this._disabled = !1;
16
16
  }
@@ -28,24 +28,24 @@ const g = (n) => {
28
28
  return !1;
29
29
  }
30
30
  }
31
- return E([
31
+ return P([
32
32
  o({ reflect: !0, type: Boolean })
33
- ], r.prototype, "disabled"), r;
34
- }, G = (n) => {
35
- class r extends g(n) {
33
+ ], s.prototype, "disabled"), s;
34
+ }, J = (n) => {
35
+ class s extends C(n) {
36
36
  willUpdate(t) {
37
37
  super.willUpdate(t), t.has("disabled") && (this.disabled ? (this.setAttribute("aria-disabled", "true"), this.removeAttribute("tabindex")) : (this.removeAttribute("aria-disabled"), this.setAttribute("tabindex", "0")));
38
38
  }
39
39
  }
40
- return r;
40
+ return s;
41
41
  };
42
- var P = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, d = (n, r, s, t) => {
43
- for (var e = t > 1 ? void 0 : t ? $(r, s) : r, i = n.length - 1, a; i >= 0; i--)
44
- (a = n[i]) && (e = (t ? a(r, s, e) : a(e)) || e);
45
- return t && e && P(r, s, e), e;
42
+ var $ = Object.defineProperty, R = Object.getOwnPropertyDescriptor, c = (n, s, r, t) => {
43
+ for (var e = t > 1 ? void 0 : t ? R(s, r) : s, i = n.length - 1, a; i >= 0; i--)
44
+ (a = n[i]) && (e = (t ? a(s, r, e) : a(e)) || e);
45
+ return t && e && $(s, r, e), e;
46
46
  };
47
- const R = (n) => {
48
- const s = class s extends n {
47
+ const A = (n) => {
48
+ const r = class r extends n {
49
49
  constructor() {
50
50
  super(...arguments), this._value = null, this.internals = this.attachInternals(), this.formDisabled = !1;
51
51
  }
@@ -133,23 +133,23 @@ const R = (n) => {
133
133
  this.internals.setFormValue(this.value);
134
134
  }
135
135
  };
136
- s.formAssociated = !0;
137
- let r = s;
138
- return d([
136
+ r.formAssociated = !0;
137
+ let s = r;
138
+ return c([
139
139
  o()
140
- ], r.prototype, "name", 1), d([
140
+ ], s.prototype, "name", 1), c([
141
141
  o()
142
- ], r.prototype, "value", 1), d([
143
- _()
144
- ], r.prototype, "formDisabled", 2), r;
142
+ ], s.prototype, "value", 1), c([
143
+ y()
144
+ ], s.prototype, "formDisabled", 2), s;
145
145
  };
146
- var A = Object.defineProperty, O = Object.getOwnPropertyDescriptor, q = (n, r, s, t) => {
147
- for (var e = O(r, s), i = n.length - 1, a; i >= 0; i--)
148
- (a = n[i]) && (e = a(r, s, e) || e);
149
- return e && A(r, s, e), e;
146
+ var O = Object.defineProperty, q = Object.getOwnPropertyDescriptor, L = (n, s, r, t) => {
147
+ for (var e = q(s, r), i = n.length - 1, a; i >= 0; i--)
148
+ (a = n[i]) && (e = a(s, r, e) || e);
149
+ return e && O(s, r, e), e;
150
150
  };
151
- const L = (n) => {
152
- class r extends n {
151
+ const D = (n) => {
152
+ class s extends n {
153
153
  constructor() {
154
154
  super(...arguments), this._required = !1;
155
155
  }
@@ -170,40 +170,40 @@ const L = (n) => {
170
170
  return !1;
171
171
  }
172
172
  }
173
- return q([
173
+ return L([
174
174
  o({ reflect: !0, type: Boolean })
175
- ], r.prototype, "required"), r;
175
+ ], s.prototype, "required"), s;
176
176
  };
177
- var D = Object.defineProperty, M = Object.getOwnPropertyDescriptor, v = (n, r, s, t) => {
178
- for (var e = t > 1 ? void 0 : t ? M(r, s) : r, i = n.length - 1, a; i >= 0; i--)
179
- (a = n[i]) && (e = (t ? a(r, s, e) : a(e)) || e);
180
- return t && e && D(r, s, e), e;
177
+ var M = Object.defineProperty, U = Object.getOwnPropertyDescriptor, m = (n, s, r, t) => {
178
+ for (var e = t > 1 ? void 0 : t ? U(s, r) : s, i = n.length - 1, a; i >= 0; i--)
179
+ (a = n[i]) && (e = (t ? a(s, r, e) : a(e)) || e);
180
+ return t && e && M(s, r, e), e;
181
181
  };
182
- const J = (n) => {
183
- let r = class extends g(L(R(n))) {
182
+ const Q = (n) => {
183
+ let s = class extends C(D(A(n))) {
184
184
  constructor() {
185
- super(), this._attributeMutationBlocked = !1, this._checked = !1, this._handleKeyboardInteraction = (s) => {
186
- s.key === " " && this._handleUserInteraction();
185
+ super(), this._attributeMutationBlocked = !1, this._checked = !1, this._handleKeyboardInteraction = (r) => {
186
+ r.key === " " && this._handleUserInteraction();
187
187
  }, this._handleUserInteraction = () => {
188
- var s;
189
- this.disabled || ((s = this.withUserInteraction) == null || s.call(this), this.checked = !this.checked, this._attributeMutationBlocked = !0, this.dispatchEvent(new InputEvent("input", { composed: !0, bubbles: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 })), this.dispatchEvent(new CustomEvent("didChange", { bubbles: !0 })));
188
+ var r;
189
+ this.disabled || ((r = this.withUserInteraction) == null || r.call(this), this.checked = !this.checked, this._attributeMutationBlocked = !0, this.dispatchEvent(new InputEvent("input", { composed: !0, bubbles: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 })), this.dispatchEvent(new CustomEvent("didChange", { bubbles: !0 })));
190
190
  }, this.internals.role = "checkbox";
191
191
  }
192
- set checked(s) {
193
- const t = typeof s == "object" ? s.attribute : !1;
194
- t && (s = s.value), this.hasUpdated && !t && (this._attributeMutationBlocked = !0), this._checked = !!s, this.updateFormValue();
192
+ set checked(r) {
193
+ const t = typeof r == "object" ? r.attribute : !1;
194
+ t && (r = r.value), this.hasUpdated && !t && (this._attributeMutationBlocked = !0), this._checked = !!r, this.updateFormValue();
195
195
  }
196
196
  get checked() {
197
197
  return this._checked;
198
198
  }
199
199
  connectedCallback() {
200
- super.connectedCallback(), this.addEventListener("click", this._handleUserInteraction), this.addEventListener("keydown", u), this.addEventListener("keyup", this._handleKeyboardInteraction);
200
+ super.connectedCallback(), this.addEventListener("click", this._handleUserInteraction), this.addEventListener("keydown", v), this.addEventListener("keyup", this._handleKeyboardInteraction);
201
201
  }
202
202
  disconnectedCallback() {
203
- super.disconnectedCallback(), this.removeEventListener("click", this._handleUserInteraction), this.removeEventListener("keydown", u), this.removeEventListener("keyup", this._handleKeyboardInteraction);
203
+ super.disconnectedCallback(), this.removeEventListener("click", this._handleUserInteraction), this.removeEventListener("keydown", v), this.removeEventListener("keyup", this._handleKeyboardInteraction);
204
204
  }
205
- attributeChangedCallback(s, t, e) {
206
- (s !== "checked" || !this._attributeMutationBlocked) && super.attributeChangedCallback(s, t, e);
205
+ attributeChangedCallback(r, t, e) {
206
+ (r !== "checked" || !this._attributeMutationBlocked) && super.attributeChangedCallback(r, t, e);
207
207
  }
208
208
  /**
209
209
  * Is called whenever the form is being reset.
@@ -222,54 +222,48 @@ const J = (n) => {
222
222
  *
223
223
  * @internal
224
224
  */
225
- formStateRestoreCallback(s, t) {
226
- s && (this.checked = s === "true");
225
+ formStateRestoreCallback(r, t) {
226
+ r && (this.checked = r === "true");
227
227
  }
228
228
  updateFormValue() {
229
229
  this.checked ? this.internals.setFormValue(this.value, `${this.checked}`) : this.internals.setFormValue(null);
230
230
  }
231
231
  };
232
- return v([
232
+ return m([
233
233
  o({
234
234
  type: Boolean,
235
235
  converter: {
236
- ...b,
236
+ ...u,
237
237
  // We need to pass information to the setter so that we know it was called by attribute change.
238
- fromAttribute: (s, t) => {
238
+ fromAttribute: (r, t) => {
239
239
  var i, a;
240
- return { value: (a = (i = b).fromAttribute) == null ? void 0 : a.call(i, s, t), attribute: !0 };
240
+ return { value: (a = (i = u).fromAttribute) == null ? void 0 : a.call(i, r, t), attribute: !0 };
241
241
  }
242
242
  }
243
243
  })
244
- ], r.prototype, "checked", 1), r = v([
245
- C({
244
+ ], s.prototype, "checked", 1), s = m([
245
+ k({
246
246
  tabindex: "0"
247
247
  })
248
- ], r), r;
249
- }, U = (n) => {
250
- class r extends n {
248
+ ], s), s;
249
+ }, I = (n) => {
250
+ class s extends n {
251
251
  constructor(...t) {
252
252
  var e;
253
253
  if (super(...t), this._hydrationComplete = new Promise(
254
254
  (i) => this._resolveHydration = i
255
- ), this._handleBeforeHydrationSlotchange = (i) => {
256
- if (!this._hydrationRequired)
257
- return;
258
- i.stopImmediatePropagation();
259
- const a = i.target;
260
- this.hydrationComplete.then(() => x(i, a));
261
- }, this._hydrationRequired = !!this.shadowRoot, !this._hydrationRequired)
255
+ ), this._hydrationRequired = !!this.shadowRoot, !this._hydrationRequired)
262
256
  this._resolveHydration(!1);
263
257
  else {
264
- const i = (e = this.shadowRoot) == null ? void 0 : e.querySelectorAll("slot");
265
- i != null && i.length && (i.forEach(
266
- (a) => a.addEventListener("slotchange", this._handleBeforeHydrationSlotchange, {
267
- capture: !0
268
- })
258
+ const i = (l) => {
259
+ this._hydrationRequired && l.stopImmediatePropagation();
260
+ }, a = { capture: !0 }, d = (e = this.shadowRoot) == null ? void 0 : e.querySelectorAll("slot");
261
+ d != null && d.length && (d.forEach(
262
+ (l) => l.addEventListener("slotchange", i, a)
269
263
  ), this.hydrationComplete.then(
270
- () => i.forEach(
271
- (a) => a.removeEventListener("slotchange", this._handleBeforeHydrationSlotchange)
272
- )
264
+ () => d.forEach((l) => {
265
+ l.removeEventListener("slotchange", i, a), l.assignedNodes().length && l.dispatchEvent(new Event("slotchange", { bubbles: !0 }));
266
+ })
273
267
  ));
274
268
  }
275
269
  }
@@ -292,23 +286,23 @@ const J = (n) => {
292
286
  super.update(t), this._hydrationRequired && (this._hydrationRequired = !1, this._resolveHydration(!0));
293
287
  }
294
288
  }
295
- return r;
289
+ return s;
296
290
  };
297
- var B = Object.defineProperty, I = (n, r, s, t) => {
291
+ var N = Object.defineProperty, B = (n, s, r, t) => {
298
292
  for (var e = void 0, i = n.length - 1, a; i >= 0; i--)
299
- (a = n[i]) && (e = a(r, s, e) || e);
300
- return e && B(r, s, e), e;
293
+ (a = n[i]) && (e = a(s, r, e) || e);
294
+ return e && N(s, r, e), e;
301
295
  };
302
- const f = "data-ssr-child-count", m = "li", Q = (n) => {
303
- class r extends U(n) {
296
+ const _ = "data-ssr-child-count", g = "li", W = (n) => {
297
+ class s extends I(n) {
304
298
  constructor() {
305
299
  super(...arguments), this.listChildren = [], this._handleSlotchange = () => {
306
300
  const t = Array.from(this.children ?? []).filter(
307
301
  (e) => this.listChildLocalNames.includes(e.localName)
308
302
  );
309
303
  t.length === this.listChildren.length && this.listChildren.every((e, i) => t[i] === e) || (this.listChildren.filter((e) => !t.includes(e)).forEach((e) => e.removeAttribute("slot")), this.listChildren = t, this.listChildren.forEach(
310
- (e, i) => e.setAttribute("slot", `${m}-${i}`)
311
- ), this.removeAttribute(f));
304
+ (e, i) => e.setAttribute("slot", `${g}-${i}`)
305
+ ), this.removeAttribute(_));
312
306
  };
313
307
  }
314
308
  connectedCallback() {
@@ -330,17 +324,17 @@ const f = "data-ssr-child-count", m = "li", Q = (n) => {
330
324
  */
331
325
  renderList(t = {}) {
332
326
  const e = this.listSlotNames();
333
- return e.length >= 2 ? l`
327
+ return e.length >= 2 ? b`
334
328
  <ul
335
- class=${t.class || (this.localName ?? p(this))}
336
- aria-label=${t.ariaLabel || h}
337
- aria-labelledby=${t.ariaLabelledby || h}
329
+ class=${t.class || (this.localName ?? f(this))}
330
+ aria-label=${t.ariaLabel || p}
331
+ aria-labelledby=${t.ariaLabelledby || p}
338
332
  >
339
- ${e.map((i) => l`<li><slot name=${i}></slot></li>`)}
333
+ ${e.map((i) => b`<li><slot name=${i}></slot></li>`)}
340
334
  </ul>
341
335
  ${this.renderHiddenSlot()}
342
- ` : e.length === 1 ? l`<sbb-screen-reader-only>${t.ariaLabel}</sbb-screen-reader-only>
343
- <span class=${t.class || (this.localName ?? p(this))}>
336
+ ` : e.length === 1 ? b`<sbb-screen-reader-only>${t.ariaLabel}</sbb-screen-reader-only>
337
+ <span class=${t.class || (this.localName ?? f(this))}>
344
338
  <span><slot name=${e[0]}></slot></span>
345
339
  </span>
346
340
  ${this.renderHiddenSlot()} ` : this.renderHiddenSlot();
@@ -355,7 +349,7 @@ const f = "data-ssr-child-count", m = "li", Q = (n) => {
355
349
  * children to be passed via the `data-ssr-child-count` attribute value.
356
350
  */
357
351
  listSlotNames() {
358
- return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(f) ?? 0) })).map((e, i) => `${m}-${i}`);
352
+ return (this.listChildren.length ? this.listChildren : Array.from({ length: +(this.getAttribute(_) ?? 0) })).map((e, i) => `${g}-${i}`);
359
353
  }
360
354
  /**
361
355
  * Returns a hidden slot, which is intended as the children change detection.
@@ -363,38 +357,38 @@ const f = "data-ssr-child-count", m = "li", Q = (n) => {
363
357
  * the slotchange event, which can be used to assign it to the appropriate named slot.
364
358
  */
365
359
  renderHiddenSlot() {
366
- return l`<span hidden><slot></slot></span>`;
360
+ return b`<span hidden><slot></slot></span>`;
367
361
  }
368
362
  }
369
- return I([
370
- _()
371
- ], r.prototype, "listChildren"), r;
363
+ return B([
364
+ y()
365
+ ], s.prototype, "listChildren"), s;
372
366
  };
373
- var N = Object.defineProperty, H = (n, r, s, t) => {
367
+ var V = Object.defineProperty, j = (n, s, r, t) => {
374
368
  for (var e = void 0, i = n.length - 1, a; i >= 0; i--)
375
- (a = n[i]) && (e = a(r, s, e) || e);
376
- return e && N(r, s, e), e;
369
+ (a = n[i]) && (e = a(s, r, e) || e);
370
+ return e && V(s, r, e), e;
377
371
  };
378
- const W = (n) => {
379
- class r extends n {
372
+ const Y = (n) => {
373
+ class s extends n {
380
374
  constructor() {
381
375
  super(...arguments), this.negative = !1;
382
376
  }
383
377
  }
384
- return H([
378
+ return j([
385
379
  o({ reflect: !0, type: Boolean })
386
- ], r.prototype, "negative"), r;
380
+ ], s.prototype, "negative"), s;
387
381
  };
388
- var V = Object.defineProperty, c = (n, r, s, t) => {
382
+ var H = Object.defineProperty, h = (n, s, r, t) => {
389
383
  for (var e = void 0, i = n.length - 1, a; i >= 0; i--)
390
- (a = n[i]) && (e = a(r, s, e) || e);
391
- return e && V(r, s, e), e;
384
+ (a = n[i]) && (e = a(s, r, e) || e);
385
+ return e && H(s, r, e), e;
392
386
  };
393
- const Y = (n) => {
387
+ const Z = (n) => {
394
388
  var t;
395
- const r = (t = class extends n {
389
+ const s = (t = class extends n {
396
390
  constructor() {
397
- super(...arguments), this.color = "white", this.borderless = !1, this._panelConnected = new k(
391
+ super(...arguments), this.color = "white", this.borderless = !1, this._panelConnected = new w(
398
392
  this,
399
393
  t.events.panelConnected,
400
394
  { bubbles: !0 }
@@ -406,15 +400,15 @@ const Y = (n) => {
406
400
  }, t.events = {
407
401
  panelConnected: "panelConnected"
408
402
  }, t);
409
- return c([
403
+ return h([
410
404
  o()
411
- ], r.prototype, "color"), c([
405
+ ], s.prototype, "color"), h([
412
406
  o({ reflect: !0, type: Boolean })
413
- ], r.prototype, "borderless"), c([
407
+ ], s.prototype, "borderless"), h([
414
408
  o()
415
- ], r.prototype, "expansionState"), r;
416
- }, Z = (n) => {
417
- class r extends n {
409
+ ], s.prototype, "expansionState"), s;
410
+ }, ee = (n) => {
411
+ class s extends n {
418
412
  constructor() {
419
413
  super(...arguments), this._updatePromise = Promise.resolve(), this._updateResolve = () => {
420
414
  };
@@ -430,18 +424,18 @@ const Y = (n) => {
430
424
  return await this._updatePromise, t;
431
425
  }
432
426
  }
433
- return r;
434
- }, ee = y`:host{--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-white) );--sbb-selection-panel-border-color: var(--sbb-color-cloud);--sbb-selection-panel-border-radius: var( --sbb-selection-expansion-panel-border-radius, var(--sbb-border-radius-4x) );--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-1x) );--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xs) var(--sbb-spacing-responsive-xxs);--sbb-selection-panel-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-4x) );--sbb-selection-panel-cursor: pointer;--sbb-selection-panel-suffix-color: var(--sbb-color-charcoal);--sbb-selection-panel-subtext-color: var(--sbb-color-granite);display:block;outline:none!important}:host([color=milk]){--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-milk) )}:host([borderless]:not([data-checked])){--sbb-selection-panel-border-color: transparent}:host(:is([data-checked]):not(:disabled,[disabled])){--sbb-selection-panel-border-color: var(--sbb-color-charcoal);--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-2x) )}:host(:is(:disabled,[disabled])){--sbb-selection-panel-cursor: default}.sbb-selection-panel{display:block;cursor:var(--sbb-selection-panel-cursor);position:relative;border-radius:var(--sbb-selection-panel-border-radius);box-shadow:inset 0 0 0 var(--sbb-selection-panel-border-width) var(--sbb-selection-panel-border-color);padding:var(--sbb-selection-panel-input-padding);background-color:var(--sbb-selection-panel-background);transition-duration:var(--sbb-selection-panel-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:box-shadow}@media (forced-colors: active){.sbb-selection-panel:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:var(--sbb-selection-panel-border-width) solid var(--sbb-selection-panel-border-color);border-radius:var(--sbb-selection-panel-border-radius)}}:host(:focus-visible) .sbb-selection-panel{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}.sbb-selection-panel__badge{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--sbb-selection-panel-border-radius);overflow:hidden}slot[name=suffix]{color:var(--sbb-selection-panel-suffix-color)}slot[name=subtext]{display:block;color:var(--sbb-selection-panel-subtext-color);padding-inline-start:var(--sbb-spacing-fixed-8x)}:host(:not([data-slot-names~=subtext])) slot[name=subtext]{display:none}`;
427
+ return s;
428
+ }, te = x`:host{--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-white) );--sbb-selection-panel-border-color: var(--sbb-color-cloud);--sbb-selection-panel-border-radius: var( --sbb-selection-expansion-panel-border-radius, var(--sbb-border-radius-4x) );--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-1x) );--sbb-selection-panel-input-padding: var(--sbb-spacing-responsive-xs) var(--sbb-spacing-responsive-xxs);--sbb-selection-panel-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-4x) );--sbb-selection-panel-cursor: pointer;--sbb-selection-panel-suffix-color: var(--sbb-color-charcoal);--sbb-selection-panel-subtext-color: var(--sbb-color-granite);display:block;outline:none!important}:host([color=milk]){--sbb-selection-panel-background: var( --sbb-selection-expansion-panel-inner-background, var(--sbb-color-milk) )}:host([borderless]:not([data-checked])){--sbb-selection-panel-border-color: transparent}:host(:is([data-checked]):not(:disabled,[disabled])){--sbb-selection-panel-border-color: var(--sbb-color-charcoal);--sbb-selection-panel-border-width: var( --sbb-selection-expansion-panel-inner-border-width, var(--sbb-border-width-2x) )}:host(:is(:disabled,[disabled])){--sbb-selection-panel-cursor: default}.sbb-selection-panel{display:block;cursor:var(--sbb-selection-panel-cursor);position:relative;border-radius:var(--sbb-selection-panel-border-radius);box-shadow:inset 0 0 0 var(--sbb-selection-panel-border-width) var(--sbb-selection-panel-border-color);padding:var(--sbb-selection-panel-input-padding);background-color:var(--sbb-selection-panel-background);transition-duration:var(--sbb-selection-panel-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:box-shadow}@media (forced-colors: active){.sbb-selection-panel:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:var(--sbb-selection-panel-border-width) solid var(--sbb-selection-panel-border-color);border-radius:var(--sbb-selection-panel-border-radius)}}:host(:focus-visible) .sbb-selection-panel{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}.sbb-selection-panel__badge{-webkit-user-select:none;user-select:none;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--sbb-selection-panel-border-radius);overflow:hidden}slot[name=suffix]{color:var(--sbb-selection-panel-suffix-color)}slot[name=subtext]{display:block;color:var(--sbb-selection-panel-subtext-color);padding-inline-start:var(--sbb-spacing-fixed-8x)}:host(:not([data-slot-names~=subtext])) slot[name=subtext]{display:none}`;
435
429
  export {
436
- g as SbbDisabledMixin,
437
- G as SbbDisabledTabIndexActionMixin,
438
- J as SbbFormAssociatedCheckboxMixin,
439
- R as SbbFormAssociatedMixin,
440
- U as SbbHydrationMixin,
441
- Q as SbbNamedSlotListMixin,
442
- W as SbbNegativeMixin,
443
- Y as SbbPanelMixin,
444
- L as SbbRequiredMixin,
445
- Z as SbbUpdateSchedulerMixin,
446
- ee as panelCommonStyle
430
+ C as SbbDisabledMixin,
431
+ J as SbbDisabledTabIndexActionMixin,
432
+ Q as SbbFormAssociatedCheckboxMixin,
433
+ A as SbbFormAssociatedMixin,
434
+ I as SbbHydrationMixin,
435
+ W as SbbNamedSlotListMixin,
436
+ Y as SbbNegativeMixin,
437
+ Z as SbbPanelMixin,
438
+ D as SbbRequiredMixin,
439
+ ee as SbbUpdateSchedulerMixin,
440
+ te as panelCommonStyle
447
441
  };