@sbb-esta/lyne-elements 2.5.1 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/autocomplete/autocomplete-base-element.d.ts +19 -20
  2. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  3. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts.map +1 -1
  4. package/autocomplete-grid/autocomplete-grid-button.js +7 -7
  5. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.d.ts +2 -2
  6. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.d.ts.map +1 -1
  7. package/autocomplete.js +143 -134
  8. package/chip/chip/chip.d.ts +32 -0
  9. package/chip/chip/chip.d.ts.map +1 -0
  10. package/chip/chip-group/chip-group.d.ts +100 -0
  11. package/chip/chip-group/chip-group.d.ts.map +1 -0
  12. package/chip/chip-group.d.ts +2 -0
  13. package/chip/chip-group.d.ts.map +1 -0
  14. package/chip/chip-group.js +225 -0
  15. package/chip/chip.d.ts +2 -0
  16. package/chip/chip.d.ts.map +1 -0
  17. package/chip/chip.js +85 -0
  18. package/chip.d.ts +3 -0
  19. package/chip.d.ts.map +1 -0
  20. package/chip.js +2 -0
  21. package/clock/clock.d.ts.map +1 -1
  22. package/clock.js +1 -1
  23. package/core/controllers/id-observer-controller.d.ts +21 -0
  24. package/core/controllers/id-observer-controller.d.ts.map +1 -0
  25. package/core/controllers/media-matchers-controller.d.ts.map +1 -1
  26. package/core/controllers.d.ts +2 -1
  27. package/core/controllers.d.ts.map +1 -1
  28. package/core/controllers.js +135 -80
  29. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  30. package/core/datetime.js +8 -3
  31. package/core/dom/find-referenced-element.d.ts +1 -0
  32. package/core/dom/find-referenced-element.d.ts.map +1 -1
  33. package/core/dom/input-element.d.ts +3 -1
  34. package/core/dom/input-element.d.ts.map +1 -1
  35. package/core/i18n/i18n.d.ts +3 -0
  36. package/core/i18n/i18n.d.ts.map +1 -1
  37. package/core/i18n.js +135 -117
  38. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  39. package/core/mixins.js +64 -59
  40. package/core/overlay/overlay-trigger-attributes.d.ts +1 -1
  41. package/core/overlay/overlay-trigger-attributes.d.ts.map +1 -1
  42. package/core/overlay/position.d.ts +1 -1
  43. package/core/overlay/position.d.ts.map +1 -1
  44. package/core/styles/core.scss +89 -24
  45. package/core/styles/image.scss +1 -1
  46. package/core/styles/mixins/table.scss +63 -26
  47. package/core/styles/table.scss +16 -0
  48. package/core/testing/scroll.d.ts +1 -0
  49. package/core/testing/scroll.d.ts.map +1 -1
  50. package/core/testing/wait-for-image-ready.d.ts.map +1 -1
  51. package/core/testing.js +8 -5
  52. package/core.css +90 -34
  53. package/custom-elements.json +1588 -650
  54. package/datepicker/datepicker/datepicker.d.ts +4 -4
  55. package/datepicker/datepicker/datepicker.d.ts.map +1 -1
  56. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts +0 -3
  57. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  58. package/datepicker/datepicker-toggle.js +30 -34
  59. package/datepicker/datepicker.js +103 -105
  60. package/development/autocomplete/autocomplete-base-element.d.ts +19 -20
  61. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  62. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts.map +1 -1
  63. package/development/autocomplete-grid/autocomplete-grid-button.js +3 -3
  64. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.d.ts +2 -2
  65. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.d.ts.map +1 -1
  66. package/development/autocomplete-grid/autocomplete-grid-optgroup.js +1 -1
  67. package/development/autocomplete.js +103 -79
  68. package/development/chip/chip/chip.d.ts +32 -0
  69. package/development/chip/chip/chip.d.ts.map +1 -0
  70. package/development/chip/chip-group/chip-group.d.ts +100 -0
  71. package/development/chip/chip-group/chip-group.d.ts.map +1 -0
  72. package/development/chip/chip-group.d.ts +2 -0
  73. package/development/chip/chip-group.d.ts.map +1 -0
  74. package/development/chip/chip-group.js +349 -0
  75. package/development/chip/chip.d.ts +2 -0
  76. package/development/chip/chip.d.ts.map +1 -0
  77. package/development/chip/chip.js +212 -0
  78. package/development/chip.d.ts +3 -0
  79. package/development/chip.d.ts.map +1 -0
  80. package/development/chip.js +3 -0
  81. package/development/clock/clock.d.ts.map +1 -1
  82. package/development/clock.js +5 -2
  83. package/development/core/controllers/id-observer-controller.d.ts +21 -0
  84. package/development/core/controllers/id-observer-controller.d.ts.map +1 -0
  85. package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
  86. package/development/core/controllers.d.ts +2 -1
  87. package/development/core/controllers.d.ts.map +1 -1
  88. package/development/core/controllers.js +116 -44
  89. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  90. package/development/core/datetime.js +6 -2
  91. package/development/core/dom/find-referenced-element.d.ts +1 -0
  92. package/development/core/dom/find-referenced-element.d.ts.map +1 -1
  93. package/development/core/dom/input-element.d.ts +3 -1
  94. package/development/core/dom/input-element.d.ts.map +1 -1
  95. package/development/core/dom.js +1 -1
  96. package/development/core/i18n/i18n.d.ts +3 -0
  97. package/development/core/i18n/i18n.d.ts.map +1 -1
  98. package/development/core/i18n.js +23 -2
  99. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  100. package/development/core/mixins.js +12 -3
  101. package/development/core/overlay/overlay-trigger-attributes.d.ts +1 -1
  102. package/development/core/overlay/overlay-trigger-attributes.d.ts.map +1 -1
  103. package/development/core/overlay/position.d.ts +1 -1
  104. package/development/core/overlay/position.d.ts.map +1 -1
  105. package/development/core/overlay.js +1 -1
  106. package/development/core/testing/scroll.d.ts +1 -0
  107. package/development/core/testing/scroll.d.ts.map +1 -1
  108. package/development/core/testing/wait-for-image-ready.d.ts.map +1 -1
  109. package/development/core/testing.js +6 -2
  110. package/development/datepicker/datepicker/datepicker.d.ts +4 -4
  111. package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
  112. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts +0 -3
  113. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  114. package/development/datepicker/datepicker-toggle.js +4 -12
  115. package/development/datepicker/datepicker.js +46 -43
  116. package/development/dialog/dialog-title/dialog-title.d.ts +0 -1
  117. package/development/dialog/dialog-title/dialog-title.d.ts.map +1 -1
  118. package/development/dialog/dialog-title.js +2 -5
  119. package/development/expansion-panel/expansion-panel/expansion-panel.d.ts +0 -2
  120. package/development/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  121. package/development/expansion-panel/expansion-panel.js +2 -7
  122. package/development/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
  123. package/development/flip-card/flip-card-details.js +3 -3
  124. package/development/form-field/form-field/form-field.d.ts.map +1 -1
  125. package/development/form-field/form-field.js +12 -145
  126. package/development/header/header/header.d.ts +6 -7
  127. package/development/header/header/header.d.ts.map +1 -1
  128. package/development/header/header.js +45 -34
  129. package/development/menu/menu/menu.d.ts +7 -8
  130. package/development/menu/menu/menu.d.ts.map +1 -1
  131. package/development/menu/menu.js +42 -41
  132. package/development/navigation/navigation/navigation.d.ts +7 -8
  133. package/development/navigation/navigation/navigation.d.ts.map +1 -1
  134. package/development/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
  135. package/development/navigation/navigation-marker.js +3 -3
  136. package/development/navigation/navigation-section/navigation-section.d.ts +8 -9
  137. package/development/navigation/navigation-section/navigation-section.d.ts.map +1 -1
  138. package/development/navigation/navigation-section.js +50 -47
  139. package/development/navigation/navigation.js +42 -40
  140. package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  141. package/development/option/optgroup/optgroup.d.ts +2 -2
  142. package/development/option/optgroup/optgroup.d.ts.map +1 -1
  143. package/development/option/optgroup.js +3 -3
  144. package/development/option/option/option-base-element.d.ts.map +1 -1
  145. package/development/option/option.js +3 -3
  146. package/development/paginator/paginator.js +12 -1
  147. package/development/popover/popover/popover.d.ts +8 -7
  148. package/development/popover/popover/popover.d.ts.map +1 -1
  149. package/development/popover/popover.js +28 -35
  150. package/development/select/select.d.ts +1 -1
  151. package/development/select/select.d.ts.map +1 -1
  152. package/development/select.js +15 -15
  153. package/development/selection-expansion-panel/selection-expansion-panel.d.ts +0 -2
  154. package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  155. package/development/selection-expansion-panel.js +2 -7
  156. package/development/sidebar/sidebar/sidebar.d.ts.map +1 -1
  157. package/development/sidebar/sidebar.js +3 -3
  158. package/development/stepper/step/step.d.ts +15 -1
  159. package/development/stepper/step/step.d.ts.map +1 -1
  160. package/development/stepper/step-label.js +2 -2
  161. package/development/stepper/step.js +23 -3
  162. package/development/stepper/stepper/stepper.d.ts +1 -0
  163. package/development/stepper/stepper/stepper.d.ts.map +1 -1
  164. package/development/stepper/stepper.js +5 -1
  165. package/development/table/table-wrapper.js +2 -1
  166. package/development/time-input/time-input.d.ts +6 -8
  167. package/development/time-input/time-input.d.ts.map +1 -1
  168. package/development/time-input.js +42 -44
  169. package/dialog/dialog-title/dialog-title.d.ts +0 -1
  170. package/dialog/dialog-title/dialog-title.d.ts.map +1 -1
  171. package/dialog/dialog-title.js +18 -21
  172. package/expansion-panel/expansion-panel/expansion-panel.d.ts +0 -2
  173. package/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  174. package/expansion-panel/expansion-panel.js +53 -56
  175. package/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
  176. package/flip-card/flip-card-details.js +8 -8
  177. package/form-field/form-field/form-field.d.ts.map +1 -1
  178. package/form-field/form-field.js +102 -97
  179. package/header/header/header.d.ts +6 -7
  180. package/header/header/header.d.ts.map +1 -1
  181. package/header/header.js +72 -70
  182. package/index.d.ts +4 -0
  183. package/index.js +4 -0
  184. package/menu/menu/menu.d.ts +7 -8
  185. package/menu/menu/menu.d.ts.map +1 -1
  186. package/menu/menu.js +73 -73
  187. package/navigation/navigation/navigation.d.ts +7 -8
  188. package/navigation/navigation/navigation.d.ts.map +1 -1
  189. package/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
  190. package/navigation/navigation-marker.js +4 -4
  191. package/navigation/navigation-section/navigation-section.d.ts +8 -9
  192. package/navigation/navigation-section/navigation-section.d.ts.map +1 -1
  193. package/navigation/navigation-section.js +75 -77
  194. package/navigation/navigation.js +70 -70
  195. package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  196. package/option/optgroup/optgroup.d.ts +2 -2
  197. package/option/optgroup/optgroup.d.ts.map +1 -1
  198. package/option/optgroup.js +13 -13
  199. package/option/option/option-base-element.d.ts.map +1 -1
  200. package/option/option.js +2 -2
  201. package/package.json +16 -1
  202. package/paginator/paginator.js +44 -44
  203. package/popover/popover/popover.d.ts +8 -7
  204. package/popover/popover/popover.d.ts.map +1 -1
  205. package/popover/popover.js +73 -73
  206. package/select/select.d.ts +1 -1
  207. package/select/select.d.ts.map +1 -1
  208. package/select.js +68 -67
  209. package/selection-expansion-panel/selection-expansion-panel.d.ts +0 -2
  210. package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  211. package/selection-expansion-panel.js +10 -13
  212. package/sidebar/sidebar/sidebar.d.ts.map +1 -1
  213. package/sidebar/sidebar.js +2 -2
  214. package/standard-theme.css +166 -79
  215. package/stepper/step/step.d.ts +15 -1
  216. package/stepper/step/step.d.ts.map +1 -1
  217. package/stepper/step-label.js +1 -1
  218. package/stepper/step.js +36 -22
  219. package/stepper/stepper/stepper.d.ts +1 -0
  220. package/stepper/stepper/stepper.d.ts.map +1 -1
  221. package/stepper/stepper.js +19 -16
  222. package/table/table-wrapper.js +4 -4
  223. package/table.css +75 -44
  224. package/time-input/time-input.d.ts +6 -8
  225. package/time-input/time-input.d.ts.map +1 -1
  226. package/time-input.js +66 -73
