@synergy-design-system/react 3.9.0 → 3.10.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,80 @@
1
1
  # @synergy-design-system/react
2
2
 
3
+ ## 3.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1209](https://github.com/synergy-design-system/synergy-design-system/pull/1209) [`5704a96`](https://github.com/synergy-design-system/synergy-design-system/commit/5704a96fbe2d0481822a30ce171a01df960c82f1) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-03-09
8
+
9
+ feat: ✨ Allow `<syn-divider>` as a separator in meta-navigation of `<syn-header>` (#1130)
10
+
11
+ This release adds the possiblity to use `<syn-divider>` as a separator between items in the `<syn-header>` metanavigation.
12
+ It will automatically set the correct `height` on vertically aligned `<syn-dividers>`.
13
+
14
+ You may use it via:
15
+
16
+ ```html
17
+ <syn-header label="App Name">
18
+ <nav slot="meta-navigation">
19
+ <syn-icon-button
20
+ name="settings_outline"
21
+ label="Settings"
22
+ ></syn-icon-button>
23
+ <syn-icon-button
24
+ name="insert_chart_outlined"
25
+ label="Analytics"
26
+ ></syn-icon-button>
27
+ <syn-divider vertical></syn-divider>
28
+ <syn-icon-button name="dark_mode" label="Dark Mode"></syn-icon-button>
29
+ <syn-divider vertical></syn-divider>
30
+ <syn-icon-button name="language" label="Language"></syn-icon-button>
31
+ <syn-icon-button name="login" label="Login"></syn-icon-button>
32
+ </nav>
33
+ </syn-header>
34
+ ```
35
+
36
+ or via directly slotting the `<syn-divider>` via
37
+
38
+ ```html
39
+ <syn-header label="App Name">
40
+ <syn-icon-button
41
+ slot="meta-navigation"
42
+ name="settings_outline"
43
+ label="Settings"
44
+ ></syn-icon-button>
45
+ <syn-icon-button
46
+ slot="meta-navigation"
47
+ name="insert_chart_outlined"
48
+ label="Analytics"
49
+ ></syn-icon-button>
50
+ <syn-divider vertical slot="meta-navigation"></syn-divider>
51
+ <syn-icon-button
52
+ slot="meta-navigation"
53
+ name="dark_mode"
54
+ label="Dark Mode"
55
+ ></syn-icon-button>
56
+ <syn-divider vertical slot="meta-navigation"></syn-divider>
57
+ <syn-icon-button
58
+ slot="meta-navigation"
59
+ name="language"
60
+ label="Language"
61
+ ></syn-icon-button>
62
+ <syn-icon-button
63
+ slot="meta-navigation"
64
+ name="login"
65
+ label="Login"
66
+ ></syn-icon-button>
67
+ </syn-header>
68
+ ```
69
+
70
+ `<syn-header>` now also exposes a new `cssproperty` `--metanavigation-item-size` that can be used to define the size of rendered `<syn-icon-buttons>`, as well as the height of `<syn-divider>`
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [[`5704a96`](https://github.com/synergy-design-system/synergy-design-system/commit/5704a96fbe2d0481822a30ce171a01df960c82f1)]:
75
+ - @synergy-design-system/components@3.10.0
76
+ - @synergy-design-system/tokens@3.10.0
77
+
3
78
  ## 3.9.0
4
79
 
5
80
  ### Patch Changes
@@ -19,4 +19,4 @@ var SynHeader = createComponent({
19
19
  export {
20
20
  SynHeader
21
21
  };
22
- //# sourceMappingURL=chunk.DSUG7BV5.js.map
22
+ //# sourceMappingURL=chunk.W27E5FL5.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 *\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;",
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 * @cssproperty --metanavigation-item-size - The size of the items in the meta navigation. Also used for the height of dividers in the meta navigation. Defaults to var(--syn-font-size-x-large)\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;AAmCtB,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
  }
@@ -34,6 +34,7 @@ import type { SynBurgerMenuOpenEvent } from '@synergy-design-system/components';
34
34
  * @csspart burger-menu-toggle-button - The button that toggles the burger menu
35
35
  *
36
36
  * @cssproperty --sticky-position - The position of the sticky header from the top of the viewport. Defaults to the top of the screen.
37
+ * @cssproperty --metanavigation-item-size - The size of the items in the meta navigation. Also used for the height of dividers in the meta navigation. Defaults to var(--syn-font-size-x-large)
37
38
  */
38
39
  export declare const SynHeader: import("@lit/react").ReactWebComponent<Component, {
39
40
  onSynBurgerMenuClosed: EventName<SynBurgerMenuClosedEvent>;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynHeader
3
- } from "../chunks/chunk.DSUG7BV5.js";
3
+ } from "../chunks/chunk.W27E5FL5.js";
4
4
  export {
5
5
  SynHeader
6
6
  };
package/dist/index.js CHANGED
@@ -1,3 +1,9 @@
1
+ import {
2
+ SynValidate
3
+ } from "./chunks/chunk.NDVLOP3B.js";
4
+ import {
5
+ SynSwitch
6
+ } from "./chunks/chunk.3AUZZVYZ.js";
1
7
  import {
2
8
  SynTabGroup
3
9
  } from "./chunks/chunk.5GCIGA47.js";
@@ -20,8 +26,8 @@ import {
20
26
  SynTooltip
21
27
  } from "./chunks/chunk.GRD6B33U.js";
22
28
  import {
23
- SynValidate
24
- } from "./chunks/chunk.NDVLOP3B.js";
29
+ SynRadioButton
30
+ } from "./chunks/chunk.2LDP5CAQ.js";
25
31
  import {
26
32
  SynRadioGroup
27
33
  } from "./chunks/chunk.5CIFYMXU.js";
@@ -44,8 +50,8 @@ import {
44
50
  SynSpinner
45
51
  } from "./chunks/chunk.SOARUKQP.js";
46
52
  import {
47
- SynSwitch
48
- } from "./chunks/chunk.3AUZZVYZ.js";
53
+ SynMenu
54
+ } from "./chunks/chunk.4IVJHGWM.js";
49
55
  import {
50
56
  SynNavItem
51
57
  } from "./chunks/chunk.EFKHCKYH.js";
@@ -68,14 +74,14 @@ import {
68
74
  SynProgressRing
69
75
  } from "./chunks/chunk.ADSD2U7G.js";
70
76
  import {
71
- SynRadioButton
72
- } from "./chunks/chunk.2LDP5CAQ.js";
77
+ SynDropdown
78
+ } from "./chunks/chunk.AE6RZ4W2.js";
73
79
  import {
74
80
  SynFile
75
81
  } from "./chunks/chunk.IQB5SV6K.js";
