@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1779895144 → 5.0.0-next.3-dev.1780060206

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.
@@ -1,7 +1,5 @@
1
- import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
2
- import { SbbButtonElement } from '../button.pure.ts';
3
- import { SbbHorizontalFrom, SbbElement } from '../core.ts';
4
- import { SbbBlockLinkElement } from '../link.pure.ts';
1
+ import { CSSResultGroup, TemplateResult } from 'lit';
2
+ import { SbbElement } from '../core.ts';
5
3
  /**
6
4
  * It can be used as a container for one or more action element, like `sbb-button` or `sbb-block-link`.
7
5
  *
@@ -10,33 +8,6 @@ import { SbbBlockLinkElement } from '../link.pure.ts';
10
8
  export declare class SbbActionGroupElement extends SbbElement {
11
9
  static readonly elementName: string;
12
10
  static styles: CSSResultGroup;
13
- /**
14
- * Set the slotted `<sbb-action-group>` children's alignment.
15
- */
16
- accessor alignGroup: 'start' | 'center' | 'stretch' | 'end';
17
- /**
18
- * Overrides the behavior of `orientation` property.
19
- */
20
- accessor horizontalFrom: SbbHorizontalFrom;
21
- /**
22
- * Indicates the orientation of the components inside the `<sbb-action-group>`.
23
- */
24
- accessor orientation: 'horizontal' | 'vertical';
25
- /**
26
- * Size of the nested sbb-button instances.
27
- * This will overwrite the size attribute of nested sbb-button instances.
28
- * @deprecated Will be removed with next breaking change
29
- */
30
- accessor buttonSize: SbbButtonElement['size'];
31
- /**
32
- * Size of the nested sbb-block-link instances.
33
- * This will overwrite the size attribute of nested sbb-block-link instances.
34
- * @deprecated Will be removed with next breaking change
35
- */
36
- accessor linkSize: SbbBlockLinkElement['size'];
37
- protected willUpdate(changedProperties: PropertyValues<this>): void;
38
- private _syncButtons;
39
- private _syncLinks;
40
11
  protected render(): TemplateResult;
41
12
  }
