@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1779891630 → 5.0.0-next.3-dev.1780043485

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 CHANGED
@@ -1,5 +1,6 @@
1
1
  // This file is auto-generated by scripts/generate-scss-api.ts
2
2
  @forward './core/styles';
3
+ @forward './action-group/action-group.global' as action-group-*;
3
4
  @forward './alert/alert.global' as alert-*;
4
5
  @forward './badge/badge.global' as badge-*;
5
6
  @forward './breadcrumb/breadcrumb.global' as breadcrumb-*;
@@ -0,0 +1,7 @@
1
+ @use '../core/styles' as sbb;
2
+
3
+ $theme: 'standard' !default;
4
+
5
+ @mixin base {
6
+ --sbb-action-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);
7
+ }
@@ -1,2 +1,2 @@
1
- import { t as e } from "../action-group.component-Dg11Ug4A.js";
1
+ import { t as e } from "../action-group.component-DBfkhMYG.js";
2
2
  export { e as SbbActionGroupElement };
@@ -0,0 +1,16 @@
1
+ import { html as e, unsafeCSS as t } from "lit";
2
+ import { SbbElement as n } from "./core.js";
3
+ //#region src/elements/action-group/action-group.scss?inline
4
+ var r = ":host{display:flex;align-items:center;justify-content:start;gap:var(--sbb-action-group-gap)}:host(.sbb-orientation-vertical-full-width){flex-direction:column;align-items:stretch}:host(:where(.sbb-orientation-vertical,.sbb-orientation-horizontal-from-small,.sbb-orientation-horizontal-from-large,.sbb-orientation-horizontal-from-ultra)){align-items:start}@media(min-width:37.5rem){:host(.sbb-orientation-horizontal-from-small){align-items:center}}@media(min-width:64rem){:host(.sbb-orientation-horizontal-from-large){align-items:center}}@media(min-width:90rem){:host(.sbb-orientation-horizontal-from-ultra){align-items:center}}", i = class extends n {
5
+ static {
6
+ this.elementName = "sbb-action-group";
7
+ }
8
+ static {
9
+ this.styles = [t(r)];
10
+ }
11
+ render() {
12
+ return e`<slot></slot>`;
13
+ }
14
+ };
15
+ //#endregion
16
+ export { i as t };
package/action-group.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./action-group.component-Dg11Ug4A.js";
1
+ import { t as e } from "./action-group.component-DBfkhMYG.js";
2
2
  import "./action-group.pure.js";
3
3
  //#region src/elements/action-group.ts
4
4
  e.define();
@@ -1,2 +1,2 @@
1
- import { t as e } from "./action-group.component-Dg11Ug4A.js";
1
+ import { t as e } from "./action-group.component-DBfkhMYG.js";
2
2
  export { e as SbbActionGroupElement };
@@ -7,6 +7,9 @@ $theme: 'standard' !default;
7
7
  @use './node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss' as sbb-css-tokens with (
8
8
  $theme: $theme
9
9
  );
10
+ @use '../../action-group/action-group.global' as action-group with (
11
+ $theme: $theme
12
+ );
10
13
  @use '../../alert/alert.global' as alert with (
11
14
  $theme: $theme
12
15
  );
@@ -212,6 +215,7 @@ $theme: 'standard' !default;
212
215
 
213
216
  // start-auto-generated-scss-module-root
214
217
  @include sbb-css-tokens.base;
218
+ @include action-group.base;
215
219
  @include alert.base;
216
220
  @include breadcrumb.base;
217
221
  @include button.base;
@@ -1,4 +1,5 @@
1
1
  @use '../mixins/layout';
2
+ @use '../mixins/mediaqueries';
2
3
 
3
4
  .sbb-grid,