@@ -1268,21 +1268,59 @@ html {
1268
1268
  opacity: 1;
1269
1269
  }
1270
1270
 
1271
- sbb-form-field :where(input, textarea):disabled::placeholder {
1272
- color: var(--sbb-color-granite);
1273
- -webkit-text-fill-color: var(--sbb-color-granite);
1271
+ sbb-form-field :where(input, select, textarea, sbb-select, sbb-date-input) {
1272
+ --sbb-text-font-size: var(--sbb-font-size-text-m);
1273
+ font-family: var(--sbb-typo-font-family);
1274
+ font-weight: normal;
1275
+ line-height: var(--sbb-typo-line-height-body-text);
1276
+ letter-spacing: var(--sbb-typo-letter-spacing-body-text);
1277
+ font-size: var(--sbb-text-font-size);
1278
+ overflow: hidden;
1279
+ white-space: nowrap;
1280
+ text-overflow: ellipsis;
1281
+ outline: none;
1282
+ border: none;
1283
+ background-color: transparent;
1284
+ padding: 0;
1285
+ -webkit-appearance: none;
1286
+ outline: none !important;
1287
+ overflow: var(--sbb-form-field-overflow);
1288
+ width: 100%;
1289
+ box-sizing: border-box;
1290
+ color: var(--sbb-form-field-text-color);
1291
+ -webkit-text-fill-color: var(--sbb-form-field-text-color);
1292
+ opacity: 1;
1293
+ background-color: transparent;
1294
+ font-size: var(--sbb-form-field-input-text-size) !important;
1295
+ font-family: var(--sbb-typo-font-family) !important;
1296
+ line-height: var(--sbb-typo-line-height-body-text) !important;
1297
+ }
1298
+ sbb-form-field :where(input, select, textarea, sbb-select, sbb-date-input)::placeholder {
1299
+ color: var(--sbb-color-metal);
1300
+ -webkit-text-fill-color: var(--sbb-color-metal);
1301
+ opacity: 1;
1274
1302
  }
1275
- sbb-form-field[floating-label] :where(input, textarea)::placeholder, sbb-form-field[floating-label] sbb-date-input::after {
1276
- color: transparent;
1277
- -webkit-text-fill-color: transparent;
1303
+ sbb-form-field[floating-label] :where(input, select, textarea, sbb-select)::placeholder, sbb-form-field[floating-label] sbb-date-input::after {
1304
+ color: transparent !important;
1305
+ -webkit-text-fill-color: transparent !important;
1278
1306
  }
1279
1307
  @media (forced-colors: active) {
1280
- sbb-form-field[floating-label] :where(input, textarea)::placeholder, sbb-form-field[floating-label] sbb-date-input::after {
1281
- color: Canvas;
1282
- -webkit-text-fill-color: Canvas;
1308
+ sbb-form-field[floating-label] :where(input, select, textarea, sbb-select)::placeholder, sbb-form-field[floating-label] sbb-date-input::after {
1309
+ color: Canvas !important;
1310
+ -webkit-text-fill-color: Canvas !important;
1283
1311
  }
1284
1312
  }
1285
- sbb-form-field textarea {
1313
+ sbb-form-field:not([floating-label]) :where(input, select, textarea, sbb-select):disabled::placeholder {
1314
+ color: var(--sbb-color-granite);
1315
+ -webkit-text-fill-color: var(--sbb-color-granite);
1316
+ }
1317
+ sbb-form-field :where(select) {
1318
+ vertical-align: middle;
1319
+ }
1320
+ sbb-form-field :where(select, sbb-select) {
1321
+ padding-inline-end: var(--sbb-form-field-select-inline-padding-end);
1322
+ }
1323
+ sbb-form-field :where(textarea) {
1286
1324
  --sbb-scrollbar-thumb-width: 0.125rem;
1287
1325
  --sbb-scrollbar-thumb-width-hover: 0.25rem;
1288
1326
  --sbb-scrollbar-width-firefox: thin;
@@ -1291,34 +1329,44 @@ sbb-form-field textarea {
1291
1329
  --sbb-scrollbar-track-color: transparent;
1292
1330
  --sbb-scrollbar-width: var(--sbb-spacing-fixed-3x);
1293
1331
  }
1294
- sbb-form-field textarea::-webkit-scrollbar {
1332
+ sbb-form-field :where(textarea)::-webkit-scrollbar {
1295
1333
  width: var(--sbb-scrollbar-width);
1296
1334
  height: var(--sbb-scrollbar-width);
1297
1335
  background-color: var(--sbb-scrollbar-track-color, transparent);
1298
1336
  }
1299
- sbb-form-field textarea::-webkit-scrollbar-corner {
1337
+ sbb-form-field :where(textarea)::-webkit-scrollbar-corner {
1300
1338
  background-color: var(--sbb-scrollbar-track-color, transparent);
1301
1339
  }
1302
- sbb-form-field textarea::-webkit-scrollbar-thumb {
1340
+ sbb-form-field :where(textarea)::-webkit-scrollbar-thumb {
1303
1341
  background-color: var(--sbb-scrollbar-color, currentcolor);
1304
1342
  border: calc(0.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;
1305
1343
  border-radius: var(--sbb-border-radius-4x);
1306
1344
  background-clip: padding-box;
1307
1345
  }
1308
- sbb-form-field textarea::-webkit-scrollbar-thumb:hover {
1346
+ sbb-form-field :where(textarea)::-webkit-scrollbar-thumb:hover {
1309
1347
  background-color: var(--sbb-scrollbar-color-hover, currentcolor);
1310
1348
  border-width: calc(0.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)));
1311
1349
  }
1312
- sbb-form-field textarea::-webkit-scrollbar-button, sbb-form-field textarea::-webkit-scrollbar-corner {
1350
+ sbb-form-field :where(textarea)::-webkit-scrollbar-button, sbb-form-field :where(textarea)::-webkit-scrollbar-corner {
1313
1351
  display: none;
1314
1352
  }
1315
1353
  @supports not selector(::-webkit-scrollbar) {
1316
- sbb-form-field textarea {
1354
+ sbb-form-field :where(textarea) {
1317
1355
  scrollbar-width: var(--sbb-scrollbar-width-firefox);
1318
1356
  scrollbar-color: var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent);
1319
1357
  }
1320
1358
  }
1321
- sbb-form-field[negative] textarea {
1359
+ sbb-form-field :where(textarea) {
1360
+ position: relative;
1361
+ resize: none;
1362
+ white-space: break-spaces;
1363
+ overflow-y: auto;
1364
+ min-height: calc(var(--sbb-typo-line-height-body-text) * 1em);
1365
+ }
1366
+ sbb-form-field[size=l] :where(textarea) {
1367
+ padding-block-end: 0.34375rem;
1368
+ }
1369
+ sbb-form-field[negative] :where(textarea) {
1322
1370
  --sbb-scrollbar-thumb-width: 0.125rem;
1323
1371
  --sbb-scrollbar-thumb-width-hover: 0.25rem;
1324
1372
  --sbb-scrollbar-width-firefox: thin;
@@ -1327,29 +1375,29 @@ sbb-form-field[negative] textarea {
1327
1375
  --sbb-scrollbar-track-color: transparent;
1328
1376
  --sbb-scrollbar-width: var(--sbb-spacing-fixed-3x);
1329
1377
  }
1330
- sbb-form-field[negative] textarea::-webkit-scrollbar {
1378
+ sbb-form-field[negative] :where(textarea)::-webkit-scrollbar {
1331
1379
  width: var(--sbb-scrollbar-width);
1332
1380
  height: var(--sbb-scrollbar-width);
1333
1381
  background-color: var(--sbb-scrollbar-track-color, transparent);
1334
1382
  }
1335
- sbb-form-field[negative] textarea::-webkit-scrollbar-corner {
1383
+ sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-corner {
1336
1384
  background-color: var(--sbb-scrollbar-track-color, transparent);
1337
1385
  }
1338
- sbb-form-field[negative] textarea::-webkit-scrollbar-thumb {
1386
+ sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-thumb {
1339
1387
  background-color: var(--sbb-scrollbar-color, currentcolor);
1340
1388
  border: calc(0.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;
1341
1389
  border-radius: var(--sbb-border-radius-4x);
1342
1390
  background-clip: padding-box;
1343
1391
  }
1344
- sbb-form-field[negative] textarea::-webkit-scrollbar-thumb:hover {
1392
+ sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-thumb:hover {
1345
1393
  background-color: var(--sbb-scrollbar-color-hover, currentcolor);
1346
1394
  border-width: calc(0.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)));
1347
1395
  }
1348
- sbb-form-field[negative] textarea::-webkit-scrollbar-button, sbb-form-field[negative] textarea::-webkit-scrollbar-corner {
1396
+ sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-button, sbb-form-field[negative] :where(textarea)::-webkit-scrollbar-corner {
1349
1397
  display: none;
1350
1398
  }
1351
1399
  @supports not selector(::-webkit-scrollbar) {
1352
- sbb-form-field[negative] textarea {
1400
+ sbb-form-field[negative] :where(textarea) {
1353
1401
  scrollbar-width: var(--sbb-scrollbar-width-firefox);
1354
1402
  scrollbar-color: var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent);
1355
1403
  }
@@ -1432,7 +1480,7 @@ img {
1432
1480
  }
1433
1481
 
1434
1482
  sbb-container > [slot=image]:is(sbb-image, img),
1435
- sbb-container > [slot=image] :is(sbb-image, img) {
1483
+ sbb-container > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1436
1484
  --sbb-image-object-fit: cover;
1437
1485
  border-radius: var(--sbb-container-background-border-radius);
1438
1486
  height: 100%;
@@ -1440,7 +1488,7 @@ sbb-container > [slot=image] :is(sbb-image, img) {
1440
1488
  }
1441
1489
 
1442
1490
  sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
1443
- sbb-flip-card-summary > [slot=image] :is(sbb-image, img) {
1491
+ sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1444
1492
  --sbb-image-aspect-ratio: auto;
1445
1493
  --sbb-image-object-fit: cover;
1446
1494
  border-radius: 0;
@@ -1449,14 +1497,14 @@ sbb-flip-card-summary > [slot=image] :is(sbb-image, img) {
1449
1497
  }
1450
1498
 
1451
1499
  sbb-lead-container > [slot=image]:is(sbb-image, img, picture),
1452
- sbb-lead-container > [slot=image] :is(sbb-image, img, picture) {
1500
+ sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-overlap-image) {
1453
1501
  --sbb-image-aspect-ratio: var(--sbb-lead-container-image-ratio);
1454
1502
  --sbb-image-object-fit: cover;
1455
1503
  border-radius: var(--sbb-lead-container-image-border-radius);
1456
1504
  }
1457
1505
 
1458
1506
  sbb-message > [slot=image]:is(sbb-image, img),
1459
- sbb-message > [slot=image] :is(sbb-image, img) {
1507
+ sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1460
1508
  border-radius: var(--sbb-message-image-border-radius);
1461
1509
  }
1462
1510
 
@@ -1473,22 +1521,22 @@ sbb-message > [slot=image] :is(sbb-image, img) {
1473
1521
  --sbb-teaser-image-brightness: var(--sbb-teaser-image-brightness-hover);
1474
1522
  }
1475
1523
  }
1476
- :is(sbb-teaser, sbb-teaser-hero, sbb-teaser-product) :is(sbb-image, img) {
1524
+ :is(sbb-teaser, sbb-teaser-hero, sbb-teaser-product) :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1477
1525
  will-change: filter;
1478
1526
  filter: brightness(var(--sbb-teaser-image-brightness, 1));
1479
1527
  transition: filter var(--sbb-teaser-image-animation-duration) var(--sbb-teaser-image-animation-easing);
1480
1528
  }
1481
1529
 
1482
- :is(sbb-teaser-product, sbb-teaser-product-static) :is(sbb-image, img) {
1530
+ :is(sbb-teaser-product, sbb-teaser-product-static) :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1483
1531
  border-radius: 0;
1484
1532
  --sbb-image-object-fit: cover;
1485
1533
  --sbb-image-aspect-ratio: 16 / 9;
1486
1534
  }
1487
- :is(sbb-teaser-product, sbb-teaser-product-static) img {
1535
+ :is(sbb-teaser-product, sbb-teaser-product-static) img:not(.sbb-figure-overlap-image) {
1488
1536
  place-self: stretch;
1489
1537
  }
1490
1538
 
1491
- sbb-teaser :is(sbb-image, img) {
1539
+ sbb-teaser :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1492
1540
  --sbb-image-object-fit: cover;
1493
1541
  --sbb-image-aspect-ratio: 4 / 3;
1494
1542
  transition-property: filter, scale;
@@ -1496,16 +1544,16 @@ sbb-teaser :is(sbb-image, img) {
1496
1544
  scale: var(--sbb-teaser-scale, 1);
1497
1545
  }
1498
1546
 
1499
- :is(sbb-teaser-hero) :is(sbb-image, img) {
1547
+ sbb-teaser-hero :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1500
1548
  --sbb-image-aspect-ratio: 1 / 1;
1501
1549
  border-radius: 0;
1502
1550
  }
1503
1551
  @media (min-width: calc(37.5rem)) {
1504
- :is(sbb-teaser-hero) :is(sbb-image, img) {
1552
+ sbb-teaser-hero :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1505
1553
  --sbb-image-aspect-ratio: 16 / 9;
1506
1554
  }
1507
1555
  }
1508
- :is(sbb-teaser-hero) img {
1556
+ sbb-teaser-hero img:not(.sbb-figure-overlap-image) {
1509
1557
  display: block;
1510
1558
  align-self: stretch;
1511
1559
  width: 100%;
@@ -1586,6 +1634,14 @@ sbb-header + :where(sbb-sidebar-container, sbb-icon-sidebar-container) {
1586
1634
  margin-block-start: var(--sbb-header-height);
1587
1635
  }
1588
1636
 
1637
+ .sbb-select-trigger {
1638
+ width: 100%;
1639
+ height: var(--sbb-size-element-xs);
1640
+ }
1641
+ sbb-form-field .sbb-select-trigger {
1642
+ top: 0;
1643
+ }
1644
+
1589
1645
  sub {
1590
1646
  bottom: -0.36em;
1591
1647
  }
@@ -1723,7 +1779,7 @@ sup {
1723
1779
  grid-auto-rows: auto;
1724
1780
  margin: 0;
1725
1781
  }
1726
- .sbb-figure :is(img, sbb-image, .sbb-image) {
1782
+ .sbb-figure :is(img, sbb-image, .sbb-image):not(.sbb-figure-overlap-image) {
1727
1783
  grid-row: 1;
1728
1784
  grid-column: 1;
1729
1785
  width: 100%;
@@ -2202,10 +2258,10 @@ sup {
2202
2258
  --sbb-table-cell-padding-block: var(--sbb-spacing-responsive-xxxs);
2203
2259
  --sbb-table-cell-padding-inline: var(--sbb-spacing-fixed-4x);
2204
2260
  }
2205
- .sbb-table tbody tr:nth-child(odd),
2206
- .sbb-table-m tbody tr:nth-child(odd),
2207
- .sbb-table-s tbody tr:nth-child(odd),
2208
- .sbb-table-xs tbody tr:nth-child(odd) {
2261
+ .sbb-table tbody tr:nth-child(odd) :is(th, td),
2262
+ .sbb-table-m tbody tr:nth-child(odd) :is(th, td),
2263
+ .sbb-table-s tbody tr:nth-child(odd) :is(th, td),
2264
+ .sbb-table-xs tbody tr:nth-child(odd) :is(th, td) {
2209
2265
  background-color: var(--sbb-table-row-striped-color);
2210
2266
  }
2211
2267
  .sbb-table,
@@ -2220,14 +2276,35 @@ sup {
2220
2276
  --sbb-table-color: inherit;
2221
2277
  --sbb-table-caption-color: var(--sbb-color-granite);
2222
2278
  --sbb-table-caption-margin-block-start: var(--sbb-spacing-fixed-4x);
2223
- background-color: var(--sbb-table-background-color);
2224
- border: var(--sbb-table-border);
2225
- border-radius: var(--sbb-table-border-radius);
2226
2279
  border-spacing: 0;
2227
2280
  caption-side: bottom;
2228
2281
  color: var(--sbb-table-color);
2229
2282
  table-layout: auto;
2230
2283
  }
2284
+ .sbb-table thead > tr:last-of-type > th,
2285
+ .sbb-table-m thead > tr:last-of-type > th,
2286
+ .sbb-table-s thead > tr:last-of-type > th,
2287
+ .sbb-table-xs thead > tr:last-of-type > th {
2288
+ border-bottom: var(--sbb-table-border);
2289
+ }
2290
+ .sbb-table thead > tr:first-of-type > th,
2291
+ .sbb-table-m thead > tr:first-of-type > th,
2292
+ .sbb-table-s thead > tr:first-of-type > th,
2293
+ .sbb-table-xs thead > tr:first-of-type > th {
2294
+ border-block-start: var(--sbb-table-border);
2295
+ }
2296
+ .sbb-table thead > tr:first-of-type > th:first-of-type,
2297
+ .sbb-table-m thead > tr:first-of-type > th:first-of-type,
2298
+ .sbb-table-s thead > tr:first-of-type > th:first-of-type,
2299
+ .sbb-table-xs thead > tr:first-of-type > th:first-of-type {
2300
+ border-start-start-radius: var(--sbb-table-border-radius);
2301
+ }
2302
+ .sbb-table thead > tr:first-of-type > th:last-of-type,
2303
+ .sbb-table-m thead > tr:first-of-type > th:last-of-type,
2304
+ .sbb-table-s thead > tr:first-of-type > th:last-of-type,
2305
+ .sbb-table-xs thead > tr:first-of-type > th:last-of-type {
2306
+ border-start-end-radius: var(--sbb-table-border-radius);
2307
+ }
2231
2308
  .sbb-table thead > tr > th,
2232
2309
  .sbb-table-m thead > tr > th,
2233
2310
  .sbb-table-s thead > tr > th,
@@ -2239,23 +2316,17 @@ sup {
2239
2316
  letter-spacing: var(--sbb-typo-letter-spacing-body-text);
2240
2317
  font-size: var(--sbb-text-font-size);
2241
2318
  font-weight: bold;
2242
- border-bottom: var(--sbb-table-border);
2243
- border-right: var(--sbb-table-border);
2319
+ background-color: var(--sbb-table-background-color);
2320
+ border-inline-end: var(--sbb-table-border);
2244
2321
  padding-block: var(--sbb-table-header-padding-block);
2245
2322
  padding-inline: var(--sbb-table-header-padding-inline);
2246
2323
  text-align: left;
2247
2324
  }
2248
- .sbb-table thead > tr > th:last-of-type,
2249
- .sbb-table-m thead > tr > th:last-of-type,
2250
- .sbb-table-s thead > tr > th:last-of-type,
2251
- .sbb-table-xs thead > tr > th:last-of-type {
2252
- border-right: none;
2253
- }
2254
- .sbb-table tbody > tr:first-of-type td,
2255
- .sbb-table-m tbody > tr:first-of-type td,
2256
- .sbb-table-s tbody > tr:first-of-type td,
2257
- .sbb-table-xs tbody > tr:first-of-type td {
2258
- border-top: none;
2325
+ .sbb-table thead > tr > th:first-of-type,
2326
+ .sbb-table-m thead > tr > th:first-of-type,
2327
+ .sbb-table-s thead > tr > th:first-of-type,
2328
+ .sbb-table-xs thead > tr > th:first-of-type {
2329
+ border-inline-start: var(--sbb-table-border);
2259
2330
  }
2260
2331
  .sbb-table tbody > tr > td,
2261
2332
  .sbb-table-m tbody > tr > td,
@@ -2267,16 +2338,29 @@ sup {
2267
2338
  line-height: var(--sbb-typo-line-height-body-text);
2268
2339
  letter-spacing: var(--sbb-typo-letter-spacing-body-text);
2269
2340
  font-size: var(--sbb-text-font-size);
2270
- border-top: var(--sbb-table-border);
2271
- border-right: var(--sbb-table-border);
2341
+ background-color: var(--sbb-table-background-color);
2342
+ border-block-end: var(--sbb-table-border);
2343
+ border-inline-end: var(--sbb-table-border);
2272
2344
  padding-block: var(--sbb-table-cell-padding-block);
2273
2345
  padding-inline: var(--sbb-table-cell-padding-inline);
2274
2346
  }
2275
- .sbb-table tbody > tr > td:last-of-type,
2276
- .sbb-table-m tbody > tr > td:last-of-type,
2277
- .sbb-table-s tbody > tr > td:last-of-type,
2278
- .sbb-table-xs tbody > tr > td:last-of-type {
2279
- border-right: none;
2347
+ .sbb-table tbody > tr > td:first-of-type,
2348
+ .sbb-table-m tbody > tr > td:first-of-type,
2349
+ .sbb-table-s tbody > tr > td:first-of-type,
2350
+ .sbb-table-xs tbody > tr > td:first-of-type {
2351
+ border-inline-start: var(--sbb-table-border);
2352
+ }
2353
+ .sbb-table tbody > tr:last-of-type > td:first-of-type,
2354
+ .sbb-table-m tbody > tr:last-of-type > td:first-of-type,
2355
+ .sbb-table-s tbody > tr:last-of-type > td:first-of-type,
2356
+ .sbb-table-xs tbody > tr:last-of-type > td:first-of-type {
2357
+ border-end-start-radius: var(--sbb-table-border-radius);
2358
+ }
2359
+ .sbb-table tbody > tr:last-of-type > td:last-of-type,
2360
+ .sbb-table-m tbody > tr:last-of-type > td:last-of-type,
2361
+ .sbb-table-s tbody > tr:last-of-type > td:last-of-type,
2362
+ .sbb-table-xs tbody > tr:last-of-type > td:last-of-type {
2363
+ border-end-end-radius: var(--sbb-table-border-radius);
2280
2364
  }
2281
2365
  .sbb-table caption,
2282
2366
  .sbb-table-m caption,
@@ -2339,12 +2423,12 @@ sbb-table-wrapper[negative] .sbb-table,
2339
2423
  --sbb-table-caption-color: var(--sbb-color-cement);
2340
2424
  }
2341
2425
 
2342
- .sbb-table--striped tbody tr:nth-child(odd) {
2426
+ .sbb-table--striped tbody tr:nth-child(odd) :is(th, td) {
2343
2427
  background-color: var(--sbb-table-row-striped-color);
2344
2428
  }
2345
2429
 
2346
- .sbb-table--unstriped tbody tr:nth-child(odd) {
2347
- background-color: unset;
2430
+ .sbb-table--unstriped tbody tr:nth-child(odd) :is(th, td) {
2431
+ background-color: var(--sbb-table-background-color);
2348
2432
  }
2349
2433
 
2350
2434
  .sbb-table--theme-iron {
@@ -2357,6 +2441,10 @@ sbb-table-wrapper[negative] .sbb-table,
2357
2441
  --sbb-table-cell-color: var(--sbb-color-cloud);
2358
2442
  }
2359
2443
 
2444
+ .sbb-table-header-row:last-of-type > th {
2445
+ border-bottom: var(--sbb-table-border);
2446
+ }
2447
+
2360
2448
  .sbb-table-header-cell {
2361
2449
  --sbb-text-font-size: var(--sbb-font-size-text-xs);
2362
2450
  font-family: var(--sbb-typo-font-family);
@@ -2365,19 +2453,12 @@ sbb-table-wrapper[negative] .sbb-table,
2365
2453
  letter-spacing: var(--sbb-typo-letter-spacing-body-text);
2366
2454
  font-size: var(--sbb-text-font-size);
2367
2455
  font-weight: bold;
2368
- border-bottom: var(--sbb-table-border);
2369
- border-right: var(--sbb-table-border);
2456
+ background-color: var(--sbb-table-background-color);
2457
+ border-inline-end: var(--sbb-table-border);
2370
2458
  padding-block: var(--sbb-table-header-padding-block);
2371
2459
  padding-inline: var(--sbb-table-header-padding-inline);
2372
2460
  text-align: left;
2373
2461
  }
2374
- .sbb-table-header-cell:last-of-type {
2375
- border-right: none;
2376
- }
2377
-
2378
- .sbb-table-data-row:first-of-type td {
2379
- border-top: none;
2380
- }
2381
2462
 
2382
2463
  .sbb-table-row--striped {
2383
2464
  background-color: var(--sbb-table-row-striped-color);
@@ -2390,14 +2471,12 @@ sbb-table-wrapper[negative] .sbb-table,
2390
2471
  line-height: var(--sbb-typo-line-height-body-text);
2391
2472
  letter-spacing: var(--sbb-typo-letter-spacing-body-text);
2392
2473
  font-size: var(--sbb-text-font-size);
2393
- border-top: var(--sbb-table-border);
2394
- border-right: var(--sbb-table-border);
2474
+ background-color: var(--sbb-table-background-color);
2475
+ border-block-end: var(--sbb-table-border);
2476
+ border-inline-end: var(--sbb-table-border);
2395
2477
  padding-block: var(--sbb-table-cell-padding-block);
2396
2478
  padding-inline: var(--sbb-table-cell-padding-inline);
2397
2479
  }
2398
- .sbb-table-data-cell:last-of-type {
2399
- border-right: none;
2400
- }
2401
2480
 
2402
2481
  .sbb-table-caption {
2403
2482
  --sbb-text-font-size: var(--sbb-font-size-text-xs);
@@ -2411,6 +2490,14 @@ sbb-table-wrapper[negative] .sbb-table,
2411
2490
  text-align: left;
2412
2491
  }
2413
2492
 
2493
+ .sbb-table-filter {
2494
+ padding-block-start: 0 !important;
2495
+ }
2496
+
2497
+ .sbb-table-sticky {
2498
+ position: sticky !important;
2499
+ }
2500
+
2414
2501
  html.sbb-lean .sbb-table:not(.sbb-table-xs, .sbb-table-m) {
2415
2502
  --sbb-table-header-padding-block: var(--sbb-spacing-fixed-1x);
2416
2503
  --sbb-table-header-padding-inline: var(--sbb-spacing-fixed-2x);
@@ -1,4 +1,4 @@
1
- import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
1
+ import { CSSResultGroup, LitElement, PropertyValues, TemplateResult } from 'lit';
2
2
  import { SbbStepLabelElement } from '../step-label.js';
3
3
  export type SbbStepValidateEventDetails = {
4
4
  currentIndex: number | null;
@@ -16,11 +16,18 @@ export declare class SbbStepElement extends LitElement {
16
16
  static styles: CSSResultGroup;
17
17
  static readonly events: {
18
18
  readonly validate: "validate";
19
+ readonly resizeChange: "resizeChange";
19
20
  };
20
21
  /** Emits whenever step switch is triggered. */
21
22
  private _validate;
23
+ /**
24
+ * @internal
25
+ * Emits when a resize happens, used to avoid setting the height of the stepper from the step component.
26
+ */
27
+ private _resizeChange;
22
28
  private _stepper;
23
29
  private _label;
30
+ private _stepResizeObserver;
24
31
  /** The label of the step. */
25
32
  get label(): SbbStepLabelElement | null;
26
33
  constructor();
@@ -48,8 +55,10 @@ export declare class SbbStepElement extends LitElement {
48
55
  private _handleClick;
49
56
  private _isGoNextElement;
50
57
  private _isGoPreviousElement;
58
+ private _onStepElementResize;
51
59
  private _getStepLabel;
52
60
  connectedCallback(): void;
61
+ protected firstUpdated(changedProperties: PropertyValues<this>): void;
53
62
  protected render(): TemplateResult;
54
63
  }
55
64
  declare global {
@@ -57,4 +66,9 @@ declare global {
57
66
  'sbb-step': SbbStepElement;
58
67
  }
59
68
  }
69
+ declare global {
70
+ interface GlobalEventHandlersEventMap {
71
+ resizeChange: CustomEvent<void>;
72
+ }
73
+ }
60
74
  //# sourceMappingURL=step.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/elements/stepper/step/step.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,M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AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,2BAA2B;QACnC,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;KACjC;CACF"}
@@ -31,7 +31,7 @@ let g = 0, E = (() => {
31
31
  return t;
32
32
  }
33
33
  connectedCallback() {
34
- super.connectedCallback(), this.id = this.id || `sbb-step-label-${g++}`, this.internals.ariaSelected = "false", this._stepper = this.closest("sbb-stepper"), this._step = this._getStep(), this.toggleAttribute("data-disabled", this.hasAttribute("disabled"));
34
+ super.connectedCallback(), this.id || (this.id = `sbb-step-label-${g++}`), this.internals.ariaSelected = "false", this._stepper = this.closest("sbb-stepper"), this._step = this._getStep(), this.toggleAttribute("data-disabled", this.hasAttribute("disabled"));
35
35
  }
36
36
  firstUpdated(t) {
37
37
  super.firstUpdated(t), this.step && this.setAttribute("aria-controls", this.step.id);
package/stepper/step.js CHANGED
@@ -1,23 +1,28 @@
1
- import { __esDecorate as c, __runInitializers as h } from "tslib";
2
- import { css as m, LitElement as v, html as u } from "lit";
3
- import { customElement as y } from "lit/decorators.js";
4
- import { hostAttributes as g } from "../core/decorators.js";
5
- import { EventEmitter as f } from "../core/eventing.js";
6
- const _ = m`*,:before,:after{box-sizing:border-box}:host{--sbb-step-position: initial;--sbb-step-inset-block-start: unset;--sbb-step-opacity: 0;--sbb-step-display: none;--sbb-step-height: 0;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-step-animation-delay: 0;--sbb-step-color: var(--sbb-color-iron);display:contents}:host([data-selected]){--sbb-step-opacity: 1;--sbb-step-display: block;--sbb-step-height: fit-content;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-step-animation-delay: var(--sbb-step-animation-duration)}:host([data-orientation=horizontal]){--sbb-step-position: absolute;--sbb-step-inset-block-start: 0}:host([data-orientation=vertical]) .sbb-step--wrapper{margin-inline-start:var(--sbb-spacing-fixed-4x);opacity:0;height:0;transition:display var(--sbb-step-animation-duration) var(--sbb-animation-easing),height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-animation-easing);transition-behavior:allow-discrete}:host([data-selected][data-orientation=vertical]) .sbb-step--wrapper{opacity:1;height:var(--sbb-stepper-content-height);transition:display var(--sbb-step-animation-duration) var(--sbb-animation-easing),height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-stepper-animation-duration) var(--sbb-animation-easing);transition-behavior:allow-discrete}.sbb-step{--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);position:var(--sbb-step-position);width:100%;inset-block-start:var(--sbb-step-inset-block-start);opacity:var(--sbb-step-opacity);display:var(--sbb-step-display);height:var(--sbb-step-height);color:var(--sbb-step-color);transition-property:display,opacity;transition-duration:var(--sbb-step-animation-duration);transition-delay:var(--sbb-step-animation-delay);transition-timing-function:var(--sbb-animation-easing);transition-behavior:allow-discrete}@starting-style{.sbb-step{--sbb-step-opacity: 0}}`;
7
- let x = 0, A = (() => {
1
+ import { __esDecorate as c, __runInitializers as m } from "tslib";
2
+ import { ResizeController as u } from "@lit-labs/observers/resize-controller.js";
3
+ import { css as v, LitElement as g, html as y } from "lit";
4
+ import { customElement as f } from "lit/decorators.js";
5
+ import { hostAttributes as _ } from "../core/decorators.js";
6
+ import { EventEmitter as d } from "../core/eventing.js";
7
+ const x = v`*,:before,:after{box-sizing:border-box}:host{--sbb-step-position: initial;--sbb-step-inset-block-start: unset;--sbb-step-opacity: 0;--sbb-step-display: none;--sbb-step-height: 0;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-step-animation-delay: 0;--sbb-step-color: var(--sbb-color-iron);display:contents}:host([data-selected]){--sbb-step-opacity: 1;--sbb-step-display: block;--sbb-step-height: fit-content;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-step-animation-delay: var(--sbb-step-animation-duration)}:host([data-orientation=horizontal]){--sbb-step-position: absolute;--sbb-step-inset-block-start: 0}:host([data-orientation=vertical]) .sbb-step--wrapper{margin-inline-start:var(--sbb-spacing-fixed-4x);opacity:0;height:0;transition:display var(--sbb-step-animation-duration) var(--sbb-animation-easing),height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-animation-easing);transition-behavior:allow-discrete}:host([data-selected][data-orientation=vertical]) .sbb-step--wrapper{opacity:1;height:var(--sbb-stepper-content-height);transition:display var(--sbb-step-animation-duration) var(--sbb-animation-easing),height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-stepper-animation-duration) var(--sbb-animation-easing);transition-behavior:allow-discrete}.sbb-step{--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);position:var(--sbb-step-position);width:100%;inset-block-start:var(--sbb-step-inset-block-start);opacity:var(--sbb-step-opacity);display:var(--sbb-step-display);height:var(--sbb-step-height);color:var(--sbb-step-color);transition-property:display,opacity;transition-duration:var(--sbb-step-animation-duration);transition-delay:var(--sbb-step-animation-delay);transition-timing-function:var(--sbb-animation-easing);transition-behavior:allow-discrete}@starting-style{.sbb-step{--sbb-step-opacity: 0}}`;
8
+ let z = 0, L = (() => {
8
9
  var e;
9
- let d = [y("sbb-step"), g({
10
+ let h = [f("sbb-step"), _({
10
11
  slot: "step",
11
12
  role: "tabpanel"
12
- })], b, r = [], i, o = v;
13
- var n = (e = class extends o {
13
+ })], r, b = [], s, o = g;
14
+ var a = (e = class extends o {
14
15
  /** The label of the step. */
15
16
  get label() {
16
17
  return this._label;
17
18
  }
18
19
  constructor() {
19
20
  var t;
20
- super(), this._validate = new f(this, n.events.validate), this._stepper = null, this._label = null, (t = this.addEventListener) == null || t.call(this, "click", (a) => this._handleClick(a));
21
+ super(), this._validate = new d(this, a.events.validate), this._resizeChange = new d(this, a.events.resizeChange, { bubbles: !0 }), this._stepper = null, this._label = null, this._stepResizeObserver = new u(this, {
22
+ target: null,
23
+ skipInitial: !0,
24
+ callback: () => setTimeout(() => this._onStepElementResize())
25
+ }), (t = this.addEventListener) == null || t.call(this, "click", (n) => this._handleClick(n));
21
26
  }
22
27
  /**
23
28
  * Selects and configures the step.
@@ -50,8 +55,8 @@ let x = 0, A = (() => {
50
55
  /** Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes. */
51
56
  _handleClick(t) {
52
57
  var l, p;
53
- const a = t.composedPath().filter((s) => s instanceof window.HTMLElement);
54
- a.some((s) => this._isGoNextElement(s)) ? (l = this._stepper) == null || l.next() : a.some((s) => this._isGoPreviousElement(s)) && ((p = this._stepper) == null || p.previous());
58
+ const n = t.composedPath().filter((i) => i instanceof window.HTMLElement);
59
+ n.some((i) => this._isGoNextElement(i)) ? (l = this._stepper) == null || l.next() : n.some((i) => this._isGoPreviousElement(i)) && ((p = this._stepper) == null || p.previous());
55
60
  }
56
61
  _isGoNextElement(t) {
57
62
  return t.hasAttribute("sbb-stepper-next") && !t.hasAttribute("disabled");
@@ -59,6 +64,9 @@ let x = 0, A = (() => {
59
64
  _isGoPreviousElement(t) {
60
65
  return t.hasAttribute("sbb-stepper-previous") && !t.hasAttribute("disabled");
61
66
  }
67
+ _onStepElementResize() {
68
+ this.hasAttribute("data-selected") && this._resizeChange.emit();
69
+ }
62
70
  _getStepLabel() {
63
71
  let t = this.previousElementSibling;
64
72
  for (; t && t.localName !== "sbb-step-label"; )
@@ -66,10 +74,15 @@ let x = 0, A = (() => {
66
74
  return t;
67
75
  }
68
76
  connectedCallback() {
69
- super.connectedCallback(), this.id = this.id || `sbb-step-${x++}`, this._stepper = this.closest("sbb-stepper"), this._label = this._getStepLabel();
77
+ super.connectedCallback(), this.id || (this.id = `sbb-step-${z++}`), this._stepper = this.closest("sbb-stepper"), this._label = this._getStepLabel();
78
+ }
79
+ firstUpdated(t) {
80
+ super.firstUpdated(t), this.updateComplete.then(() => {
81
+ this._stepResizeObserver.observe(this.shadowRoot.querySelector(".sbb-step"));
82
+ });
70
83
  }
71
84
  render() {
72
- return u`
85
+ return y`
73
86
  <div class="sbb-step--wrapper">
74
87
  <div class="sbb-step">
75
88
  <slot></slot>
@@ -77,14 +90,15 @@ let x = 0, A = (() => {
77
90
  </div>
78
91
  `;
79
92
  }
80
- }, i = e, (() => {
93
+ }, s = e, (() => {
81
94
  const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
82
- c(null, b = { value: i }, d, { kind: "class", name: i.name, metadata: t }, null, r), n = i = b.value, t && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
83
- })(), e.styles = _, e.events = {
84
- validate: "validate"
85
- }, h(i, r), e);
86
- return n = i;
95
+ c(null, r = { value: s }, h, { kind: "class", name: s.name, metadata: t }, null, b), a = s = r.value, t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
96
+ })(), e.styles = x, e.events = {
97
+ validate: "validate",
98
+ resizeChange: "resizeChange"
99
+ }, m(s, b), e);
100
+ return a = s;
87
101
  })();
88
102
  export {
89
- A as SbbStepElement
103
+ L as SbbStepElement
90
104
  };
@@ -56,6 +56,7 @@ export declare class SbbStepperElement extends SbbStepperElement_base {
56
56
  */
57
57
  private _setStepperHeight;
58
58
  private _calculateLabelOffsetTop;
59
+ private _onSelectedStepResize;
59
60
  private _configure;
60
61
  private _updateLabels;
61
62
  private _checkOrientation;
@@ -1 +1 @@
1
- {"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../../src/elements/stepper/stepper/stepper.ts"],"names":[],"mappings":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