42
13
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"action-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/action-group/action-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,cAAc,EACnB,KAAK,cAAc,EAEpB,MAAM,KAAK,CAAC;AAGb,OAAO,KAAK,EAAmC,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAIzB;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,UAAU;IACnD,gBAAgC,WAAW,EAAE,MAAM,CAAsB;IACzE,OAAuB,MAAM,EAAE,cAAc,CAAsB;IAEnE;;OAEG;IACH,SACgB,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAW;IAE7E;;OAEG;IAEH,SACgB,cAAc,EAAE,iBAAiB,CAAW;IAE5D;;OAEG;IACH,SACgB,WAAW,EAAE,YAAY,GAAG,UAAU,CAAgB;IAEtE;;;;OAIG;IACH,SACgB,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAQ;IAE5D;;;;OAIG;IACH,SACgB,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAQ;cAE1C,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAW5E,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,UAAU;cAWC,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
1
+ {"version":3,"file":"action-group.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/action-group/action-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxC;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,UAAU;IACnD,gBAAgC,WAAW,EAAE,MAAM,CAAsB;IACzE,OAAuB,MAAM,EAAE,cAAc,CAAsB;cAEhD,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
@@ -1,2 +1,2 @@
1
- import { t as SbbActionGroupElement } from "../action-group.component-pe0c2zni.js";
1
+ import { t as SbbActionGroupElement } from "../action-group.component-BUWevlaI.js";
2
2
  export { SbbActionGroupElement };
@@ -0,0 +1,26 @@
1
+ import { html, unsafeCSS } from "lit";
2
+ import { SbbElement } from "./core.js";
3
+ //#region src/elements/action-group/action-group.scss?inline
4
+ var action_group_default = ":host {\n display: flex;\n align-items: center;\n justify-content: start;\n gap: var(--sbb-action-group-gap);\n}\n\n:host(.sbb-orientation-vertical-full-width) {\n flex-direction: column;\n align-items: stretch;\n}\n\n:host(:where(.sbb-orientation-vertical,\n.sbb-orientation-horizontal-from-small,\n.sbb-orientation-horizontal-from-large,\n.sbb-orientation-horizontal-from-ultra)) {\n align-items: start;\n}\n\n@media (min-width: calc(37.5rem)) {\n :host(.sbb-orientation-horizontal-from-small) {\n align-items: center;\n }\n}\n\n@media (min-width: calc(64rem)) {\n :host(.sbb-orientation-horizontal-from-large) {\n align-items: center;\n }\n}\n\n@media (min-width: calc(90rem)) {\n :host(.sbb-orientation-horizontal-from-ultra) {\n align-items: center;\n }\n}";
5
+ //#endregion
6
+ //#region src/elements/action-group/action-group.component.ts
7
+ /**
8
+ * It can be used as a container for one or more action element, like `sbb-button` or `sbb-block-link`.
9
+ *
10
+ * @slot - Use the unnamed slot to add `sbb-block-link` or `sbb-button` elements to the `sbb-action-group`.
11
+ */
12
+ var SbbActionGroupElement = class extends SbbElement {
13
+ static {
14
+ this.elementName = "sbb-action-group";
15
+ }
16
+ static {
17
+ this.styles = [unsafeCSS(action_group_default)];
18
+ }
19
+ render() {
20
+ return html`<slot></slot>`;
21
+ }
22
+ };
23
+ //#endregion
24
+ export { SbbActionGroupElement as t };
25
+
26
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWdyb3VwLmNvbXBvbmVudC1CVVdldmxhSS5qcyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZWxlbWVudHMvYWN0aW9uLWdyb3VwL2FjdGlvbi1ncm91cC5zY3NzP2lubGluZSIsIi4uLy4uLy4uL3NyYy9lbGVtZW50cy9hY3Rpb24tZ3JvdXAvYWN0aW9uLWdyb3VwLmNvbXBvbmVudC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJAdXNlICcuLi9jb3JlL3N0eWxlcycgYXMgc2JiO1xuXG46aG9zdCB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogc3RhcnQ7XG4gIGdhcDogdmFyKC0tc2JiLWFjdGlvbi1ncm91cC1nYXApO1xufVxuXG4vLyBBIHBhcnQgb2YgdGhlIHJ1bGVzIGFyZSBkZWZpbmVkIGluIGxheW91dC5zY3NzXG5cbjpob3N0KC5zYmItb3JpZW50YXRpb24tdmVydGljYWwtZnVsbC13aWR0aCkge1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICBhbGlnbi1pdGVtczogc3RyZXRjaDtcbn1cblxuOmhvc3QoXG4gIDp3aGVyZShcbiAgICAuc2JiLW9yaWVudGF0aW9uLXZlcnRpY2FsLFxuICAgIC5zYmItb3JpZW50YXRpb24taG9yaXpvbnRhbC1mcm9tLXNtYWxsLFxuICAgIC5zYmItb3JpZW50YXRpb24taG9yaXpvbnRhbC1mcm9tLWxhcmdlLFxuICAgIC5zYmItb3JpZW50YXRpb24taG9yaXpvbnRhbC1mcm9tLXVsdHJhXG4gIClcbikge1xuICBhbGlnbi1pdGVtczogc3RhcnQ7XG59XG5cbjpob3N0KC5zYmItb3JpZW50YXRpb24taG9yaXpvbnRhbC1mcm9tLXNtYWxsKSB7XG4gIEBpbmNsdWRlIHNiYi5tcSgkZnJvbTogc21hbGwpIHtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB9XG59XG5cbjpob3N0KC5zYmItb3JpZW50YXRpb24taG9yaXpvbnRhbC1mcm9tLWxhcmdlKSB7XG4gIEBpbmNsdWRlIHNiYi5tcSgkZnJvbTogbGFyZ2UpIHtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB9XG59XG5cbjpob3N0KC5zYmItb3JpZW50YXRpb24taG9yaXpvbnRhbC1mcm9tLXVsdHJhKSB7XG4gIEBpbmNsdWRlIHNiYi5tcSgkZnJvbTogdWx0cmEpIHtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB9XG59XG4iLCJpbXBvcnQgeyB0eXBlIENTU1Jlc3VsdEdyb3VwLCBodG1sLCB0eXBlIFRlbXBsYXRlUmVzdWx0LCB1bnNhZmVDU1MgfSBmcm9tICdsaXQnO1xuXG5pbXBvcnQgeyBTYmJFbGVtZW50IH0gZnJvbSAnLi4vY29yZS50cyc7XG5cbmltcG9ydCBzdHlsZSBmcm9tICcuL2FjdGlvbi1ncm91cC5zY3NzP2lubGluZSc7XG5cbi8qKlxuICogSXQgY2FuIGJlIHVzZWQgYXMgYSBjb250YWluZXIgZm9yIG9uZSBvciBtb3JlIGFjdGlvbiBlbGVtZW50LCBsaWtlIGBzYmItYnV0dG9uYCBvciBgc2JiLWJsb2NrLWxpbmtgLlxuICpcbiAqIEBzbG90IC0gVXNlIHRoZSB1bm5hbWVkIHNsb3QgdG8gYWRkIGBzYmItYmxvY2stbGlua2Agb3IgYHNiYi1idXR0b25gIGVsZW1lbnRzIHRvIHRoZSBgc2JiLWFjdGlvbi1ncm91cGAuXG4gKi9cbmV4cG9ydCBjbGFzcyBTYmJBY3Rpb25Hcm91cEVsZW1lbnQgZXh0ZW5kcyBTYmJFbGVtZW50IHtcbiAgcHVibGljIHN0YXRpYyBvdmVycmlkZSByZWFkb25seSBlbGVtZW50TmFtZTogc3RyaW5nID0gJ3NiYi1hY3Rpb24tZ3JvdXAnO1xuICBwdWJsaWMgc3RhdGljIG92ZXJyaWRlIHN0eWxlczogQ1NTUmVzdWx0R3JvdXAgPSBbdW5zYWZlQ1NTKHN0eWxlKV07XG5cbiAgcHJvdGVjdGVkIG92ZXJyaWRlIHJlbmRlcigpOiBUZW1wbGF0ZVJlc3VsdCB7XG4gICAgcmV0dXJuIGh0bWxgPHNsb3Q+PC9zbG90PmA7XG4gIH1cbn1cblxuZGVjbGFyZSBnbG9iYWwge1xuICBpbnRlcmZhY2UgSFRNTEVsZW1lbnRUYWdOYW1lTWFwIHtcbiAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25hbWluZy1jb252ZW50aW9uXG4gICAgJ3NiYi1hY3Rpb24tZ3JvdXAnOiBTYmJBY3Rpb25Hcm91cEVsZW1lbnQ7XG4gIH1cbn1cbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUNXQSxJQUFhLHdCQUFiLGNBQTJDLFdBQVU7O0VBQ25CLEtBQUEsY0FBc0I7Q0FBbUI7O0VBQ2xELEtBQUEsU0FBeUIsQ0FBQyxVQUFVLG9CQUFLLENBQUM7Q0FBRTtDQUVoRCxTQUFNO0VBQ3ZCLE9BQU8sSUFBSTtDQUNiIn0=
@@ -1,4 +1,4 @@
1
- import { t as SbbActionGroupElement } from "./action-group.component-pe0c2zni.js";
1
+ import { t as SbbActionGroupElement } from "./action-group.component-BUWevlaI.js";
2
2
  import "./action-group.pure.js";
3
3
  //#region src/elements/action-group.ts
4
4
  /** @entrypoint */
@@ -1,2 +1,2 @@
1
- import { t as SbbActionGroupElement } from "./action-group.component-pe0c2zni.js";
1
+ import { t as SbbActionGroupElement } from "./action-group.component-BUWevlaI.js";
2
2
  export { SbbActionGroupElement };
@@ -1087,6 +1087,7 @@ summary {
1087
1087
  --sbb-size-element-s: var(--sbb-size-element-s-zero);
1088
1088
  --sbb-size-element-m: var(--sbb-size-element-m-zero);
1089
1089
  --sbb-size-element-l: var(--sbb-size-element-l-zero);
1090
+ --sbb-action-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);
1090
1091
  --sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);
