@synergy-design-system/react 1.0.0-main.11 → 1.0.0-main.12

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,24 @@
1
+ // ../react/src/components/textarea.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/textarea/textarea.component.js";
5
+ var tagName = "syn-textarea";
6
+ Component.define("syn-textarea");
7
+ var SynTextarea = createComponent({
8
+ displayName: "SynTextarea",
9
+ elementClass: Component,
10
+ events: {
11
+ onSynBlur: "syn-blur",
12
+ onSynChange: "syn-change",
13
+ onSynFocus: "syn-focus",
14
+ onSynInput: "syn-input",
15
+ onSynInvalid: "syn-invalid"
16
+ },
17
+ react: React,
18
+ tagName
19
+ });
20
+
21
+ export {
22
+ SynTextarea
23
+ };
24
+ //# sourceMappingURL=chunk.4YY6TGIA.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/textarea.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/textarea/textarea.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type {\n SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent,\n} from '@synergy-design-system/components';\n\nconst tagName = 'syn-textarea';\nComponent.define('syn-textarea');\n\n/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://synergy.style/components/textarea\n * @status stable\n * @since 2.0\n *\n * @slot label - The textarea's label. Alternatively, you can use the `label` attribute.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart textarea - The internal `<textarea>` control.\n */\nexport const SynTextarea = createComponent({\n displayName: 'SynTextarea',\n elementClass: Component,\n events: {\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynChange: 'syn-change' as EventName<SynChangeEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n onSynInput: 'syn-input' as EventName<SynInputEvent>,\n onSynInvalid: 'syn-invalid' as EventName<SynInvalidEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBlurEvent } from '@synergy-design-system/components';\nexport type { SynChangeEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\nexport type { SynInputEvent } from '@synergy-design-system/components';\nexport type { SynInvalidEvent } from '@synergy-design-system/components';\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AAwBxB,IAAM,cAAc,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,37 @@
1
+ import Component from '@synergy-design-system/components/components/textarea/textarea.component.js';
2
+ import { type EventName } from '@lit/react';
3
+ import type { SynBlurEvent, SynChangeEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent } from '@synergy-design-system/components';
4
+ /**
5
+ * @summary Textareas collect data from the user and allow multiple lines of text.
6
+ * @documentation https://synergy.style/components/textarea
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @slot label - The textarea's label. Alternatively, you can use the `label` attribute.
11
+ * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
12
+ *
13
+ * @event syn-blur - Emitted when the control loses focus.
14
+ * @event syn-change - Emitted when an alteration to the control's value is committed by the user.
15
+ * @event syn-focus - Emitted when the control gains focus.
16
+ * @event syn-input - Emitted when the control receives input.
17
+ * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
18
+ *
19
+ * @csspart form-control - The form control that wraps the label, input, and help text.
20
+ * @csspart form-control-label - The label's wrapper.
21
+ * @csspart form-control-input - The input's wrapper.
22
+ * @csspart form-control-help-text - The help text's wrapper.
23
+ * @csspart base - The component's base wrapper.
24
+ * @csspart textarea - The internal `<textarea>` control.
25
+ */
26
+ export declare const SynTextarea: import("@lit/react").ReactWebComponent<Component, {
27
+ onSynBlur: EventName<SynBlurEvent>;
28
+ onSynChange: EventName<SynChangeEvent>;
29
+ onSynFocus: EventName<SynFocusEvent>;
30
+ onSynInput: EventName<SynInputEvent>;
31
+ onSynInvalid: EventName<SynInvalidEvent>;
32
+ }>;
33
+ export type { SynBlurEvent } from '@synergy-design-system/components';
34
+ export type { SynChangeEvent } from '@synergy-design-system/components';
35
+ export type { SynFocusEvent } from '@synergy-design-system/components';
36
+ export type { SynInputEvent } from '@synergy-design-system/components';
37
+ export type { SynInvalidEvent } from '@synergy-design-system/components';
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynTextarea
3
+ } from "../chunks/chunk.4YY6TGIA.js";
4
+ export {
5
+ SynTextarea
6
+ };
7
+ //# sourceMappingURL=textarea.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
@@ -1,2 +1,3 @@
1
1
  export { SynButton } from './components/button.js';
2
2
  export { SynInput } from './components/input.js';
3
+ export { SynTextarea } from './components/textarea.js';
package/dist/index.js CHANGED
@@ -4,8 +4,12 @@ import {
4
4
  import {
5
5
  SynInput
6
6
  } from "./chunks/chunk.K57RP7HQ.js";
7
+ import {
8
+ SynTextarea
9
+ } from "./chunks/chunk.4YY6TGIA.js";
7
10
  export {
8
11
  SynButton,
9
- SynInput
12
+ SynInput,
13
+ SynTextarea
10
14
  };
11
15
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@lit/react": "^1.0.0",
8
- "@synergy-design-system/components": "1.0.0-main.11"
8
+ "@synergy-design-system/components": "1.0.0-main.12"
9
9
  },
10
10
  "description": "React wrappers for the Synergy Design System",
11
11
  "exports": {
@@ -40,7 +40,7 @@
40
40
  "directory": "packages/react"
41
41
  },
42
42
  "type": "module",
43
- "version": "1.0.0-main.11",
43
+ "version": "1.0.0-main.12",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.31",
46
46
  "react": "^18.2.0"