@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.
- package/alert/alert/alert.component.js +5 -5
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +6 -6
- package/badge.css +3 -3
- package/breadcrumb/breadcrumb/breadcrumb.component.js +4 -4
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +4 -4
- package/button/common.js +1 -1
- package/button/mini-button/mini-button.component.js +1 -1
- package/button.js +1 -1
- package/calendar/calendar.component.js +1 -1
- package/card/card-badge/card-badge.component.js +7 -7
- package/card/card-button/card-button.component.d.ts +1 -1
- package/card/card-link/card-link.component.d.ts +1 -1
- package/carousel/carousel/carousel.component.d.ts +2 -1
- package/carousel/carousel/carousel.component.d.ts.map +1 -1
- package/carousel/carousel/carousel.component.js +33 -28
- package/carousel/carousel-list/carousel-list.component.d.ts +1 -1
- package/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/carousel/carousel-list/carousel-list.component.js +17 -22
- package/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/common.js +1 -1
- package/checkbox-common-CrwfdL9V.js +5 -0
- package/checkbox.js +1 -1
- package/chip/chip/chip.component.js +3 -3
- package/chip-label/chip-label.component.js +8 -8
- package/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/core/controllers/media-matchers-controller.js +27 -27
- package/core/dom/breakpoint.d.ts +1 -0
- package/core/dom/breakpoint.d.ts.map +1 -1
- package/core/styles/core.scss +46 -47
- package/core/styles/mixins/chip.scss +4 -4
- package/core/styles/mixins/lists.scss +3 -3
- package/core/styles/mixins/panel.scss +2 -2
- package/core/styles/mixins/typo.scss +42 -40
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss +166 -38
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +4 -4
- package/core/styles/typography.scss +6 -6
- package/core.css +83 -84
- package/custom-elements.json +1494 -1515
- package/development/alert/alert/alert.component.js +7 -5
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +3 -3
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +3 -3
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +3 -3
- package/development/button/common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +2 -2
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.js +15 -15
- package/development/card/card-badge/card-badge.component.js +3 -3
- package/development/card/card-button/card-button.component.d.ts +1 -1
- package/development/card/card-link/card-link.component.d.ts +1 -1
- package/development/carousel/carousel/carousel.component.d.ts +2 -1
- package/development/carousel/carousel/carousel.component.d.ts.map +1 -1
- package/development/carousel/carousel/carousel.component.js +19 -8
- package/development/carousel/carousel-list/carousel-list.component.d.ts +1 -1
- package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
- package/development/carousel/carousel-list/carousel-list.component.js +7 -14
- package/development/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/development/checkbox/common.js +1 -1
- package/development/{checkbox-common-BZFJgZd7.js → checkbox-common-BKjxH3Rp.js} +12 -12
- package/development/checkbox.js +1 -1
- package/development/chip/chip/chip.component.js +3 -3
- package/development/chip-label/chip-label.component.js +6 -6
- package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/development/core/controllers/media-matchers-controller.js +5 -6
- package/development/core/dom/breakpoint.d.ts +1 -0
- package/development/core/dom/breakpoint.d.ts.map +1 -1
- package/development/core/dom/breakpoint.js +1 -1
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -3
- package/development/file-selector/common.js +1 -1
- package/development/file-selector/file-selector/file-selector.component.d.ts +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +8 -8
- package/development/{file-selector-common-CsFa5XJ-.js → file-selector-common-B-9Eiig3.js} +4 -4
- package/development/file-selector.js +1 -1
- package/development/footer/footer.component.js +3 -3
- package/development/form-error/form-error.component.js +5 -5
- package/development/form-field/form-field/form-field.component.js +14 -14
- package/development/header/common/header-action-common.js +3 -3
- package/development/header/header-button/header-button.component.d.ts +1 -1
- package/development/header/header-environment/header-environment.component.js +3 -3
- package/development/header/header-link/header-link.component.d.ts +1 -1
- package/development/image/image.component.d.ts +0 -1
- package/development/image/image.component.d.ts.map +1 -1
- package/development/image/image.component.js +11 -16
- package/development/link/common/block-link-common.js +10 -10
- package/development/menu/common/menu-action-common.js +3 -3
- package/development/message/message.component.js +6 -6
- package/development/{mini-button-common-Di32bSJj.js → mini-button-common-D1dU4MgN.js} +4 -4
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +3 -3
- package/development/navigation/common/navigation-action-common.js +11 -11
- package/development/navigation/navigation-button/navigation-button.component.d.ts +1 -1
- package/development/navigation/navigation-link/navigation-link.component.d.ts +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +3 -3
- package/development/navigation/navigation-marker/navigation-marker.component.js +9 -9
- package/development/navigation/navigation-section/navigation-section.component.js +5 -5
- package/development/notification/notification.component.js +7 -7
- package/development/option/optgroup/optgroup-base-element.js +3 -3
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option/option-base-element.js +14 -4
- package/development/option/option/option.component.d.ts.map +1 -1
- package/development/option/option/option.component.js +8 -5
- package/development/option/option-hint/option-hint.component.js +3 -3
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +3 -3
- package/development/paginator/paginator/paginator.component.d.ts +1 -1
- package/development/paginator/paginator/paginator.component.js +12 -12
- package/development/radio-button/common.js +1 -1
- package/development/radio-button/radio-button/radio-button.component.d.ts +1 -1
- package/development/{radio-button-common-5uawgCpB.js → radio-button-common-BPrInmpg.js} +11 -11
- package/development/radio-button.js +1 -1
- package/development/sbb-tokens-DZrHvErO.js +19 -0
- package/development/select/select.component.js +1 -1
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/status/status.component.js +4 -4
- package/development/stepper/step/step.component.js +3 -3
- package/development/stepper/step-label/step-label.component.js +15 -15
- package/development/tabs/tab-label/tab-label.component.js +18 -18
- package/development/tag/tag/tag.component.js +7 -7
- package/development/teaser/teaser.component.js +3 -3
- package/development/teaser-hero/teaser-hero.component.js +2 -2
- package/development/teaser-product/common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
- package/development/{teaser-product-common-B1KK4iNu.js → teaser-product-common-v3BvyFdH.js} +5 -5
- package/development/teaser-product.js +1 -1
- package/development/timetable-occupancy/timetable-occupancy.component.js +3 -3
- package/development/title/title-base.js +10 -10
- package/development/title/title.component.d.ts +1 -2
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +25 -13
- package/development/toast/toast.component.js +5 -5
- package/development/toggle/toggle/toggle.component.js +3 -3
- package/development/toggle/toggle-option/toggle-option.component.js +3 -3
- package/development/toggle-check/toggle-check.component.js +11 -11
- package/development/tooltip/tooltip.component.js +3 -3
- package/development/train/train/train.component.js +4 -4
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +3 -3
- package/development/train/train-wagon/train-wagon.component.js +9 -9
- package/dialog/dialog-close-button/dialog-close-button.component.js +4 -4
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +1 -1
- package/file-selector/common.js +1 -1
- package/file-selector/file-selector/file-selector.component.d.ts +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +9 -9
- package/{file-selector-common-CUp299VH.js → file-selector-common-DbYkpr-x.js} +1 -1
- package/file-selector.js +1 -1
- package/footer/footer.component.js +1 -1
- package/form-error/form-error.component.js +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/header/common/header-action-common.js +1 -1
- package/header/header-button/header-button.component.d.ts +1 -1
- package/header/header-environment/header-environment.component.js +4 -4
- package/header/header-link/header-link.component.d.ts +1 -1
- package/image/image.component.d.ts +0 -1
- package/image/image.component.d.ts.map +1 -1
- package/image/image.component.js +93 -97
- package/link/common/block-link-common.js +14 -14
- package/lists.css +9 -9
- package/menu/common/menu-action-common.js +1 -1
- package/message/message.component.js +6 -6
- package/mini-button-common-DSGLaplg.js +10 -0
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
- package/navigation/common/navigation-action-common.js +17 -17
- package/navigation/navigation-button/navigation-button.component.d.ts +1 -1
- package/navigation/navigation-link/navigation-link.component.d.ts +1 -1
- package/navigation/navigation-list/navigation-list.component.js +3 -3
- package/navigation/navigation-marker/navigation-marker.component.js +12 -12
- package/navigation/navigation-section/navigation-section.component.js +5 -5
- package/notification/notification.component.js +1 -1
- package/off-brand-theme.css +136 -137
- package/option/optgroup/optgroup-base-element.js +1 -1
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option/option-base-element.js +30 -20
- package/option/option/option.component.d.ts.map +1 -1
- package/option/option/option.component.js +8 -8
- package/option/option-hint/option-hint.component.js +10 -10
- package/package.json +1 -1
- package/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
- package/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/paginator/paginator/paginator.component.d.ts +1 -1
- package/paginator/paginator/paginator.component.js +1 -1
- package/radio-button/common.js +1 -1
- package/radio-button/radio-button/radio-button.component.d.ts +1 -1
- package/radio-button-common-chJrmIBn.js +5 -0
- package/radio-button.js +1 -1
- package/safety-theme.css +140 -141
- package/sbb-tokens-BNWpZrLn.js +11 -0
- package/select/select.component.js +1 -1
- package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
- package/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
- package/sidebar/sidebar-title/sidebar-title.component.js +5 -5
- package/standard-theme.css +136 -137
- package/status/status.component.js +4 -4
- package/stepper/step/step.component.js +3 -3
- package/stepper/step-label/step-label.component.js +1 -1
- package/table.css +27 -27
- package/tabs/tab-label/tab-label.component.js +10 -10
- package/tag/tag/tag.component.js +1 -1
- package/teaser/teaser.component.js +1 -1
- package/teaser-hero/teaser-hero.component.js +1 -1
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
- package/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
- package/teaser-product-common-a4NenpSA.js +5 -0
- package/teaser-product.js +1 -1
- package/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/title/title-base.js +19 -19
- package/title/title.component.d.ts +1 -2
- package/title/title.component.d.ts.map +1 -1
- package/title/title.component.js +17 -17
- package/toast/toast.component.js +1 -1
- package/toggle/toggle/toggle.component.js +1 -1
- package/toggle/toggle-option/toggle-option.component.js +7 -7
- package/toggle-check/toggle-check.component.js +15 -15
- package/tooltip/tooltip.component.js +5 -5
- package/train/train/train.component.js +1 -1
- package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/train/train-formation/train-formation.component.js +1 -1
- package/train/train-wagon/train-wagon.component.js +1 -1
- package/typography.css +11 -11
- package/checkbox-common-BGA_q9nc.js +0 -5
- package/development/sbb-tokens-DXgmy_b-.js +0 -21
- package/mini-button-common-DBnJfrBZ.js +0 -10
- package/radio-button-common-BT3VkZLM.js +0 -5
- package/sbb-tokens-CB1Hgctn.js +0 -12
- package/teaser-product-common-BwqWqRrK.js +0 -5
|
@@ -4,7 +4,7 @@ var v = (e) => {
|
|
|
4
4
|
var p = (e, r, b) => r.has(e) || v("Cannot " + b);
|
|
5
5
|
var m = (e, r, b) => (p(e, r, "read from private field"), b ? b.call(e) : r.get(e)), g = (e, r, b) => r.has(e) ? v("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, b), l = (e, r, b, o) => (p(e, r, "write to private field"), o ? o.call(e, b) : r.set(e, b), b);
|
|
6
6
|
import { __runInitializers as c, __esDecorate as f } from "tslib";
|
|
7
|
-
import { css as
|
|
7
|
+
import { css as x, LitElement as y, html as k } from "lit";
|
|
8
8
|
import { customElement as w, property as S } from "lit/decorators.js";
|
|
9
9
|
import { SbbLanguageController as z } from "../../core/controllers.js";
|
|
10
10
|
import { i18nChipDelete as D } from "../../core/i18n.js";
|
|
@@ -12,10 +12,10 @@ import { SbbNegativeMixin as E, SbbDisabledMixin as C, SbbReadonlyMixin as q, Sb
|
|
|
12
12
|
import { boxSizingStyles as I } from "../../core/styles.js";
|
|
13
13
|
import "../../button/mini-button.js";
|
|
14
14
|
import "../../screen-reader-only.js";
|
|
15
|
-
const M =
|
|
15
|
+
const M = x`:host{--sbb-chip-background-color: var(--sbb-background-color-3);--sbb-chip-border: var(--sbb-border-width-1x) solid var(--sbb-chip-border-color);--sbb-chip-border-color: var(--sbb-border-color-4-inverted);--sbb-chip-border-radius: var(--sbb-border-radius-2x);--sbb-chip-color: var(--sbb-color-granite);--sbb-chip-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));--sbb-chip-color-active: var(--sbb-color-2);--sbb-chip-color-hover: var(--sbb-color-2);--sbb-chip-background-color-active: var(--sbb-background-color-1);--sbb-chip-background-color-hover: var(--sbb-background-color-1);--sbb-chip-height: 1.5rem;--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-chip-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );outline:none!important;display:inline-block}:host([negative]){--sbb-chip-border-color: var(--sbb-border-color-4-negative-inverted);--sbb-chip-background-color: var(--sbb-background-color-3-negative);--sbb-chip-color: var(--sbb-color-4-negative);--sbb-chip-color-active: var(--sbb-color-2-negative);--sbb-chip-color-hover: var(--sbb-color-2-negative);--sbb-chip-background-color-active: var(--sbb-background-color-1-negative);--sbb-chip-background-color-hover: var(--sbb-background-color-1-negative);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}.sbb-chip{background-color:var(--sbb-chip-background-color);border-radius:var(--sbb-chip-border-radius);color:var(--sbb-chip-color);display:flex;align-items:stretch;height:var(--sbb-chip-height)}:host(:focus) .sbb-chip{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-offset: -.0625rem;--sbb-focus-outline-style: initial}.sbb-chip__label-wrapper{border:var(--sbb-chip-border);border-inline-end:none;border-radius:var(--sbb-chip-border-radius) 0 0 var(--sbb-chip-border-radius);display:flex;align-items:center;padding-inline:var(--sbb-chip-label-padding-inline);outline:none;overflow:hidden}:host(:is([disabled],[readonly])) .sbb-chip__label-wrapper{border:var(--sbb-chip-border);border-radius:var(--sbb-chip-border-radius)}.sbb-chip__label{--sbb-text-font-size: var(--sbb-text-font-size-xxs);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);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;transition:transform var(--sbb-chip-transition-duration) var(--sbb-animation-easing)}.sbb-chip__delete{--sbb-mini-button-border-radius: 0 var(--sbb-chip-border-radius) var(--sbb-chip-border-radius) 0;--sbb-mini-button-color-text: var(--sbb-chip-color);--sbb-mini-button-color-active-background: var(--sbb-chip-background-color-active);--sbb-mini-button-color-hover-background: var(--sbb-chip-background-color-hover);--sbb-icon-svg-width: calc(var(--sbb-size-icon-ui-small) - var(--sbb-border-width-1x) * 2);--sbb-icon-svg-height: calc(var(--sbb-size-icon-ui-small) - var(--sbb-border-width-1x) * 2);border:var(--sbb-chip-border);border-radius:0 var(--sbb-chip-border-radius) var(--sbb-chip-border-radius) 0}:host(:is([disabled],[readonly])) .sbb-chip__delete{display:none}@media(any-hover:hover){:host(:not([disabled])) .sbb-chip__delete:hover{--sbb-mini-button-color-text: var(--sbb-chip-color-hover)}}`;
|
|
16
16
|
let H = (() => {
|
|
17
17
|
var s, t;
|
|
18
|
-
let e = [w("sbb-chip")], r, b = [], o, n = E(C(q(B(
|
|
18
|
+
let e = [w("sbb-chip")], r, b = [], o, n = E(C(q(B(y)))), d, u = [], h = [];
|
|
19
19
|
return t = class extends n {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var
|
|
1
|
+
var k = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var y = (e, s, t) => s.has(e) || k("Cannot " + t);
|
|
5
|
+
var p = (e, s, t) => (y(e, s, "read from private field"), t ? t.call(e) : s.get(e)), d = (e, s, t) => s.has(e) ? k("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), h = (e, s, t, a) => (y(e, s, "write to private field"), a ? a.call(e, t) : s.set(e, t), t);
|
|
6
6
|
import { __esDecorate as g, __runInitializers as c } from "tslib";
|
|
7
7
|
import { css as S, LitElement as E, html as I } from "lit";
|
|
8
8
|
import { customElement as j, property as w } from "lit/decorators.js";
|
|
9
9
|
import { boxSizingStyles as D } from "../core/styles.js";
|
|
10
|
-
const C = S`:host{display:inline-block;--sbb-chip-label-color: var(--sbb-color-granite);--sbb-chip-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));--sbb-chip-label-background-color: var(--sbb-background-color-3);--sbb-chip-label-padding-block: 0em;--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-text-font-size: var(--sbb-font-size-
|
|
10
|
+
const C = S`:host{display:inline-block;--sbb-chip-label-color: var(--sbb-color-granite);--sbb-chip-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));--sbb-chip-label-background-color: var(--sbb-background-color-3);--sbb-chip-label-padding-block: 0em;--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);--sbb-text-font-size: var(--sbb-text-font-size-xxs)}:host([color=charcoal]){--sbb-chip-label-color: var(--sbb-color-2-inverted);--sbb-chip-label-background-color: var(--sbb-background-color-2-inverted)}:host([color=white]){--sbb-chip-label-color: var(--sbb-color-granite);--sbb-chip-label-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));--sbb-chip-label-background-color: var(--sbb-background-color-1)}:host([color=granite]){--sbb-chip-label-color: var(--sbb-color-2-inverted);--sbb-chip-label-background-color: var(--sbb-color-granite);--sbb-chip-label-background-color: light-dark(var(--sbb-color-granite), var(--sbb-color-storm))}:host([size=xs]){--sbb-chip-label-padding-block: var(--sbb-spacing-fixed-1x);--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-3x);--sbb-text-font-size: var(--sbb-text-font-size-xs)}:host([size=s]){--sbb-chip-label-padding-block: var(--sbb-spacing-fixed-1x);--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-4x);--sbb-text-font-size: var(--sbb-text-font-size-s)}.sbb-chip-label{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);line-height:2;display:inline-flex;align-items:center;justify-content:center;height:calc(var(--sbb-typo-line-height-text) * var(--sbb-text-font-size) + var(--sbb-chip-label-padding-block) * 2);background-color:var(--sbb-chip-label-background-color);padding-inline:var(--sbb-chip-label-padding-inline);border-radius:var(--sbb-border-radius-infinity);color:var(--sbb-chip-label-color);overflow:hidden}@media(forced-colors:active){.sbb-chip-label{outline:var(--sbb-border-width-1x) solid CanvasText;outline-offset:calc(-1 * var(--sbb-border-width-1x))}}.sbb-chip-label{display:flex}.sbb-chip__text-wrapper{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block}`;
|
|
11
11
|
let B = (() => {
|
|
12
12
|
var o, b, i;
|
|
13
13
|
let e = [j("sbb-chip-label")], s, t = [], a, v = E, f, u = [], x = [], m, _ = [], z = [];
|
|
14
14
|
return i = class extends v {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
d(this, o, c(this, u, "xxs"));
|
|
18
|
+
d(this, b, (c(this, x), c(this, _, "milk")));
|
|
19
19
|
c(this, z);
|
|
20
20
|
}
|
|
21
21
|
/** Size of the chip. */
|
|
22
22
|
get size() {
|
|
23
|
-
return
|
|
23
|
+
return p(this, o);
|
|
24
24
|
}
|
|
25
25
|
set size(r) {
|
|
26
26
|
h(this, o, r);
|
|
27
27
|
}
|
|
28
28
|
/** Color of the chip. */
|
|
29
29
|
get color() {
|
|
30
|
-
return
|
|
30
|
+
return p(this, b);
|
|
31
31
|
}
|
|
32
32
|
set color(r) {
|
|
33
33
|
h(this, b, r);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-matchers-controller.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/controllers/media-matchers-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"media-matchers-controller.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/controllers/media-matchers-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAY,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAErF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAGjE,eAAO,MAAM,yBAAyB,4BAA4B,CAAC;AACnE,eAAO,MAAM,qBAAqB,iCAAiC,CAAC;AACpE,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,0BAA0B,sBAAsB,CAAC;AAC9D,eAAO,MAAM,oCAAoC,QAA0C,CAAC;AAC5F,eAAO,MAAM,oCAAoC,QAA0C,CAAC;AAC5F,eAAO,MAAM,oCAAoC,QAA0C,CAAC;AAG5F;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAehE;;;;;;;GAOG;AACH,qBAAa,yBAA0B,YAAW,kBAAkB;IAGhE,OAAO,CAAC,QAAQ;gBADhB,IAAI,EAAE,sBAAsB,EACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC;IAK1D;;;;OAIG;IACI,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI;IAMtC,aAAa,IAAI,IAAI;IAoBrB,gBAAgB,IAAI,IAAI;CAWhC;AAED;;;;;;;GAOG;AACH,qBAAa,qBAAsB,SAAQ,yBAAyB;IAyBhE,OAAO,CAAC,KAAK;IAxBf,2EAA2E;IAC3E,OAAO,CAAC,MAAM,CAAC,YAAY,CAAsE;IAEjG,kFAAkF;IAClF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAUxB;IAET,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAGrC;IAEF,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAa;gBAG7C,KAAK,EAAE,sBAAsB,GAAG,WAAW,GAAG,4BAA4B,EAClF,QAAQ,EAAE,sBAAsB;IAYlC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAYlC;;;OAGG;WAEW,aAAa,IAAI,IAAI;IAOnB,aAAa,IAAI,IAAI;IAerB,gBAAgB,IAAI,IAAI;IAQxB,OAAO,IAAI,OAAO;CAWnC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { isServer as
|
|
3
|
-
const
|
|
4
|
-
class
|
|
1
|
+
import { S as m, a as f, b as g } from "../../sbb-tokens-BNWpZrLn.js";
|
|
2
|
+
import { isServer as n } from "lit";
|
|
3
|
+
const M = "(forced-colors: active)", i = "(prefers-color-scheme: dark)", S = "(any-hover: hover)", L = "(pointer: coarse)", k = `(min-width: ${m})`, Q = `(max-width: ${f})`, w = `(max-width: ${g})`, a = /* @__PURE__ */ new Map();
|
|
4
|
+
class p {
|
|
5
5
|
constructor(e, t) {
|
|
6
6
|
this._queries = t, e.addController(this);
|
|
7
7
|
}
|
|
@@ -11,17 +11,17 @@ class v {
|
|
|
11
11
|
* @returns Whether the query matches or null with SSR.
|
|
12
12
|
*/
|
|
13
13
|
matches(e) {
|
|
14
|
-
return
|
|
14
|
+
return n ? null : matchMedia(e).matches;
|
|
15
15
|
}
|
|
16
16
|
hostConnected() {
|
|
17
|
-
if (!
|
|
17
|
+
if (!n)
|
|
18
18
|
for (const [e, t] of Object.entries(this._queries)) {
|
|
19
19
|
const r = a.get(e);
|
|
20
20
|
if (r)
|
|
21
21
|
r.handlers.add(t);
|
|
22
22
|
else {
|
|
23
|
-
const o = matchMedia(e),
|
|
24
|
-
o.addEventListener("change",
|
|
23
|
+
const o = matchMedia(e), c = /* @__PURE__ */ new Set([t]), d = (u) => c.forEach((l) => l(u.matches));
|
|
24
|
+
o.addEventListener("change", d), a.set(e, { mediaQueryList: o, handlers: c, eventHandler: d });
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -32,17 +32,17 @@ class v {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
const s = class s extends
|
|
35
|
+
const s = class s extends p {
|
|
36
36
|
constructor(e, t) {
|
|
37
37
|
const r = () => {
|
|
38
38
|
t(this.matches()), this._host.toggleState("dark", this.matches());
|
|
39
39
|
};
|
|
40
40
|
super(e, {
|
|
41
|
-
[
|
|
41
|
+
[i]: r
|
|
42
42
|
}), this._host = e, this._onChangeWithStateUpdater = r;
|
|
43
43
|
}
|
|
44
44
|
static _readLightDarkClass() {
|
|
45
|
-
if (
|
|
45
|
+
if (n)
|
|
46
46
|
return null;
|
|
47
47
|
const e = document.documentElement.classList;
|
|
48
48
|
return ["light-dark", "dark", "light"].find((t) => e.contains(`sbb-${t}`)) ?? null;
|
|
@@ -53,24 +53,24 @@ const s = class s extends v {
|
|
|
53
53
|
*/
|
|
54
54
|
// eslint-disable-next-line lyne/needs-super-call-rule
|
|
55
55
|
static requestUpdate() {
|
|
56
|
-
const e = a.get(
|
|
56
|
+
const e = a.get(i);
|
|
57
57
|
e && e.handlers.forEach((t) => t(e.mediaQueryList.matches));
|
|
58
58
|
}
|
|
59
59
|
hostConnected() {
|
|
60
|
-
const e = (a.get(
|
|
60
|
+
const e = (a.get(i)?.handlers.size ?? 0) === 0;
|
|
61
61
|
super.hostConnected(), e && s._observer.observe(document.documentElement, s._observerConfig), this._onChangeWithStateUpdater();
|
|
62
62
|
}
|
|
63
63
|
hostDisconnected() {
|
|
64
|
-
super.hostDisconnected(), (a.get(
|
|
64
|
+
super.hostDisconnected(), (a.get(i)?.handlers.size ?? 0) === 0 && s._observer.disconnect();
|
|
65
65
|
}
|
|
66
66
|
matches() {
|
|
67
|
-
if (
|
|
67
|
+
if (n)
|
|
68
68
|
return !1;
|
|
69
69
|
const e = getComputedStyle(this._host).getPropertyValue("color-scheme"), t = e.includes("dark"), r = e.trim() === "dark";
|
|
70
|
-
return super.matches(
|
|
70
|
+
return super.matches(i) && t || r;
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
s._currentMode = s._readLightDarkClass(), s._observer =
|
|
73
|
+
s._currentMode = s._readLightDarkClass(), s._observer = n ? null : new MutationObserver((e) => {
|
|
74
74
|
if (e[0].oldValue !== document.documentElement.getAttribute("class")) {
|
|
75
75
|
const t = s._readLightDarkClass();
|
|
76
76
|
s._currentMode !== t && (s.requestUpdate(), s._currentMode = t);
|
|
@@ -79,15 +79,15 @@ s._currentMode = s._readLightDarkClass(), s._observer = i ? null : new MutationO
|
|
|
79
79
|
attributeFilter: ["class"],
|
|
80
80
|
attributeOldValue: !0
|
|
81
81
|
};
|
|
82
|
-
let
|
|
82
|
+
let h = s;
|
|
83
83
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
h as SbbDarkModeController,
|
|
85
|
+
p as SbbMediaMatcherController,
|
|
86
|
+
k as SbbMediaQueryBreakpointLargeAndAbove,
|
|
87
|
+
Q as SbbMediaQueryBreakpointLargeAndBelow,
|
|
88
|
+
w as SbbMediaQueryBreakpointSmallAndBelow,
|
|
89
|
+
i as SbbMediaQueryDarkMode,
|
|
90
|
+
M as SbbMediaQueryForcedColors,
|
|
91
|
+
S as SbbMediaQueryHover,
|
|
92
|
+
L as SbbMediaQueryPointerCoarse
|
|
93
93
|
};
|
package/core/dom/breakpoint.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type Breakpoint = (typeof breakpoints)[number];
|
|
|
8
8
|
* @param to The breakpoint corresponding to the `max-width` value of the media query (optional).
|
|
9
9
|
* @param properties Whether the max breakpoint should be included
|
|
10
10
|
* @returns A boolean indicating whether the window matches the breakpoint.
|
|
11
|
+
* @deprecated use the mediaMatcherController
|
|
11
12
|
*/
|
|
12
13
|
export declare function isBreakpoint(from?: Breakpoint, to?: Breakpoint, properties?: {
|
|
13
14
|
includeMaxBreakpoint: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/dom/breakpoint.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,8CAA+C,CAAC;AACxE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/dom/breakpoint.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,8CAA+C,CAAC;AACxE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,CAAC,EAAE,UAAU,EACjB,EAAE,CAAC,EAAE,UAAU,EACf,UAAU,CAAC,EAAE;IAAE,oBAAoB,EAAE,OAAO,CAAA;CAAE,GAC7C,OAAO,GAAG,IAAI,CAsBhB"}
|
package/core/styles/core.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
$theme: 'standard' !default;
|
|
2
2
|
|
|
3
|
+
@use 'sass:string';
|
|
3
4
|
@use 'node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss' as sbb-css-tokens with (
|
|
4
5
|
$theme: $theme
|
|
5
6
|
);
|
|
@@ -39,37 +40,29 @@ $theme: 'standard' !default;
|
|
|
39
40
|
--sbb-cursor-default: default;
|
|
40
41
|
--sbb-cursor-pointer: pointer;
|
|
41
42
|
|
|
42
|
-
//
|
|
43
|
-
--sbb-title-font-size-level-1
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
--sbb-title-default-margin-block-start: var(--sbb-spacing-responsive-s);
|
|
66
|
-
--sbb-title-margin-block-start-level-1: var(--sbb-spacing-responsive-s);
|
|
67
|
-
--sbb-title-margin-block-end-level-1: var(--sbb-spacing-fixed-3x);
|
|
68
|
-
--sbb-title-margin-block-end-level-2: var(--sbb-spacing-fixed-3x);
|
|
69
|
-
--sbb-title-margin-block-end-level-3: var(--sbb-spacing-responsive-xxxs);
|
|
70
|
-
--sbb-title-margin-block-end-level-4: var(--sbb-spacing-fixed-2x);
|
|
71
|
-
--sbb-title-margin-block-end-level-5: var(--sbb-spacing-fixed-1x);
|
|
72
|
-
--sbb-title-margin-block-end-level-6: 0;
|
|
43
|
+
// TODO: Remove complete block when new lean theme is complete
|
|
44
|
+
// TODO: Also remove all occurrences of the variables in lyne-components (e.g. --sbb-title-font-size-level-1-lean)
|
|
45
|
+
// Only render the block in standard theme as fallback for CSS class usage
|
|
46
|
+
@if not string.index($theme, 'lean') {
|
|
47
|
+
&.sbb-lean {
|
|
48
|
+
--sbb-title-font-size-level-1-lean: var(--sbb-heading-font-size-2);
|
|
49
|
+
--sbb-title-font-size-level-2-lean: var(--sbb-heading-font-size-3);
|
|
50
|
+
--sbb-title-font-size-level-3-lean: var(--sbb-heading-font-size-4);
|
|
51
|
+
--sbb-title-font-size-level-4-lean: var(--sbb-heading-font-size-5);
|
|
52
|
+
--sbb-title-font-size-level-5-lean: var(--sbb-heading-font-size-6);
|
|
53
|
+
--sbb-title-font-size-level-6-lean: var(--sbb-typo-scale-0-75x);
|
|
54
|
+
--sbb-heading-margin-block-1-lean: var(--sbb-spacing-responsive-s)
|
|
55
|
+
var(--sbb-spacing-fixed-3x);
|
|
56
|
+
--sbb-heading-margin-block-2-lean: var(--sbb-spacing-responsive-s)
|
|
57
|
+
var(--sbb-spacing-fixed-3x);
|
|
58
|
+
--sbb-heading-margin-block-3-lean: var(--sbb-spacing-responsive-s)
|
|
59
|
+
var(--sbb-spacing-responsive-xxxs);
|
|
60
|
+
--sbb-heading-margin-block-4-lean: var(--sbb-spacing-responsive-s)
|
|
61
|
+
var(--sbb-spacing-fixed-2x);
|
|
62
|
+
--sbb-heading-margin-block-5-lean: var(--sbb-spacing-responsive-s)
|
|
63
|
+
var(--sbb-spacing-fixed-1x);
|
|
64
|
+
--sbb-heading-margin-block-6-lean: var(--sbb-spacing-responsive-s) 0;
|
|
65
|
+
}
|
|
73
66
|
}
|
|
74
67
|
|
|
75
68
|
// Infinity border radius, can be used to achieve rounded border on start and end
|
|
@@ -95,6 +88,14 @@ $theme: 'standard' !default;
|
|
|
95
88
|
@include mediaqueries.mq($from: large) {
|
|
96
89
|
@include sbb-css-tokens.breakpoint-large;
|
|
97
90
|
|
|
91
|
+
// TODO: Remove complete block when new lean theme is complete
|
|
92
|
+
// Only render the block in standard theme as fallback for CSS class usage
|
|
93
|
+
@if not string.index($theme, 'lean') {
|
|
94
|
+
&.sbb-lean {
|
|
95
|
+
--sbb-title-font-size-level-6-lean: var(--sbb-typo-scale-0-875x);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
98
99
|
// Header
|
|
99
100
|
--sbb-header-height: var(--sbb-spacing-fixed-24x);
|
|
100
101
|
|
|
@@ -129,7 +130,7 @@ $theme: 'standard' !default;
|
|
|
129
130
|
html {
|
|
130
131
|
@include typo.text;
|
|
131
132
|
|
|
132
|
-
color: var(--sbb-font-default
|
|
133
|
+
color: var(--sbb-font-color-default);
|
|
133
134
|
background-color: var(--sbb-background-color-1);
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -161,7 +162,7 @@ html {
|
|
|
161
162
|
// TODO: Find a better solution
|
|
162
163
|
font-size: var(--sbb-form-field-input-text-size) !important;
|
|
163
164
|
font-family: var(--sbb-typo-font-family) !important;
|
|
164
|
-
line-height: var(--sbb-typo-line-height-
|
|
165
|
+
line-height: var(--sbb-typo-line-height-text) !important;
|
|
165
166
|
|
|
166
167
|
&::placeholder {
|
|
167
168
|
@include typo.placeholder;
|
|
@@ -205,7 +206,7 @@ html {
|
|
|
205
206
|
|
|
206
207
|
// We add the missing block spacing to fit the line-height
|
|
207
208
|
margin-block: calc(
|
|
208
|
-
0.5 * (var(--sbb-form-field-input-text-size) * (var(--sbb-typo-line-height-
|
|
209
|
+
0.5 * (var(--sbb-form-field-input-text-size) * (var(--sbb-typo-line-height-text) - 1.25))
|
|
209
210
|
);
|
|
210
211
|
}
|
|
211
212
|
|
|
@@ -219,7 +220,7 @@ html {
|
|
|
219
220
|
// White-space break needed for Firefox
|
|
220
221
|
white-space: break-spaces;
|
|
221
222
|
overflow-y: auto;
|
|
222
|
-
min-height: calc((var(--sbb-typo-line-height-
|
|
223
|
+
min-height: calc((var(--sbb-typo-line-height-text) * 1em));
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
|
|
@@ -292,7 +293,7 @@ html {
|
|
|
292
293
|
// Ensure stable breadcrumb height during hydrating
|
|
293
294
|
sbb-breadcrumb-group:not(:defined) {
|
|
294
295
|
display: block;
|
|
295
|
-
height: calc(var(--sbb-typo-line-height-
|
|
296
|
+
height: calc(var(--sbb-typo-line-height-text) * var(--sbb-text-font-size-xs));
|
|
296
297
|
overflow: hidden;
|
|
297
298
|
}
|
|
298
299
|
|
|
@@ -313,7 +314,7 @@ sbb-breadcrumb-group:not(:defined) {
|
|
|
313
314
|
color: var(--sbb-color-1);
|
|
314
315
|
|
|
315
316
|
strong + * {
|
|
316
|
-
font-size: var(--sbb-font-size-
|
|
317
|
+
font-size: var(--sbb-text-font-size-xxs);
|
|
317
318
|
color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));
|
|
318
319
|
}
|
|
319
320
|
}
|
|
@@ -622,33 +623,31 @@ sbb-dialog-close-button {
|
|
|
622
623
|
// The close button positioning needs the current dialog title size
|
|
623
624
|
sbb-dialog:has(> sbb-dialog-title[visual-level='3']) > &,
|
|
624
625
|
sbb-dialog:state(has-intermediate-element):has(> * > sbb-dialog-title[visual-level='3']) > * > & {
|
|
625
|
-
|
|
626
|
-
--_sbb-dialog-title-size: var(--sbb-font-size-title-3);
|
|
626
|
+
--_sbb-dialog-title-size: var(--sbb-heading-font-size-3);
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
// The close button positioning needs the current dialog title size
|
|
630
630
|
sbb-dialog:has(> sbb-dialog-title[visual-level='5']) > &,
|
|
631
631
|
sbb-dialog:state(has-intermediate-element):has(> * > sbb-dialog-title[visual-level='5']) > * > & {
|
|
632
|
-
|
|
633
|
-
--_sbb-dialog-title-size: var(--sbb-font-size-title-5);
|
|
632
|
+
--_sbb-dialog-title-size: var(--sbb-heading-font-size-5);
|
|
634
633
|
}
|
|
635
634
|
}
|
|
636
635
|
|
|
637
636
|
sbb-notification:has(sbb-title) {
|
|
638
|
-
--_sbb-notification-icon-authoritative-font-size: var(--sbb-font-size-
|
|
639
|
-
--_sbb-notification-icon-authoritative-line-height: var(--sbb-typo-line-height-
|
|
637
|
+
--_sbb-notification-icon-authoritative-font-size: var(--sbb-heading-font-size-5);
|
|
638
|
+
--_sbb-notification-icon-authoritative-line-height: var(--sbb-typo-line-height-heading);
|
|
640
639
|
|
|
641
640
|
&[size='s'] {
|
|
642
|
-
--_sbb-notification-icon-authoritative-font-size: var(--sbb-font-size-
|
|
643
|
-
--_sbb-notification-icon-authoritative-line-height: var(--sbb-typo-line-height-
|
|
641
|
+
--_sbb-notification-icon-authoritative-font-size: var(--sbb-heading-font-size-6);
|
|
642
|
+
--_sbb-notification-icon-authoritative-line-height: var(--sbb-typo-line-height-text);
|
|
644
643
|
}
|
|
645
644
|
}
|
|
646
645
|
|
|
647
646
|
sbb-status:has(sbb-title) {
|
|
648
647
|
--sbb-status-gap: var(--sbb-spacing-responsive-xxxs);
|
|
649
648
|
--_sbb-status-text-color-override: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));
|
|
650
|
-
--_sbb-status-title-font-size: var(--sbb-font-size-
|
|
651
|
-
--_sbb-status-title-line-height: var(--sbb-typo-line-height-
|
|
649
|
+
--_sbb-status-title-font-size: var(--sbb-heading-font-size-5);
|
|
650
|
+
--_sbb-status-title-line-height: var(--sbb-typo-line-height-heading);
|
|
652
651
|
}
|
|
653
652
|
|
|
654
653
|
.sbb-overlay-outlet {
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
@mixin chip-label-variables--size-xxs {
|
|
26
26
|
--sbb-chip-label-padding-block: 0em;
|
|
27
27
|
--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);
|
|
28
|
-
--sbb-text-font-size: var(--sbb-font-size-
|
|
28
|
+
--sbb-text-font-size: var(--sbb-text-font-size-xxs);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
@mixin chip-label-variables--size-xs {
|
|
32
32
|
--sbb-chip-label-padding-block: var(--sbb-spacing-fixed-1x);
|
|
33
33
|
--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-3x);
|
|
34
|
-
--sbb-text-font-size: var(--sbb-font-size-
|
|
34
|
+
--sbb-text-font-size: var(--sbb-text-font-size-xs);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@mixin chip-label-variables--size-s {
|
|
38
38
|
--sbb-chip-label-padding-block: var(--sbb-spacing-fixed-1x);
|
|
39
39
|
--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-4x);
|
|
40
|
-
--sbb-text-font-size: var(--sbb-font-size-
|
|
40
|
+
--sbb-text-font-size: var(--sbb-text-font-size-s);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
@mixin chip-label-rules {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
51
51
|
height: calc(
|
|
52
|
-
var(--sbb-typo-line-height-
|
|
52
|
+
var(--sbb-typo-line-height-text) * var(--sbb-text-font-size) +
|
|
53
53
|
var(--sbb-chip-label-padding-block) * 2
|
|
54
54
|
);
|
|
55
55
|
background-color: var(--sbb-chip-label-background-color);
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
width: 1em;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
|
-
inset-block-start: calc(0.5 * (var(--sbb-typo-line-height-
|
|
67
|
+
inset-block-start: calc(0.5 * (var(--sbb-typo-line-height-text) * 1em - 1em));
|
|
68
68
|
inset-inline-start: calc(-1 * (0.5 * var(--sbb-list-padding-inline-start) + 0.5em));
|
|
69
69
|
|
|
70
70
|
// Scale 1.3 to match Figma specs.
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
--sbb-icon-list-text-to-marker-block-offset: calc(
|
|
109
109
|
0.5 *
|
|
110
110
|
(
|
|
111
|
-
var(--sbb-icon-list-dimensions) - var(--sbb-typo-line-height-
|
|
111
|
+
var(--sbb-icon-list-dimensions) - var(--sbb-typo-line-height-text) *
|
|
112
112
|
var(--sbb-text-font-size)
|
|
113
113
|
)
|
|
114
114
|
);
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
--sbb-step-list-text-to-marker-block-offset: calc(
|
|
167
167
|
0.5 *
|
|
168
168
|
(
|
|
169
|
-
var(--sbb-step-list-dimensions) - var(--sbb-typo-line-height-
|
|
169
|
+
var(--sbb-step-list-dimensions) - var(--sbb-typo-line-height-text) *
|
|
170
170
|
var(--sbb-text-font-size)
|
|
171
171
|
)
|
|
172
172
|
);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--sbb-panel-inner-height: #{functions.px-to-rem-build(167)};
|
|
12
12
|
--sbb-panel-triangle-height: #{functions.px-to-rem-build(33)};
|
|
13
13
|
--sbb-panel-height: calc(var(--sbb-panel-inner-height) + 2 * var(--sbb-panel-triangle-height));
|
|
14
|
-
--sbb-panel-line-height: var(--sbb-typo-line-height-
|
|
14
|
+
--sbb-panel-line-height: var(--sbb-typo-line-height-heading);
|
|
15
15
|
--sbb-panel-font-size: var(--sbb-typo-scale-1-5x);
|
|
16
16
|
--sbb-panel-color: var(--sbb-color-1-negative);
|
|
17
17
|
--sbb-panel-background-color: color-mix(in srgb, var(--sbb-color-primary) 90%, transparent);
|
|
@@ -71,6 +71,6 @@
|
|
|
71
71
|
font-size: var(--sbb-panel-font-size);
|
|
72
72
|
font-weight: 300;
|
|
73
73
|
line-height: var(--sbb-panel-line-height);
|
|
74
|
-
letter-spacing: var(--sbb-typo-letter-spacing-
|
|
74
|
+
letter-spacing: var(--sbb-typo-letter-spacing-heading);
|
|
75
75
|
color: var(--sbb-panel-color);
|
|
76
76
|
}
|