@sbb-esta/lyne-elements-dev 4.7.0-dev.1773242335 → 4.7.0-dev.1773276117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/styles/core.scss +5 -8
- package/core.css +11 -5
- package/custom-elements.json +324 -324
- package/development/message/message.component.d.ts.map +1 -1
- package/development/message/message.component.js +8 -23
- package/message/message.component.js +14 -16
- package/off-brand-theme.css +11 -5
- package/package.json +2 -2
- package/safety-theme.css +11 -5
- package/standard-theme.css +11 -5
package/core/styles/core.scss
CHANGED
|
@@ -131,6 +131,9 @@ $theme: 'standard' !default;
|
|
|
131
131
|
@use '../../link/common/block-link.global' as block-link with (
|
|
132
132
|
$theme: $theme
|
|
133
133
|
);
|
|
134
|
+
@use '../../message/message.global' as message with (
|
|
135
|
+
$theme: $theme
|
|
136
|
+
);
|
|
134
137
|
@use '../../option/option/option.global' as option with (
|
|
135
138
|
$theme: $theme
|
|
136
139
|
);
|
|
@@ -211,6 +214,7 @@ $theme: 'standard' !default;
|
|
|
211
214
|
@include icon-sidebar.base;
|
|
212
215
|
@include block-link.base;
|
|
213
216
|
@include lead-container.base;
|
|
217
|
+
@include message.base;
|
|
214
218
|
@include option.base;
|
|
215
219
|
@include option-hint.base;
|
|
216
220
|
@include optgroup.base;
|
|
@@ -339,6 +343,7 @@ $theme: 'standard' !default;
|
|
|
339
343
|
@include header.rules;
|
|
340
344
|
@include icon-sidebar.rules;
|
|
341
345
|
@include lead-container.rules;
|
|
346
|
+
@include message.rules;
|
|
342
347
|
@include option.rules;
|
|
343
348
|
@include tab-nav-bar.rules;
|
|
344
349
|
|
|
@@ -437,14 +442,6 @@ img {
|
|
|
437
442
|
object-position: var(--sbb-image-object-position);
|
|
438
443
|
}
|
|
439
444
|
|
|
440
|
-
// TODO: Move back to the sbb-message components when the global CSS refactoring happens
|
|
441
|
-
sbb-message {
|
|
442
|
-
> [slot='image']:is(sbb-image, img),
|
|
443
|
-
> [slot='image'] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
444
|
-
border-radius: var(--sbb-message-image-border-radius);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
|
|
448
445
|
// Target the slotted `sbb-image` which are generally wrapped by a <figure> (therefore are not reachable with the :slotted)
|
|
449
446
|
// Apply the brightness effect on mouse hover
|
|
450
447
|
// TODO: Move back to the teaser components when the global CSS refactoring happens
|
package/core.css
CHANGED
|
@@ -1533,6 +1533,12 @@
|
|
|
1533
1533
|
--sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);
|
|
1534
1534
|
--sbb-lead-container-border-radius: var(--sbb-border-radius-6x);
|
|
1535
1535
|
--sbb-lead-container-image-border-radius: 0;
|
|
1536
|
+
--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
1537
|
+
--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);
|
|
1538
|
+
--sbb-message-image-border-radius: var(--sbb-border-radius-4x);
|
|
1539
|
+
--sbb-message-subtitle-color: var(--sbb-color-granite);
|
|
1540
|
+
--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));
|
|
1541
|
+
--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
1536
1542
|
--sbb-option-color: var(--sbb-color-3);
|
|
1537
1543
|
--sbb-option-background-color: inherit;
|
|
1538
1544
|
--sbb-option-background-color-hover: var(--sbb-background-color-3);
|
|
@@ -2062,6 +2068,11 @@ sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-o
|
|
|
2062
2068
|
border-radius: var(--sbb-lead-container-image-border-radius);
|
|
2063
2069
|
}
|
|
2064
2070
|
|
|
2071
|
+
sbb-message > [slot=image]:is(sbb-image, img),
|
|
2072
|
+
sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2073
|
+
border-radius: var(--sbb-message-image-border-radius);
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2065
2076
|
:where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
|
|
2066
2077
|
--sbb-option-min-height: var(--sbb-size-element-xxs);
|
|
2067
2078
|
--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
|
|
@@ -2178,11 +2189,6 @@ img {
|
|
|
2178
2189
|
object-position: var(--sbb-image-object-position);
|
|
2179
2190
|
}
|
|
2180
2191
|
|
|
2181
|
-
sbb-message > [slot=image]:is(sbb-image, img),
|
|
2182
|
-
sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2183
|
-
border-radius: var(--sbb-message-image-border-radius);
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
2192
|
:is(sbb-teaser, sbb-teaser-hero, sbb-teaser-product) {
|
|
2187
2193
|
--sbb-teaser-image-brightness-hover: var(--sbb-hover-image-brightness);
|
|
2188
2194
|
--sbb-teaser-image-animation-duration: var(
|
package/custom-elements.json
CHANGED
|
@@ -37571,12 +37571,12 @@
|
|
|
37571
37571
|
},
|
|
37572
37572
|
{
|
|
37573
37573
|
"kind": "javascript-module",
|
|
37574
|
-
"path": "button/accent-button-
|
|
37574
|
+
"path": "button/accent-button-link/accent-button-link.component.js",
|
|
37575
37575
|
"declarations": [
|
|
37576
37576
|
{
|
|
37577
37577
|
"kind": "class",
|
|
37578
|
-
"description": "It displays a
|
|
37579
|
-
"name": "
|
|
37578
|
+
"description": "It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.",
|
|
37579
|
+
"name": "SbbAccentButtonLinkElement",
|
|
37580
37580
|
"cssProperties": [
|
|
37581
37581
|
{
|
|
37582
37582
|
"description": "The delay before the loading animation starts, when setting the button into loading state.",
|
|
@@ -37586,7 +37586,7 @@
|
|
|
37586
37586
|
],
|
|
37587
37587
|
"slots": [
|
|
37588
37588
|
{
|
|
37589
|
-
"description": "Use the unnamed slot to add content to the accent-button-
|
|
37589
|
+
"description": "Use the unnamed slot to add content to the accent-button-link.",
|
|
37590
37590
|
"name": ""
|
|
37591
37591
|
},
|
|
37592
37592
|
{
|
|
@@ -37604,7 +37604,7 @@
|
|
|
37604
37604
|
"privacy": "public",
|
|
37605
37605
|
"static": true,
|
|
37606
37606
|
"readonly": true,
|
|
37607
|
-
"default": "'sbb-accent-button-
|
|
37607
|
+
"default": "'sbb-accent-button-link'",
|
|
37608
37608
|
"inheritedFrom": {
|
|
37609
37609
|
"name": "SbbElement",
|
|
37610
37610
|
"module": "core/base-elements/element.js"
|
|
@@ -37739,6 +37739,22 @@
|
|
|
37739
37739
|
"module": "icon/icon-name-mixin.js"
|
|
37740
37740
|
}
|
|
37741
37741
|
},
|
|
37742
|
+
{
|
|
37743
|
+
"kind": "field",
|
|
37744
|
+
"name": "disabledInteractive",
|
|
37745
|
+
"type": {
|
|
37746
|
+
"text": "boolean"
|
|
37747
|
+
},
|
|
37748
|
+
"privacy": "public",
|
|
37749
|
+
"default": "false",
|
|
37750
|
+
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
37751
|
+
"attribute": "disabled-interactive",
|
|
37752
|
+
"reflects": true,
|
|
37753
|
+
"inheritedFrom": {
|
|
37754
|
+
"name": "SbbDisabledInteractiveMixin",
|
|
37755
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
37756
|
+
}
|
|
37757
|
+
},
|
|
37742
37758
|
{
|
|
37743
37759
|
"kind": "field",
|
|
37744
37760
|
"name": "disabled",
|
|
@@ -37783,6 +37799,155 @@
|
|
|
37783
37799
|
"module": "core/mixins/disabled-mixin.js"
|
|
37784
37800
|
}
|
|
37785
37801
|
},
|
|
37802
|
+
{
|
|
37803
|
+
"kind": "field",
|
|
37804
|
+
"name": "href",
|
|
37805
|
+
"type": {
|
|
37806
|
+
"text": "string"
|
|
37807
|
+
},
|
|
37808
|
+
"privacy": "public",
|
|
37809
|
+
"default": "''",
|
|
37810
|
+
"description": "The href value you want to link to.",
|
|
37811
|
+
"attribute": "href",
|
|
37812
|
+
"reflects": true,
|
|
37813
|
+
"inheritedFrom": {
|
|
37814
|
+
"name": "SbbLinkBaseElement",
|
|
37815
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37816
|
+
}
|
|
37817
|
+
},
|
|
37818
|
+
{
|
|
37819
|
+
"kind": "field",
|
|
37820
|
+
"name": "target",
|
|
37821
|
+
"type": {
|
|
37822
|
+
"text": "LinkTargetType | string"
|
|
37823
|
+
},
|
|
37824
|
+
"privacy": "public",
|
|
37825
|
+
"default": "''",
|
|
37826
|
+
"description": "Where to display the linked URL.",
|
|
37827
|
+
"attribute": "target",
|
|
37828
|
+
"reflects": true,
|
|
37829
|
+
"inheritedFrom": {
|
|
37830
|
+
"name": "SbbLinkBaseElement",
|
|
37831
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37832
|
+
}
|
|
37833
|
+
},
|
|
37834
|
+
{
|
|
37835
|
+
"kind": "field",
|
|
37836
|
+
"name": "rel",
|
|
37837
|
+
"type": {
|
|
37838
|
+
"text": "string"
|
|
37839
|
+
},
|
|
37840
|
+
"privacy": "public",
|
|
37841
|
+
"default": "''",
|
|
37842
|
+
"description": "The relationship of the linked URL as space-separated link types.",
|
|
37843
|
+
"attribute": "rel",
|
|
37844
|
+
"reflects": true,
|
|
37845
|
+
"inheritedFrom": {
|
|
37846
|
+
"name": "SbbLinkBaseElement",
|
|
37847
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37848
|
+
}
|
|
37849
|
+
},
|
|
37850
|
+
{
|
|
37851
|
+
"kind": "field",
|
|
37852
|
+
"name": "download",
|
|
37853
|
+
"type": {
|
|
37854
|
+
"text": "boolean"
|
|
37855
|
+
},
|
|
37856
|
+
"privacy": "public",
|
|
37857
|
+
"default": "false",
|
|
37858
|
+
"description": "Whether the browser will show the download dialog on click.",
|
|
37859
|
+
"attribute": "download",
|
|
37860
|
+
"reflects": true,
|
|
37861
|
+
"inheritedFrom": {
|
|
37862
|
+
"name": "SbbLinkBaseElement",
|
|
37863
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37864
|
+
}
|
|
37865
|
+
},
|
|
37866
|
+
{
|
|
37867
|
+
"kind": "field",
|
|
37868
|
+
"name": "accessibilityLabel",
|
|
37869
|
+
"type": {
|
|
37870
|
+
"text": "string"
|
|
37871
|
+
},
|
|
37872
|
+
"privacy": "public",
|
|
37873
|
+
"default": "''",
|
|
37874
|
+
"description": "This will be forwarded as aria-label to the inner anchor element.",
|
|
37875
|
+
"attribute": "accessibility-label",
|
|
37876
|
+
"inheritedFrom": {
|
|
37877
|
+
"name": "SbbLinkBaseElement",
|
|
37878
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37879
|
+
}
|
|
37880
|
+
},
|
|
37881
|
+
{
|
|
37882
|
+
"kind": "field",
|
|
37883
|
+
"name": "accessibilityCurrent",
|
|
37884
|
+
"type": {
|
|
37885
|
+
"text": "string"
|
|
37886
|
+
},
|
|
37887
|
+
"privacy": "public",
|
|
37888
|
+
"default": "''",
|
|
37889
|
+
"description": "This will be forwarded as aria-current to the inner anchor element.",
|
|
37890
|
+
"attribute": "accessibility-current",
|
|
37891
|
+
"inheritedFrom": {
|
|
37892
|
+
"name": "SbbLinkBaseElement",
|
|
37893
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37894
|
+
}
|
|
37895
|
+
},
|
|
37896
|
+
{
|
|
37897
|
+
"kind": "field",
|
|
37898
|
+
"name": "language",
|
|
37899
|
+
"privacy": "protected",
|
|
37900
|
+
"default": "new SbbLanguageController(this)",
|
|
37901
|
+
"inheritedFrom": {
|
|
37902
|
+
"name": "SbbLinkBaseElement",
|
|
37903
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37904
|
+
}
|
|
37905
|
+
},
|
|
37906
|
+
{
|
|
37907
|
+
"kind": "field",
|
|
37908
|
+
"name": "anchorRole",
|
|
37909
|
+
"type": {
|
|
37910
|
+
"text": "string | null"
|
|
37911
|
+
},
|
|
37912
|
+
"privacy": "protected",
|
|
37913
|
+
"readonly": true,
|
|
37914
|
+
"default": "null",
|
|
37915
|
+
"inheritedFrom": {
|
|
37916
|
+
"name": "SbbLinkBaseElement",
|
|
37917
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37918
|
+
}
|
|
37919
|
+
},
|
|
37920
|
+
{
|
|
37921
|
+
"kind": "field",
|
|
37922
|
+
"name": "_evaluateRelAttribute",
|
|
37923
|
+
"privacy": "private",
|
|
37924
|
+
"inheritedFrom": {
|
|
37925
|
+
"name": "SbbLinkBaseElement",
|
|
37926
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37927
|
+
}
|
|
37928
|
+
},
|
|
37929
|
+
{
|
|
37930
|
+
"kind": "method",
|
|
37931
|
+
"name": "renderLink",
|
|
37932
|
+
"privacy": "protected",
|
|
37933
|
+
"return": {
|
|
37934
|
+
"type": {
|
|
37935
|
+
"text": "TemplateResult"
|
|
37936
|
+
}
|
|
37937
|
+
},
|
|
37938
|
+
"parameters": [
|
|
37939
|
+
{
|
|
37940
|
+
"name": "renderContent",
|
|
37941
|
+
"type": {
|
|
37942
|
+
"text": "TemplateResult"
|
|
37943
|
+
}
|
|
37944
|
+
}
|
|
37945
|
+
],
|
|
37946
|
+
"inheritedFrom": {
|
|
37947
|
+
"name": "SbbLinkBaseElement",
|
|
37948
|
+
"module": "core/base-elements/link-base-element.js"
|
|
37949
|
+
}
|
|
37950
|
+
},
|
|
37786
37951
|
{
|
|
37787
37952
|
"kind": "field",
|
|
37788
37953
|
"name": "maybeDisabled",
|
|
@@ -37934,16 +38099,20 @@
|
|
|
37934
38099
|
"name": "SbbButtonCommonElementMixin",
|
|
37935
38100
|
"module": "button/common.js"
|
|
37936
38101
|
},
|
|
38102
|
+
{
|
|
38103
|
+
"name": "SbbDisabledInteractiveMixin",
|
|
38104
|
+
"module": "core/mixins.js"
|
|
38105
|
+
},
|
|
37937
38106
|
{
|
|
37938
38107
|
"name": "SbbDisabledMixin",
|
|
37939
38108
|
"module": "core/mixins.js"
|
|
37940
38109
|
}
|
|
37941
38110
|
],
|
|
37942
38111
|
"superclass": {
|
|
37943
|
-
"name": "
|
|
38112
|
+
"name": "SbbLinkBaseElement",
|
|
37944
38113
|
"module": "core/base-elements.js"
|
|
37945
38114
|
},
|
|
37946
|
-
"tagName": "sbb-accent-button-
|
|
38115
|
+
"tagName": "sbb-accent-button-link",
|
|
37947
38116
|
"customElement": true,
|
|
37948
38117
|
"attributes": [
|
|
37949
38118
|
{
|
|
@@ -37998,6 +38167,19 @@
|
|
|
37998
38167
|
"module": "icon/icon-name-mixin.js"
|
|
37999
38168
|
}
|
|
38000
38169
|
},
|
|
38170
|
+
{
|
|
38171
|
+
"name": "disabled-interactive",
|
|
38172
|
+
"type": {
|
|
38173
|
+
"text": "boolean"
|
|
38174
|
+
},
|
|
38175
|
+
"default": "false",
|
|
38176
|
+
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
38177
|
+
"fieldName": "disabledInteractive",
|
|
38178
|
+
"inheritedFrom": {
|
|
38179
|
+
"name": "SbbDisabledInteractiveMixin",
|
|
38180
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
38181
|
+
}
|
|
38182
|
+
},
|
|
38001
38183
|
{
|
|
38002
38184
|
"name": "disabled",
|
|
38003
38185
|
"description": "Whether the component is disabled.",
|
|
@@ -38010,69 +38192,147 @@
|
|
|
38010
38192
|
"name": "SbbDisabledMixin",
|
|
38011
38193
|
"module": "core/mixins/disabled-mixin.js"
|
|
38012
38194
|
}
|
|
38013
|
-
}
|
|
38014
|
-
]
|
|
38015
|
-
}
|
|
38016
|
-
],
|
|
38017
|
-
"exports": [
|
|
38018
|
-
{
|
|
38019
|
-
"kind": "js",
|
|
38020
|
-
"name": "SbbAccentButtonStaticElement",
|
|
38021
|
-
"declaration": {
|
|
38022
|
-
"name": "SbbAccentButtonStaticElement",
|
|
38023
|
-
"module": "button/accent-button-static/accent-button-static.component.js"
|
|
38024
|
-
}
|
|
38025
|
-
}
|
|
38026
|
-
]
|
|
38027
|
-
},
|
|
38028
|
-
{
|
|
38029
|
-
"kind": "javascript-module",
|
|
38030
|
-
"path": "button/accent-button-link/accent-button-link.component.js",
|
|
38031
|
-
"declarations": [
|
|
38032
|
-
{
|
|
38033
|
-
"kind": "class",
|
|
38034
|
-
"description": "It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.",
|
|
38035
|
-
"name": "SbbAccentButtonLinkElement",
|
|
38036
|
-
"cssProperties": [
|
|
38037
|
-
{
|
|
38038
|
-
"description": "The delay before the loading animation starts, when setting the button into loading state.",
|
|
38039
|
-
"name": "--sbb-button-loading-delay",
|
|
38040
|
-
"default": "300ms"
|
|
38041
|
-
}
|
|
38042
|
-
],
|
|
38043
|
-
"slots": [
|
|
38044
|
-
{
|
|
38045
|
-
"description": "Use the unnamed slot to add content to the accent-button-link.",
|
|
38046
|
-
"name": ""
|
|
38047
38195
|
},
|
|
38048
38196
|
{
|
|
38049
|
-
"
|
|
38050
|
-
"name": "icon"
|
|
38051
|
-
}
|
|
38052
|
-
],
|
|
38053
|
-
"members": [
|
|
38054
|
-
{
|
|
38055
|
-
"kind": "field",
|
|
38056
|
-
"name": "elementName",
|
|
38197
|
+
"name": "href",
|
|
38057
38198
|
"type": {
|
|
38058
38199
|
"text": "string"
|
|
38059
38200
|
},
|
|
38060
|
-
"
|
|
38061
|
-
"
|
|
38062
|
-
"
|
|
38063
|
-
"default": "'sbb-accent-button-link'",
|
|
38201
|
+
"default": "''",
|
|
38202
|
+
"description": "The href value you want to link to.",
|
|
38203
|
+
"fieldName": "href",
|
|
38064
38204
|
"inheritedFrom": {
|
|
38065
|
-
"name": "
|
|
38066
|
-
"module": "core/base-elements/element.js"
|
|
38205
|
+
"name": "SbbLinkBaseElement",
|
|
38206
|
+
"module": "core/base-elements/link-base-element.js"
|
|
38067
38207
|
}
|
|
38068
38208
|
},
|
|
38069
38209
|
{
|
|
38070
|
-
"
|
|
38071
|
-
"name": "size",
|
|
38210
|
+
"name": "target",
|
|
38072
38211
|
"type": {
|
|
38073
|
-
"text": "
|
|
38212
|
+
"text": "LinkTargetType | string"
|
|
38074
38213
|
},
|
|
38075
|
-
"
|
|
38214
|
+
"default": "''",
|
|
38215
|
+
"description": "Where to display the linked URL.",
|
|
38216
|
+
"fieldName": "target",
|
|
38217
|
+
"inheritedFrom": {
|
|
38218
|
+
"name": "SbbLinkBaseElement",
|
|
38219
|
+
"module": "core/base-elements/link-base-element.js"
|
|
38220
|
+
}
|
|
38221
|
+
},
|
|
38222
|
+
{
|
|
38223
|
+
"name": "rel",
|
|
38224
|
+
"type": {
|
|
38225
|
+
"text": "string"
|
|
38226
|
+
},
|
|
38227
|
+
"default": "''",
|
|
38228
|
+
"description": "The relationship of the linked URL as space-separated link types.",
|
|
38229
|
+
"fieldName": "rel",
|
|
38230
|
+
"inheritedFrom": {
|
|
38231
|
+
"name": "SbbLinkBaseElement",
|
|
38232
|
+
"module": "core/base-elements/link-base-element.js"
|
|
38233
|
+
}
|
|
38234
|
+
},
|
|
38235
|
+
{
|
|
38236
|
+
"name": "download",
|
|
38237
|
+
"type": {
|
|
38238
|
+
"text": "boolean"
|
|
38239
|
+
},
|
|
38240
|
+
"default": "false",
|
|
38241
|
+
"description": "Whether the browser will show the download dialog on click.",
|
|
38242
|
+
"fieldName": "download",
|
|
38243
|
+
"inheritedFrom": {
|
|
38244
|
+
"name": "SbbLinkBaseElement",
|
|
38245
|
+
"module": "core/base-elements/link-base-element.js"
|
|
38246
|
+
}
|
|
38247
|
+
},
|
|
38248
|
+
{
|
|
38249
|
+
"name": "accessibility-label",
|
|
38250
|
+
"type": {
|
|
38251
|
+
"text": "string"
|
|
38252
|
+
},
|
|
38253
|
+
"default": "''",
|
|
38254
|
+
"description": "This will be forwarded as aria-label to the inner anchor element.",
|
|
38255
|
+
"fieldName": "accessibilityLabel",
|
|
38256
|
+
"inheritedFrom": {
|
|
38257
|
+
"name": "SbbLinkBaseElement",
|
|
38258
|
+
"module": "core/base-elements/link-base-element.js"
|
|
38259
|
+
}
|
|
38260
|
+
},
|
|
38261
|
+
{
|
|
38262
|
+
"name": "accessibility-current",
|
|
38263
|
+
"type": {
|
|
38264
|
+
"text": "string"
|
|
38265
|
+
},
|
|
38266
|
+
"default": "''",
|
|
38267
|
+
"description": "This will be forwarded as aria-current to the inner anchor element.",
|
|
38268
|
+
"fieldName": "accessibilityCurrent",
|
|
38269
|
+
"inheritedFrom": {
|
|
38270
|
+
"name": "SbbLinkBaseElement",
|
|
38271
|
+
"module": "core/base-elements/link-base-element.js"
|
|
38272
|
+
}
|
|
38273
|
+
}
|
|
38274
|
+
]
|
|
38275
|
+
}
|
|
38276
|
+
],
|
|
38277
|
+
"exports": [
|
|
38278
|
+
{
|
|
38279
|
+
"kind": "js",
|
|
38280
|
+
"name": "SbbAccentButtonLinkElement",
|
|
38281
|
+
"declaration": {
|
|
38282
|
+
"name": "SbbAccentButtonLinkElement",
|
|
38283
|
+
"module": "button/accent-button-link/accent-button-link.component.js"
|
|
38284
|
+
}
|
|
38285
|
+
}
|
|
38286
|
+
]
|
|
38287
|
+
},
|
|
38288
|
+
{
|
|
38289
|
+
"kind": "javascript-module",
|
|
38290
|
+
"path": "button/accent-button-static/accent-button-static.component.js",
|
|
38291
|
+
"declarations": [
|
|
38292
|
+
{
|
|
38293
|
+
"kind": "class",
|
|
38294
|
+
"description": "It displays a static button enhanced with the SBB Design in the 'accent' variant.",
|
|
38295
|
+
"name": "SbbAccentButtonStaticElement",
|
|
38296
|
+
"cssProperties": [
|
|
38297
|
+
{
|
|
38298
|
+
"description": "The delay before the loading animation starts, when setting the button into loading state.",
|
|
38299
|
+
"name": "--sbb-button-loading-delay",
|
|
38300
|
+
"default": "300ms"
|
|
38301
|
+
}
|
|
38302
|
+
],
|
|
38303
|
+
"slots": [
|
|
38304
|
+
{
|
|
38305
|
+
"description": "Use the unnamed slot to add content to the accent-button-static.",
|
|
38306
|
+
"name": ""
|
|
38307
|
+
},
|
|
38308
|
+
{
|
|
38309
|
+
"description": "Slot used to display the icon, if one is set.",
|
|
38310
|
+
"name": "icon"
|
|
38311
|
+
}
|
|
38312
|
+
],
|
|
38313
|
+
"members": [
|
|
38314
|
+
{
|
|
38315
|
+
"kind": "field",
|
|
38316
|
+
"name": "elementName",
|
|
38317
|
+
"type": {
|
|
38318
|
+
"text": "string"
|
|
38319
|
+
},
|
|
38320
|
+
"privacy": "public",
|
|
38321
|
+
"static": true,
|
|
38322
|
+
"readonly": true,
|
|
38323
|
+
"default": "'sbb-accent-button-static'",
|
|
38324
|
+
"inheritedFrom": {
|
|
38325
|
+
"name": "SbbElement",
|
|
38326
|
+
"module": "core/base-elements/element.js"
|
|
38327
|
+
}
|
|
38328
|
+
},
|
|
38329
|
+
{
|
|
38330
|
+
"kind": "field",
|
|
38331
|
+
"name": "size",
|
|
38332
|
+
"type": {
|
|
38333
|
+
"text": "SbbButtonSize"
|
|
38334
|
+
},
|
|
38335
|
+
"privacy": "public",
|
|
38076
38336
|
"description": "Size variant, either l, m or s.",
|
|
38077
38337
|
"default": "'l' / 's' (lean)",
|
|
38078
38338
|
"attribute": "size",
|
|
@@ -38195,22 +38455,6 @@
|
|
|
38195
38455
|
"module": "icon/icon-name-mixin.js"
|
|
38196
38456
|
}
|
|
38197
38457
|
},
|
|
38198
|
-
{
|
|
38199
|
-
"kind": "field",
|
|
38200
|
-
"name": "disabledInteractive",
|
|
38201
|
-
"type": {
|
|
38202
|
-
"text": "boolean"
|
|
38203
|
-
},
|
|
38204
|
-
"privacy": "public",
|
|
38205
|
-
"default": "false",
|
|
38206
|
-
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
38207
|
-
"attribute": "disabled-interactive",
|
|
38208
|
-
"reflects": true,
|
|
38209
|
-
"inheritedFrom": {
|
|
38210
|
-
"name": "SbbDisabledInteractiveMixin",
|
|
38211
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
38212
|
-
}
|
|
38213
|
-
},
|
|
38214
38458
|
{
|
|
38215
38459
|
"kind": "field",
|
|
38216
38460
|
"name": "disabled",
|
|
@@ -38255,155 +38499,6 @@
|
|
|
38255
38499
|
"module": "core/mixins/disabled-mixin.js"
|
|
38256
38500
|
}
|
|
38257
38501
|
},
|
|
38258
|
-
{
|
|
38259
|
-
"kind": "field",
|
|
38260
|
-
"name": "href",
|
|
38261
|
-
"type": {
|
|
38262
|
-
"text": "string"
|
|
38263
|
-
},
|
|
38264
|
-
"privacy": "public",
|
|
38265
|
-
"default": "''",
|
|
38266
|
-
"description": "The href value you want to link to.",
|
|
38267
|
-
"attribute": "href",
|
|
38268
|
-
"reflects": true,
|
|
38269
|
-
"inheritedFrom": {
|
|
38270
|
-
"name": "SbbLinkBaseElement",
|
|
38271
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38272
|
-
}
|
|
38273
|
-
},
|
|
38274
|
-
{
|
|
38275
|
-
"kind": "field",
|
|
38276
|
-
"name": "target",
|
|
38277
|
-
"type": {
|
|
38278
|
-
"text": "LinkTargetType | string"
|
|
38279
|
-
},
|
|
38280
|
-
"privacy": "public",
|
|
38281
|
-
"default": "''",
|
|
38282
|
-
"description": "Where to display the linked URL.",
|
|
38283
|
-
"attribute": "target",
|
|
38284
|
-
"reflects": true,
|
|
38285
|
-
"inheritedFrom": {
|
|
38286
|
-
"name": "SbbLinkBaseElement",
|
|
38287
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38288
|
-
}
|
|
38289
|
-
},
|
|
38290
|
-
{
|
|
38291
|
-
"kind": "field",
|
|
38292
|
-
"name": "rel",
|
|
38293
|
-
"type": {
|
|
38294
|
-
"text": "string"
|
|
38295
|
-
},
|
|
38296
|
-
"privacy": "public",
|
|
38297
|
-
"default": "''",
|
|
38298
|
-
"description": "The relationship of the linked URL as space-separated link types.",
|
|
38299
|
-
"attribute": "rel",
|
|
38300
|
-
"reflects": true,
|
|
38301
|
-
"inheritedFrom": {
|
|
38302
|
-
"name": "SbbLinkBaseElement",
|
|
38303
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38304
|
-
}
|
|
38305
|
-
},
|
|
38306
|
-
{
|
|
38307
|
-
"kind": "field",
|
|
38308
|
-
"name": "download",
|
|
38309
|
-
"type": {
|
|
38310
|
-
"text": "boolean"
|
|
38311
|
-
},
|
|
38312
|
-
"privacy": "public",
|
|
38313
|
-
"default": "false",
|
|
38314
|
-
"description": "Whether the browser will show the download dialog on click.",
|
|
38315
|
-
"attribute": "download",
|
|
38316
|
-
"reflects": true,
|
|
38317
|
-
"inheritedFrom": {
|
|
38318
|
-
"name": "SbbLinkBaseElement",
|
|
38319
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38320
|
-
}
|
|
38321
|
-
},
|
|
38322
|
-
{
|
|
38323
|
-
"kind": "field",
|
|
38324
|
-
"name": "accessibilityLabel",
|
|
38325
|
-
"type": {
|
|
38326
|
-
"text": "string"
|
|
38327
|
-
},
|
|
38328
|
-
"privacy": "public",
|
|
38329
|
-
"default": "''",
|
|
38330
|
-
"description": "This will be forwarded as aria-label to the inner anchor element.",
|
|
38331
|
-
"attribute": "accessibility-label",
|
|
38332
|
-
"inheritedFrom": {
|
|
38333
|
-
"name": "SbbLinkBaseElement",
|
|
38334
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38335
|
-
}
|
|
38336
|
-
},
|
|
38337
|
-
{
|
|
38338
|
-
"kind": "field",
|
|
38339
|
-
"name": "accessibilityCurrent",
|
|
38340
|
-
"type": {
|
|
38341
|
-
"text": "string"
|
|
38342
|
-
},
|
|
38343
|
-
"privacy": "public",
|
|
38344
|
-
"default": "''",
|
|
38345
|
-
"description": "This will be forwarded as aria-current to the inner anchor element.",
|
|
38346
|
-
"attribute": "accessibility-current",
|
|
38347
|
-
"inheritedFrom": {
|
|
38348
|
-
"name": "SbbLinkBaseElement",
|
|
38349
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38350
|
-
}
|
|
38351
|
-
},
|
|
38352
|
-
{
|
|
38353
|
-
"kind": "field",
|
|
38354
|
-
"name": "language",
|
|
38355
|
-
"privacy": "protected",
|
|
38356
|
-
"default": "new SbbLanguageController(this)",
|
|
38357
|
-
"inheritedFrom": {
|
|
38358
|
-
"name": "SbbLinkBaseElement",
|
|
38359
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38360
|
-
}
|
|
38361
|
-
},
|
|
38362
|
-
{
|
|
38363
|
-
"kind": "field",
|
|
38364
|
-
"name": "anchorRole",
|
|
38365
|
-
"type": {
|
|
38366
|
-
"text": "string | null"
|
|
38367
|
-
},
|
|
38368
|
-
"privacy": "protected",
|
|
38369
|
-
"readonly": true,
|
|
38370
|
-
"default": "null",
|
|
38371
|
-
"inheritedFrom": {
|
|
38372
|
-
"name": "SbbLinkBaseElement",
|
|
38373
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38374
|
-
}
|
|
38375
|
-
},
|
|
38376
|
-
{
|
|
38377
|
-
"kind": "field",
|
|
38378
|
-
"name": "_evaluateRelAttribute",
|
|
38379
|
-
"privacy": "private",
|
|
38380
|
-
"inheritedFrom": {
|
|
38381
|
-
"name": "SbbLinkBaseElement",
|
|
38382
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38383
|
-
}
|
|
38384
|
-
},
|
|
38385
|
-
{
|
|
38386
|
-
"kind": "method",
|
|
38387
|
-
"name": "renderLink",
|
|
38388
|
-
"privacy": "protected",
|
|
38389
|
-
"return": {
|
|
38390
|
-
"type": {
|
|
38391
|
-
"text": "TemplateResult"
|
|
38392
|
-
}
|
|
38393
|
-
},
|
|
38394
|
-
"parameters": [
|
|
38395
|
-
{
|
|
38396
|
-
"name": "renderContent",
|
|
38397
|
-
"type": {
|
|
38398
|
-
"text": "TemplateResult"
|
|
38399
|
-
}
|
|
38400
|
-
}
|
|
38401
|
-
],
|
|
38402
|
-
"inheritedFrom": {
|
|
38403
|
-
"name": "SbbLinkBaseElement",
|
|
38404
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38405
|
-
}
|
|
38406
|
-
},
|
|
38407
38502
|
{
|
|
38408
38503
|
"kind": "field",
|
|
38409
38504
|
"name": "maybeDisabled",
|
|
@@ -38555,20 +38650,16 @@
|
|
|
38555
38650
|
"name": "SbbButtonCommonElementMixin",
|
|
38556
38651
|
"module": "button/common.js"
|
|
38557
38652
|
},
|
|
38558
|
-
{
|
|
38559
|
-
"name": "SbbDisabledInteractiveMixin",
|
|
38560
|
-
"module": "core/mixins.js"
|
|
38561
|
-
},
|
|
38562
38653
|
{
|
|
38563
38654
|
"name": "SbbDisabledMixin",
|
|
38564
38655
|
"module": "core/mixins.js"
|
|
38565
38656
|
}
|
|
38566
38657
|
],
|
|
38567
38658
|
"superclass": {
|
|
38568
|
-
"name": "
|
|
38659
|
+
"name": "SbbActionBaseElement",
|
|
38569
38660
|
"module": "core/base-elements.js"
|
|
38570
38661
|
},
|
|
38571
|
-
"tagName": "sbb-accent-button-
|
|
38662
|
+
"tagName": "sbb-accent-button-static",
|
|
38572
38663
|
"customElement": true,
|
|
38573
38664
|
"attributes": [
|
|
38574
38665
|
{
|
|
@@ -38623,19 +38714,6 @@
|
|
|
38623
38714
|
"module": "icon/icon-name-mixin.js"
|
|
38624
38715
|
}
|
|
38625
38716
|
},
|
|
38626
|
-
{
|
|
38627
|
-
"name": "disabled-interactive",
|
|
38628
|
-
"type": {
|
|
38629
|
-
"text": "boolean"
|
|
38630
|
-
},
|
|
38631
|
-
"default": "false",
|
|
38632
|
-
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
38633
|
-
"fieldName": "disabledInteractive",
|
|
38634
|
-
"inheritedFrom": {
|
|
38635
|
-
"name": "SbbDisabledInteractiveMixin",
|
|
38636
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
38637
|
-
}
|
|
38638
|
-
},
|
|
38639
38717
|
{
|
|
38640
38718
|
"name": "disabled",
|
|
38641
38719
|
"description": "Whether the component is disabled.",
|
|
@@ -38648,84 +38726,6 @@
|
|
|
38648
38726
|
"name": "SbbDisabledMixin",
|
|
38649
38727
|
"module": "core/mixins/disabled-mixin.js"
|
|
38650
38728
|
}
|
|
38651
|
-
},
|
|
38652
|
-
{
|
|
38653
|
-
"name": "href",
|
|
38654
|
-
"type": {
|
|
38655
|
-
"text": "string"
|
|
38656
|
-
},
|
|
38657
|
-
"default": "''",
|
|
38658
|
-
"description": "The href value you want to link to.",
|
|
38659
|
-
"fieldName": "href",
|
|
38660
|
-
"inheritedFrom": {
|
|
38661
|
-
"name": "SbbLinkBaseElement",
|
|
38662
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38663
|
-
}
|
|
38664
|
-
},
|
|
38665
|
-
{
|
|
38666
|
-
"name": "target",
|
|
38667
|
-
"type": {
|
|
38668
|
-
"text": "LinkTargetType | string"
|
|
38669
|
-
},
|
|
38670
|
-
"default": "''",
|
|
38671
|
-
"description": "Where to display the linked URL.",
|
|
38672
|
-
"fieldName": "target",
|
|
38673
|
-
"inheritedFrom": {
|
|
38674
|
-
"name": "SbbLinkBaseElement",
|
|
38675
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38676
|
-
}
|
|
38677
|
-
},
|
|
38678
|
-
{
|
|
38679
|
-
"name": "rel",
|
|
38680
|
-
"type": {
|
|
38681
|
-
"text": "string"
|
|
38682
|
-
},
|
|
38683
|
-
"default": "''",
|
|
38684
|
-
"description": "The relationship of the linked URL as space-separated link types.",
|
|
38685
|
-
"fieldName": "rel",
|
|
38686
|
-
"inheritedFrom": {
|
|
38687
|
-
"name": "SbbLinkBaseElement",
|
|
38688
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38689
|
-
}
|
|
38690
|
-
},
|
|
38691
|
-
{
|
|
38692
|
-
"name": "download",
|
|
38693
|
-
"type": {
|
|
38694
|
-
"text": "boolean"
|
|
38695
|
-
},
|
|
38696
|
-
"default": "false",
|
|
38697
|
-
"description": "Whether the browser will show the download dialog on click.",
|
|
38698
|
-
"fieldName": "download",
|
|
38699
|
-
"inheritedFrom": {
|
|
38700
|
-
"name": "SbbLinkBaseElement",
|
|
38701
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38702
|
-
}
|
|
38703
|
-
},
|
|
38704
|
-
{
|
|
38705
|
-
"name": "accessibility-label",
|
|
38706
|
-
"type": {
|
|
38707
|
-
"text": "string"
|
|
38708
|
-
},
|
|
38709
|
-
"default": "''",
|
|
38710
|
-
"description": "This will be forwarded as aria-label to the inner anchor element.",
|
|
38711
|
-
"fieldName": "accessibilityLabel",
|
|
38712
|
-
"inheritedFrom": {
|
|
38713
|
-
"name": "SbbLinkBaseElement",
|
|
38714
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38715
|
-
}
|
|
38716
|
-
},
|
|
38717
|
-
{
|
|
38718
|
-
"name": "accessibility-current",
|
|
38719
|
-
"type": {
|
|
38720
|
-
"text": "string"
|
|
38721
|
-
},
|
|
38722
|
-
"default": "''",
|
|
38723
|
-
"description": "This will be forwarded as aria-current to the inner anchor element.",
|
|
38724
|
-
"fieldName": "accessibilityCurrent",
|
|
38725
|
-
"inheritedFrom": {
|
|
38726
|
-
"name": "SbbLinkBaseElement",
|
|
38727
|
-
"module": "core/base-elements/link-base-element.js"
|
|
38728
|
-
}
|
|
38729
38729
|
}
|
|
38730
38730
|
]
|
|
38731
38731
|
}
|
|
@@ -38733,10 +38733,10 @@
|
|
|
38733
38733
|
"exports": [
|
|
38734
38734
|
{
|
|
38735
38735
|
"kind": "js",
|
|
38736
|
-
"name": "
|
|
38736
|
+
"name": "SbbAccentButtonStaticElement",
|
|
38737
38737
|
"declaration": {
|
|
38738
|
-
"name": "
|
|
38739
|
-
"module": "button/accent-button-
|
|
38738
|
+
"name": "SbbAccentButtonStaticElement",
|
|
38739
|
+
"module": "button/accent-button-static/accent-button-static.component.js"
|
|
38740
38740
|
}
|
|
38741
38741
|
}
|
|
38742
38742
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/message/message.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAMtD;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,gBAAgC,WAAW,EAAE,MAAM,CAAiB;IACpE,OAAuB,MAAM,EAAE,cAAc,CAA4B;IAEzE,OAAO,CAAC,eAAe;cAUJ,MAAM,IAAI,cAAc;
|
|
1
|
+
{"version":3,"file":"message.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/message/message.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAMtD;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,gBAAgC,WAAW,EAAE,MAAM,CAAiB;IACpE,OAAuB,MAAM,EAAE,cAAc,CAA4B;IAEzE,OAAO,CAAC,eAAe;cAUJ,MAAM,IAAI,cAAc;CAS5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,aAAa,EAAE,iBAAiB,CAAC;KAClC;CACF"}
|
|
@@ -2,16 +2,7 @@ import { css, html } from "lit";
|
|
|
2
2
|
import { SbbElement } from "../core/base-elements.js";
|
|
3
3
|
import { boxSizingStyles } from "../core/styles.js";
|
|
4
4
|
const style = css`:host {
|
|
5
|
-
--sbb-message-subtitle-color: var(--sbb-color-granite);
|
|
6
|
-
--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));
|
|
7
|
-
--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);
|
|
8
|
-
--sbb-message-image-border-radius: var(--sbb-border-radius-4x);
|
|
9
|
-
--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
10
|
-
--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
11
5
|
display: block;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.sbb-message__container {
|
|
15
6
|
text-align: center;
|
|
16
7
|
}
|
|
17
8
|
|
|
@@ -27,13 +18,9 @@ const style = css`:host {
|
|
|
27
18
|
}
|
|
28
19
|
|
|
29
20
|
::slotted([slot=subtitle]) {
|
|
30
|
-
--sbb-text-font-size: var(--sbb-text-font-size-s);
|
|
31
|
-
font-family: var(--sbb-typo-font-family);
|
|
32
|
-
font-weight: normal;
|
|
33
|
-
line-height: var(--sbb-typo-line-height-text);
|
|
34
|
-
letter-spacing: var(--sbb-typo-letter-spacing-text);
|
|
35
|
-
font-size: var(--sbb-text-font-size);
|
|
36
21
|
color: var(--sbb-message-subtitle-color);
|
|
22
|
+
font-size: var(--sbb-text-font-size-s);
|
|
23
|
+
letter-spacing: var(--sbb-typo-letter-spacing-text);
|
|
37
24
|
margin: 0;
|
|
38
25
|
}
|
|
39
26
|
|
|
@@ -63,13 +50,11 @@ const _SbbMessageElement = class _SbbMessageElement extends SbbElement {
|
|
|
63
50
|
}
|
|
64
51
|
render() {
|
|
65
52
|
return html`
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<slot name="action"></slot>
|
|
72
|
-
</div>
|
|
53
|
+
<slot name="image"></slot>
|
|
54
|
+
<slot name="title" @slotchange=${this._configureTitle}></slot>
|
|
55
|
+
<slot name="subtitle"></slot>
|
|
56
|
+
<slot name="legend"></slot>
|
|
57
|
+
<slot name="action"></slot>
|
|
73
58
|
`;
|
|
74
59
|
}
|
|
75
60
|
};
|
|
@@ -79,4 +64,4 @@ let SbbMessageElement = _SbbMessageElement;
|
|
|
79
64
|
export {
|
|
80
65
|
SbbMessageElement
|
|
81
66
|
};
|
|
82
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZS5jb21wb25lbnQuanMiLCJzb3VyY2VzIjpbIi4uLy4uLy4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FDbEMsVUFBTSxRQUFTLE1BQU0sT0FDbEIsaUJBQUEsRUFDQSxLQUFLLENBQUMsTUFBNEIsRUFBRSxjQUFjLFdBQVc7QUFDaEUsUUFBSSxPQUFPO0FBQ1QscUJBQWUsUUFBUSxLQUFLO0FBQzVCLFlBQU0sY0FBYztBQUFBLElBQ3RCO0FBQUEsRUFDRjtBQUFBLEVBRW1CLFNBQU07QUFDdkIsV0FBTztBQUFBO0FBQUEsdUNBRTRCLEtBQUssZUFBZTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsRUFLekQ7O0FBckJnQyxtQkFBQSxjQUFzQjtBQUMvQixtQkFBQSxTQUF5QixDQUFDLGlCQUFpQixLQUFLO0FBRm5FLElBQU8sb0JBQVA7In0=
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { SbbElement as
|
|
1
|
+
import { css as i, html as a } from "lit";
|
|
2
|
+
import { SbbElement as n } from "../core/base-elements.js";
|
|
3
3
|
import { boxSizingStyles as r } from "../core/styles.js";
|
|
4
|
-
const
|
|
4
|
+
const b = i`:host{display:block;text-align:center}::slotted(sbb-title[slot=title]){margin:0}::slotted([slot=image]){display:block;margin-inline:auto!important;margin-block:var(--sbb-message-image-margin-block)!important;width:100%}::slotted([slot=subtitle]){color:var(--sbb-message-subtitle-color);font-size:var(--sbb-text-font-size-s);letter-spacing:var(--sbb-typo-letter-spacing-text);margin:0}::slotted([slot=legend]){--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);padding:0;color:var(--sbb-color-granite);color:light-dark(var(--sbb-color-granite),var(--sbb-color-cement));margin-block:var(--sbb-message-legend-margin-block)}::slotted([slot=action]){margin-block:var(--sbb-message-action-margin-block)}`, t = class t extends n {
|
|
5
5
|
_configureTitle(o) {
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const e = o.target.assignedElements().find((l) => l.localName === "sbb-title");
|
|
7
|
+
e && (customElements.upgrade(e), e.visualLevel = "5");
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<slot name="action"></slot>
|
|
17
|
-
</div>
|
|
10
|
+
return a`
|
|
11
|
+
<slot name="image"></slot>
|
|
12
|
+
<slot name="title" @slotchange=${this._configureTitle}></slot>
|
|
13
|
+
<slot name="subtitle"></slot>
|
|
14
|
+
<slot name="legend"></slot>
|
|
15
|
+
<slot name="action"></slot>
|
|
18
16
|
`;
|
|
19
17
|
}
|
|
20
18
|
};
|
|
21
|
-
t.elementName = "sbb-message", t.styles = [r,
|
|
22
|
-
let
|
|
19
|
+
t.elementName = "sbb-message", t.styles = [r, b];
|
|
20
|
+
let s = t;
|
|
23
21
|
export {
|
|
24
|
-
|
|
22
|
+
s as SbbMessageElement
|
|
25
23
|
};
|
package/off-brand-theme.css
CHANGED
|
@@ -1637,6 +1637,12 @@ summary {
|
|
|
1637
1637
|
--sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);
|
|
1638
1638
|
--sbb-lead-container-border-radius: var(--sbb-border-radius-6x);
|
|
1639
1639
|
--sbb-lead-container-image-border-radius: 0;
|
|
1640
|
+
--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
1641
|
+
--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);
|
|
1642
|
+
--sbb-message-image-border-radius: var(--sbb-border-radius-4x);
|
|
1643
|
+
--sbb-message-subtitle-color: var(--sbb-color-granite);
|
|
1644
|
+
--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));
|
|
1645
|
+
--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
1640
1646
|
--sbb-option-color: var(--sbb-color-3);
|
|
1641
1647
|
--sbb-option-background-color: inherit;
|
|
1642
1648
|
--sbb-option-background-color-hover: var(--sbb-background-color-3);
|
|
@@ -2166,6 +2172,11 @@ sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-o
|
|
|
2166
2172
|
border-radius: var(--sbb-lead-container-image-border-radius);
|
|
2167
2173
|
}
|
|
2168
2174
|
|
|
2175
|
+
sbb-message > [slot=image]:is(sbb-image, img),
|
|
2176
|
+
sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2177
|
+
border-radius: var(--sbb-message-image-border-radius);
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2169
2180
|
:where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
|
|
2170
2181
|
--sbb-option-min-height: var(--sbb-size-element-xxs);
|
|
2171
2182
|
--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
|
|
@@ -2282,11 +2293,6 @@ img {
|
|
|
2282
2293
|
object-position: var(--sbb-image-object-position);
|
|
2283
2294
|
}
|
|
2284
2295
|
|
|
2285
|
-
sbb-message > [slot=image]:is(sbb-image, img),
|
|
2286
|
-
sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2287
|
-
border-radius: var(--sbb-message-image-border-radius);
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
2296
|
:is(sbb-teaser, sbb-teaser-hero, sbb-teaser-product) {
|
|
2291
2297
|
--sbb-teaser-image-brightness-hover: var(--sbb-hover-image-brightness);
|
|
2292
2298
|
--sbb-teaser-image-animation-duration: var(
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-elements-dev",
|
|
3
|
-
"version": "4.7.0-dev.
|
|
3
|
+
"version": "4.7.0-dev.1773276117",
|
|
4
4
|
"description": "Lyne Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
7
7
|
"web components",
|
|
8
8
|
"lit",
|
|
9
9
|
"storybook",
|
|
10
|
-
"https://github.com/sbb-design-systems/lyne-components/commit/
|
|
10
|
+
"https://github.com/sbb-design-systems/lyne-components/commit/f7454ffd8fecd697e8160ba8328bef2045b39b82"
|
|
11
11
|
],
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
package/safety-theme.css
CHANGED
|
@@ -1637,6 +1637,12 @@ summary {
|
|
|
1637
1637
|
--sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);
|
|
1638
1638
|
--sbb-lead-container-border-radius: var(--sbb-border-radius-6x);
|
|
1639
1639
|
--sbb-lead-container-image-border-radius: 0;
|
|
1640
|
+
--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
1641
|
+
--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);
|
|
1642
|
+
--sbb-message-image-border-radius: var(--sbb-border-radius-4x);
|
|
1643
|
+
--sbb-message-subtitle-color: var(--sbb-color-granite);
|
|
1644
|
+
--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));
|
|
1645
|
+
--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
1640
1646
|
--sbb-option-color: var(--sbb-color-3);
|
|
1641
1647
|
--sbb-option-background-color: inherit;
|
|
1642
1648
|
--sbb-option-background-color-hover: var(--sbb-background-color-3);
|
|
@@ -2166,6 +2172,11 @@ sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-o
|
|
|
2166
2172
|
border-radius: var(--sbb-lead-container-image-border-radius);
|
|
2167
2173
|
}
|
|
2168
2174
|
|
|
2175
|
+
sbb-message > [slot=image]:is(sbb-image, img),
|
|
2176
|
+
sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2177
|
+
border-radius: var(--sbb-message-image-border-radius);
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2169
2180
|
:where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
|
|
2170
2181
|
--sbb-option-min-height: var(--sbb-size-element-xxs);
|
|
2171
2182
|
--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
|
|
@@ -2282,11 +2293,6 @@ img {
|
|
|
2282
2293
|
object-position: var(--sbb-image-object-position);
|
|
2283
2294
|
}
|
|
2284
2295
|
|
|
2285
|
-
sbb-message > [slot=image]:is(sbb-image, img),
|
|
2286
|
-
sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2287
|
-
border-radius: var(--sbb-message-image-border-radius);
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
2296
|
:is(sbb-teaser, sbb-teaser-hero, sbb-teaser-product) {
|
|
2291
2297
|
--sbb-teaser-image-brightness-hover: var(--sbb-hover-image-brightness);
|
|
2292
2298
|
--sbb-teaser-image-animation-duration: var(
|
package/standard-theme.css
CHANGED
|
@@ -1637,6 +1637,12 @@ summary {
|
|
|
1637
1637
|
--sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);
|
|
1638
1638
|
--sbb-lead-container-border-radius: var(--sbb-border-radius-6x);
|
|
1639
1639
|
--sbb-lead-container-image-border-radius: 0;
|
|
1640
|
+
--sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
1641
|
+
--sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);
|
|
1642
|
+
--sbb-message-image-border-radius: var(--sbb-border-radius-4x);
|
|
1643
|
+
--sbb-message-subtitle-color: var(--sbb-color-granite);
|
|
1644
|
+
--sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));
|
|
1645
|
+
--sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
|
|
1640
1646
|
--sbb-option-color: var(--sbb-color-3);
|
|
1641
1647
|
--sbb-option-background-color: inherit;
|
|
1642
1648
|
--sbb-option-background-color-hover: var(--sbb-background-color-3);
|
|
@@ -2166,6 +2172,11 @@ sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-o
|
|
|
2166
2172
|
border-radius: var(--sbb-lead-container-image-border-radius);
|
|
2167
2173
|
}
|
|
2168
2174
|
|
|
2175
|
+
sbb-message > [slot=image]:is(sbb-image, img),
|
|
2176
|
+
sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2177
|
+
border-radius: var(--sbb-message-image-border-radius);
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2169
2180
|
:where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
|
|
2170
2181
|
--sbb-option-min-height: var(--sbb-size-element-xxs);
|
|
2171
2182
|
--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
|
|
@@ -2282,11 +2293,6 @@ img {
|
|
|
2282
2293
|
object-position: var(--sbb-image-object-position);
|
|
2283
2294
|
}
|
|
2284
2295
|
|
|
2285
|
-
sbb-message > [slot=image]:is(sbb-image, img),
|
|
2286
|
-
sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
|
|
2287
|
-
border-radius: var(--sbb-message-image-border-radius);
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
2296
|
:is(sbb-teaser, sbb-teaser-hero, sbb-teaser-product) {
|
|
2291
2297
|
--sbb-teaser-image-brightness-hover: var(--sbb-hover-image-brightness);
|
|
2292
2298
|
--sbb-teaser-image-animation-duration: var(
|