1091
1092
  --sbb-alert-group-border-radius: var(--sbb-border-radius-4x);
1092
1093
  --sbb-alert-background-color: var(--sbb-background-color-1-inverted);
@@ -3078,6 +3079,29 @@ sbb-toggle:has(:focus-visible) {
3078
3079
  grid-template-columns: repeat(var(--sbb-grid-base-columns), 1fr);
3079
3080
  }
3080
3081
 
3082
+ .sbb-orientation-vertical,
3083
+ .sbb-orientation-horizontal-from-small,
3084
+ .sbb-orientation-horizontal-from-large,
3085
+ .sbb-orientation-horizontal-from-ultra {
3086
+ display: flex;
3087
+ flex-direction: column;
3088
+ }
3089
+
3090
+ @media (min-width: calc(37.5rem)) {
3091
+ .sbb-orientation-horizontal-from-small {
3092
+ flex-direction: row;
3093
+ }
3094
+ }
3095
+ @media (min-width: calc(64rem)) {
3096
+ .sbb-orientation-horizontal-from-large {
3097
+ flex-direction: row;
3098
+ }
3099
+ }
3100
+ @media (min-width: calc(90rem)) {
3101
+ .sbb-orientation-horizontal-from-ultra {
3102
+ flex-direction: row;
3103
+ }
3104
+ }
3081
3105
  .sbb-list:where(ol, ul) {
3082
3106
  --sbb-list-vertical-gap: 0.75em;
3083
3107
  --sbb-list-padding-inline-start: 1.5em;
@@ -1087,6 +1087,7 @@ summary {
1087
1087
  --sbb-size-element-s: var(--sbb-size-element-s-zero);
1088
1088
  --sbb-size-element-m: var(--sbb-size-element-m-zero);
1089
1089
  --sbb-size-element-l: var(--sbb-size-element-l-zero);
1090
+ --sbb-action-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);
1090
1091
  --sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);
