@synergy-design-system/react 3.5.0 → 3.6.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,22 @@
1
1
  # @synergy-design-system/react
2
2
 
3
+ ## 3.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1192](https://github.com/synergy-design-system/synergy-design-system/pull/1192) [`31c54c0`](https://github.com/synergy-design-system/synergy-design-system/commit/31c54c04a651a14e20bc5f4b2aff1bd92ad26bc0) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-03-02
8
+
9
+ feat: ✨ New variant `tooltip` for `<syn-validate>` (#664)
10
+
11
+ `<syn-validate>` received the option to show validation errors using `<syn-tooltip>`.
12
+ To use this feature, set the `variant` property to `tooltip`.
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`31c54c0`](https://github.com/synergy-design-system/synergy-design-system/commit/31c54c04a651a14e20bc5f4b2aff1bd92ad26bc0)]:
17
+ - @synergy-design-system/components@3.6.0
18
+ - @synergy-design-system/tokens@3.6.0
19
+
3
20
  ## 3.5.0
4
21
 
5
22
  ### Patch Changes
@@ -15,4 +15,4 @@ var SynValidate = createComponent({
15
15
  export {
16
16
  SynValidate
17
17
  };
18
- //# sourceMappingURL=chunk.EL2F4LIK.js.map
18
+ //# sourceMappingURL=chunk.NDVLOP3B.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/validate.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/validate/validate.component.js';\n\nconst tagName = 'syn-validate';\nComponent.define('syn-validate');\n\n/**\n * @summary Validate provides form field validation messages in a unified way.\n * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and showing the validation message in a consistent, user defined way.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs\n * @dependency syn-alert\n *\n * @slot - The form field that should be validated.\n * Avoid slotting in more than one element, as subsequent ones will be ignored.\n *\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the form field.\n * @csspart alert - The syn-alert that is shown when the variant is set to \"inline\".\n * @csspart alert__base - The container that wraps the alert.\n * @csspart alert__message - The container that wraps the alert message.\n * @csspart alert__icon - The container that wraps the alert icon.\n */\nexport const SynValidate = createComponent({\n displayName: 'SynValidate',\n elementClass: Component,\n events: {},\n react: React,\n tagName,\n});\n"],
5
- "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAEtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AAmBxB,IAAM,cAAc,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAAC;AAAA,EACT,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/validate/validate.component.js';\n\nconst tagName = 'syn-validate';\nComponent.define('syn-validate');\n\n/**\n * @summary Validate provides form field validation messages in a unified way.\n * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and showing the validation message in a consistent, user defined way.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs\n * @dependency syn-alert\n * @dependency syn-tooltip\n *\n * @slot - The form field that should be validated.\n * Avoid slotting in more than one element, as subsequent ones will be ignored.\n *\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the form field.\n *\n * @csspart alert - The syn-alert that is shown when the variant is set to \"inline\".\n * @csspart alert__base - The container that wraps the alert.\n * @csspart alert__message - The container that wraps the alert message.\n * @csspart alert__icon - The container that wraps the alert icon.\n *\n * @csspart tooltip - The syn-tooltip that is shown when the variant is set to \"tooltip\".\n * @csspart tooltip__base - The container that wraps the tooltip.\n * @csspart tooltip__popup - The container that wraps the tooltip popup.\n * @csspart tooltip__arrow - The container that wraps the tooltip arrow.\n * @csspart tooltip__body - The container that wraps the tooltip body.\n */\nexport const SynValidate = createComponent({\n displayName: 'SynValidate',\n elementClass: Component,\n events: {},\n react: React,\n tagName,\n});\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAEtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AA2BxB,IAAM,cAAc,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAAC;AAAA,EACT,OAAO;AAAA,EACP;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -5,15 +5,23 @@ import Component from '@synergy-design-system/components/components/validate/val
5
5
  * and showing the validation message in a consistent, user defined way.
6
6
  * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs
7
7
  * @dependency syn-alert
8
+ * @dependency syn-tooltip
8
9
  *
9
10
  * @slot - The form field that should be validated.
10
11
  * Avoid slotting in more than one element, as subsequent ones will be ignored.
11
12
  *
12
13
  * @csspart base - The component's base wrapper.
13
14
  * @csspart input-wrapper - The container that wraps the form field.
15
+ *
14
16
  * @csspart alert - The syn-alert that is shown when the variant is set to "inline".
15
17
  * @csspart alert__base - The container that wraps the alert.
16
18
  * @csspart alert__message - The container that wraps the alert message.
17
19
  * @csspart alert__icon - The container that wraps the alert icon.
20
+ *
21
+ * @csspart tooltip - The syn-tooltip that is shown when the variant is set to "tooltip".
22
+ * @csspart tooltip__base - The container that wraps the tooltip.
23
+ * @csspart tooltip__popup - The container that wraps the tooltip popup.
24
+ * @csspart tooltip__arrow - The container that wraps the tooltip arrow.
25
+ * @csspart tooltip__body - The container that wraps the tooltip body.
18
26
  */
19
27
  export declare const SynValidate: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynValidate
3
- } from "../chunks/chunk.EL2F4LIK.js";
3
+ } from "../chunks/chunk.NDVLOP3B.js";
4
4
  export {
5
5
  SynValidate
6
6
  };
package/dist/index.js CHANGED
@@ -1,6 +1,3 @@
1
- import {
2
- SynSwitch
3
- } from "./chunks/chunk.3AUZZVYZ.js";
4
1
  import {
5
2
  SynTabGroup
6
3
  } from "./chunks/chunk.5GCIGA47.js";
@@ -21,10 +18,7 @@ import {
21
18
  } from "./chunks/chunk.GRD6B33U.js";
22
19
  import {
23
20
  SynValidate
24
- } from "./chunks/chunk.EL2F4LIK.js";
25
- import {
26
- SynRadioButton
27
- } from "./chunks/chunk.2LDP5CAQ.js";
21
+ } from "./chunks/chunk.NDVLOP3B.js";
28
22
  import {
29
23
  SynRadioGroup
30
24
  } from "./chunks/chunk.5CIFYMXU.js";
