@synergy-design-system/react 3.4.1 → 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,30 @@
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
+
20
+ ## 3.5.0
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [[`a4f49ac`](https://github.com/synergy-design-system/synergy-design-system/commit/a4f49ac79a660ef5b8d1b380fe9fcd2159dc9b78)]:
25
+ - @synergy-design-system/components@3.5.0
26
+ - @synergy-design-system/tokens@3.5.0
27
+
3
28
  ## 3.4.1
4
29
 
5
30
  ### 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
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunks/chunk.GRD6B33U.js";
19
19
  import {
20
20
  SynValidate
21
- } from "./chunks/chunk.EL2F4LIK.js";
21
+ } from "./chunks/chunk.NDVLOP3B.js";
22
22
  import {
23
23
  SynRadioGroup
24
24
  } from "./chunks/chunk.5CIFYMXU.js";
@@ -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.4.1"
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.4.1",
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.4.1"
52
+ "@synergy-design-system/tokens": "3.6.0"
53
53
  }
54
54
  }