@synergy-design-system/react 2.11.7 → 2.12.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.
@@ -0,0 +1,18 @@
1
+ // ../react/src/components/validate.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/validate/validate.component.js";
5
+ var tagName = "syn-validate";
6
+ Component.define("syn-validate");
7
+ var SynValidate = createComponent({
8
+ displayName: "SynValidate",
9
+ elementClass: Component,
10
+ events: {},
11
+ react: React,
12
+ tagName
13
+ });
14
+
15
+ export {
16
+ SynValidate
17
+ };
18
+ //# sourceMappingURL=chunk.VGOF4RIB.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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 *\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;",
6
+ "names": []
7
+ }
@@ -0,0 +1,19 @@
1
+ import Component from '@synergy-design-system/components/components/validate/validate.component.js';
2
+ /**
3
+ * @summary Validate provides form field validation messages in a unified way.
4
+ * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
5
+ * and showing the validation message in a consistent, user defined way.
6
+ *
7
+ * @dependency syn-alert
8
+ *
9
+ * @slot - The form field that should be validated.
10
+ * Avoid slotting in more than one element, as subsequent ones will be ignored.
11
+ *
12
+ * @csspart base - The component's base wrapper.
13
+ * @csspart input-wrapper - The container that wraps the form field.
14
+ * @csspart alert - The syn-alert that is shown when the variant is set to "inline".
15
+ * @csspart alert__base - The container that wraps the alert.
16
+ * @csspart alert__message - The container that wraps the alert message.
17
+ * @csspart alert__icon - The container that wraps the alert icon.
18
+ */
19
+ export declare const SynValidate: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynValidate
3
+ } from "../chunks/chunk.VGOF4RIB.js";
4
+ export {
5
+ SynValidate
6
+ };
7
+ //# sourceMappingURL=validate.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/dist/index.d.ts CHANGED
@@ -43,3 +43,4 @@ export { SynTabPanel } from './components/tab-panel.js';
43
43
  export { SynTag } from './components/tag.js';
44
44
  export { SynTextarea } from './components/textarea.js';
45
45
  export { SynTooltip } from './components/tooltip.js';
46
+ export { SynValidate } from './components/validate.js';
package/dist/index.js CHANGED
@@ -16,6 +16,9 @@ import {
16
16
  import {
17
17
  SynTooltip
18
18
  } from "./chunks/chunk.M5I2WKYZ.js";
19
+ import {
20
+ SynValidate
21
+ } from "./chunks/chunk.VGOF4RIB.js";
19
22
  import {
20
23
  SynRadioGroup
21
24
  } from "./chunks/chunk.Z3UEBLMD.js";
@@ -178,6 +181,7 @@ export {
178
181
  SynTabPanel,
179
182
  SynTag,
180
183
  SynTextarea,
181
- SynTooltip
184
+ SynTooltip,
185
+ SynValidate
182
186
  };
183
187
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@lit/react": "^1.0.6",
8
- "@synergy-design-system/components": "^2.11.7"
8
+ "@synergy-design-system/components": "^2.12.0"
9
9
  },
10
10
  "description": "React wrappers for the Synergy Design System",
11
11
  "exports": {
@@ -40,12 +40,12 @@
40
40
  "directory": "packages/react"
41
41
  },
42
42
  "type": "module",
43
- "version": "2.11.7",
43
+ "version": "2.12.0",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.3.12",
46
46
  "react": "^18.3.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@synergy-design-system/tokens": "^2.13.0"
49
+ "@synergy-design-system/tokens": "^2.14.0"
50
50
  }
51
51
  }