@synergy-design-system/react 1.0.0-main.13 → 1.0.0-main.14

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/button-group.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/button-group/button-group.component.js";
5
+ var tagName = "syn-button-group";
6
+ Component.define("syn-button-group");
7
+ var SynButtonGroup = createComponent({
8
+ displayName: "SynButtonGroup",
9
+ elementClass: Component,
10
+ events: {},
11
+ react: React,
12
+ tagName
13
+ });
14
+
15
+ export {
16
+ SynButtonGroup
17
+ };
18
+ //# sourceMappingURL=chunk.6OTEQXZW.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/button-group.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/button-group/button-group.component.js';\n\nconst tagName = 'syn-button-group';\nComponent.define('syn-button-group');\n\n/**\n * @summary Button groups can be used to group related buttons into sections.\n * @documentation https://synergy.style/components/button-group\n * @status stable\n * @since 2.0\n *\n * @slot - One or more `<syn-button>` elements to display in the button group.\n *\n * @csspart base - The component's base wrapper.\n */\nexport const SynButtonGroup = createComponent({\n displayName: 'SynButtonGroup',\n elementClass: Component,\n events: {\n\n },\n react: React,\n tagName,\n});\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAEtB,IAAM,UAAU;AAChB,UAAU,OAAO,kBAAkB;AAY5B,IAAM,iBAAiB,gBAAgB;AAAA,EAC5C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ // ../react/src/components/radio.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/radio/radio.component.js";
5
+ var tagName = "syn-radio";
6
+ Component.define("syn-radio");
7
+ var SynRadio = createComponent({
8
+ displayName: "SynRadio",
9
+ elementClass: Component,
10
+ events: {
11
+ onSynBlur: "syn-blur",
12
+ onSynFocus: "syn-focus"
13
+ },
14
+ react: React,
15
+ tagName
16
+ });
17
+
18
+ export {
19
+ SynRadio
20
+ };
21
+ //# sourceMappingURL=chunk.AFCMSVBY.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/radio.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/radio/radio.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynBlurEvent, SynFocusEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-radio';\nComponent.define('syn-radio');\n\n/**\n * @summary Radios allow the user to select a single option from a group.\n * @documentation https://synergy.style/components/radio\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The radio's label.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-focus - Emitted when the control gains focus.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The circular container that wraps the radio's checked state.\n * @csspart control--checked - The radio control when the radio is checked.\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart label - The container that wraps the radio's label.\n */\nexport const SynRadio = createComponent({\n displayName: 'SynRadio',\n elementClass: Component,\n events: {\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBlurEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAKtB,IAAM,UAAU;AAChB,UAAU,OAAO,WAAW;AAqBrB,IAAM,WAAW,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ // ../react/src/components/radio-button.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/radio-button/radio-button.component.js";
5
+ var tagName = "syn-radio-button";
6
+ Component.define("syn-radio-button");
7
+ var SynRadioButton = createComponent({
8
+ displayName: "SynRadioButton",
9
+ elementClass: Component,
10
+ events: {
11
+ onSynBlur: "syn-blur",
12
+ onSynFocus: "syn-focus"
13
+ },
14
+ react: React,
15
+ tagName
16
+ });
17
+
18
+ export {
19
+ SynRadioButton
20
+ };
21
+ //# sourceMappingURL=chunk.QBD4EIK5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/radio-button.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/radio-button/radio-button.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynBlurEvent, SynFocusEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-radio-button';\nComponent.define('syn-radio-button');\n\n/**\n * @summary Radios buttons allow the user to select a single option from a group using a button-like control.\n * @documentation https://synergy.style/components/radio-button\n * @status stable\n * @since 2.0\n *\n * @slot - The radio button's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n *\n * @csspart base - The component's base wrapper.\n * @csspart button - The internal `<button>` element.\n * @csspart button--checked - The internal button element when the radio button is checked.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart label - The container that wraps the radio button's label.\n * @csspart suffix - The container that wraps the suffix.\n */\nexport const SynRadioButton = createComponent({\n displayName: 'SynRadioButton',\n elementClass: Component,\n events: {\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBlurEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAKtB,IAAM,UAAU;AAChB,UAAU,OAAO,kBAAkB;AAsB5B,IAAM,iBAAiB,gBAAgB;AAAA,EAC5C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,22 @@
1
+ // ../react/src/components/radio-group.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/radio-group/radio-group.component.js";
5
+ var tagName = "syn-radio-group";
6
+ Component.define("syn-radio-group");
7
+ var SynRadioGroup = createComponent({
8
+ displayName: "SynRadioGroup",
9
+ elementClass: Component,
10
+ events: {
11
+ onSynChange: "syn-change",
12
+ onSynInput: "syn-input",
13
+ onSynInvalid: "syn-invalid"
14
+ },
15
+ react: React,
16
+ tagName
17
+ });
18
+
19
+ export {
20
+ SynRadioGroup
21
+ };
22
+ //# sourceMappingURL=chunk.UVFFLBXG.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/radio-group.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/radio-group/radio-group.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynChangeEvent, SynInputEvent, SynInvalidEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-radio-group';\nComponent.define('syn-radio-group');\n\n/**\n * @summary Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.\n * @documentation https://synergy.style/components/radio-group\n * @status stable\n * @since 2.0\n *\n * @dependency syn-button-group\n *\n * @slot - The default slot where `<syn-radio>` or `<syn-radio-button>` elements are placed.\n * @slot label - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label`\n * attribute.\n *\n * @event syn-change - Emitted when the radio group's selected value changes.\n * @event syn-input - Emitted when the radio group receives user 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 button-group - The button group that wraps radio buttons.\n * @csspart button-group__base - The button group's `base` part.\n */\nexport const SynRadioGroup = createComponent({\n displayName: 'SynRadioGroup',\n elementClass: Component,\n events: {\n onSynChange: 'syn-change' as EventName<SynChangeEvent>,\n onSynInput: 'syn-input' as EventName<SynInputEvent>,\n onSynInvalid: 'syn-invalid' as EventName<SynInvalidEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynChangeEvent } 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;AAKtB,IAAM,UAAU;AAChB,UAAU,OAAO,iBAAiB;AAyB3B,IAAM,gBAAgB,gBAAgB;AAAA,EAC3C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,cAAc;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,12 @@
1
+ import Component from '@synergy-design-system/components/components/button-group/button-group.component.js';
2
+ /**
3
+ * @summary Button groups can be used to group related buttons into sections.
4
+ * @documentation https://synergy.style/components/button-group
5
+ * @status stable
6
+ * @since 2.0
7
+ *
8
+ * @slot - One or more `<syn-button>` elements to display in the button group.
9
+ *
10
+ * @csspart base - The component's base wrapper.
11
+ */
12
+ export declare const SynButtonGroup: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynButtonGroup
3
+ } from "../chunks/chunk.6OTEQXZW.js";
4
+ export {
5
+ SynButtonGroup
6
+ };
7
+ //# sourceMappingURL=button-group.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,29 @@
1
+ import Component from '@synergy-design-system/components/components/radio-button/radio-button.component.js';
2
+ import { type EventName } from '@lit/react';
3
+ import type { SynBlurEvent, SynFocusEvent } from '@synergy-design-system/components';
4
+ /**
5
+ * @summary Radios buttons allow the user to select a single option from a group using a button-like control.
6
+ * @documentation https://synergy.style/components/radio-button
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @slot - The radio button's label.
11
+ * @slot prefix - A presentational prefix icon or similar element.
12
+ * @slot suffix - A presentational suffix icon or similar element.
13
+ *
14
+ * @event syn-blur - Emitted when the button loses focus.
15
+ * @event syn-focus - Emitted when the button gains focus.
16
+ *
17
+ * @csspart base - The component's base wrapper.
18
+ * @csspart button - The internal `<button>` element.
19
+ * @csspart button--checked - The internal button element when the radio button is checked.
20
+ * @csspart prefix - The container that wraps the prefix.
21
+ * @csspart label - The container that wraps the radio button's label.
22
+ * @csspart suffix - The container that wraps the suffix.
23
+ */
24
+ export declare const SynRadioButton: import("@lit/react").ReactWebComponent<Component, {
25
+ onSynBlur: EventName<SynBlurEvent>;
26
+ onSynFocus: EventName<SynFocusEvent>;
27
+ }>;
28
+ export type { SynBlurEvent } from '@synergy-design-system/components';
29
+ export type { SynFocusEvent } from '@synergy-design-system/components';
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynRadioButton
3
+ } from "../chunks/chunk.QBD4EIK5.js";
4
+ export {
5
+ SynRadioButton
6
+ };
7
+ //# sourceMappingURL=radio-button.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,34 @@
1
+ import Component from '@synergy-design-system/components/components/radio-group/radio-group.component.js';
2
+ import { type EventName } from '@lit/react';
3
+ import type { SynChangeEvent, SynInputEvent, SynInvalidEvent } from '@synergy-design-system/components';
4
+ /**
5
+ * @summary Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.
6
+ * @documentation https://synergy.style/components/radio-group
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @dependency syn-button-group
11
+ *
12
+ * @slot - The default slot where `<syn-radio>` or `<syn-radio-button>` elements are placed.
13
+ * @slot label - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label`
14
+ * attribute.
15
+ *
16
+ * @event syn-change - Emitted when the radio group's selected value changes.
17
+ * @event syn-input - Emitted when the radio group receives user input.
18
+ * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
19
+ *
20
+ * @csspart form-control - The form control that wraps the label, input, and help text.
21
+ * @csspart form-control-label - The label's wrapper.
22
+ * @csspart form-control-input - The input's wrapper.
23
+ * @csspart form-control-help-text - The help text's wrapper.
24
+ * @csspart button-group - The button group that wraps radio buttons.
25
+ * @csspart button-group__base - The button group's `base` part.
26
+ */
27
+ export declare const SynRadioGroup: import("@lit/react").ReactWebComponent<Component, {
28
+ onSynChange: EventName<SynChangeEvent>;
29
+ onSynInput: EventName<SynInputEvent>;
30
+ onSynInvalid: EventName<SynInvalidEvent>;
31
+ }>;
32
+ export type { SynChangeEvent } from '@synergy-design-system/components';
33
+ export type { SynInputEvent } from '@synergy-design-system/components';
34
+ export type { SynInvalidEvent } from '@synergy-design-system/components';
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynRadioGroup
3
+ } from "../chunks/chunk.UVFFLBXG.js";
4
+ export {
5
+ SynRadioGroup
6
+ };
7
+ //# sourceMappingURL=radio-group.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,28 @@
1
+ import Component from '@synergy-design-system/components/components/radio/radio.component.js';
2
+ import { type EventName } from '@lit/react';
3
+ import type { SynBlurEvent, SynFocusEvent } from '@synergy-design-system/components';
4
+ /**
5
+ * @summary Radios allow the user to select a single option from a group.
6
+ * @documentation https://synergy.style/components/radio
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @dependency syn-icon
11
+ *
12
+ * @slot - The radio's label.
13
+ *
14
+ * @event syn-blur - Emitted when the control loses focus.
15
+ * @event syn-focus - Emitted when the control gains focus.
16
+ *
17
+ * @csspart base - The component's base wrapper.
18
+ * @csspart control - The circular container that wraps the radio's checked state.
19
+ * @csspart control--checked - The radio control when the radio is checked.
20
+ * @csspart checked-icon - The checked icon, an `<syn-icon>` element.
21
+ * @csspart label - The container that wraps the radio's label.
22
+ */
23
+ export declare const SynRadio: import("@lit/react").ReactWebComponent<Component, {
24
+ onSynBlur: EventName<SynBlurEvent>;
25
+ onSynFocus: EventName<SynFocusEvent>;
26
+ }>;
27
+ export type { SynBlurEvent } from '@synergy-design-system/components';
28
+ export type { SynFocusEvent } from '@synergy-design-system/components';
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynRadio
3
+ } from "../chunks/chunk.AFCMSVBY.js";
4
+ export {
5
+ SynRadio
6
+ };
7
+ //# sourceMappingURL=radio.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,5 +1,9 @@
1
1
  export { SynButton } from './components/button.js';