1091
1092
  --sbb-alert-group-border-radius: var(--sbb-border-radius-4x);
1092
1093
  --sbb-alert-background-color: var(--sbb-background-color-1-inverted);
@@ -3078,6 +3079,29 @@ sbb-toggle:has(:focus-visible) {
3078
3079
  grid-template-columns: repeat(var(--sbb-grid-base-columns), 1fr);
3079
3080
  }
3080
3081
 
3082
+ .sbb-orientation-vertical,
3083
+ .sbb-orientation-horizontal-from-small,
3084
+ .sbb-orientation-horizontal-from-large,
3085
+ .sbb-orientation-horizontal-from-ultra {
3086
+ display: flex;
3087
+ flex-direction: column;
3088
+ }
3089
+
3090
+ @media (min-width: calc(37.5rem)) {
3091
+ .sbb-orientation-horizontal-from-small {
3092
+ flex-direction: row;
3093
+ }
3094
+ }
3095
+ @media (min-width: calc(64rem)) {
3096
+ .sbb-orientation-horizontal-from-large {
3097
+ flex-direction: row;
3098
+ }
3099
+ }
3100
+ @media (min-width: calc(90rem)) {
3101
+ .sbb-orientation-horizontal-from-ultra {
3102
+ flex-direction: row;
3103
+ }
3104
+ }
3081
3105
  .sbb-list:where(ol, ul) {
3082
3106
  --sbb-list-vertical-gap: 0.75em;
3083
3107
  --sbb-list-padding-inline-start: 1.5em;
package/lean-theme.css CHANGED
@@ -1087,6 +1087,7 @@ summary {
1087
1087
  --sbb-size-element-s: var(--sbb-size-element-s-zero);
1088
1088
  --sbb-size-element-m: var(--sbb-size-element-m-zero);
1089
1089
  --sbb-size-element-l: var(--sbb-size-element-l-zero);
1090
+ --sbb-action-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);
1090
1091
  --sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);