76
82
  import {
77
83
  SynHeader
78
- } from "./chunks/chunk.DSUG7BV5.js";
84
+ } from "./chunks/chunk.W27E5FL5.js";
79
85
  import {
80
86
  SynIconButton
81
87
  } from "./chunks/chunk.Y77LZN5N.js";
@@ -92,8 +98,8 @@ import {
92
98
  SynMenuLabel
93
99
  } from "./chunks/chunk.BTEVTUXU.js";
94
100
  import {
95
- SynMenu
96
- } from "./chunks/chunk.4IVJHGWM.js";
101
+ SynButton
102
+ } from "./chunks/chunk.TGSZHDUW.js";
97
103
  import {
98
104
  SynCard
99
105
  } from "./chunks/chunk.OJAJTT5S.js";
@@ -115,9 +121,6 @@ import {
115
121
  import {
116
122
  SynDrawer
117
123
  } from "./chunks/chunk.RWOJEMSX.js";
118
- import {
119
- SynDropdown
120
- } from "./chunks/chunk.AE6RZ4W2.js";
121
124
  import {
122
125
  SynAccordion
123
126
  } from "./chunks/chunk.2PS5VOXM.js";
@@ -136,9 +139,6 @@ import {
136
139
  import {
137
140
  SynButtonGroup
138
141
  } from "./chunks/chunk.HHPIABBV.js";
139
- import {
140
- SynButton
141
- } from "./chunks/chunk.TGSZHDUW.js";
142
142
  export {
143
143
  SynAccordion,
144
144
  SynAlert,
@@ -690,6 +690,7 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
690
690
  * @csspart burger-menu-toggle-button - The button that toggles the burger menu
691
691
  *
692
692
  * @cssproperty --sticky-position - The position of the sticky header from the top of the viewport. Defaults to the top of the screen.
693
+ * @cssproperty --metanavigation-item-size - The size of the items in the meta navigation. Also used for the height of dividers in the meta navigation. Defaults to var(--syn-font-size-x-large)
693
694
  */ export type SynHeaderJSXElement = SynCustomElement<SynHeader, [
694
695
  [
695
696
  'syn-burger-menu-closed',
@@ -2152,6 +2153,7 @@ declare module 'react' {
2152
2153
  * @csspart burger-menu-toggle-button - The button that toggles the burger menu
2153
2154
  *
2154
2155
  * @cssproperty --sticky-position - The position of the sticky header from the top of the viewport. Defaults to the top of the screen.
2156
+ * @cssproperty --metanavigation-item-size - The size of the items in the meta navigation. Also used for the height of dividers in the meta navigation. Defaults to var(--syn-font-size-x-large)
2155
2157
  */ 'syn-header': SynHeaderJSXElement;
2156
2158
  /**
2157
2159
  * @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.9.0"
8
+ "@synergy-design-system/components": "3.10.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.9.0",
46
+ "version": "3.10.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.9.0"
52
+ "@synergy-design-system/tokens": "3.10.0"
53
53
  }
54
54
  }