@synergy-design-system/react 3.2.1 → 3.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @synergy-design-system/react
2
2
 
3
+ ## 3.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1188](https://github.com/synergy-design-system/synergy-design-system/pull/1188) [`c60deb9`](https://github.com/synergy-design-system/synergy-design-system/commit/c60deb9da1175404ddaa25b2c19ce9e182205cd2) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-02-19
8
+
9
+ feat: ✨ `<syn-header>` sticky behavior (#529)
10
+
11
+ `<syn-header>` now has a new `sticky` boolean property that can be used when a sticky header is needed, e.g. `<syn-header sticky></syn-header>`.
12
+ This adds `position: sticky`, as well as a small shadow that indicates that the header is stuck.
13
+ You can configure the `top` position via the new `--sticky-position` css property (defaults to `0` to make it stick to the top).
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`c60deb9`](https://github.com/synergy-design-system/synergy-design-system/commit/c60deb9da1175404ddaa25b2c19ce9e182205cd2)]:
18
+ - @synergy-design-system/components@3.4.0
19
+ - @synergy-design-system/tokens@3.4.0
20
+
21
+ ## 3.3.0
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [[`30f3b74`](https://github.com/synergy-design-system/synergy-design-system/commit/30f3b74891cf693735a792a901c5b23b016c71b8)]:
26
+ - @synergy-design-system/components@3.3.0
27
+ - @synergy-design-system/tokens@3.3.0
28
+
3
29
  ## 3.2.1
4
30
 
5
31
  ### Patch Changes
@@ -19,4 +19,4 @@ var SynHeader = createComponent({
19
19
  export {
20
20
  SynHeader
21
21
  };
22
- //# sourceMappingURL=chunk.LELEFISX.js.map
22
+ //# sourceMappingURL=chunk.DSUG7BV5.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/header.ts"],
4
- "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED @synergy-design-system/react wrappers for @synergy-design-system/components\n// Please do not edit this file directly!\n// It will get recreated when running pnpm build.\n// ---------------------------------------------------------------------\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport Component from '@synergy-design-system/components/components/header/header.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynBurgerMenuClosedEvent } from '@synergy-design-system/components';\nimport type { SynBurgerMenuHiddenEvent } from '@synergy-design-system/components';\nimport type { SynBurgerMenuOpenEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-header';\nComponent.define('syn-header');\n\n/**\n * @summary The <syn-header /> element provides a generic application header\n * that can be used to add applications name, toolbar and primary navigation.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-header--docs\n * @status stable\n * @since 1.10.0\n *\n * @slot label - The label for the header\n * @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided\n * @slot meta-navigation - The meta-navigation is used to add various application toolbar icons\n * Best used with `<syn-icon-button />` and `<syn-drop-down />`\n * @slot navigation - This slot can be used to add an optional horizontal navigation\n * @slot open-burger-menu-icon - An icon to use in lieu of the default burger-menu=open state.\n * The default close icon is a 'x'.\n * @slot closed-burger-menu-icon - An icon to use in lieu of the default burger-menu=closed state.\n * The default open icon is a burger menu.\n *\n * @event syn-burger-menu-closed - Emitted when the burger menu is toggled to closed\n * @event syn-burger-menu-hidden - Emitted when the burger menu is toggled to hidden\n * @event syn-burger-menu-open - Emitted when the burger menu is toggled to open\n *\n * @csspart base - The component's base wrapper\n * @csspart content - The wrapper most content items reside\n * @csspart logo - The wrapper the application logo resides in\n * @csspart label - The element wrapping the application name\n * @csspart meta-navigation - The Item wrapping the optional application menu\n * @csspart navigation - The wrapper that is holding the optional top navigation section\n * @csspart burger-menu-toggle-button - The button that toggles the burger menu\n */\nexport const SynHeader = createComponent({\n displayName: 'SynHeader',\n elementClass: Component,\n events: {\n onSynBurgerMenuClosed:\n 'syn-burger-menu-closed' as EventName<SynBurgerMenuClosedEvent>,\n onSynBurgerMenuHidden:\n 'syn-burger-menu-hidden' as EventName<SynBurgerMenuHiddenEvent>,\n onSynBurgerMenuOpen:\n 'syn-burger-menu-open' as EventName<SynBurgerMenuOpenEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBurgerMenuClosedEvent } from '@synergy-design-system/components';\nexport type { SynBurgerMenuHiddenEvent } from '@synergy-design-system/components';\nexport type { SynBurgerMenuOpenEvent } from '@synergy-design-system/components';\n"],
5
- "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,YAAY;AAgCtB,IAAM,YAAY,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,uBACE;AAAA,IACF,uBACE;AAAA,IACF,qBACE;AAAA,EACJ;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
4
+ "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED @synergy-design-system/react wrappers for @synergy-design-system/components\n// Please do not edit this file directly!\n// It will get recreated when running pnpm build.\n// ---------------------------------------------------------------------\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport Component from '@synergy-design-system/components/components/header/header.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynBurgerMenuClosedEvent } from '@synergy-design-system/components';\nimport type { SynBurgerMenuHiddenEvent } from '@synergy-design-system/components';\nimport type { SynBurgerMenuOpenEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-header';\nComponent.define('syn-header');\n\n/**\n * @summary The <syn-header /> element provides a generic application header\n * that can be used to add applications name, toolbar and primary navigation.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-header--docs\n * @status stable\n * @since 1.10.0\n *\n * @slot label - The label for the header\n * @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided\n * @slot meta-navigation - The meta-navigation is used to add various application toolbar icons\n * Best used with `<syn-icon-button />` and `<syn-drop-down />`\n * @slot navigation - This slot can be used to add an optional horizontal navigation\n * @slot open-burger-menu-icon - An icon to use in lieu of the default burger-menu=open state.\n * The default close icon is a 'x'.\n * @slot closed-burger-menu-icon - An icon to use in lieu of the default burger-menu=closed state.\n * The default open icon is a burger menu.\n *\n * @event syn-burger-menu-closed - Emitted when the burger menu is toggled to closed\n * @event syn-burger-menu-hidden - Emitted when the burger menu is toggled to hidden\n * @event syn-burger-menu-open - Emitted when the burger menu is toggled to open\n *\n * @csspart base - The component's base wrapper\n * @csspart content - The wrapper most content items reside\n * @csspart logo - The wrapper the application logo resides in\n * @csspart label - The element wrapping the application name\n * @csspart meta-navigation - The Item wrapping the optional application menu\n * @csspart navigation - The wrapper that is holding the optional top navigation section\n * @csspart burger-menu-toggle-button - The button that toggles the burger menu\n *\n * @cssproperty --sticky-position - The position of the sticky header from the top of the viewport. Defaults to the top of the screen.\n */\nexport const SynHeader = createComponent({\n displayName: 'SynHeader',\n elementClass: Component,\n events: {\n onSynBurgerMenuClosed:\n 'syn-burger-menu-closed' as EventName<SynBurgerMenuClosedEvent>,\n onSynBurgerMenuHidden:\n 'syn-burger-menu-hidden' as EventName<SynBurgerMenuHiddenEvent>,\n onSynBurgerMenuOpen:\n 'syn-burger-menu-open' as EventName<SynBurgerMenuOpenEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBurgerMenuClosedEvent } from '@synergy-design-system/components';\nexport type { SynBurgerMenuHiddenEvent } from '@synergy-design-system/components';\nexport type { SynBurgerMenuOpenEvent } from '@synergy-design-system/components';\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,YAAY;AAkCtB,IAAM,YAAY,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,uBACE;AAAA,IACF,uBACE;AAAA,IACF,qBACE;AAAA,EACJ;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -32,6 +32,8 @@ import type { SynBurgerMenuOpenEvent } from '@synergy-design-system/components';
32
32
  * @csspart meta-navigation - The Item wrapping the optional application menu
33
33
  * @csspart navigation - The wrapper that is holding the optional top navigation section
34
34
  * @csspart burger-menu-toggle-button - The button that toggles the burger menu
35
+ *
36
+ * @cssproperty --sticky-position - The position of the sticky header from the top of the viewport. Defaults to the top of the screen.
35
37
  */
36
38
  export declare const SynHeader: import("@lit/react").ReactWebComponent<Component, {
37
39
  onSynBurgerMenuClosed: EventName<SynBurgerMenuClosedEvent>;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynHeader
3
- } from "../chunks/chunk.LELEFISX.js";
3
+ } from "../chunks/chunk.DSUG7BV5.js";
4
4
  export {
5
5
  SynHeader
6
6
  };
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ import {
72
72
  } from "./chunks/chunk.IQB5SV6K.js";
73
73
  import {
74
74
  SynHeader
75
- } from "./chunks/chunk.LELEFISX.js";
75
+ } from "./chunks/chunk.DSUG7BV5.js";
76
76
  import {
77
77
  SynIconButton
78
78
  } from "./chunks/chunk.Y77LZN5N.js";
@@ -688,6 +688,8 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
688
688
  * @csspart meta-navigation - The Item wrapping the optional application menu
689
689
  * @csspart navigation - The wrapper that is holding the optional top navigation section
690
690
  * @csspart burger-menu-toggle-button - The button that toggles the burger menu
691
+ *
692
+ * @cssproperty --sticky-position - The position of the sticky header from the top of the viewport. Defaults to the top of the screen.
691
693
  */ export type SynHeaderJSXElement = SynCustomElement<SynHeader, [
692
694
  [
693
695
  'syn-burger-menu-closed',
@@ -2126,6 +2128,8 @@ declare module 'react' {
2126
2128
  * @csspart meta-navigation - The Item wrapping the optional application menu
2127
2129
  * @csspart navigation - The wrapper that is holding the optional top navigation section
2128
2130
  * @csspart burger-menu-toggle-button - The button that toggles the burger menu
2131
+ *
2132
+ * @cssproperty --sticky-position - The position of the sticky header from the top of the viewport. Defaults to the top of the screen.
2129
2133
  */ 'syn-header': SynHeaderJSXElement;
2130
2134
  /**
2131
2135
  * @summary Icons are symbols that can be used to represent various options within an application.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@lit/react": "^1.0.8",
8
- "@synergy-design-system/components": "3.2.1"
8
+ "@synergy-design-system/components": "3.4.0"
9
9
  },
10
10
  "description": "React wrappers for the Synergy Design System",
11
11
  "exports": {
@@ -43,12 +43,12 @@
43
43
  "directory": "packages/react"
44
44
  },
45
45
  "type": "module",
46
- "version": "3.2.1",
46
+ "version": "3.4.0",
47
47
  "devDependencies": {
48
48
  "@types/react": "^19.2.14",
49
49
  "react": "^19.2.4"
50
50
  },
51
51
  "peerDependencies": {
52
- "@synergy-design-system/tokens": "3.2.1"
52
+ "@synergy-design-system/tokens": "3.4.0"
53
53
  }
54
54
  }