4
5
  .sbb-page-spacing {
@@ -18,3 +19,29 @@
18
19
  .sbb-grid-only {
19
20
  @include layout.grid-base;
20
21
  }
22
+
23
+ .sbb-orientation-vertical,
24
+ .sbb-orientation-horizontal-from-small,
25
+ .sbb-orientation-horizontal-from-large,
26
+ .sbb-orientation-horizontal-from-ultra {
27
+ display: flex;
28
+ flex-direction: column;
29
+ }
30
+
31
+ .sbb-orientation-horizontal-from-small {
32
+ @include mediaqueries.mq($from: small) {
33
+ flex-direction: row;
34
+ }
35
+ }
36
+
37
+ .sbb-orientation-horizontal-from-large {
38
+ @include mediaqueries.mq($from: large) {
39
+ flex-direction: row;
40
+ }
41
+ }
42
+
43
+ .sbb-orientation-horizontal-from-ultra {
44
+ @include mediaqueries.mq($from: ultra) {
45
+ flex-direction: row;
46
+ }
47
+ }
@@ -2,112 +2,108 @@
2
2
  // Typo: Title Style Mixins
3
3
  // ----------------------------------------------------------------------------------------------------
4
4
 
5
- @mixin title-rules {
5
+ @mixin heading-rules {
6
6
  font-family: var(--sbb-typo-font-family);
7
7
  font-weight: bold;
8
8
  letter-spacing: var(--sbb-typo-letter-spacing-heading);
9
9
  line-height: var(--sbb-typo-line-height-heading);
10
10
  }
11
11
 
12
- @mixin title--level-1 {
12
+ @mixin heading--level-1 {
13
13
  font-size: var(--sbb-heading-font-size-1);
14
14
  }
15
15
 
16
- @mixin title--level-1-spacing {
16
+ @mixin heading--level-1-spacing {
17
17
  margin-block: var(--sbb-heading-margin-block-1);
18
18
  }
19
19
 
20
- @mixin title--level-2 {
20
+ @mixin heading--level-2 {
21
21
  font-size: var(--sbb-heading-font-size-2);
22
22
  }
23
23
 
24
- @mixin title--level-2-spacing {
24
+ @mixin heading--level-2-spacing {
25
25
  margin-block: var(--sbb-heading-margin-block-2);
26
26
  }
27
27
 
28
- @mixin title--level-3 {
28
+ @mixin heading--level-3 {
29
29
  font-size: var(--sbb-heading-font-size-3);
30
30
  }
31
31
 
32
- @mixin title--level-3-spacing {
32
+ @mixin heading--level-3-spacing {
33
33
  margin-block: var(--sbb-heading-margin-block-3);
34
34
  }
35
35
 
36
- @mixin title--level-4 {
36
+ @mixin heading--level-4 {
37
37
  font-size: var(--sbb-heading-font-size-4);
38
38
  }
39
39
 
40
- @mixin title--level-4-spacing {
40
+ @mixin heading--level-4-spacing {
41
41
  margin-block: var(--sbb-heading-margin-block-4);
42
42
  }
43
43
 
44
- @mixin title--level-5 {
44
+ @mixin heading--level-5 {
45
45
  font-size: var(--sbb-heading-font-size-5);
46
46
  }
47
47
 
48
- @mixin title--level-5-spacing {
48
+ @mixin heading--level-5-spacing {
49
49
  margin-block: var(--sbb-heading-margin-block-5);
50
50
  }
51
51
 
52
- @mixin title--level-6 {
52
+ @mixin heading--level-6 {
53
53
  font-size: var(--sbb-heading-font-size-6);
54
54
  line-height: var(--sbb-typo-line-height-text);
55
55
  }
56
56
 
57
- @mixin title--level-6-spacing {
57
+ @mixin heading--level-6-spacing {
58
58
  margin-block: var(--sbb-heading-margin-block-6);
59
59
  }
60
60
 
61
- @mixin title-1($exclude-spacing: false) {
62
- @include title--level-1;
61
+ @mixin heading-1($exclude-spacing: false) {
62
+ @include heading--level-1;
63
63
  @if not($exclude-spacing) {
64
- @include title--level-1-spacing;
64
+ @include heading--level-1-spacing;
65
65
  }
66
- @include title-rules;
66
+ @include heading-rules;
67
67
  }
68
68
 
69
- @mixin title-2($exclude-spacing: false) {
70
- @include title--level-2;
69
+ @mixin heading-2($exclude-spacing: false) {
70
+ @include heading--level-2;
71
71
  @if not($exclude-spacing) {
72
- @include title--level-2-spacing;
72
+ @include heading--level-2-spacing;
73
73
  }
74
- @include title-rules;
74
+ @include heading-rules;
75
75
  }
76
76
 
77
- @mixin title-3($exclude-spacing: false) {
78
- @include title--level-3;
77
+ @mixin heading-3($exclude-spacing: false) {
78
+ @include heading--level-3;
79
79
  @if not($exclude-spacing) {
80
- @include title--level-3-spacing;
80
+ @include heading--level-3-spacing;
81
81
  }
82
- @include title-rules;
82
+ @include heading-rules;
83
83
  }
84
84
 
85
- @mixin title-4($exclude-spacing: false) {
86
- @include title--level-4;
85
+ @mixin heading-4($exclude-spacing: false) {
86
+ @include heading--level-4;
87
87
  @if not($exclude-spacing) {
88
- @include title--level-4-spacing;
88
+ @include heading--level-4-spacing;
89
89
  }
90
- @include title-rules;
90
+ @include heading-rules;
91
91
  }
92
92
 
93
- @mixin title-5($exclude-spacing: false) {
94
- @include title--level-5;
93
+ @mixin heading-5($exclude-spacing: false) {
94
+ @include heading--level-5;
95
95
  @if not($exclude-spacing) {
96
- @include title--level-5-spacing;
96
+ @include heading--level-5-spacing;
97
97
  }
98
- @include title-rules;
98
+ @include heading-rules;
99
99
  }
100
100
 
101
- @mixin title-6($exclude-spacing: false) {
102
- @include title--level-6;
101
+ @mixin heading-6($exclude-spacing: false) {
102
+ @include heading--level-6;
103
103
  @if not($exclude-spacing) {
104
- @include title--level-6-spacing;
104
+ @include heading--level-6-spacing;
105
105
  }
106
- @include title-rules;
107
- }
108
-
109
- @mixin title--negative {
110
- --sbb-title-color: var(--sbb-color-3-negative);
106
+ @include heading-rules;
111
107
  }
112
108
 
113
109
  // ----------------------------------------------------------------------------------------------------