2
+ export { SynButtonGroup } from './components/button-group.js';
2
3
  export { SynCheckbox } from './components/checkbox.js';
3
4
  export { SynIcon } from './components/icon.js';
4
5
  export { SynInput } from './components/input.js';
6
+ export { SynRadio } from './components/radio.js';
7
+ export { SynRadioButton } from './components/radio-button.js';
8
+ export { SynRadioGroup } from './components/radio-group.js';
5
9
  export { SynTextarea } from './components/textarea.js';
package/dist/index.js CHANGED
@@ -1,3 +1,12 @@
1
+ import {
2
+ SynRadio
3
+ } from "./chunks/chunk.AFCMSVBY.js";
4
+ import {
5
+ SynTextarea
6
+ } from "./chunks/chunk.4YY6TGIA.js";
7
+ import {
8
+ SynButtonGroup
9
+ } from "./chunks/chunk.6OTEQXZW.js";
1
10
  import {
2
11
  SynButton
3
12
  } from "./chunks/chunk.TTUPZLN7.js";
@@ -11,13 +20,20 @@ import {
11
20
  SynInput
12
21
  } from "./chunks/chunk.K57RP7HQ.js";
13
22
  import {
14
- SynTextarea
15
- } from "./chunks/chunk.4YY6TGIA.js";
23
+ SynRadioButton
24
+ } from "./chunks/chunk.QBD4EIK5.js";
25
+ import {
26
+ SynRadioGroup
27
+ } from "./chunks/chunk.UVFFLBXG.js";
16
28
  export {
17
29
  SynButton,
30
+ SynButtonGroup,
18
31
  SynCheckbox,
19
32
  SynIcon,
20
33
  SynInput,
34
+ SynRadio,
35
+ SynRadioButton,
36
+ SynRadioGroup,
21
37
  SynTextarea
22
38
  };
23
39
  //# 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.13"
8
+ "@synergy-design-system/components": "^1.0.0-main.14"
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.13",
43
+ "version": "1.0.0-main.14",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.31",
46
46
  "react": "^18.2.0"