@@ -47,8 +41,8 @@ import {
47
41
  SynSpinner
48
42
  } from "./chunks/chunk.SOARUKQP.js";
49
43
  import {
50
- SynMenu
51
- } from "./chunks/chunk.4IVJHGWM.js";
44
+ SynSwitch
45
+ } from "./chunks/chunk.3AUZZVYZ.js";
52
46
  import {
53
47
  SynNavItem
54
48
  } from "./chunks/chunk.EFKHCKYH.js";
@@ -71,8 +65,8 @@ import {
71
65
  SynProgressRing
72
66
  } from "./chunks/chunk.ADSD2U7G.js";
73
67
  import {
74
- SynDropdown
75
- } from "./chunks/chunk.AE6RZ4W2.js";
68
+ SynRadioButton
69
+ } from "./chunks/chunk.2LDP5CAQ.js";
76
70
  import {
77
71
  SynFile
78
72
  } from "./chunks/chunk.IQB5SV6K.js";
@@ -95,8 +89,8 @@ import {
95
89
  SynMenuLabel
96
90
  } from "./chunks/chunk.BTEVTUXU.js";
97
91
  import {
98
- SynButton
99
- } from "./chunks/chunk.TGSZHDUW.js";
92
+ SynMenu
93
+ } from "./chunks/chunk.4IVJHGWM.js";
100
94
  import {
101
95
  SynCard
102
96
  } from "./chunks/chunk.OJAJTT5S.js";
@@ -118,6 +112,9 @@ import {
118
112
  import {
119
113
  SynDrawer
120
114
  } from "./chunks/chunk.RWOJEMSX.js";
115
+ import {
116
+ SynDropdown
117
+ } from "./chunks/chunk.AE6RZ4W2.js";
121
118
  import {
122
119
  SynAccordion
123
120
  } from "./chunks/chunk.2PS5VOXM.js";
@@ -136,6 +133,9 @@ import {
136
133
  import {
137
134
  SynButtonGroup
138
135
  } from "./chunks/chunk.HHPIABBV.js";
136
+ import {
137
+ SynButton
138
+ } from "./chunks/chunk.TGSZHDUW.js";
139
139
  export {
140
140
  SynAccordion,
141
141
  SynAlert,
@@ -1643,16 +1643,24 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
1643
1643
  * and showing the validation message in a consistent, user defined way.
1644
1644
  * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs
1645
1645
  * @dependency syn-alert
1646
+ * @dependency syn-tooltip
1646
1647
  *
1647
1648
  * @slot - The form field that should be validated.
1648
1649
  * Avoid slotting in more than one element, as subsequent ones will be ignored.
1649
1650
  *
1650
1651
  * @csspart base - The component's base wrapper.
1651
1652
  * @csspart input-wrapper - The container that wraps the form field.
1653
+ *
1652
1654
  * @csspart alert - The syn-alert that is shown when the variant is set to "inline".
1653
1655
  * @csspart alert__base - The container that wraps the alert.
1654
1656
  * @csspart alert__message - The container that wraps the alert message.
1655
1657
  * @csspart alert__icon - The container that wraps the alert icon.
1658
+ *
1659
+ * @csspart tooltip - The syn-tooltip that is shown when the variant is set to "tooltip".
1660
+ * @csspart tooltip__base - The container that wraps the tooltip.
1661
+ * @csspart tooltip__popup - The container that wraps the tooltip popup.
1662
+ * @csspart tooltip__arrow - The container that wraps the tooltip arrow.
1663
+ * @csspart tooltip__body - The container that wraps the tooltip body.
1656
1664
  */ export type SynValidateJSXElement = SynCustomElement<SynValidate, []>;
1657
1665
  declare module 'react' {
1658
1666
  interface CSSProperties {
@@ -2845,16 +2853,24 @@ declare module 'react' {
2845
2853
  * and showing the validation message in a consistent, user defined way.
2846
2854
  * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs
2847
2855
  * @dependency syn-alert
2856
+ * @dependency syn-tooltip
2848
2857
  *
2849
2858
  * @slot - The form field that should be validated.
2850
2859
  * Avoid slotting in more than one element, as subsequent ones will be ignored.
2851
2860
  *
2852
2861
  * @csspart base - The component's base wrapper.
2853
2862
  * @csspart input-wrapper - The container that wraps the form field.
2863
+ *
2854
2864
  * @csspart alert - The syn-alert that is shown when the variant is set to "inline".
2855
2865
  * @csspart alert__base - The container that wraps the alert.
2856
2866
  * @csspart alert__message - The container that wraps the alert message.
2857
2867
  * @csspart alert__icon - The container that wraps the alert icon.
2868
+ *
2869
+ * @csspart tooltip - The syn-tooltip that is shown when the variant is set to "tooltip".
2870
+ * @csspart tooltip__base - The container that wraps the tooltip.
2871
+ * @csspart tooltip__popup - The container that wraps the tooltip popup.
2872
+ * @csspart tooltip__arrow - The container that wraps the tooltip arrow.
2873
+ * @csspart tooltip__body - The container that wraps the tooltip body.
2858
2874
  */ 'syn-validate': SynValidateJSXElement;
2859
2875
  }
2860
2876
  }
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.5.0"
8
+ "@synergy-design-system/components": "3.6.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.5.0",
46
+ "version": "3.6.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.5.0"
52
+ "@synergy-design-system/tokens": "3.6.0"
53
53
  }
54
54
  }