1091
1092
  --sbb-alert-group-border-radius: var(--sbb-border-radius-4x);
1092
1093
  --sbb-alert-background-color: var(--sbb-background-color-1-inverted);
@@ -3078,6 +3079,29 @@ sbb-toggle:has(:focus-visible) {
3078
3079
  grid-template-columns: repeat(var(--sbb-grid-base-columns), 1fr);
3079
3080
  }
3080
3081
 
3082
+ .sbb-orientation-vertical,
3083
+ .sbb-orientation-horizontal-from-small,
3084
+ .sbb-orientation-horizontal-from-large,
3085
+ .sbb-orientation-horizontal-from-ultra {
3086
+ display: flex;
3087
+ flex-direction: column;
3088
+ }
3089
+
3090
+ @media (min-width: calc(37.5rem)) {
3091
+ .sbb-orientation-horizontal-from-small {
3092
+ flex-direction: row;
3093
+ }
3094
+ }
3095
+ @media (min-width: calc(64rem)) {
3096
+ .sbb-orientation-horizontal-from-large {
3097
+ flex-direction: row;
3098
+ }
3099
+ }
3100
+ @media (min-width: calc(90rem)) {
3101
+ .sbb-orientation-horizontal-from-ultra {
3102
+ flex-direction: row;
3103
+ }
3104
+ }
3081
3105
  .sbb-list:where(ol, ul) {
3082
3106
  --sbb-list-vertical-gap: 0.75em;
3083
3107
  --sbb-list-padding-inline-start: 1.5em;
@@ -1087,6 +1087,7 @@ summary {
1087
1087
  --sbb-size-element-s: var(--sbb-size-element-s-zero);
1088
1088
  --sbb-size-element-m: var(--sbb-size-element-m-zero);
1089
1089
  --sbb-size-element-l: var(--sbb-size-element-l-zero);
1090
+ --sbb-action-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);
1090
1091
  --sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);
1091
1092
  --sbb-alert-group-border-radius: var(--sbb-border-radius-4x);
1092
1093
  --sbb-alert-background-color: var(--sbb-background-color-1-inverted);
@@ -3078,6 +3079,29 @@ sbb-toggle:has(:focus-visible) {
3078
3079
  grid-template-columns: repeat(var(--sbb-grid-base-columns), 1fr);
3079
3080
  }
3080
3081
 
