@sbb-esta/lyne-elements 4.0.0-next.1 → 4.0.0-next.2

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.
Files changed (229) hide show
  1. package/alert/alert/alert.component.js +5 -5
  2. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +6 -6
  3. package/badge.css +3 -3
  4. package/breadcrumb/breadcrumb/breadcrumb.component.js +4 -4
  5. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +4 -4
  6. package/button/common.js +1 -1
  7. package/button/mini-button/mini-button.component.js +1 -1
  8. package/button.js +1 -1
  9. package/calendar/calendar.component.js +1 -1
  10. package/card/card-badge/card-badge.component.js +7 -7
  11. package/card/card-button/card-button.component.d.ts +1 -1
  12. package/card/card-link/card-link.component.d.ts +1 -1
  13. package/carousel/carousel/carousel.component.d.ts +2 -1
  14. package/carousel/carousel/carousel.component.d.ts.map +1 -1
  15. package/carousel/carousel/carousel.component.js +33 -28
  16. package/carousel/carousel-list/carousel-list.component.d.ts +1 -1
  17. package/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
  18. package/carousel/carousel-list/carousel-list.component.js +17 -22
  19. package/checkbox/checkbox/checkbox.component.d.ts +1 -1
  20. package/checkbox/common.js +1 -1
  21. package/checkbox-common-CrwfdL9V.js +5 -0
  22. package/checkbox.js +1 -1
  23. package/chip/chip/chip.component.js +3 -3
  24. package/chip-label/chip-label.component.js +8 -8
  25. package/core/controllers/media-matchers-controller.d.ts.map +1 -1
  26. package/core/controllers/media-matchers-controller.js +27 -27
  27. package/core/dom/breakpoint.d.ts +1 -0
  28. package/core/dom/breakpoint.d.ts.map +1 -1
  29. package/core/styles/core.scss +46 -47
  30. package/core/styles/mixins/chip.scss +4 -4
  31. package/core/styles/mixins/lists.scss +3 -3
  32. package/core/styles/mixins/panel.scss +2 -2
  33. package/core/styles/mixins/typo.scss +42 -40
  34. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss +166 -38
  35. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +4 -4
  36. package/core/styles/typography.scss +6 -6
  37. package/core.css +83 -84
  38. package/custom-elements.json +1494 -1515
  39. package/development/alert/alert/alert.component.js +7 -5
  40. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +3 -3
  41. package/development/breadcrumb/breadcrumb/breadcrumb.component.js +3 -3
  42. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +3 -3
  43. package/development/button/common.js +1 -1
  44. package/development/button/mini-button/mini-button.component.js +2 -2
  45. package/development/button.js +1 -1
  46. package/development/calendar/calendar.component.js +15 -15
  47. package/development/card/card-badge/card-badge.component.js +3 -3
  48. package/development/card/card-button/card-button.component.d.ts +1 -1
  49. package/development/card/card-link/card-link.component.d.ts +1 -1
  50. package/development/carousel/carousel/carousel.component.d.ts +2 -1
  51. package/development/carousel/carousel/carousel.component.d.ts.map +1 -1
  52. package/development/carousel/carousel/carousel.component.js +19 -8
  53. package/development/carousel/carousel-list/carousel-list.component.d.ts +1 -1
  54. package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
  55. package/development/carousel/carousel-list/carousel-list.component.js +7 -14
  56. package/development/checkbox/checkbox/checkbox.component.d.ts +1 -1
  57. package/development/checkbox/common.js +1 -1
  58. package/development/{checkbox-common-BZFJgZd7.js → checkbox-common-BKjxH3Rp.js} +12 -12
  59. package/development/checkbox.js +1 -1
  60. package/development/chip/chip/chip.component.js +3 -3
  61. package/development/chip-label/chip-label.component.js +6 -6
  62. package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
  63. package/development/core/controllers/media-matchers-controller.js +5 -6
  64. package/development/core/dom/breakpoint.d.ts +1 -0
  65. package/development/core/dom/breakpoint.d.ts.map +1 -1
  66. package/development/core/dom/breakpoint.js +1 -1
  67. package/development/dialog/dialog-close-button/dialog-close-button.component.js +1 -1
  68. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -3
  69. package/development/file-selector/common.js +1 -1
  70. package/development/file-selector/file-selector/file-selector.component.d.ts +1 -1
  71. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
  72. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +8 -8
  73. package/development/{file-selector-common-CsFa5XJ-.js → file-selector-common-B-9Eiig3.js} +4 -4
  74. package/development/file-selector.js +1 -1
  75. package/development/footer/footer.component.js +3 -3
  76. package/development/form-error/form-error.component.js +5 -5
  77. package/development/form-field/form-field/form-field.component.js +14 -14
  78. package/development/header/common/header-action-common.js +3 -3
  79. package/development/header/header-button/header-button.component.d.ts +1 -1
  80. package/development/header/header-environment/header-environment.component.js +3 -3
  81. package/development/header/header-link/header-link.component.d.ts +1 -1
  82. package/development/image/image.component.d.ts +0 -1
  83. package/development/image/image.component.d.ts.map +1 -1
  84. package/development/image/image.component.js +11 -16
  85. package/development/link/common/block-link-common.js +10 -10
  86. package/development/menu/common/menu-action-common.js +3 -3
  87. package/development/message/message.component.js +6 -6
  88. package/development/{mini-button-common-Di32bSJj.js → mini-button-common-D1dU4MgN.js} +4 -4
  89. package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +3 -3
  90. package/development/navigation/common/navigation-action-common.js +11 -11
  91. package/development/navigation/navigation-button/navigation-button.component.d.ts +1 -1
  92. package/development/navigation/navigation-link/navigation-link.component.d.ts +1 -1
  93. package/development/navigation/navigation-list/navigation-list.component.js +3 -3
  94. package/development/navigation/navigation-marker/navigation-marker.component.js +9 -9
  95. package/development/navigation/navigation-section/navigation-section.component.js +5 -5
  96. package/development/notification/notification.component.js +7 -7
  97. package/development/option/optgroup/optgroup-base-element.js +3 -3
  98. package/development/option/option/option-base-element.d.ts.map +1 -1
  99. package/development/option/option/option-base-element.js +14 -4
  100. package/development/option/option/option.component.d.ts.map +1 -1
  101. package/development/option/option/option.component.js +8 -5
  102. package/development/option/option-hint/option-hint.component.js +3 -3
  103. package/development/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
  104. package/development/paginator/compact-paginator/compact-paginator.component.js +3 -3
  105. package/development/paginator/paginator/paginator.component.d.ts +1 -1
  106. package/development/paginator/paginator/paginator.component.js +12 -12
  107. package/development/radio-button/common.js +1 -1
  108. package/development/radio-button/radio-button/radio-button.component.d.ts +1 -1
  109. package/development/{radio-button-common-5uawgCpB.js → radio-button-common-BPrInmpg.js} +11 -11
  110. package/development/radio-button.js +1 -1
  111. package/development/sbb-tokens-DZrHvErO.js +19 -0
  112. package/development/select/select.component.js +1 -1
  113. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
  114. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
  115. package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  116. package/development/status/status.component.js +4 -4
  117. package/development/stepper/step/step.component.js +3 -3
  118. package/development/stepper/step-label/step-label.component.js +15 -15
  119. package/development/tabs/tab-label/tab-label.component.js +18 -18
  120. package/development/tag/tag/tag.component.js +7 -7
  121. package/development/teaser/teaser.component.js +3 -3
  122. package/development/teaser-hero/teaser-hero.component.js +2 -2
  123. package/development/teaser-product/common.js +1 -1
  124. package/development/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
  125. package/development/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
  126. package/development/{teaser-product-common-B1KK4iNu.js → teaser-product-common-v3BvyFdH.js} +5 -5
  127. package/development/teaser-product.js +1 -1
  128. package/development/timetable-occupancy/timetable-occupancy.component.js +3 -3
  129. package/development/title/title-base.js +10 -10
  130. package/development/title/title.component.d.ts +1 -2
  131. package/development/title/title.component.d.ts.map +1 -1
  132. package/development/title/title.component.js +25 -13
  133. package/development/toast/toast.component.js +5 -5
  134. package/development/toggle/toggle/toggle.component.js +3 -3
  135. package/development/toggle/toggle-option/toggle-option.component.js +3 -3
  136. package/development/toggle-check/toggle-check.component.js +11 -11
  137. package/development/tooltip/tooltip.component.js +3 -3
  138. package/development/train/train/train.component.js +4 -4
  139. package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  140. package/development/train/train-formation/train-formation.component.js +3 -3
  141. package/development/train/train-wagon/train-wagon.component.js +9 -9
  142. package/dialog/dialog-close-button/dialog-close-button.component.js +4 -4
  143. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +1 -1
  144. package/file-selector/common.js +1 -1
  145. package/file-selector/file-selector/file-selector.component.d.ts +1 -1
  146. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
  147. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +9 -9
  148. package/{file-selector-common-CUp299VH.js → file-selector-common-DbYkpr-x.js} +1 -1
  149. package/file-selector.js +1 -1
  150. package/footer/footer.component.js +1 -1
  151. package/form-error/form-error.component.js +1 -1
  152. package/form-field/form-field/form-field.component.js +1 -1
  153. package/header/common/header-action-common.js +1 -1
  154. package/header/header-button/header-button.component.d.ts +1 -1
  155. package/header/header-environment/header-environment.component.js +4 -4
  156. package/header/header-link/header-link.component.d.ts +1 -1
  157. package/image/image.component.d.ts +0 -1
  158. package/image/image.component.d.ts.map +1 -1
  159. package/image/image.component.js +93 -97
  160. package/link/common/block-link-common.js +14 -14
  161. package/lists.css +9 -9
  162. package/menu/common/menu-action-common.js +1 -1
  163. package/message/message.component.js +6 -6
  164. package/mini-button-common-DSGLaplg.js +10 -0
  165. package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
  166. package/navigation/common/navigation-action-common.js +17 -17
  167. package/navigation/navigation-button/navigation-button.component.d.ts +1 -1
  168. package/navigation/navigation-link/navigation-link.component.d.ts +1 -1
  169. package/navigation/navigation-list/navigation-list.component.js +3 -3
  170. package/navigation/navigation-marker/navigation-marker.component.js +12 -12
  171. package/navigation/navigation-section/navigation-section.component.js +5 -5
  172. package/notification/notification.component.js +1 -1
  173. package/off-brand-theme.css +136 -137
  174. package/option/optgroup/optgroup-base-element.js +1 -1
  175. package/option/option/option-base-element.d.ts.map +1 -1
  176. package/option/option/option-base-element.js +30 -20
  177. package/option/option/option.component.d.ts.map +1 -1
  178. package/option/option/option.component.js +8 -8
  179. package/option/option-hint/option-hint.component.js +10 -10
  180. package/package.json +1 -1
  181. package/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
  182. package/paginator/compact-paginator/compact-paginator.component.js +1 -1
  183. package/paginator/paginator/paginator.component.d.ts +1 -1
  184. package/paginator/paginator/paginator.component.js +1 -1
  185. package/radio-button/common.js +1 -1
  186. package/radio-button/radio-button/radio-button.component.d.ts +1 -1
  187. package/radio-button-common-chJrmIBn.js +5 -0
  188. package/radio-button.js +1 -1
  189. package/safety-theme.css +140 -141
  190. package/sbb-tokens-BNWpZrLn.js +11 -0
  191. package/select/select.component.js +1 -1
  192. package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
  193. package/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
  194. package/sidebar/sidebar-title/sidebar-title.component.js +5 -5
  195. package/standard-theme.css +136 -137
  196. package/status/status.component.js +4 -4
  197. package/stepper/step/step.component.js +3 -3
  198. package/stepper/step-label/step-label.component.js +1 -1
  199. package/table.css +27 -27
  200. package/tabs/tab-label/tab-label.component.js +10 -10
  201. package/tag/tag/tag.component.js +1 -1
  202. package/teaser/teaser.component.js +1 -1
  203. package/teaser-hero/teaser-hero.component.js +1 -1
  204. package/teaser-product/common.js +1 -1
  205. package/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
  206. package/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
  207. package/teaser-product-common-a4NenpSA.js +5 -0
  208. package/teaser-product.js +1 -1
  209. package/timetable-occupancy/timetable-occupancy.component.js +1 -1
  210. package/title/title-base.js +19 -19
  211. package/title/title.component.d.ts +1 -2
  212. package/title/title.component.d.ts.map +1 -1
  213. package/title/title.component.js +17 -17
  214. package/toast/toast.component.js +1 -1
  215. package/toggle/toggle/toggle.component.js +1 -1
  216. package/toggle/toggle-option/toggle-option.component.js +7 -7
  217. package/toggle-check/toggle-check.component.js +15 -15
  218. package/tooltip/tooltip.component.js +5 -5
  219. package/train/train/train.component.js +1 -1
  220. package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  221. package/train/train-formation/train-formation.component.js +1 -1
  222. package/train/train-wagon/train-wagon.component.js +1 -1
  223. package/typography.css +11 -11
  224. package/checkbox-common-BGA_q9nc.js +0 -5
  225. package/development/sbb-tokens-DXgmy_b-.js +0 -21
  226. package/mini-button-common-DBnJfrBZ.js +0 -10
  227. package/radio-button-common-BT3VkZLM.js +0 -5
  228. package/sbb-tokens-CB1Hgctn.js +0 -12
  229. package/teaser-product-common-BwqWqRrK.js +0 -5
