@synergy-design-system/react 1.0.0-main.11 → 1.0.0-main.13
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/dist/chunks/chunk.4YY6TGIA.js +24 -0
- package/dist/chunks/chunk.4YY6TGIA.js.map +7 -0
- package/dist/chunks/chunk.6CO3KAZG.js +21 -0
- package/dist/chunks/chunk.6CO3KAZG.js.map +7 -0
- package/dist/chunks/chunk.FYIBHAO4.js +24 -0
- package/dist/chunks/chunk.FYIBHAO4.js.map +7 -0
- package/dist/components/checkbox.d.ts +39 -0
- package/dist/components/checkbox.js +7 -0
- package/dist/components/checkbox.js.map +7 -0
- package/dist/components/icon.d.ts +21 -0
- package/dist/components/icon.js +7 -0
- package/dist/components/icon.js.map +7 -0
- package/dist/components/textarea.d.ts +37 -0
- package/dist/components/textarea.js +7 -0
- package/dist/components/textarea.js.map +7 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +13 -1
- package/package.json +2 -2
|
@@ -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,21 @@
|
|
|
1
|
+
// ../react/src/components/icon.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/icon/icon.component.js";
|
|
5
|
+
var tagName = "syn-icon";
|
|
6
|
+
Component.define("syn-icon");
|
|
7
|
+
var SynIcon = createComponent({
|
|
8
|
+
displayName: "SynIcon",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {
|
|
11
|
+
onSynLoad: "syn-load",
|
|
12
|
+
onSynError: "syn-error"
|
|
13
|
+
},
|
|
14
|
+
react: React,
|
|
15
|
+
tagName
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
SynIcon
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk.6CO3KAZG.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/icon.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/icon/icon.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynErrorEvent, SynLoadEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-icon';\nComponent.define('syn-icon');\n\n/**\n * @summary Icons are symbols that can be used to represent various options within an application.\n * @documentation https://synergy.style/components/icon\n * @status stable\n * @since 2.0\n *\n * @event syn-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.\n * @event syn-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.\n *\n * @csspart svg - The internal SVG element.\n * @csspart use - The <use> element generated when using `spriteSheet: true`\n */\nexport const SynIcon = createComponent({\n displayName: 'SynIcon',\n elementClass: Component,\n events: {\n onSynLoad: 'syn-load' as EventName<SynLoadEvent>,\n onSynError: 'syn-error' as EventName<SynErrorEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynLoadEvent } from '@synergy-design-system/components';\nexport type { SynErrorEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAKtB,IAAM,UAAU;AAChB,UAAU,OAAO,UAAU;AAcpB,IAAM,UAAU,gBAAgB;AAAA,EACrC,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,24 @@
|
|
|
1
|
+
// ../react/src/components/checkbox.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/checkbox/checkbox.component.js";
|
|
5
|
+
var tagName = "syn-checkbox";
|
|
6
|
+
Component.define("syn-checkbox");
|
|
7
|
+
var SynCheckbox = createComponent({
|
|
8
|
+
displayName: "SynCheckbox",
|
|
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
|
+
SynCheckbox
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=chunk.FYIBHAO4.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/checkbox.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/checkbox/checkbox.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-checkbox';\nComponent.define('syn-checkbox');\n\n/**\n * @summary Checkboxes allow the user to toggle an option on or off.\n * @documentation https://synergy.style/components/checkbox\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The checkbox's label.\n *\n * @event syn-blur - Emitted when the checkbox loses focus.\n * @event syn-change - Emitted when the checked state changes.\n * @event syn-focus - Emitted when the checkbox gains focus.\n * @event syn-input - Emitted when the checkbox 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 base - The component's base wrapper.\n * @csspart control - The square container that wraps the checkbox's checked state.\n * @csspart control--checked - Matches the control part when the checkbox is checked.\n * @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart indeterminate-icon - The indeterminate icon, an `<syn-icon>` element.\n * @csspart label - The container that wraps the checkbox's label.\n */\nexport const SynCheckbox = createComponent({\n displayName: 'SynCheckbox',\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;AA0BxB,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,39 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/checkbox/checkbox.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 Checkboxes allow the user to toggle an option on or off.
|
|
6
|
+
* @documentation https://synergy.style/components/checkbox
|
|
7
|
+
* @status stable
|
|
8
|
+
* @since 2.0
|
|
9
|
+
*
|
|
10
|
+
* @dependency syn-icon
|
|
11
|
+
*
|
|
12
|
+
* @slot - The checkbox's label.
|
|
13
|
+
*
|
|
14
|
+
* @event syn-blur - Emitted when the checkbox loses focus.
|
|
15
|
+
* @event syn-change - Emitted when the checked state changes.
|
|
16
|
+
* @event syn-focus - Emitted when the checkbox gains focus.
|
|
17
|
+
* @event syn-input - Emitted when the checkbox receives input.
|
|
18
|
+
* @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
19
|
+
*
|
|
20
|
+
* @csspart base - The component's base wrapper.
|
|
21
|
+
* @csspart control - The square container that wraps the checkbox's checked state.
|
|
22
|
+
* @csspart control--checked - Matches the control part when the checkbox is checked.
|
|
23
|
+
* @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.
|
|
24
|
+
* @csspart checked-icon - The checked icon, an `<syn-icon>` element.
|
|
25
|
+
* @csspart indeterminate-icon - The indeterminate icon, an `<syn-icon>` element.
|
|
26
|
+
* @csspart label - The container that wraps the checkbox's label.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SynCheckbox: import("@lit/react").ReactWebComponent<Component, {
|
|
29
|
+
onSynBlur: EventName<SynBlurEvent>;
|
|
30
|
+
onSynChange: EventName<SynChangeEvent>;
|
|
31
|
+
onSynFocus: EventName<SynFocusEvent>;
|
|
32
|
+
onSynInput: EventName<SynInputEvent>;
|
|
33
|
+
onSynInvalid: EventName<SynInvalidEvent>;
|
|
34
|
+
}>;
|
|
35
|
+
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
36
|
+
export type { SynChangeEvent } from '@synergy-design-system/components';
|
|
37
|
+
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
38
|
+
export type { SynInputEvent } from '@synergy-design-system/components';
|
|
39
|
+
export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/icon/icon.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynErrorEvent, SynLoadEvent } from '@synergy-design-system/components';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Icons are symbols that can be used to represent various options within an application.
|
|
6
|
+
* @documentation https://synergy.style/components/icon
|
|
7
|
+
* @status stable
|
|
8
|
+
* @since 2.0
|
|
9
|
+
*
|
|
10
|
+
* @event syn-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.
|
|
11
|
+
* @event syn-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.
|
|
12
|
+
*
|
|
13
|
+
* @csspart svg - The internal SVG element.
|
|
14
|
+
* @csspart use - The <use> element generated when using `spriteSheet: true`
|
|
15
|
+
*/
|
|
16
|
+
export declare const SynIcon: import("@lit/react").ReactWebComponent<Component, {
|
|
17
|
+
onSynLoad: EventName<SynLoadEvent>;
|
|
18
|
+
onSynError: EventName<SynErrorEvent>;
|
|
19
|
+
}>;
|
|
20
|
+
export type { SynLoadEvent } from '@synergy-design-system/components';
|
|
21
|
+
export type { SynErrorEvent } from '@synergy-design-system/components';
|
|
@@ -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';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
3
|
} from "./chunks/chunk.TTUPZLN7.js";
|
|
4
|
+
import {
|
|
5
|
+
SynCheckbox
|
|
6
|
+
} from "./chunks/chunk.FYIBHAO4.js";
|
|
7
|
+
import {
|
|
8
|
+
SynIcon
|
|
9
|
+
} from "./chunks/chunk.6CO3KAZG.js";
|
|
4
10
|
import {
|
|
5
11
|
SynInput
|
|
6
12
|
} from "./chunks/chunk.K57RP7HQ.js";
|
|
13
|
+
import {
|
|
14
|
+
SynTextarea
|
|
15
|
+
} from "./chunks/chunk.4YY6TGIA.js";
|
|
7
16
|
export {
|
|
8
17
|
SynButton,
|
|
9
|
-
|
|
18
|
+
SynCheckbox,
|
|
19
|
+
SynIcon,
|
|
20
|
+
SynInput,
|
|
21
|
+
SynTextarea
|
|
10
22
|
};
|
|
11
23
|
//# 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.
|
|
8
|
+
"@synergy-design-system/components": "^1.0.0-main.13"
|
|
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.
|
|
43
|
+
"version": "1.0.0-main.13",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/react": "^18.2.31",
|
|
46
46
|
"react": "^18.2.0"
|