3082
+ .sbb-orientation-vertical,
3083
+ .sbb-orientation-horizontal-from-small,
3084
+ .sbb-orientation-horizontal-from-large,
3085
+ .sbb-orientation-horizontal-from-ultra {
3086
+ display: flex;
3087
+ flex-direction: column;
3088
+ }
3089
+
3090
+ @media (min-width: calc(37.5rem)) {
3091
+ .sbb-orientation-horizontal-from-small {
3092
+ flex-direction: row;
3093
+ }
3094
+ }
3095
+ @media (min-width: calc(64rem)) {
3096
+ .sbb-orientation-horizontal-from-large {
3097
+ flex-direction: row;
3098
+ }
3099
+ }
3100
+ @media (min-width: calc(90rem)) {
3101
+ .sbb-orientation-horizontal-from-ultra {
3102
+ flex-direction: row;
3103
+ }
3104
+ }
3081
3105
  .sbb-list:where(ol, ul) {
3082
3106
  --sbb-list-vertical-gap: 0.75em;
3083
3107
  --sbb-list-padding-inline-start: 1.5em;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-dev",
3
- "version": "5.0.0-next.3-dev.1779895144",
3
+ "version": "5.0.0-next.3-dev.1780060206",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
7
7
  "web components",
8
8
  "lit",
9
- "https://github.com/sbb-design-systems/lyne-components/commit/63cf10b5b2c5105ed18a225f9cf62d0717043c21"
9
+ "https://github.com/sbb-design-systems/lyne-components/commit/a5ab61bbd0e95bab40830bc2f5c3a5bbc57a7fc4"
10
10
  ],
11
11
  "type": "module",
12
12
  "exports": {
package/safety-theme.css CHANGED
@@ -1087,6 +1087,7 @@ summary {
1087
1087
  --sbb-size-element-s: var(--sbb-size-element-s-zero);
1088
1088
  --sbb-size-element-m: var(--sbb-size-element-m-zero);
1089
1089
  --sbb-size-element-l: var(--sbb-size-element-l-zero);
1090
+ --sbb-action-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);
1090
1091
  --sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);
1091
1092
  --sbb-alert-group-border-radius: var(--sbb-border-radius-4x);
1092
1093
  --sbb-alert-background-color: var(--sbb-background-color-1-inverted);
@@ -3078,6 +3079,29 @@ sbb-toggle:has(:focus-visible) {
3078
3079
  grid-template-columns: repeat(var(--sbb-grid-base-columns), 1fr);
3079
3080
  }
3080
3081
 
3082
+ .sbb-orientation-vertical,
3083
+ .sbb-orientation-horizontal-from-small,
3084
+ .sbb-orientation-horizontal-from-large,
3085
+ .sbb-orientation-horizontal-from-ultra {
3086
+ display: flex;
3087
+ flex-direction: column;
3088
+ }
3089
+
3090
+ @media (min-width: calc(37.5rem)) {
3091
+ .sbb-orientation-horizontal-from-small {
3092
+ flex-direction: row;
3093
+ }
3094
+ }
3095
+ @media (min-width: calc(64rem)) {
3096
+ .sbb-orientation-horizontal-from-large {
3097
+ flex-direction: row;
3098
+ }
3099
+ }
3100
+ @media (min-width: calc(90rem)) {
3101
+ .sbb-orientation-horizontal-from-ultra {
3102
+ flex-direction: row;
3103
+ }
3104
+ }
3081
3105
  .sbb-list:where(ol, ul) {
3082
3106
  --sbb-list-vertical-gap: 0.75em;
3083
3107
  --sbb-list-padding-inline-start: 1.5em;
@@ -1087,6 +1087,7 @@ summary {
1087
1087
  --sbb-size-element-s: var(--sbb-size-element-s-zero);
1088
1088
  --sbb-size-element-m: var(--sbb-size-element-m-zero);
1089
1089
  --sbb-size-element-l: var(--sbb-size-element-l-zero);
1090
+ --sbb-action-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);
1090
1091
  --sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);
1091
1092
  --sbb-alert-group-border-radius: var(--sbb-border-radius-4x);
1092
1093
  --sbb-alert-background-color: var(--sbb-background-color-1-inverted);
@@ -3078,6 +3079,29 @@ sbb-toggle:has(:focus-visible) {
3078
3079
  grid-template-columns: repeat(var(--sbb-grid-base-columns), 1fr);
3079
3080
  }
3080
3081
 