@@ -1,56 +1,57 @@
1
- var _e = (r) => {
2
- throw TypeError(r);
1
+ var be = (o) => {
2
+ throw TypeError(o);
3
3
  };
4
- var ke = (r, o, l) => o.has(r) || _e("Cannot " + l);
5
- var d = (r, o, l) => (ke(r, o, "read from private field"), l ? l.call(r) : o.get(r)), h = (r, o, l) => o.has(r) ? _e("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(r) : o.set(r, l), s = (r, o, l, m) => (ke(r, o, "write to private field"), m ? m.call(r, l) : o.set(r, l), l);
4
+ var _e = (o, r, l) => r.has(o) || be("Cannot " + l);
5
+ var d = (o, r, l) => (_e(o, r, "read from private field"), l ? l.call(o) : r.get(o)), h = (o, r, l) => r.has(o) ? be("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(o) : r.set(o, l), s = (o, r, l, m) => (_e(o, r, "write to private field"), m ? m.call(o, l) : r.set(o, l), l);
6
6
  import { __esDecorate as p, __runInitializers as a } from "tslib";
7
- import { S as ye, d as Se, e as ze, a as ve, c as xe, b as $e, f as we, g as Me, h as Le } from "../sbb-tokens-CB1Hgctn.js";
8
- import { css as Ie, LitElement as Ce, nothing as F, html as q } from "lit";
9
- import { customElement as Fe, property as u, eventOptions as De } from "lit/decorators.js";
10
- import { forceType as g } from "../core/decorators.js";
11
- import { boxSizingStyles as Ee } from "../core/styles.js";
12
- const Qe = Ie`:host{--sbb-image-aspect-ratio: 16 / 9;--sbb-image-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-image-object-fit: cover;display:block;border-radius:var(--sbb-border-radius-4x)}.sbb-image__img{opacity:.000001}:host([data-loaded]) .sbb-image__img{opacity:.999999}:host(:not([skip-lqip])) .sbb-image__img{position:absolute;inset:0}:host([data-loaded]) .sbb-image__blurred{opacity:0}picture{display:contents}:is(.sbb-image__img,.sbb-image__blurred){width:100%;height:100%;object-fit:var(--sbb-image-object-fit);object-position:var(--sbb-image-object-position);transition:opacity var(--sbb-image-animation-duration) var(--sbb-animation-easing)}.sbb-image__wrapper{display:flex;position:relative;width:100%;height:100%;aspect-ratio:var(--sbb-image-aspect-ratio);border-radius:inherit;overflow:hidden}`, qe = (r) => {
13
- if (!r || r.length === 0)
7
+ import { c as Pe, d as ye, a as Se, S as ze, b as ve, e as xe, f as $e, g as we } from "../sbb-tokens-BNWpZrLn.js";
8
+ import { css as Me, LitElement as Le, nothing as C, html as q } from "lit";
9
+ import { customElement as Ie, property as g, eventOptions as Ce } from "lit/decorators.js";
10
+ import { forceType as u } from "../core/decorators.js";
11
+ import { boxSizingStyles as Fe } from "../core/styles.js";
12
+ const De = Me`:host{--sbb-image-aspect-ratio: 16 / 9;--sbb-image-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-image-object-fit: cover;display:block;border-radius:var(--sbb-border-radius-4x)}.sbb-image__img{opacity:.000001}:host([data-loaded]) .sbb-image__img{opacity:.999999}:host(:not([skip-lqip])) .sbb-image__img{position:absolute;inset:0}:host([data-loaded]) .sbb-image__blurred{opacity:0}picture{display:contents}:is(.sbb-image__img,.sbb-image__blurred){width:100%;height:100%;object-fit:var(--sbb-image-object-fit);object-position:var(--sbb-image-object-position);transition:opacity var(--sbb-image-animation-duration) var(--sbb-animation-easing)}.sbb-image__wrapper{display:flex;position:relative;width:100%;height:100%;aspect-ratio:var(--sbb-image-aspect-ratio);border-radius:inherit;overflow:hidden}`, Ee = (o) => {
13
+ if (!o || o.length === 0)
14
14
  return [];
15
- let o;
15
+ let r;
16
16
  try {
17
- o = JSON.parse(r);
17
+ r = JSON.parse(o);
18
18
  } catch {
19
19
  return [];
20
20
  }
21
- if (!o.breakpoints || o.breakpoints.length === 0)
21
+ if (!r.breakpoints || r.breakpoints.length === 0)
22
22
  return [];
23
- if (!Array.isArray(o.breakpoints))
23
+ if (!Array.isArray(r.breakpoints))
24
24
  return [];
25
25
  let l = !1, m = !1;
26
- const D = ["image", "mediaQueries"];
27
- return o.breakpoints.forEach((Q) => {
28
- const E = Object.keys(Q);
29
- E.forEach((_) => {
30
- D.includes(_) || (l = !0);
31
- }), D.forEach((_) => {
32
- E.includes(_) || (m = !0);
26
+ const F = ["image", "mediaQueries"];
27
+ return r.breakpoints.forEach((E) => {
28
+ const D = Object.keys(E);
29
+ D.forEach((b) => {
30
+ F.includes(b) || (l = !0);
31
+ }), F.forEach((b) => {
32
+ D.includes(b) || (m = !0);
33
33
  });
34
- }), l || m ? [] : o.breakpoints;
35
- }, Oe = {
34
+ }), l || m ? [] : r.breakpoints;
35
+ }, qe = {
36
36
  once: !0,
37
37
  passive: !0
38
- }, b = (r) => r / ye, Be = {
39
- "sbb-breakpoint-zero-min": b(Le),
40
- "sbb-breakpoint-zero-max": b(Me),
41
- "sbb-breakpoint-small-min": b(we),
42
- "sbb-breakpoint-small-max": b($e),
43
- "sbb-breakpoint-large-min": b(xe),
44
- "sbb-breakpoint-large-max": b(ve),
45
- "sbb-breakpoint-ultra-min": b(ze),
46
- "sbb-breakpoint-ultra-max": b(Se)
38
+ }, Qe = {
39
+ "sbb-breakpoint-zero-min": we,
40
+ "sbb-breakpoint-zero-max": $e,
41
+ "sbb-breakpoint-small-min": xe,
42
+ "sbb-breakpoint-small-max": ve,
43
+ "sbb-breakpoint-large-min": ze,
44
+ "sbb-breakpoint-large-max": Se,
45
+ "sbb-breakpoint-ultra-min": ye,
46
+ "sbb-breakpoint-ultra-max": Pe
47
47
  };
48
- let Ke = (() => {
49
- var k, P, y, S, z, v, x, $, w, M, L, I, n;
50
- let r = [Fe("sbb-image")], o, l = [], m, D = Ce, Q = [], E, _ = [], O = [], B, T = [], X = [], Y, j = [], U = [], A, V = [], R = [], K, N = [], H = [], W, Z = [], G = [], J, ee = [], te = [], ie, ae = [], se = [], re, oe = [], ne = [], ce, le = [], pe = [], me, de = [], he = [], ue, ge = [], be = [], fe;
51
- return n = class extends D {
48
+ let Ve = (() => {
49
+ var _, k, P, y, S, z, v, x, $, w, M, L, n;
50
+ let o = [Ie("sbb-image")], r, l = [], m, F = Le, E = [], D, b = [], Q = [], O, B = [], X = [], Y, j = [], U = [], A, T = [], V = [], R, K = [], N = [], H, W = [], Z = [], G, J = [], ee = [], te, ie = [], ae = [], se, re = [], oe = [], ne, ce = [], le = [], pe, me = [], de = [], he, ge = [], ue = [], fe;
51
+ return n = class extends F {
52
52
  constructor() {
53
53
  super(...arguments);
54
+ h(this, _);
54
55
  h(this, k);
55
56
  h(this, P);
56
57
  h(this, y);
@@ -62,11 +63,10 @@ let Ke = (() => {
62
63
  h(this, w);
63
64
  h(this, M);
64
65
  h(this, L);
65
- h(this, I);
66
- this._captionElement = a(this, Q), this._config = {
66
+ this._captionElement = a(this, E), this._config = {
67
67
  nonRetinaQuality: "45",
68
68
  retinaQuality: "20"
69
- }, s(this, k, a(this, _, "")), s(this, P, (a(this, O), a(this, T, !1))), s(this, y, (a(this, X), a(this, j, !1))), s(this, S, (a(this, U), a(this, V, "auto"))), s(this, z, (a(this, R), a(this, N, !1))), s(this, v, (a(this, H), a(this, Z, 1))), s(this, x, (a(this, G), a(this, ee, 1))), s(this, $, (a(this, te), a(this, ae, ""))), s(this, w, (a(this, se), a(this, oe, "high"))), s(this, M, (a(this, ne), a(this, le, "eager"))), s(this, L, (a(this, pe), a(this, de, ""))), s(this, I, (a(this, he), a(this, ge, ""))), a(this, be);
69
+ }, s(this, _, a(this, b, "")), s(this, k, (a(this, Q), a(this, B, !1))), s(this, P, (a(this, X), a(this, j, !1))), s(this, y, (a(this, U), a(this, T, "auto"))), s(this, S, (a(this, V), a(this, K, !1))), s(this, z, (a(this, N), a(this, W, 1))), s(this, v, (a(this, Z), a(this, J, 1))), s(this, x, (a(this, ee), a(this, ie, ""))), s(this, $, (a(this, ae), a(this, re, "high"))), s(this, w, (a(this, oe), a(this, ce, "eager"))), s(this, M, (a(this, le), a(this, me, ""))), s(this, L, (a(this, de), a(this, ge, ""))), a(this, ue);
70
70
  }
71
71
  /**
72
72
  * An alt text is not always necessary (e.g. in teaser cards when
@@ -76,10 +76,10 @@ let Ke = (() => {
76
76
  * technology, that they can skip the image.
77
77
  */
78
78
  get alt() {
79
- return d(this, k);
79
+ return d(this, _);
80
80
  }
81
81
  set alt(t) {
82
- s(this, k, t);
82
+ s(this, _, t);
83
83
  }
84
84
  /**
85
85
  * If set to false, we show a blurred version of the image as
@@ -89,10 +89,10 @@ let Ke = (() => {
89
89
  * https://medium.com/@imgix/lqip-your-images-for-fast-loading-2523d9ee4a62
90
90
  */
91
91
  get skipLqip() {
92
- return d(this, P);
92
+ return d(this, k);
93
93
  }
94
94
  set skipLqip(t) {
95
- s(this, P, t);
95
+ s(this, k, t);
96
96
  }
97
97
  /**
98
98
  * Set this to true, if you want to pass a custom focal point
@@ -100,10 +100,10 @@ let Ke = (() => {
100
100
  * https://docs.imgix.com/apis/rendering/focalpoint-crop
101
101
  */
102
102
  get customFocalPoint() {
103
- return d(this, y);
103
+ return d(this, P);
104
104
  }
105
105
  set customFocalPoint(t) {
106
- s(this, y, t);
106
+ s(this, P, t);
107
107
  }
108
108
  /**
109
109
  * If the lazy property is set to true, the module will automatically
@@ -113,38 +113,38 @@ let Ke = (() => {
113
113
  * https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding
114
114
  */
115
115
  get decoding() {
116
- return d(this, S);
116
+ return d(this, y);
117
117
  }
118
118
  set decoding(t) {
119
- s(this, S, t);
119
+ s(this, y, t);
120
120
  }
121
121
  /**
122
122
  * Set this to true, to receive visual guidance where the custom focal
123
123
  * point is currently set.
124
124
  */
125
125
  get focalPointDebug() {
126
- return d(this, z);
126
+ return d(this, S);
127
127
  }
128
128
  set focalPointDebug(t) {
129
- s(this, z, t);
129
+ s(this, S, t);
130
130
  }
131
131
  /**
132
132
  * Pass in a floating number between 0 (left) and 1 (right).
133
133
  */
134
134
  get focalPointX() {
135
- return d(this, v);
135
+ return d(this, z);
136
136
  }
137
137
  set focalPointX(t) {
138
- s(this, v, t);
138
+ s(this, z, t);
139
139
  }
140
140
  /**
141
141
  * Pass in a floating number between 0 (top) and 1 (bottom).
142
142
  */
143
143
  get focalPointY() {
144
- return d(this, x);
144
+ return d(this, v);
145
145
  }
146
146
  set focalPointY(t) {
147
- s(this, x, t);
147
+ s(this, v, t);
148
148
  }
149
149
  /**
150
150
  * Right now the module is heavily coupled with the image delivery
@@ -157,10 +157,10 @@ let Ke = (() => {
157
157
  * LYNE Core Team.
158
158
  */
159
159
  get imageSrc() {
160
- return d(this, $);
160
+ return d(this, x);
161
161
  }
162
162
  set imageSrc(t) {
163
- s(this, $, t);
163
+ s(this, x, t);
164
164
  }
165
165
  /**
166
166
  * The importance attribute is fairly new attribute which should
@@ -172,10 +172,10 @@ let Ke = (() => {
172
172
  * the fold, will set the attribute value to 'low'.
173
173
  */
174
174
  get importance() {
175
- return d(this, w);
175
+ return d(this, $);
176
176
  }
177
177
  set importance(t) {
178
- s(this, w, t);
178
+ s(this, $, t);
179
179
  }
180
180
  /**
181
181
  * With the support of native image lazy loading, we can now
@@ -188,10 +188,10 @@ let Ke = (() => {
188
188
  * of the initial viewport.
189
189
  */
190
190
  get loading() {
191
- return d(this, M);
191
+ return d(this, w);
192
192
  }
193
193
  set loading(t) {
194
- s(this, M, t);
194
+ s(this, w, t);
195
195
  }
196
196
  /**
197
197
  * With performance.mark you can log a timestamp associated with
@@ -207,10 +207,10 @@ let Ke = (() => {
207
207
  * here, separate words with underscores or dashes.
208
208
  */
209
209
  get performanceMark() {
210
- return d(this, L);
210
+ return d(this, M);
211
211
  }
212
212
  set performanceMark(t) {
213
- s(this, L, t);
213
+ s(this, M, t);
214
214
  }
215
215
  /**
216
216
  * With the pictureSizesConfig object, you can pass in information
@@ -281,10 +281,10 @@ let Ke = (() => {
281
281
  * }
282
282
  */
283
283
  get pictureSizesConfig() {
284
- return d(this, I);
284
+ return d(this, L);
285
285
  }
286
286
  set pictureSizesConfig(t) {
287
- s(this, I, t);
287
+ s(this, L, t);
288
288
  }
289
289
  /** Whether the image is finished loading or failed to load. */
290
290
  get complete() {
@@ -301,10 +301,6 @@ let Ke = (() => {
301
301
  _logPerformanceMarks() {
302
302
  this.performanceMark && (performance.clearMarks(this.performanceMark), performance.mark(this.performanceMark));
303
303
  }
304
- _matchMediaQueryDesignToken(t) {
305
- const e = Be[t];
306
- return e ? `${e}rem` : "";
307
- }
308
304
  _addFocusAbilityToLinksInCaption() {
309
305
  this._linksInCaption?.forEach((t) => {
310
306
  t.removeAttribute("tabindex");
@@ -369,16 +365,16 @@ let Ke = (() => {
369
365
  ]
370
366
  }
371
367
  ]
372
- }`, qe(t);
368
+ }`, Ee(t);
373
369
  }
374
370
  _createMediaQueryString(t) {
375
371
  let e = "";
376
372
  return t.forEach((i) => {
377
373
  const c = i.conditionFeature;
378
- let C;
379
- i.conditionFeatureValue.lyneDesignToken ? C = this._matchMediaQueryDesignToken(i.conditionFeatureValue.value) : C = i.conditionFeatureValue.value;
374
+ let I;
375
+ i.conditionFeatureValue.lyneDesignToken ? I = Qe[i.conditionFeatureValue.value] ?? "" : I = i.conditionFeatureValue.value;
380
376
  const f = i.conditionOperator ? ` ${i.conditionOperator} ` : "";
381
- e += `(${c}: ${C})${f}`;
377
+ e += `(${c}: ${I})${f}`;
382
378
  }), e;
383
379
  }
384
380
  _imageLoaded() {
@@ -390,25 +386,25 @@ let Ke = (() => {
390
386
  const i = this._preparePictureSizeConfigs();
391
387
  return q`
392
388
  <div class="sbb-image__wrapper">
393
- ${this.skipLqip ? F : q`<img
389
+ ${this.skipLqip ? C : q`<img
394
390
  alt=""
395
391
  class="sbb-image__blurred"
396
392
  src=${t}
397
393
  width="1000"
398
394
  height="562"
399
- loading=${this.loading ?? F}
400
- decoding=${this.decoding ?? F}
395
+ loading=${this.loading ?? C}
396
+ decoding=${this.decoding ?? C}
401
397
  />`}
402
398
 
403
399
  <picture>
404
400
  <!-- render picture element sources -->
405
401
  ${i.map((c) => {
406
- const C = c.image.height, f = c.image.width, Pe = this._createMediaQueryString(c.mediaQueries);
402
+ const I = c.image.height, f = c.image.width, ke = this._createMediaQueryString(c.mediaQueries);
407
403
  return q`
408
404
  <source
409
- media=${`${Pe}`}
405
+ media=${`${ke}`}
410
406
  sizes=${`${f}px`}
411
- srcset=${`${e}&w=${f}&h=${C}&q=${this._config.nonRetinaQuality} ${f}w, ${e}&w=${f * 2}&h=${C * 2}&q=${this._config.retinaQuality} ${f * 2}w`}
407
+ srcset=${`${e}&w=${f}&h=${I}&q=${this._config.nonRetinaQuality} ${f}w, ${e}&w=${f * 2}&h=${I * 2}&q=${this._config.retinaQuality} ${f * 2}w`}
412
408
  ></source>`;
413
409
  })}
414
410
  <img
@@ -419,46 +415,46 @@ let Ke = (() => {
419
415
  src=${this.imageSrc}
420
416
  width="1000"
421
417
  height="562"
422
- loading=${this.loading ?? F}
423
- decoding=${this.decoding ?? F}
424
- .fetchPriority=${this.importance ?? F}
418
+ loading=${this.loading ?? C}
419
+ decoding=${this.decoding ?? C}
420
+ .fetchPriority=${this.importance ?? C}
425
421
  />
426
422
  </picture>
427
423
  </div>
428
424
  `;
429
425
  }
430
- }, k = new WeakMap(), P = new WeakMap(), y = new WeakMap(), S = new WeakMap(), z = new WeakMap(), v = new WeakMap(), x = new WeakMap(), $ = new WeakMap(), w = new WeakMap(), M = new WeakMap(), L = new WeakMap(), I = new WeakMap(), m = n, (() => {
431
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(D[Symbol.metadata] ?? null) : void 0;
432
- E = [g(), u()], B = [g(), u({ attribute: "skip-lqip", type: Boolean, reflect: !0 })], Y = [g(), u({ attribute: "custom-focal-point", type: Boolean })], A = [u()], K = [g(), u({ attribute: "focal-point-debug", type: Boolean })], W = [g(), u({ attribute: "focal-point-x", type: Number })], J = [g(), u({ attribute: "focal-point-y", type: Number })], ie = [g(), u({ attribute: "image-src" })], re = [u()], ce = [u()], me = [g(), u({ attribute: "performance-mark" })], ue = [g(), u({ attribute: "picture-sizes-config" })], fe = [De(Oe)], p(n, null, E, { kind: "accessor", name: "alt", static: !1, private: !1, access: { has: (e) => "alt" in e, get: (e) => e.alt, set: (e, i) => {
426
+ }, _ = new WeakMap(), k = new WeakMap(), P = new WeakMap(), y = new WeakMap(), S = new WeakMap(), z = new WeakMap(), v = new WeakMap(), x = new WeakMap(), $ = new WeakMap(), w = new WeakMap(), M = new WeakMap(), L = new WeakMap(), m = n, (() => {
427
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(F[Symbol.metadata] ?? null) : void 0;
428
+ D = [u(), g()], O = [u(), g({ attribute: "skip-lqip", type: Boolean, reflect: !0 })], Y = [u(), g({ attribute: "custom-focal-point", type: Boolean })], A = [g()], R = [u(), g({ attribute: "focal-point-debug", type: Boolean })], H = [u(), g({ attribute: "focal-point-x", type: Number })], G = [u(), g({ attribute: "focal-point-y", type: Number })], te = [u(), g({ attribute: "image-src" })], se = [g()], ne = [g()], pe = [u(), g({ attribute: "performance-mark" })], he = [u(), g({ attribute: "picture-sizes-config" })], fe = [Ce(qe)], p(n, null, D, { kind: "accessor", name: "alt", static: !1, private: !1, access: { has: (e) => "alt" in e, get: (e) => e.alt, set: (e, i) => {
433
429
  e.alt = i;
434
- } }, metadata: t }, _, O), p(n, null, B, { kind: "accessor", name: "skipLqip", static: !1, private: !1, access: { has: (e) => "skipLqip" in e, get: (e) => e.skipLqip, set: (e, i) => {
430
+ } }, metadata: t }, b, Q), p(n, null, O, { kind: "accessor", name: "skipLqip", static: !1, private: !1, access: { has: (e) => "skipLqip" in e, get: (e) => e.skipLqip, set: (e, i) => {
435
431
  e.skipLqip = i;
436
- } }, metadata: t }, T, X), p(n, null, Y, { kind: "accessor", name: "customFocalPoint", static: !1, private: !1, access: { has: (e) => "customFocalPoint" in e, get: (e) => e.customFocalPoint, set: (e, i) => {
432
+ } }, metadata: t }, B, X), p(n, null, Y, { kind: "accessor", name: "customFocalPoint", static: !1, private: !1, access: { has: (e) => "customFocalPoint" in e, get: (e) => e.customFocalPoint, set: (e, i) => {
437
433
  e.customFocalPoint = i;
438
434
  } }, metadata: t }, j, U), p(n, null, A, { kind: "accessor", name: "decoding", static: !1, private: !1, access: { has: (e) => "decoding" in e, get: (e) => e.decoding, set: (e, i) => {
439
435
  e.decoding = i;
440
- } }, metadata: t }, V, R), p(n, null, K, { kind: "accessor", name: "focalPointDebug", static: !1, private: !1, access: { has: (e) => "focalPointDebug" in e, get: (e) => e.focalPointDebug, set: (e, i) => {
436
+ } }, metadata: t }, T, V), p(n, null, R, { kind: "accessor", name: "focalPointDebug", static: !1, private: !1, access: { has: (e) => "focalPointDebug" in e, get: (e) => e.focalPointDebug, set: (e, i) => {
441
437
  e.focalPointDebug = i;
442
- } }, metadata: t }, N, H), p(n, null, W, { kind: "accessor", name: "focalPointX", static: !1, private: !1, access: { has: (e) => "focalPointX" in e, get: (e) => e.focalPointX, set: (e, i) => {
438
+ } }, metadata: t }, K, N), p(n, null, H, { kind: "accessor", name: "focalPointX", static: !1, private: !1, access: { has: (e) => "focalPointX" in e, get: (e) => e.focalPointX, set: (e, i) => {
443
439
  e.focalPointX = i;
444
- } }, metadata: t }, Z, G), p(n, null, J, { kind: "accessor", name: "focalPointY", static: !1, private: !1, access: { has: (e) => "focalPointY" in e, get: (e) => e.focalPointY, set: (e, i) => {
440
+ } }, metadata: t }, W, Z), p(n, null, G, { kind: "accessor", name: "focalPointY", static: !1, private: !1, access: { has: (e) => "focalPointY" in e, get: (e) => e.focalPointY, set: (e, i) => {
445
441
  e.focalPointY = i;
446
- } }, metadata: t }, ee, te), p(n, null, ie, { kind: "accessor", name: "imageSrc", static: !1, private: !1, access: { has: (e) => "imageSrc" in e, get: (e) => e.imageSrc, set: (e, i) => {
442
+ } }, metadata: t }, J, ee), p(n, null, te, { kind: "accessor", name: "imageSrc", static: !1, private: !1, access: { has: (e) => "imageSrc" in e, get: (e) => e.imageSrc, set: (e, i) => {
447
443
  e.imageSrc = i;
448
- } }, metadata: t }, ae, se), p(n, null, re, { kind: "accessor", name: "importance", static: !1, private: !1, access: { has: (e) => "importance" in e, get: (e) => e.importance, set: (e, i) => {
444
+ } }, metadata: t }, ie, ae), p(n, null, se, { kind: "accessor", name: "importance", static: !1, private: !1, access: { has: (e) => "importance" in e, get: (e) => e.importance, set: (e, i) => {
449
445
  e.importance = i;
450
- } }, metadata: t }, oe, ne), p(n, null, ce, { kind: "accessor", name: "loading", static: !1, private: !1, access: { has: (e) => "loading" in e, get: (e) => e.loading, set: (e, i) => {
446
+ } }, metadata: t }, re, oe), p(n, null, ne, { kind: "accessor", name: "loading", static: !1, private: !1, access: { has: (e) => "loading" in e, get: (e) => e.loading, set: (e, i) => {
451
447
  e.loading = i;
452
- } }, metadata: t }, le, pe), p(n, null, me, { kind: "accessor", name: "performanceMark", static: !1, private: !1, access: { has: (e) => "performanceMark" in e, get: (e) => e.performanceMark, set: (e, i) => {
448
+ } }, metadata: t }, ce, le), p(n, null, pe, { kind: "accessor", name: "performanceMark", static: !1, private: !1, access: { has: (e) => "performanceMark" in e, get: (e) => e.performanceMark, set: (e, i) => {
453
449
  e.performanceMark = i;
454
- } }, metadata: t }, de, he), p(n, null, ue, { kind: "accessor", name: "pictureSizesConfig", static: !1, private: !1, access: { has: (e) => "pictureSizesConfig" in e, get: (e) => e.pictureSizesConfig, set: (e, i) => {
450
+ } }, metadata: t }, me, de), p(n, null, he, { kind: "accessor", name: "pictureSizesConfig", static: !1, private: !1, access: { has: (e) => "pictureSizesConfig" in e, get: (e) => e.pictureSizesConfig, set: (e, i) => {
455
451
  e.pictureSizesConfig = i;
456
- } }, metadata: t }, ge, be), p(n, null, fe, { kind: "method", name: "_imageLoaded", static: !1, private: !1, access: { has: (e) => "_imageLoaded" in e, get: (e) => e._imageLoaded }, metadata: t }, null, Q), p(null, o = { value: m }, r, { kind: "class", name: m.name, metadata: t }, null, l), m = o.value, t && Object.defineProperty(m, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
457
- })(), n.styles = [Ee, Qe], n.events = {
452
+ } }, metadata: t }, ge, ue), p(n, null, fe, { kind: "method", name: "_imageLoaded", static: !1, private: !1, access: { has: (e) => "_imageLoaded" in e, get: (e) => e._imageLoaded }, metadata: t }, null, E), p(null, r = { value: m }, o, { kind: "class", name: m.name, metadata: t }, null, l), m = r.value, t && Object.defineProperty(m, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
453
+ })(), n.styles = [Fe, De], n.events = {
458
454
  error: "error",
459
455
  load: "load"
460
456
  }, a(m, l), m;
461
457
  })();
462
458
  export {
463
- Ke as SbbImageElement
459
+ Ve as SbbImageElement
464
460
  };
@@ -1,22 +1,22 @@
1
1
  var c = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var m = (t, o, e) => o.has(t) || c("Cannot " + e);
5
- var v = (t, o, e) => (m(t, o, "read from private field"), e ? e.call(t) : o.get(t)), p = (t, o, e) => o.has(t) ? c("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(t) : o.set(t, e), h = (t, o, e, s) => (m(t, o, "write to private field"), s ? s.call(t, e) : o.set(t, e), e);
6
- import { __esDecorate as g, __runInitializers as f } from "tslib";
7
- import { property as d } from "lit/decorators.js";
8
- import { html as k } from "lit/static-html.js";
4
+ var m = (t, e, o) => e.has(t) || c("Cannot " + o);
5
+ var v = (t, e, o) => (m(t, e, "read from private field"), o ? o.call(t) : e.get(t)), p = (t, e, o) => e.has(t) ? c("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), h = (t, e, o, s) => (m(t, e, "write to private field"), s ? s.call(t, o) : e.set(t, o), o);
6
+ import { __esDecorate as k, __runInitializers as f } from "tslib";
7
+ import { property as y } from "lit/decorators.js";
8
+ import { html as d } from "lit/static-html.js";
9
9
  import { boxSizingStyles as u } from "../../core/styles.js";
10
10
  import { SbbIconNameMixin as x } from "../../icon.js";
11
11
  import { S as _, s as z } from "../../link-common-CdQBSga7.js";
12
12
  import { css as S } from "lit";
13
- const P = S`:host{--sbb-link-color-hover: light-dark(var(--sbb-color-primary125), var(--sbb-color-graphite));--sbb-link-color-active: light-dark(var(--sbb-color-primary150), var(--sbb-color-metal));--sbb-link-color-normal: var(--sbb-color-granite);--sbb-link-color-normal: light-dark(var(--sbb-color-granite), var(--sbb-color-white));--sbb-link-color-hover: var(--sbb-color-primary125);--sbb-link-color-hover: light-dark(var(--sbb-color-primary125), var(--sbb-color-cloud));--sbb-link-color-active: var(--sbb-color-primary150);--sbb-link-color-active: light-dark(var(--sbb-color-primary150), var(--sbb-color-silver));--sbb-link-gap: var(--sbb-spacing-fixed-1x);display:block}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-link-color-normal: var(--sbb-color-1-negative);--sbb-link-color-hover: var(--sbb-color-4-negative);--sbb-link-color-active: var(--sbb-color-silver)}:host(.sbb-active){--sbb-link-color-normal: var(--sbb-color-black);--sbb-link-color-normal: light-dark(var(--sbb-color-black), var(--sbb-color-cement));--sbb-link-text-decoration-line: underline}:host(.sbb-active[negative]){--sbb-link-color-normal: var(--sbb-color-cement);--sbb-link-text-decoration-line: underline}.sbb-action-base{gap:var(--sbb-link-gap)}:host([size=xs]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size)}:host([size=s]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size)}:host([size=m]) .sbb-action-base{--sbb-text-font-size: var(--sbb-font-size-text-m);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size)}.sbb-link__icon{position:relative;height:calc(var(--sbb-typo-line-height-body-text) * 1em);width:var(--sbb-size-icon-ui-small);flex:0 0 auto;align-self:start}:host(:not(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name]))) .sbb-link__icon{display:none}:host([icon-placement=end]) .sbb-link__icon{order:2}.sbb-link__icon ::slotted([slot=icon]),.sbb-link__icon sbb-icon{position:absolute;top:50%;transform:translateY(-50%)}`, D = (t) => (() => {
13
+ const P = S`:host{--sbb-link-color-hover: light-dark(var(--sbb-color-primary125), var(--sbb-color-graphite));--sbb-link-color-active: light-dark(var(--sbb-color-primary150), var(--sbb-color-metal));--sbb-link-color-normal: var(--sbb-color-granite);--sbb-link-color-normal: light-dark(var(--sbb-color-granite), var(--sbb-color-white));--sbb-link-color-hover: var(--sbb-color-primary125);--sbb-link-color-hover: light-dark(var(--sbb-color-primary125), var(--sbb-color-cloud));--sbb-link-color-active: var(--sbb-color-primary150);--sbb-link-color-active: light-dark(var(--sbb-color-primary150), var(--sbb-color-silver));--sbb-link-gap: var(--sbb-spacing-fixed-1x);display:block}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-link-color-normal: var(--sbb-color-1-negative);--sbb-link-color-hover: var(--sbb-color-4-negative);--sbb-link-color-active: var(--sbb-color-silver)}:host(.sbb-active){--sbb-link-color-normal: var(--sbb-color-black);--sbb-link-color-normal: light-dark(var(--sbb-color-black), var(--sbb-color-cement));--sbb-link-text-decoration-line: underline}:host(.sbb-active[negative]){--sbb-link-color-normal: var(--sbb-color-cement);--sbb-link-text-decoration-line: underline}.sbb-action-base{gap:var(--sbb-link-gap)}:host([size=xs]) .sbb-action-base{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size)}:host([size=s]) .sbb-action-base{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size)}:host([size=m]) .sbb-action-base{--sbb-text-font-size: var(--sbb-text-font-size-m);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size)}.sbb-link__icon{position:relative;height:calc(var(--sbb-typo-line-height-text) * 1em);width:var(--sbb-size-icon-ui-small);flex:0 0 auto;align-self:start}:host(:not(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name]))) .sbb-link__icon{display:none}:host([icon-placement=end]) .sbb-link__icon{order:2}.sbb-link__icon ::slotted([slot=icon]),.sbb-link__icon sbb-icon{position:absolute;top:50%;transform:translateY(-50%)}`, D = (t) => (() => {
14
14
  var r, i;
15
- let e = _(x(t)), s, n = [], l = [];
16
- return i = class extends e {
15
+ let o = _(x(t)), s, b = [], l = [];
16
+ return i = class extends o {
17
17
  constructor() {
18
18
  super(...arguments);
19
- p(this, r, f(this, n, "start"));
19
+ p(this, r, f(this, b, "start"));
20
20
  f(this, l);
21
21
  }
22
22
  /** Moves the icon to the end of the component if set to true. */
@@ -27,16 +27,16 @@ const P = S`:host{--sbb-link-color-hover: light-dark(var(--sbb-color-primary125)
27
27
  h(this, r, a);
28
28
  }
29
29
  renderTemplate() {
30
- return k`
30
+ return d`
31
31
  <span class="sbb-link__icon"> ${super.renderIconSlot()} </span>
32
32
  <slot></slot>
33
33
  `;
34
34
  }
35
35
  }, r = new WeakMap(), (() => {
36
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
37
- s = [d({ attribute: "icon-placement", reflect: !0 })], g(i, null, s, { kind: "accessor", name: "iconPlacement", static: !1, private: !1, access: { has: (b) => "iconPlacement" in b, get: (b) => b.iconPlacement, set: (b, y) => {
38
- b.iconPlacement = y;
39
- } }, metadata: a }, n, l), a && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
36
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
37
+ s = [y({ attribute: "icon-placement", reflect: !0 })], k(i, null, s, { kind: "accessor", name: "iconPlacement", static: !1, private: !1, access: { has: (n) => "iconPlacement" in n, get: (n) => n.iconPlacement, set: (n, g) => {
38
+ n.iconPlacement = g;
39
+ } }, metadata: a }, b, l), a && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
40
40
  })(), i.styles = [u, z, P], i;
41
41
  })();
42
42
  export {
package/lists.css CHANGED
@@ -41,16 +41,16 @@
41
41
  width: 1em;
42
42
  align-items: center;
43
43
  justify-content: center;
44
- inset-block-start: calc(0.5 * (var(--sbb-typo-line-height-body-text) * 1em - 1em));
44
+ inset-block-start: calc(0.5 * (var(--sbb-typo-line-height-text) * 1em - 1em));
45
45
  inset-inline-start: calc(-1 * (0.5 * var(--sbb-list-padding-inline-start) + 0.5em));
46
46
  transform: scale(1.3);
47
47
  }
48
48
  .sbb-list:where(dl) {
49
- --sbb-text-font-size: var(--sbb-font-size-text-s);
49
+ --sbb-text-font-size: var(--sbb-text-font-size-s);
50
50
  font-family: var(--sbb-typo-font-family);
51
51
  font-weight: normal;
52
- line-height: var(--sbb-typo-line-height-body-text);
53
- letter-spacing: var(--sbb-typo-letter-spacing-body-text);
52
+ line-height: var(--sbb-typo-line-height-text);
53
+ letter-spacing: var(--sbb-typo-letter-spacing-text);
54
54
  font-size: var(--sbb-text-font-size);
55
55
  margin: 0;
56
56
  padding: 0;
@@ -74,7 +74,7 @@
74
74
  --sbb-step-list-text-to-marker-block-offset: calc(
75
75
  0.5 *
76
76
  (
77
- var(--sbb-step-list-dimensions) - var(--sbb-typo-line-height-body-text) *
77
+ var(--sbb-step-list-dimensions) - var(--sbb-typo-line-height-text) *
78
78
  var(--sbb-text-font-size)
79
79
  )
80
80
  );
@@ -104,11 +104,11 @@
104
104
  min-height: calc(var(--sbb-step-list-dimensions) + 2 * var(--sbb-step-list-padding-block));
105
105
  }
106
106
  .sbb-step-list > li::before {
107
- --sbb-text-font-size: var(--sbb-font-size-text-xxs);
107
+ --sbb-text-font-size: var(--sbb-text-font-size-xxs);
108
108
  font-family: var(--sbb-typo-font-family);
109
109
  font-weight: normal;
110
- line-height: var(--sbb-typo-line-height-body-text);
111
- letter-spacing: var(--sbb-typo-letter-spacing-body-text);
110
+ line-height: var(--sbb-typo-line-height-text);
111
+ letter-spacing: var(--sbb-typo-letter-spacing-text);
112
112
  font-size: var(--sbb-text-font-size);
113
113
  font-weight: bold;
114
114
  content: counter(steps);
@@ -152,7 +152,7 @@
152
152
  --sbb-icon-list-text-to-marker-block-offset: calc(
153
153
  0.5 *
154
154
  (
155
- var(--sbb-icon-list-dimensions) - var(--sbb-typo-line-height-body-text) *
155
+ var(--sbb-icon-list-dimensions) - var(--sbb-typo-line-height-text) *
156
156
  var(--sbb-text-font-size)
157
157
  )
158
158
  );
@@ -3,7 +3,7 @@ import { html as a } from "lit/static-html.js";
3
3
  import { SbbDisabledMixin as s } from "../../core/mixins.js";
4
4
  import { boxSizingStyles as i } from "../../core/styles.js";
5
5
  import { SbbIconNameMixin as b } from "../../icon.js";
6
- const r = t`:host{outline:none!important;--sbb-menu-action-border-radius: var(--sbb-border-radius-infinity);--sbb-menu-action-outer-horizontal-padding: var(--sbb-spacing-fixed-3x);--sbb-menu-action-outer-vertical-padding: var(--sbb-spacing-fixed-1x);--sbb-menu-action-gap: var(--sbb-spacing-fixed-2x);--sbb-menu-action-cursor: var(--sbb-cursor-pointer);--sbb-menu-action-color: var(--sbb-color-2-inverted);--sbb-menu-action-forced-color-border-color: CanvasText;--sbb-menu-action-content-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-menu-action-content-padding-block: var(--sbb-spacing-fixed-1x);display:block}@media(any-hover:hover){:host(:is(:hover:not([disabled],:disabled,[disabled-interactive]),[aria-expanded=true])){--sbb-menu-background-color: var(--sbb-color-iron);--sbb-menu-background-color: light-dark(var(--sbb-color-iron), var(--sbb-color-milk));--sbb-menu-action-forced-color-border-color: Highlight}}:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-cursor: var(--sbb-cursor-default);--sbb-menu-action-color: var(--sbb-color-graphite);--sbb-menu-action-color: light-dark(var(--sbb-color-graphite), var(--sbb-color-granite));--sbb-menu-action-forced-color-border-color: GrayText;pointer-events:none;cursor:var(--sbb-cursor-default)}@media(forced-colors:active){:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-color: GrayText}}:host([data-sbb-menu-trigger]){--sbb-menu-action-cursor: var(--sbb-cursor-default)}@media(forced-colors:active){:host([data-button]){--sbb-menu-action-color: ButtonText}}:host([sbb-badge]:not(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:50% calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - .5 * var(--sbb-size-icon-ui-small)) auto auto!important;translate:50% -50%}:host([sbb-badge]:is(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:calc(var(--sbb-menu-action-outer-vertical-padding) + var(--sbb-menu-action-content-padding-block) + var(--sbb-badge-position-offset)) calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - var(--sbb-size-icon-ui-small) + var(--sbb-badge-position-offset)) auto auto!important}:host([aria-controls*=sbb-menu]){--sbb-menu-action-submenu-icon-display: flex}:is(.sbb-menu-button,.sbb-menu-link){text-decoration:none;display:block;width:100%;color:var(--sbb-menu-action-color);padding:var(--sbb-menu-action-outer-vertical-padding) var(--sbb-menu-action-outer-horizontal-padding);cursor:var(--sbb-menu-action-cursor);outline:none}.sbb-menu-action__content{--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;align-items:center;gap:var(--sbb-menu-action-gap);padding:var(--sbb-menu-action-content-padding-block) var(--sbb-menu-action-content-padding-inline);border-radius:var(--sbb-menu-action-border-radius);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;background-color:var(--sbb-menu-background-color)}:host(:focus-visible) .sbb-menu-action__content,:focus-visible .sbb-menu-action__content{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}@media(forced-colors:active){.sbb-menu-action__content{border:var(--sbb-border-width-2x) solid var(--sbb-menu-action-forced-color-border-color)}}.sbb-menu-action__icon,.sbb-menu-submenu__icon{display:flex;min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small)}.sbb-menu-submenu__icon{display:var(--sbb-menu-action-submenu-icon-display, none);margin-inline-start:auto}.sbb-menu-action__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-menu-action__label{text-decoration:line-through}`, v = (e) => {
6
+ const r = t`:host{outline:none!important;--sbb-menu-action-border-radius: var(--sbb-border-radius-infinity);--sbb-menu-action-outer-horizontal-padding: var(--sbb-spacing-fixed-3x);--sbb-menu-action-outer-vertical-padding: var(--sbb-spacing-fixed-1x);--sbb-menu-action-gap: var(--sbb-spacing-fixed-2x);--sbb-menu-action-cursor: var(--sbb-cursor-pointer);--sbb-menu-action-color: var(--sbb-color-2-inverted);--sbb-menu-action-forced-color-border-color: CanvasText;--sbb-menu-action-content-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-menu-action-content-padding-block: var(--sbb-spacing-fixed-1x);display:block}@media(any-hover:hover){:host(:is(:hover:not([disabled],:disabled,[disabled-interactive]),[aria-expanded=true])){--sbb-menu-background-color: var(--sbb-color-iron);--sbb-menu-background-color: light-dark(var(--sbb-color-iron), var(--sbb-color-milk));--sbb-menu-action-forced-color-border-color: Highlight}}:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-cursor: var(--sbb-cursor-default);--sbb-menu-action-color: var(--sbb-color-graphite);--sbb-menu-action-color: light-dark(var(--sbb-color-graphite), var(--sbb-color-granite));--sbb-menu-action-forced-color-border-color: GrayText;pointer-events:none;cursor:var(--sbb-cursor-default)}@media(forced-colors:active){:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-color: GrayText}}:host([data-sbb-menu-trigger]){--sbb-menu-action-cursor: var(--sbb-cursor-default)}@media(forced-colors:active){:host([data-button]){--sbb-menu-action-color: ButtonText}}:host([sbb-badge]:not(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:50% calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - .5 * var(--sbb-size-icon-ui-small)) auto auto!important;translate:50% -50%}:host([sbb-badge]:is(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:calc(var(--sbb-menu-action-outer-vertical-padding) + var(--sbb-menu-action-content-padding-block) + var(--sbb-badge-position-offset)) calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - var(--sbb-size-icon-ui-small) + var(--sbb-badge-position-offset)) auto auto!important}:host([aria-controls*=sbb-menu]){--sbb-menu-action-submenu-icon-display: flex}:is(.sbb-menu-button,.sbb-menu-link){text-decoration:none;display:block;width:100%;color:var(--sbb-menu-action-color);padding:var(--sbb-menu-action-outer-vertical-padding) var(--sbb-menu-action-outer-horizontal-padding);cursor:var(--sbb-menu-action-cursor);outline:none}.sbb-menu-action__content{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;align-items:center;gap:var(--sbb-menu-action-gap);padding:var(--sbb-menu-action-content-padding-block) var(--sbb-menu-action-content-padding-inline);border-radius:var(--sbb-menu-action-border-radius);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;background-color:var(--sbb-menu-background-color)}:host(:focus-visible) .sbb-menu-action__content,:focus-visible .sbb-menu-action__content{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}@media(forced-colors:active){.sbb-menu-action__content{border:var(--sbb-border-width-2x) solid var(--sbb-menu-action-forced-color-border-color)}}.sbb-menu-action__icon,.sbb-menu-submenu__icon{display:flex;min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small)}.sbb-menu-submenu__icon{display:var(--sbb-menu-action-submenu-icon-display, none);margin-inline-start:auto}.sbb-menu-action__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-menu-action__label{text-decoration:line-through}`, v = (e) => {
7
7
  const n = class n extends b(s(e)) {
8
8
  renderTemplate() {
9
9
  return a`
@@ -2,11 +2,11 @@ import { __esDecorate as n, __runInitializers as m } from "tslib";
2
2
  import { css as c, LitElement as g, html as d } from "lit";
3
3
  import { customElement as v } from "lit/decorators.js";
4
4
  import { boxSizingStyles as p } from "../core/styles.js";
5
- const f = c`:host{--sbb-message-subtitle-color: var(--sbb-color-granite);--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);--sbb-message-image-border-radius: var(--sbb-border-radius-4x);--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;display:block}.sbb-message__container{text-align:center}::slotted(sbb-title[slot=title]){margin:0}::slotted([slot=image]){display:block;margin-inline:auto!important;margin-block:var(--sbb-message-image-margin-block)!important;width:100%}::slotted([slot=subtitle]){--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);color:var(--sbb-message-subtitle-color);margin:0}::slotted([slot=legend]){--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);padding:0;color:var(--sbb-color-granite);color:light-dark(var(--sbb-color-granite),var(--sbb-color-cement));margin-block:var(--sbb-message-legend-margin-block)}::slotted([slot=action]){margin-block:var(--sbb-message-action-margin-block)}`;
5
+ const f = c`:host{--sbb-message-subtitle-color: var(--sbb-color-granite);--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);--sbb-message-image-border-radius: var(--sbb-border-radius-4x);--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;display:block}.sbb-message__container{text-align:center}::slotted(sbb-title[slot=title]){margin:0}::slotted([slot=image]){display:block;margin-inline:auto!important;margin-block:var(--sbb-message-image-margin-block)!important;width:100%}::slotted([slot=subtitle]){--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);color:var(--sbb-message-subtitle-color);margin:0}::slotted([slot=legend]){--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);padding:0;color:var(--sbb-color-granite);color:light-dark(var(--sbb-color-granite),var(--sbb-color-cement));margin-block:var(--sbb-message-legend-margin-block)}::slotted([slot=action]){margin-block:var(--sbb-message-action-margin-block)}`;
6
6
  let _ = (() => {
7
7
  var e;
8
- let r = [v("sbb-message")], o, l = [], t, i = g;
9
- return e = class extends i {
8
+ let r = [v("sbb-message")], l, i = [], t, o = g;
9
+ return e = class extends o {
10
10
  _configureTitle(s) {
11
11
  const a = s.target.assignedElements().find((b) => b.localName === "sbb-title");
12
12
  a && (customElements.upgrade(a), a.visualLevel = "5");
@@ -23,9 +23,9 @@ let _ = (() => {
23
23
  `;
24
24
  }
25
25
  }, t = e, (() => {
26
- const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
27
- n(null, o = { value: t }, r, { kind: "class", name: t.name, metadata: s }, null, l), t = o.value, s && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
28
- })(), e.styles = [p, f], m(t, l), t;
26
+ const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
27
+ n(null, l = { value: t }, r, { kind: "class", name: t.name, metadata: s }, null, i), t = l.value, s && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
28
+ })(), e.styles = [p, f], m(t, i), t;
29
29
  })();
30
30
  export {
31
31
  _ as SbbMessageElement