@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1779781429 → 5.0.0-next.3-dev.1779890843
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/_index.scss +65 -3
- package/alert/{alert/alert.global.scss → _alert.global.scss} +9 -7
- package/badge/{badge.global.scss → _badge.global.scss} +4 -2
- package/breadcrumb/{breadcrumb-group/breadcrumb-group.global.scss → _breadcrumb.global.scss} +11 -1
- package/button/{common/button-common.global.scss → _button.global.scss} +43 -2
- package/calendar/{calendar/calendar.global.scss → _calendar.global.scss} +20 -4
- package/card/{card.library.global.scss → _card.global.scss} +29 -5
- package/carousel/{carousel/carousel.global.scss → _carousel.global.scss} +2 -1
- package/carousel/carousel-list/carousel-list.component.js +1 -1
- package/{carousel-list.component-7mbfkw4K.js → carousel-list.component-DAPO_Oce.js} +1 -1
- package/carousel.js +1 -1
- package/carousel.pure.js +1 -1
- package/checkbox/{common/checkbox-common.global.scss → _checkbox.global.scss} +5 -1
- package/chip/{chip-group/chip-group.global.scss → _chip.global.scss} +12 -2
- package/container/{sticky-bar/sticky-bar.global.scss → _container.global.scss} +16 -1
- package/core/base-elements/{selection-group-base-element.global.scss → _selection-group-base-element.global.scss} +6 -2
- package/core/styles/_index.scss +3 -3
- package/core/styles/_theme.scss +359 -10
- package/core/styles/features/font-face.scss +3 -0
- package/core/styles/features/layout.private.scss +1 -1
- package/core/styles/features/typography.private.scss +3 -3
- package/core/styles/features/typography.scss +10 -2
- package/core/styles/mixins/_core.scss +69 -0
- package/core/styles/mixins/_layout.scss +1 -1
- package/core/styles/mixins/_lists.scss +2 -2
- package/core/styles/mixins/_pearl-chain-bullet.scss +1 -1
- package/core/styles/mixins/_scrollbar.scss +1 -1
- package/core/styles/mixins/_typo.scss +0 -19
- package/custom-elements.json +54 -6
- package/development/block-link-common-C0XzZIvS.js +1 -1
- package/development/breadcrumb.component-B3XsV_Aq.js +1 -1
- package/development/card.component-CVAgqDNK.js +1 -1
- package/development/carousel/carousel-list/carousel-list.component.js +1 -1
- package/development/carousel-list.component-pJBqbfi9.js +126 -0
- package/development/carousel.js +1 -1
- package/development/carousel.pure.js +1 -1
- package/development/inline-link-common-CXYyREBi.js +1 -1
- package/development/link-common-DWTP-lFX.js +1 -1
- package/development/selection-group-base-element-govDKjsE.js +1 -1
- package/development/styles-BTV2MyrZ.js +1 -1
- package/development/tab-label.component-BbQu5sA-.js +233 -0
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tabs.js +1 -1
- package/development/tabs.pure.js +1 -1
- package/development/tag/tag/tag.component.d.ts +1 -0
- package/development/tag/tag/tag.component.d.ts.map +1 -1
- package/development/tag/tag/tag.component.js +1 -1
- package/development/tag/tag-group/tag-group.component.d.ts +6 -1
- package/development/tag/tag-group/tag-group.component.d.ts.map +1 -1
- package/development/tag/tag-group/tag-group.component.js +1 -1
- package/development/tag-group.component-DTff1eBB.js +225 -0
- package/development/{tag.component-D6YowucW.js → tag.component-CDDb2fnV.js} +28 -8
- package/development/tag.js +2 -2
- package/development/tag.pure.js +2 -2
- package/dialog/_dialog.global.scss +77 -0
- package/expansion-panel/{expansion-panel-header/expansion-panel-header.global.scss → _expansion-panel.global.scss} +27 -2
- package/file-selector/{common/file-selector.global.scss → _file-selector.global.scss} +1 -1
- package/flip-card/{flip-card/flip-card.global.scss → _flip-card.global.scss} +15 -2
- package/footer/{footer.global.scss → _footer.global.scss} +1 -1
- package/form-field/{form-field/form-field.global.scss → _form-field.global.scss} +6 -3
- package/header/{header/header.global.scss → _header.global.scss} +41 -2
- package/icon-sidebar/{icon-sidebar/icon-sidebar.global.scss → _icon-sidebar.global.scss} +1 -1
- package/lead-container/{lead-container.global.scss → _lead-container.global.scss} +1 -1
- package/lean-off-brand-theme.css +351 -526
- package/lean-safety-theme.css +351 -526
- package/lean-theme.css +351 -526
- package/link/{link.library.global.scss → _link.global.scss} +18 -4
- package/loading-indicator-circle/{loading-indicator-circle.global.scss → _loading-indicator-circle.global.scss} +1 -1
- package/logo/{logo.global.scss → _logo.global.scss} +1 -1
- package/map-container/{map-container.global.scss → _map-container.global.scss} +1 -1
- package/menu/{menu/menu.global.scss → _menu.global.scss} +14 -6
- package/mini-calendar/{mini-calendar-month/mini-calendar-month.global.scss → _mini-calendar.global.scss} +4 -1
- package/navigation/_navigation.global.scss +78 -0
- package/notification/{notification.global.scss → _notification.global.scss} +1 -1
- package/off-brand-theme.css +349 -524
- package/option/{option/option.global.scss → _option.global.scss} +30 -1
- package/package.json +2 -2
- package/paginator/_paginator.global.scss +21 -0
- package/radio-button/{common/radio-button-common.global.scss → _radio-button.global.scss} +2 -2
- package/safety-theme.css +349 -524
- package/sidebar/{sidebar-container/sidebar-container.global.scss → _sidebar.global.scss} +20 -1
- package/signet/{signet.global.scss → _signet.global.scss} +1 -1
- package/slider/{slider.global.scss → _slider.global.scss} +1 -1
- package/standard-theme.css +349 -524
- package/stepper/{step-label/step-label.global.scss → _stepper.global.scss} +6 -2
- package/tab-label.component-C5HCrNFB.js +158 -0
- package/tabs/{common/tab-label-common.global.scss → _tabs.global.scss} +24 -1
- package/tabs/tab-label/tab-label.component.js +1 -1
- package/tabs.js +1 -1
- package/tabs.pure.js +1 -1
- package/tag/{tag/tag.global.scss → _tag.global.scss} +2 -2
- package/tag/tag/tag.component.js +1 -1
- package/tag/tag-group/tag-group.component.js +1 -1
- package/{tag-group.component-ByRxy8UG.js → tag-group.component-CJwbkP70.js} +38 -23
- package/{tag.component-BrKoQeIW.js → tag.component-r8diGGP-.js} +14 -5
- package/tag.js +2 -2
- package/tag.pure.js +2 -2
- package/teaser/_teaser.global.scss +51 -0
- package/teaser-hero/{teaser-hero.global.scss → _teaser-hero.global.scss} +2 -0
- package/teaser-panel/{teaser-panel.global.scss → _teaser-panel.global.scss} +2 -2
- package/teaser-product/{common/teaser-product-common.global.scss → _teaser-product.global.scss} +4 -2
- package/time-input/{time-input.global.scss → _time-input.global.scss} +1 -1
- package/timetable-form/{timetable-form/timetable-form.global.scss → _timetable-form.global.scss} +11 -1
- package/title/{title.global.scss → _title.global.scss} +4 -0
- package/toggle/{toggle/toggle.global.scss → _toggle.global.scss} +6 -2
- package/toggle-check/{toggle-check.global.scss → _toggle-check.global.scss} +1 -1
- package/train/{train-wagon-common.global.scss → _train.global.scss} +24 -0
- package/visual-checkbox/{visual-checkbox.global.scss → _visual-checkbox.global.scss} +1 -1
- package/alert/alert-group/alert-group.global.scss +0 -8
- package/breadcrumb/breadcrumb/breadcrumb.global.scss +0 -16
- package/button/common/mini-button-common.global.scss +0 -18
- package/button/mini-button-group/mini-button-group.global.scss +0 -35
- package/calendar/common/calendar-cell-base-element.global.scss +0 -23
- package/card/card/card.global.scss +0 -22
- package/card/card-badge/card-badge.global.scss +0 -19
- package/checkbox/checkbox.global.scss +0 -10
- package/chip/chip/chip.global.scss +0 -16
- package/container/container/container.global.scss +0 -21
- package/core/styles/features/core.scss +0 -618
- package/development/carousel-list.component-BLY3JfDq.js +0 -126
- package/development/tab-label.component-QHzOZ28y.js +0 -233
- package/development/tag-group.component-jSgluqL-.js +0 -194
- package/dialog/dialog/dialog.global.scss +0 -32
- package/dialog/dialog-close-button/dialog-close-button.global.scss +0 -35
- package/dialog/dialog-content/dialog-content.global.scss +0 -13
- package/dialog/dialog-title/dialog-title.global.scss +0 -13
- package/expansion-panel/expansion-panel/expansion-panel.global.scss +0 -21
- package/expansion-panel/expansion-panel-content/expansion-panel-content.global.scss +0 -16
- package/flip-card/flip-card-details/flip-card-details.global.scss +0 -7
- package/flip-card/flip-card-summary/flip-card-summary.global.scss +0 -17
- package/form-field/error/error.global.scss +0 -9
- package/header/common/header-action.global.scss +0 -41
- package/header/header-environment/header-environment.global.scss +0 -10
- package/link/common/block-link.global.scss +0 -15
- package/menu/common/menu-action.global.scss +0 -14
- package/mini-calendar/mini-calendar-day/mini-calendar-day.global.scss +0 -9
- package/navigation/common/navigation-action.global.scss +0 -11
- package/navigation/navigation/navigation.global.scss +0 -36
- package/navigation/navigation-list/navigation-list.global.scss +0 -10
- package/navigation/navigation-marker/navigation-marker.global.scss +0 -17
- package/navigation/navigation-section/navigation-section.global.scss +0 -34
- package/option/optgroup/optgroup.global.scss +0 -17
- package/option/option-hint/option-hint.global.scss +0 -17
- package/option/option-panel-common.global.scss +0 -11
- package/paginator/common/paginator-common.global.scss +0 -14
- package/paginator/compact-paginator/compact-paginator.global.scss +0 -9
- package/paginator/paginator/paginator.global.scss +0 -10
- package/sidebar/sidebar/sidebar.global.scss +0 -19
- package/sidebar/sidebar-close-button/sidebar-close-button.global.scss +0 -10
- package/stepper/stepper/stepper.global.scss +0 -10
- package/tab-label.component-BYssa8XI.js +0 -158
- package/tabs/common/tab-group-common.global.scss +0 -17
- package/tabs/tab-nav-bar/tab-nav-bar.global.scss +0 -10
- package/teaser/teaser.global.scss +0 -24
- package/timetable-form/timetable-form-details/timetable-form-details.global.scss +0 -12
- package/timetable-form/timetable-form-field/timetable-form-field.global.scss +0 -10
- package/title/title-common.global.scss +0 -7
- package/toggle/toggle-option/toggle-option.global.scss +0 -10
- package/train/train-blocked-passage/train-blocked-passage.global.scss +0 -16
- package/train/train-formation/train-formation.global.scss +0 -26
- /package/chip-label/{chip-label.global.scss → _chip-label.global.scss} +0 -0
- /package/clock/{clock.global.scss → _clock.global.scss} +0 -0
- /package/core/mixins/{panel-common.global.scss → _panel-common.global.scss} +0 -0
- /package/core/styles/{core/functions.scss → mixins/_functions.scss} +0 -0
- /package/core/styles/{core/mediaqueries.scss → mixins/_mediaqueries.scss} +0 -0
- /package/core/styles/{core → mixins}/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -0
- /package/core/styles/{features/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss → node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss} +0 -0
- /package/divider/{divider.global.scss → _divider.global.scss} +0 -0
- /package/loading-indicator/{loading-indicator.global.scss → _loading-indicator.global.scss} +0 -0
- /package/message/{message.global.scss → _message.global.scss} +0 -0
- /package/overlay/{overlay.global.scss → _overlay.global.scss} +0 -0
- /package/popover/{popover.global.scss → _popover.global.scss} +0 -0
- /package/select/{select.global.scss → _select.global.scss} +0 -0
- /package/selection-action-panel/{selection-action-panel.global.scss → _selection-action-panel.global.scss} +0 -0
- /package/selection-expansion-panel/{selection-expansion-panel.global.scss → _selection-expansion-panel.global.scss} +0 -0
- /package/status/{status.global.scss → _status.global.scss} +0 -0
- /package/table/{table.global.scss → _table.global.scss} +0 -0
- /package/timetable-occupancy/{timetable-occupancy.global.scss → _timetable-occupancy.global.scss} +0 -0
- /package/toast/{toast.global.scss → _toast.global.scss} +0 -0
- /package/tooltip/{tooltip.global.scss → _tooltip.global.scss} +0 -0
package/_index.scss
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
|
+
// This file is auto-generated by scripts/generate-scss-api.ts
|
|
1
2
|
@forward './core/styles';
|
|
3
|
+
@forward './alert/alert.global' as alert-*;
|
|
2
4
|
@forward './badge/badge.global' as badge-*;
|
|
3
|
-
@forward './
|
|
4
|
-
@forward './
|
|
5
|
+
@forward './breadcrumb/breadcrumb.global' as breadcrumb-*;
|
|
6
|
+
@forward './button/button.global' as button-*;
|
|
7
|
+
@forward './calendar/calendar.global' as calendar-*;
|
|
8
|
+
@forward './card/card.global' as card-*;
|
|
9
|
+
@forward './carousel/carousel.global' as carousel-*;
|
|
10
|
+
@forward './checkbox/checkbox.global' as checkbox-*;
|
|
11
|
+
@forward './chip/chip.global' as chip-*;
|
|
12
|
+
@forward './chip-label/chip-label.global' as chip-label-*;
|
|
13
|
+
@forward './clock/clock.global' as clock-*;
|
|
14
|
+
@forward './container/container.global' as container-*;
|
|
15
|
+
@forward './dialog/dialog.global' as dialog-*;
|
|
16
|
+
@forward './divider/divider.global' as divider-*;
|
|
17
|
+
@forward './expansion-panel/expansion-panel.global' as expansion-panel-*;
|
|
18
|
+
@forward './file-selector/file-selector.global' as file-selector-*;
|
|
19
|
+
@forward './flip-card/flip-card.global' as flip-card-*;
|
|
20
|
+
@forward './footer/footer.global' as footer-*;
|
|
21
|
+
@forward './form-field/form-field.global' as form-field-*;
|
|
22
|
+
@forward './header/header.global' as header-*;
|
|
23
|
+
@forward './icon-sidebar/icon-sidebar.global' as icon-sidebar-*;
|
|
24
|
+
@forward './lead-container/lead-container.global' as lead-container-*;
|
|
25
|
+
@forward './link/link.global' as link-*;
|
|
26
|
+
@forward './loading-indicator/loading-indicator.global' as loading-indicator-*;
|
|
27
|
+
@forward './loading-indicator-circle/loading-indicator-circle.global' as loading-indicator-circle-*;
|
|
28
|
+
@forward './logo/logo.global' as logo-*;
|
|
29
|
+
@forward './map-container/map-container.global' as map-container-*;
|
|
30
|
+
@forward './menu/menu.global' as menu-*;
|
|
31
|
+
@forward './message/message.global' as message-*;
|
|
32
|
+
@forward './mini-calendar/mini-calendar.global' as mini-calendar-*;
|
|
33
|
+
@forward './navigation/navigation.global' as navigation-*;
|
|
34
|
+
@forward './notification/notification.global' as notification-*;
|
|
35
|
+
@forward './option/option.global' as option-*;
|
|
36
|
+
@forward './overlay/overlay.global' as overlay-*;
|
|
37
|
+
@forward './paginator/paginator.global' as paginator-*;
|
|
38
|
+
@forward './core/mixins/panel-common.global' as panel-common-*;
|
|
39
|
+
@forward './popover/popover.global' as popover-*;
|
|
40
|
+
@forward './radio-button/radio-button.global' as radio-button-*;
|
|
41
|
+
@forward './select/select.global' as select-*;
|
|
42
|
+
@forward './selection-action-panel/selection-action-panel.global' as selection-action-panel-*;
|
|
43
|
+
@forward './selection-expansion-panel/selection-expansion-panel.global' as
|
|
44
|
+
selection-expansion-panel-*;
|
|
45
|
+
@forward './core/base-elements/selection-group-base-element.global' as
|
|
46
|
+
selection-group-base-element-*;
|
|
47
|
+
@forward './sidebar/sidebar.global' as sidebar-*;
|
|
48
|
+
@forward './signet/signet.global' as signet-*;
|
|
49
|
+
@forward './slider/slider.global' as slider-*;
|
|
50
|
+
@forward './status/status.global' as status-*;
|
|
51
|
+
@forward './stepper/stepper.global' as stepper-*;
|
|
5
52
|
@forward './table/table.global' as table-*;
|
|
6
|
-
@forward './
|
|
53
|
+
@forward './tabs/tabs.global' as tabs-*;
|
|
54
|
+
@forward './tag/tag.global' as tag-*;
|
|
55
|
+
@forward './teaser/teaser.global' as teaser-*;
|
|
56
|
+
@forward './teaser-hero/teaser-hero.global' as teaser-hero-*;
|
|
57
|
+
@forward './teaser-panel/teaser-panel.global' as teaser-panel-*;
|
|
58
|
+
@forward './teaser-product/teaser-product.global' as teaser-product-*;
|
|
59
|
+
@forward './time-input/time-input.global' as time-input-*;
|
|
60
|
+
@forward './timetable-form/timetable-form.global' as timetable-form-*;
|
|
61
|
+
@forward './timetable-occupancy/timetable-occupancy.global' as timetable-occupancy-*;
|
|
62
|
+
@forward './title/title.global' as title-*;
|
|
63
|
+
@forward './toast/toast.global' as toast-*;
|
|
64
|
+
@forward './toggle/toggle.global' as toggle-*;
|
|
65
|
+
@forward './toggle-check/toggle-check.global' as toggle-check-*;
|
|
66
|
+
@forward './tooltip/tooltip.global' as tooltip-*;
|
|
67
|
+
@forward './train/train.global' as train-*;
|
|
68
|
+
@forward './visual-checkbox/visual-checkbox.global' as visual-checkbox-*;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
5
5
|
@mixin base {
|
|
6
|
+
--sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);
|
|
7
|
+
--sbb-alert-group-border-radius: var(--sbb-border-radius-4x);
|
|
6
8
|
--sbb-alert-background-color: var(--sbb-background-color-1-inverted);
|
|
7
9
|
--sbb-alert-border-radius: var(--sbb-border-radius-4x);
|
|
8
10
|
--sbb-alert-color: light-dark(var(--sbb-color-aluminium), var(--sbb-color-anthracite));
|
|
@@ -28,18 +30,18 @@ $theme: 'standard' !default;
|
|
|
28
30
|
)};
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
@mixin
|
|
33
|
+
@mixin forced-colors {
|
|
32
34
|
// Use outline here to not influence content position.
|
|
33
35
|
// Due to overflow hidden of inner elements it's placed on host.
|
|
34
36
|
--sbb-alert-outline: var(--sbb-border-width-1x) solid CanvasText;
|
|
35
37
|
--sbb-alert-forced-color-border-radius: var(--sbb-alert-border-radius);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
@mixin
|
|
39
|
-
--sbb-alert-
|
|
40
|
-
--sbb-alert-icon-size-l: #{sbb.px-to-rem-build(34)};
|
|
40
|
+
@mixin breakpoint-small {
|
|
41
|
+
--sbb-alert-close-button-divider-display: block;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
@mixin
|
|
44
|
-
--sbb-alert-
|
|
44
|
+
@mixin breakpoint-large {
|
|
45
|
+
--sbb-alert-icon-size: #{sbb.px-to-rem-build(28)};
|
|
46
|
+
--sbb-alert-icon-size-l: #{sbb.px-to-rem-build(34)};
|
|
45
47
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
$theme: 'standard' !default;
|
|
4
|
+
|
|
5
|
+
@mixin element-rules {
|
|
4
6
|
display: flex;
|
|
5
7
|
align-items: center;
|
|
6
8
|
justify-content: center;
|
|
@@ -26,7 +28,7 @@
|
|
|
26
28
|
position: relative;
|
|
27
29
|
|
|
28
30
|
&::after {
|
|
29
|
-
@include
|
|
31
|
+
@include element-rules;
|
|
30
32
|
|
|
31
33
|
content: attr(sbb-badge);
|
|
32
34
|
position: absolute;
|
package/breadcrumb/{breadcrumb-group/breadcrumb-group.global.scss → _breadcrumb.global.scss}
RENAMED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
5
5
|
@mixin base {
|
|
6
|
+
--sbb-breadcrumb-color: light-dark(var(--sbb-color-granite), var(--sbb-color-aluminium));
|
|
7
|
+
--sbb-breadcrumb-color-hover: light-dark(var(--sbb-color-charcoal), var(--sbb-color-smoke));
|
|
8
|
+
--sbb-breadcrumb-color-active: light-dark(var(--sbb-color-anthracite), var(--sbb-color-cloud));
|
|
9
|
+
--sbb-breadcrumb-font-size: var(--sbb-text-font-size-xs);
|
|
10
|
+
--sbb-breadcrumb-gap: var(--sbb-spacing-fixed-2x);
|
|
6
11
|
--sbb-breadcrumb-group-wrap: nowrap;
|
|
7
12
|
--sbb-breadcrumb-group-visibility: hidden;
|
|
8
13
|
--sbb-breadcrumb-group-ellipsis-color: light-dark(
|
|
@@ -17,6 +22,11 @@ $theme: 'standard' !default;
|
|
|
17
22
|
);
|
|
18
23
|
}
|
|
19
24
|
|
|
25
|
+
@mixin forced-colors {
|
|
26
|
+
--sbb-breadcrumb-color: ButtonText;
|
|
27
|
+
--sbb-breadcrumb-color-active: Highlight;
|
|
28
|
+
}
|
|
29
|
+
|
|
20
30
|
@mixin rules {
|
|
21
31
|
sbb-breadcrumb-group:not(:defined) {
|
|
22
32
|
display: block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
@@ -49,9 +49,50 @@ $theme: 'standard' !default;
|
|
|
49
49
|
--sbb-button-shadow-1-blur: var(--sbb-shadow-elevation-level-3-shadow-1-blur);
|
|
50
50
|
--sbb-button-shadow-2-blur: var(--sbb-shadow-elevation-level-3-shadow-2-blur);
|
|
51
51
|
--sbb-button-transition-easing-function: var(--sbb-animation-easing);
|
|
52
|
+
--sbb-mini-button-color-text: var(--sbb-color-3);
|
|
53
|
+
--sbb-mini-button-color-default-background: transparent;
|
|
54
|
+
--sbb-mini-button-color-hover-background: var(--sbb-background-color-3);
|
|
55
|
+
--sbb-mini-button-color-active-background: var(--sbb-background-color-4);
|
|
56
|
+
--sbb-mini-button-color-disabled-background: var(--sbb-background-color-3);
|
|
57
|
+
--sbb-mini-button-color-disabled-border: var(--sbb-border-color-5);
|
|
58
|
+
--sbb-mini-button-color-disabled-text: light-dark(
|
|
59
|
+
var(--sbb-color-granite),
|
|
60
|
+
var(--sbb-color-smoke)
|
|
61
|
+
);
|
|
62
|
+
--sbb-mini-button-border-radius: var(--sbb-border-radius-infinity);
|
|
63
|
+
--sbb-mini-button-transition-easing-function: var(--sbb-animation-easing);
|
|
64
|
+
--sbb-mini-button-group-background: var(--sbb-background-color-1);
|
|
65
|
+
--sbb-mini-button-group-border-color: var(--sbb-border-color-4-inverted);
|
|
66
|
+
--sbb-mini-button-group-border-width: var(--sbb-border-width-2x);
|
|
67
|
+
--sbb-mini-button-group-border-radius: var(--sbb-border-radius-infinity);
|
|
68
|
+
--sbb-mini-button-group-gap: var(--sbb-spacing-fixed-2x);
|
|
69
|
+
--sbb-mini-button-group-divider-height: var(--sbb-size-icon-ui-small);
|
|
70
|
+
--sbb-mini-button-group-divider-padding: var(--sbb-spacing-fixed-1x);
|
|
71
|
+
--sbb-mini-button-group-min-height-s: var(--sbb-size-element-xs);
|
|
72
|
+
--sbb-mini-button-group-min-height-m: var(--sbb-size-element-s);
|
|
73
|
+
--sbb-mini-button-group-min-height-l: var(--sbb-size-element-m);
|
|
74
|
+
--sbb-mini-button-group-min-height-xl: var(--sbb-size-element-l);
|
|
75
|
+
--sbb-mini-button-group-min-height: #{sbb.theme-pattern-select(
|
|
76
|
+
(
|
|
77
|
+
'standard': var(--sbb-mini-button-group-min-height-m),
|
|
78
|
+
'lean': var(--sbb-mini-button-group-min-height-s),
|
|
79
|
+
),
|
|
80
|
+
$theme
|
|
81
|
+
)};
|
|
82
|
+
--sbb-mini-button-group-padding-inline-s: var(--sbb-spacing-fixed-2x);
|
|
83
|
+
--sbb-mini-button-group-padding-inline-m: var(--sbb-spacing-fixed-3x);
|
|
84
|
+
--sbb-mini-button-group-padding-inline-l: var(--sbb-spacing-fixed-3x);
|
|
85
|
+
--sbb-mini-button-group-padding-inline-xl: var(--sbb-spacing-fixed-4x);
|
|
86
|
+
--sbb-mini-button-group-padding-inline: #{sbb.theme-pattern-select(
|
|
87
|
+
(
|
|
88
|
+
'standard': var(--sbb-mini-button-group-padding-inline-m),
|
|
89
|
+
'lean': var(--sbb-mini-button-group-padding-inline-s),
|
|
90
|
+
),
|
|
91
|
+
$theme
|
|
92
|
+
)};
|
|
52
93
|
}
|
|
53
94
|
|
|
54
|
-
@mixin
|
|
95
|
+
@mixin breakpoint-large {
|
|
55
96
|
--sbb-button-padding-inline-size-l: var(--sbb-spacing-fixed-10x);
|
|
56
97
|
--sbb-button-padding-inline-size-m: var(--sbb-spacing-fixed-8x);
|
|
57
98
|
--sbb-button-padding-inline-size-s: var(--sbb-spacing-fixed-5x);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
@@ -12,6 +12,16 @@ $theme: 'standard' !default;
|
|
|
12
12
|
--sbb-calendar-cell-disabled-width: #{sbb.px-to-rem-build(25.5)};
|
|
13
13
|
--sbb-calendar-cell-disabled-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));
|
|
14
14
|
--sbb-calendar-cell-transition-easing-function: var(--sbb-animation-easing);
|
|
15
|
+
--sbb-calendar-cell-border: var(--sbb-calendar-cell-border-width) solid
|
|
16
|
+
var(--sbb-border-color-1-inverted);
|
|
17
|
+
--sbb-calendar-cell-color: var(--sbb-color-2);
|
|
18
|
+
--sbb-calendar-cell-cursor: var(--sbb-cursor-pointer);
|
|
19
|
+
--sbb-calendar-cell-justify-content: normal;
|
|
20
|
+
--sbb-calendar-cell-inset: #{sbb.px-to-rem-build(1)};
|
|
21
|
+
--sbb-calendar-cell-font-size: var(--sbb-text-font-size-s);
|
|
22
|
+
--sbb-calendar-cell-font-weight: unset;
|
|
23
|
+
--sbb-calendar-cell-year-month-width: #{sbb.px-to-rem-build(77)};
|
|
24
|
+
--sbb-calendar-cell-year-month-height: #{sbb.px-to-rem-build(44)};
|
|
15
25
|
--sbb-calendar-control-gap: var(--sbb-spacing-fixed-2x);
|
|
16
26
|
--sbb-calendar-control-margin-block-end: var(--sbb-spacing-fixed-4x);
|
|
17
27
|
--sbb-calendar-control-view-change-height: #{sbb.px-to-rem-build(44)};
|
|
@@ -20,12 +30,18 @@ $theme: 'standard' !default;
|
|
|
20
30
|
--sbb-calendar-control-view-change-padding-inline: var(--sbb-spacing-fixed-5x)
|
|
21
31
|
var(--sbb-spacing-fixed-2x);
|
|
22
32
|
--sbb-calendar-header-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));
|
|
23
|
-
--sbb-calendar-table-animation-shift: #{sbb.px-to-rem-build(0.1)};
|
|
24
|
-
--sbb-calendar-table-column-spaces: 12;
|
|
25
|
-
--sbb-calendar-tables-gap: var(--sbb-spacing-fixed-10x);
|
|
26
33
|
|
|
27
34
|
// While changing views, there would be a few frames where the height of the calendar collapses to just
|
|
28
35
|
// the height of the controls and then grow back to the height of the next view.
|
|
29
36
|
// By using 0.1ms this can be avoided.
|
|
30
37
|
--sbb-calendar-table-animation-duration: 0.1ms;
|
|
38
|
+
--sbb-calendar-table-animation-shift: #{sbb.px-to-rem-build(0.1)};
|
|
39
|
+
--sbb-calendar-table-column-spaces: 12;
|
|
40
|
+
--sbb-calendar-tables-gap: var(--sbb-spacing-fixed-10x);
|
|
41
|
+
--sbb-calendar-day-width: #{sbb.px-to-rem-build(44)};
|
|
42
|
+
--sbb-calendar-day-height: #{sbb.px-to-rem-build(48)};
|
|
43
|
+
--sbb-calendar-day-extra-display: block;
|
|
44
|
+
--sbb-calendar-day-extra-height: var(--sbb-spacing-fixed-4x);
|
|
45
|
+
--sbb-calendar-day-crossed-out-top: 33%;
|
|
46
|
+
--sbb-calendar-day-crossed-out-translate: translate(-50%, -33%) rotate(-45deg);
|
|
31
47
|
}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
5
|
-
// -----------------------------------------------------------------------------
|
|
6
|
-
// Card: Mixins & CSS custom properties
|
|
7
|
-
// -----------------------------------------------------------------------------
|
|
8
5
|
@mixin variables--global {
|
|
9
6
|
@include variables--white;
|
|
10
7
|
|
|
@@ -82,7 +79,6 @@ $theme: 'standard' !default;
|
|
|
82
79
|
}
|
|
83
80
|
}
|
|
84
81
|
|
|
85
|
-
// Card sizing
|
|
86
82
|
@mixin variables--spacing-default {
|
|
87
83
|
--sbb-card-padding-block: var(--sbb-card-padding-block-default);
|
|
88
84
|
--sbb-card-with-badge-padding-block: var(--sbb-card-with-badge-padding-block-default);
|
|
@@ -146,7 +142,7 @@ $theme: 'standard' !default;
|
|
|
146
142
|
}
|
|
147
143
|
}
|
|
148
144
|
|
|
149
|
-
@mixin rules {
|
|
145
|
+
@mixin element-rules {
|
|
150
146
|
// As the card has always a white/milk background, we have to fix the focus outline color
|
|
151
147
|
// to default color for cases where the card is used in a negative context.
|
|
152
148
|
--sbb-focus-outline-color: light-dark(
|
|
@@ -201,3 +197,31 @@ $theme: 'standard' !default;
|
|
|
201
197
|
display: block;
|
|
202
198
|
height: 100%;
|
|
203
199
|
}
|
|
200
|
+
|
|
201
|
+
@mixin base {
|
|
202
|
+
@include variables--global;
|
|
203
|
+
|
|
204
|
+
--sbb-card-badge-gap: var(--sbb-spacing-fixed-2x);
|
|
205
|
+
--sbb-card-badge-color: var(--sbb-color-2-inverted);
|
|
206
|
+
--sbb-card-badge-background-color: var(--sbb-background-color-3-inverted);
|
|
207
|
+
--sbb-card-badge-border-color: transparent;
|
|
208
|
+
--sbb-card-badge-padding-inline: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-3x);
|
|
209
|
+
--sbb-card-badge-border-width: var(--sbb-border-width-1x);
|
|
210
|
+
--sbb-card-badge-border-radius: var(--sbb-border-radius-4x);
|
|
211
|
+
--sbb-card-badge-skew: skew(16deg, 0deg);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@mixin forced-colors {
|
|
215
|
+
@include variables--global-forced-colors;
|
|
216
|
+
|
|
217
|
+
--sbb-card-badge-border-display: block;
|
|
218
|
+
--sbb-card-badge-inline-border-display: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@mixin rules {
|
|
222
|
+
// Every element in the Light DOM of a sbb-card which is focusable should receive this attribute.
|
|
223
|
+
// This style enables accessing focusable elements inside an sbb-card.
|
|
224
|
+
sbb-card .sbb-action {
|
|
225
|
+
pointer-events: all;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
@@ -7,4 +7,5 @@ $theme: 'standard' !default;
|
|
|
7
7
|
--sbb-carousel-border-radius: var(--sbb-border-radius-4x);
|
|
8
8
|
--sbb-carousel-box-shadow: var(--sbb-box-shadow-level-9-hard);
|
|
9
9
|
--sbb-carousel-paginator-padding: var(--sbb-spacing-responsive-xs);
|
|
10
|
+
--sbb-carousel-list-border-radius: var(--sbb-border-radius-4x);
|
|
10
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../carousel-list.component-
|
|
1
|
+
import { t as e } from "../../carousel-list.component-DAPO_Oce.js";
|
|
2
2
|
export { e as SbbCarouselListElement };
|
|
@@ -4,7 +4,7 @@ import { ResizeController as o } from "@lit-labs/observers/resize-controller.js"
|
|
|
4
4
|
import { IntersectionController as s } from "@lit-labs/observers/intersection-controller.js";
|
|
5
5
|
import { SbbCarouselItemShowEvent as c } from "./carousel/carousel-item/carousel-item.component.js";
|
|
6
6
|
//#region src/elements/carousel/carousel-list/carousel-list.scss?inline
|
|
7
|
-
var l = ":host{
|
|
7
|
+
var l = ":host{display:flex;height:var(--sbb-carousel-list-height);width:var(--sbb-carousel-list-width, 0);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;outline:none;border-radius:var(--sbb-carousel-inherit-border-radius)}:host(:focus-visible):before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);content:\"\";position:absolute;height:inherit;width:inherit;border-start-start-radius:var(--sbb-carousel-list-border-radius);border-start-end-radius:var(--sbb-carousel-list-border-radius);border-end-start-radius:var(--sbb-carousel-inherit-border-radius);border-end-end-radius:var(--sbb-carousel-inherit-border-radius)}", u = class extends n {
|
|
8
8
|
static {
|
|
9
9
|
this.elementName = "sbb-carousel-list";
|
|
10
10
|
}
|
package/carousel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./carousel-item.component-DRfpza-9.js";
|
|
2
|
-
import { t as n } from "./carousel-list.component-
|
|
2
|
+
import { t as n } from "./carousel-list.component-DAPO_Oce.js";
|
|
3
3
|
import { t as r } from "./carousel.component-B6XqR3Bc.js";
|
|
4
4
|
import "./carousel.pure.js";
|
|
5
5
|
r.define(), t.define(), n.define();
|
package/carousel.pure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as e, t } from "./carousel-item.component-DRfpza-9.js";
|
|
2
|
-
import { t as n } from "./carousel-list.component-
|
|
2
|
+
import { t as n } from "./carousel-list.component-DAPO_Oce.js";
|
|
3
3
|
import { t as r } from "./carousel.component-B6XqR3Bc.js";
|
|
4
4
|
export { r as SbbCarouselElement, t as SbbCarouselItemElement, e as SbbCarouselItemShowEvent, n as SbbCarouselListElement };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
5
5
|
@mixin base {
|
|
6
|
+
--sbb-checkbox-label-icon-flex-direction: row;
|
|
7
|
+
--sbb-checkbox-label-icon-justify-content: space-between;
|
|
8
|
+
--sbb-checkbox-label-icon-flex-grow: 1;
|
|
9
|
+
--sbb-checkbox-label-gap: var(--sbb-spacing-fixed-2x);
|
|
6
10
|
--sbb-checkbox-dimension-xs: #{sbb.px-to-rem-build(20)};
|
|
7
11
|
--sbb-checkbox-dimension-s: var(--sbb-size-icon-ui-small);
|
|
8
12
|
--sbb-checkbox-dimension-m: var(--sbb-size-icon-ui-small);
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
5
5
|
@mixin base {
|
|
6
|
+
--sbb-chip-background-color: var(--sbb-background-color-3);
|
|
7
|
+
--sbb-chip-background-color-active: var(--sbb-background-color-1);
|
|
8
|
+
--sbb-chip-background-color-hover: var(--sbb-background-color-1);
|
|
9
|
+
--sbb-chip-border-color: var(--sbb-border-color-4-inverted);
|
|
10
|
+
--sbb-chip-border-radius: var(--sbb-border-radius-2x);
|
|
11
|
+
--sbb-chip-color: light-dark(var(--sbb-color-granite), var(--sbb-color-cloud));
|
|
12
|
+
--sbb-chip-color-hover: var(--sbb-color-2);
|
|
13
|
+
--sbb-chip-font-size: var(--sbb-text-font-size-xxs);
|
|
14
|
+
--sbb-chip-height: #{sbb.px-to-rem-build(24)};
|
|
15
|
+
--sbb-chip-label-padding-inline: var(--sbb-spacing-fixed-2x);
|
|
6
16
|
--sbb-chip-group-gap: var(--sbb-spacing-fixed-1x);
|
|
7
17
|
--sbb-chip-group-input-min-width: #{sbb.px-to-rem-build(150)};
|
|
8
18
|
--_sbb-chip-group-margin-block-start-default: #{sbb.px-to-rem-build(2)};
|
|
@@ -41,7 +51,7 @@ $theme: 'standard' !default;
|
|
|
41
51
|
)};
|
|
42
52
|
}
|
|
43
53
|
|
|
44
|
-
@mixin
|
|
54
|
+
@mixin breakpoint-large {
|
|
45
55
|
--_sbb-chip-group-margin-block-base-lm: var(--_sbb-chip-group-margin-block-start-default-large) 0;
|
|
46
56
|
--_sbb-chip-group-margin-block-with-label-s: #{sbb.px-to-rem-build(5)} #{sbb.px-to-rem-build(3)};
|
|
47
57
|
--_sbb-chip-group-margin-block-without-label-s: 0 #{sbb.px-to-rem-build(5)};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../core/styles' as sbb;
|
|
2
2
|
|
|
3
3
|
$theme: 'standard' !default;
|
|
4
4
|
|
|
5
5
|
@mixin base {
|
|
6
|
+
--sbb-container-background-border-radius: 0;
|
|
7
|
+
--sbb-container-color: inherit;
|
|
6
8
|
--sbb-sticky-bar-animation-easing: var(--sbb-animation-easing);
|
|
7
9
|
--sbb-sticky-bar-border-radius: var(--sbb-border-radius-8x);
|
|
8
10
|
--sbb-sticky-bar-padding-block: #{sbb.theme-pattern-select(
|
|
@@ -15,3 +17,16 @@ $theme: 'standard' !default;
|
|
|
15
17
|
--sbb-sticky-bar-position: sticky;
|
|
16
18
|
--sbb-sticky-bar-slide-vertically-animation-easing: ease-out;
|
|
17
19
|
}
|
|
20
|
+
|
|
21
|
+
@mixin rules {
|
|
22
|
+
sbb-container {
|
|
23
|
+
> [slot='image']:is(sbb-image, img),
|
|
24
|
+
> [slot='image'] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
25
|
+
--sbb-image-object-fit: cover;
|
|
26
|
+
|
|
27
|
+
border-radius: var(--sbb-container-background-border-radius);
|
|
28
|
+
height: 100%;
|
|
29
|
+
position: absolute;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
@use '../styles' as sbb;
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
@mixin horizontal-orientation {
|
|
4
|
+
--sbb-selection-group-orientation: row;
|
|
5
|
+
--sbb-selection-group-elements-width: auto;
|
|
6
|
+
}
|
|
3
7
|
|
|
4
8
|
$theme: 'standard' !default;
|
|
5
9
|
|
|
6
10
|
@mixin base {
|
|
7
|
-
@include
|
|
11
|
+
@include horizontal-orientation;
|
|
8
12
|
|
|
9
13
|
--sbb-selection-group-width: auto;
|
|
10
14
|
--sbb-selection-group-gap: var(--sbb-spacing-fixed-3x) var(--sbb-spacing-fixed-6x);
|
package/core/styles/_index.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@forward './
|
|
2
|
-
@forward './
|
|
3
|
-
|
|
1
|
+
@forward './mixins/functions';
|
|
2
|
+
@forward './mixins/mediaqueries';
|
|
4
3
|
@forward './mixins/a11y';
|
|
5
4
|
@forward './mixins/animation';
|
|
5
|
+
@forward './mixins/core';
|
|
6
6
|
@forward './mixins/font-face';
|
|
7
7
|
@forward './mixins/helpers';
|
|
8
8
|
@forward './mixins/layout';
|