3082
+ .sbb-orientation-vertical,
3083
+ .sbb-orientation-horizontal-from-small,
3084
+ .sbb-orientation-horizontal-from-large,
3085
+ .sbb-orientation-horizontal-from-ultra {
3086
+ display: flex;
3087
+ flex-direction: column;
3088
+ }
3089
+
3090
+ @media (min-width: calc(37.5rem)) {
3091
+ .sbb-orientation-horizontal-from-small {
3092
+ flex-direction: row;
3093
+ }
3094
+ }
3095
+ @media (min-width: calc(64rem)) {
3096
+ .sbb-orientation-horizontal-from-large {
3097
+ flex-direction: row;
3098
+ }
3099
+ }
3100
+ @media (min-width: calc(90rem)) {
3101
+ .sbb-orientation-horizontal-from-ultra {
3102
+ flex-direction: row;
3103
+ }
3104
+ }
3081
3105
  .sbb-list:where(ol, ul) {
3082
3106
  --sbb-list-vertical-gap: 0.75em;
3083
3107
  --sbb-list-padding-inline-start: 1.5em;
@@ -1,156 +0,0 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { html as n, unsafeCSS as r } from "lit";
3
- import { property as i } from "lit/decorators.js";
4
- import { SbbElement as a } from "./core.js";
5
- //#region src/elements/action-group/action-group.scss?inline
6
- var o = ":host{--sbb-action-group-gap: var(--sbb-spacing-fixed-4x);display:flex;flex-direction:var(--sbb-action-group-orientation, row);align-items:var(--sbb-action-group-align-items, center);justify-content:var(--sbb-action-group-justify-content, start);gap:var(--sbb-action-group-gap)}:host([orientation=horizontal][align-group=start]){--sbb-action-group-justify-content: flex-start}:host([orientation=horizontal][align-group=center]){--sbb-action-group-justify-content: center}:host([orientation=horizontal][align-group=stretch]){--sbb-action-group-justify-content: space-between}:host([orientation=horizontal][align-group=end]){--sbb-action-group-justify-content: flex-end}:host([orientation=vertical]){--sbb-action-group-orientation: column;--sbb-action-group-gap: var(--sbb-spacing-fixed-2x)}:host([orientation=vertical][align-group=start]){--sbb-action-group-align-items: flex-start}:host([orientation=vertical][align-group=center]){--sbb-action-group-align-items: center}:host([orientation=vertical][align-group=stretch]){--sbb-action-group-align-items: stretch}:host([orientation=vertical][align-group=end]){--sbb-action-group-align-items: flex-end}@media(min-width:0rem){:host([orientation=vertical][horizontal-from=zero][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media(min-width:37.5rem){:host([orientation=vertical][horizontal-from=small][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media(min-width:64rem){:host([orientation=vertical][horizontal-from=large][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media(min-width:90rem){:host([orientation=vertical][horizontal-from=ultra][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}::slotted([align-self=start]){margin-inline-end:auto}::slotted([align-self=center]){margin-inline:auto}::slotted([align-self=end]){margin-inline-start:auto}::slotted(:is(sbb-block-link,sbb-block-link-button,sbb-block-link-static)){white-space:nowrap}", s = (() => {
7
- let s = a, c, l = [], u = [], d, f = [], p = [], m, h = [], g = [], _, v = [], y = [], b, x = [], S = [];
8
- return class extends s {
9
- static {
10
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
11
- c = [i({
12
- attribute: "align-group",
13
- reflect: !0
14
- })], d = [i({
15
- attribute: "horizontal-from",
16
- reflect: !0
17
- })], m = [i({ reflect: !0 })], _ = [i({
18
- attribute: "button-size",
19
- reflect: !0
20
- })], b = [i({
21
- attribute: "link-size",
22
- reflect: !0
23
- })], e(this, null, c, {
24
- kind: "accessor",
25
- name: "alignGroup",
26
- static: !1,
27
- private: !1,
28
- access: {
29
- has: (e) => "alignGroup" in e,
30
- get: (e) => e.alignGroup,
31
- set: (e, t) => {
32
- e.alignGroup = t;
33
- }
34
- },
35
- metadata: t
36
- }, l, u), e(this, null, d, {
37
- kind: "accessor",
38
- name: "horizontalFrom",
39
- static: !1,
40
- private: !1,
41
- access: {
42
- has: (e) => "horizontalFrom" in e,
43
- get: (e) => e.horizontalFrom,
44
- set: (e, t) => {
45
- e.horizontalFrom = t;
46
- }
47
- },
48
- metadata: t
49
- }, f, p), e(this, null, m, {
50
- kind: "accessor",
51
- name: "orientation",
52
- static: !1,
53
- private: !1,
54
- access: {
55
- has: (e) => "orientation" in e,
56
- get: (e) => e.orientation,
57
- set: (e, t) => {
58
- e.orientation = t;
59
- }
60
- },
61
- metadata: t
62
- }, h, g), e(this, null, _, {
63
- kind: "accessor",
64
- name: "buttonSize",
65
- static: !1,
66
- private: !1,
67
- access: {
68
- has: (e) => "buttonSize" in e,
69
- get: (e) => e.buttonSize,
70
- set: (e, t) => {
71
- e.buttonSize = t;
72
- }
73
- },
74
- metadata: t
75
- }, v, y), e(this, null, b, {
76
- kind: "accessor",
77
- name: "linkSize",
78
- static: !1,
79
- private: !1,
80
- access: {
81
- has: (e) => "linkSize" in e,
82
- get: (e) => e.linkSize,
83
- set: (e, t) => {
84
- e.linkSize = t;
85
- }
86
- },
87
- metadata: t
88
- }, x, S), t && Object.defineProperty(this, Symbol.metadata, {
89
- enumerable: !0,
90
- configurable: !0,
91
- writable: !0,
92
- value: t
93
- });
94
- }
95
- static {
96
- this.elementName = "sbb-action-group";
97
- }
98
- static {
99
- this.styles = [r(o)];
100
- }
101
- #e = t(this, l, "start");
102
- get alignGroup() {
103
- return this.#e;
104
- }
105
- set alignGroup(e) {
106
- this.#e = e;
107
- }
108
- #t = (t(this, u), t(this, f, "large"));
109
- get horizontalFrom() {
110
- return this.#t;
111
- }
112
- set horizontalFrom(e) {
113
- this.#t = e;
114
- }
115
- #n = (t(this, p), t(this, h, "horizontal"));
116
- get orientation() {
117
- return this.#n;
118
- }
119
- set orientation(e) {
120
- this.#n = e;
121
- }
122
- #r = (t(this, g), t(this, v, null));
123
- get buttonSize() {
124
- return this.#r;
125
- }
126
- set buttonSize(e) {
127
- this.#r = e;
128
- }
129
- #i = (t(this, y), t(this, x, null));
130
- get linkSize() {
131
- return this.#i;
132
- }
133
- set linkSize(e) {
134
- this.#i = e;
135
- }
136
- willUpdate(e) {
137
- super.willUpdate(e), e.has("buttonSize") && this._syncButtons(), e.has("linkSize") && this._syncLinks();
138
- }
139
- _syncButtons() {
140
- this.buttonSize && this.querySelectorAll?.(":is(:state(sbb-button),[state--sbb-button])").forEach((e) => e.size = this.buttonSize);
141
- }
142
- _syncLinks() {
143
- this.linkSize && this.querySelectorAll?.("sbb-block-link, sbb-block-link-button, sbb-block-link-static").forEach((e) => {
144
- e.size = this.linkSize;
145
- });
146
- }
147
- render() {
148
- return n`<slot></slot>`;
149
- }
150
- constructor() {
151
- super(...arguments), t(this, S);
152
- }
153
- };
154
- })();
155
- //#endregion
156
- export { s as t };