@synergy-design-system/components 1.0.2 → 1.2.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/README.md +24 -16
- package/dist/chunks/chunk.2FN5DTS6.js +67 -0
- package/dist/chunks/chunk.2FN5DTS6.js.map +7 -0
- package/dist/chunks/{chunk.SUNIN43Y.js → chunk.2OYZUDFV.js} +2 -2
- package/dist/chunks/{chunk.XVJVR3MD.js → chunk.3CSVGX3J.js} +3 -3
- package/dist/chunks/{chunk.B7KNRAHG.js → chunk.44U5VKNJ.js} +3 -3
- package/dist/chunks/{chunk.JVSVQG6I.js → chunk.4EWYZIJS.js} +2 -2
- package/dist/chunks/{chunk.FJGYV3Y3.js → chunk.4EXY5F5M.js} +2 -2
- package/dist/chunks/{chunk.4XAK6MOQ.js → chunk.6PFQSQLU.js} +2 -2
- package/dist/chunks/chunk.7W73A57K.js +108 -0
- package/dist/chunks/chunk.7W73A57K.js.map +7 -0
- package/dist/chunks/{chunk.3NY33MCF.js → chunk.ADE7GDYK.js} +3 -3
- package/dist/chunks/{chunk.U2NJG6GX.js → chunk.AFVZYX7H.js} +2 -2
- package/dist/chunks/chunk.CAIB544F.js +12 -0
- package/dist/chunks/chunk.CAIB544F.js.map +7 -0
- package/dist/chunks/{chunk.MB5S3IM7.js → chunk.CB2M3AVU.js} +2 -2
- package/dist/chunks/{chunk.W5GPJ6ZR.js → chunk.D5YL3H6T.js} +2 -2
- package/dist/chunks/{chunk.D7KU5L75.js → chunk.E2TU3YYJ.js} +2 -2
- package/dist/chunks/{chunk.GNAJOKCJ.js → chunk.EJXWL3JM.js} +4 -2
- package/dist/chunks/{chunk.GNAJOKCJ.js.map → chunk.EJXWL3JM.js.map} +2 -2
- package/dist/chunks/chunk.ESQOUQV3.js +75 -0
- package/dist/chunks/chunk.ESQOUQV3.js.map +7 -0
- package/dist/chunks/{chunk.IFPM2NRM.js → chunk.FHYBGERU.js} +2 -2
- package/dist/chunks/{chunk.M5DMOLZK.js → chunk.JRAW7QJL.js} +2 -2
- package/dist/chunks/chunk.L6I5ZLBO.js +137 -0
- package/dist/chunks/chunk.L6I5ZLBO.js.map +7 -0
- package/dist/chunks/{chunk.WVYTLFNV.js → chunk.MJC7VLA2.js} +2 -2
- package/dist/chunks/{chunk.P3O63FHH.js → chunk.MUP4GIQL.js} +2 -2
- package/dist/chunks/{chunk.HZERAHZP.js → chunk.NRA7I7QC.js} +7 -7
- package/dist/chunks/chunk.OJF7KL44.js +67 -0
- package/dist/chunks/chunk.OJF7KL44.js.map +7 -0
- package/dist/chunks/{chunk.5SKPG6DM.js → chunk.Q7NHWXSL.js} +2 -2
- package/dist/chunks/chunk.QHFGD6WW.js +73 -0
- package/dist/chunks/chunk.QHFGD6WW.js.map +7 -0
- package/dist/chunks/{chunk.U7R4EV7C.js → chunk.RG4Z2I6D.js} +6 -6
- package/dist/chunks/{chunk.PHG2CETE.js → chunk.RKQHPBKM.js} +3 -3
- package/dist/chunks/{chunk.DUAFHNTR.js → chunk.SEHRSICV.js} +2 -2
- package/dist/chunks/{chunk.MUOAKBT3.js → chunk.SPPBO7QV.js} +2 -2
- package/dist/chunks/{chunk.MUOAKBT3.js.map → chunk.SPPBO7QV.js.map} +1 -1
- package/dist/chunks/{chunk.7MTLFTYG.js → chunk.TACOOH3N.js} +2 -2
- package/dist/chunks/chunk.VTYPMAXM.js +12 -0
- package/dist/chunks/chunk.VTYPMAXM.js.map +7 -0
- package/dist/chunks/{chunk.G3EPLUES.js → chunk.ZGZ7W6BC.js} +2 -2
- package/dist/components/button/button.component.js +7 -7
- package/dist/components/button/button.js +8 -8
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +5 -5
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.d.ts +63 -0
- package/dist/components/icon-button/icon-button.component.js +20 -0
- package/dist/components/icon-button/icon-button.component.js.map +7 -0
- package/dist/components/icon-button/icon-button.custom.styles.d.ts +2 -0
- package/dist/components/icon-button/icon-button.custom.styles.js +8 -0
- package/dist/components/icon-button/icon-button.custom.styles.js.map +7 -0
- package/dist/components/icon-button/icon-button.d.ts +8 -0
- package/dist/components/icon-button/icon-button.js +21 -0
- package/dist/components/icon-button/icon-button.js.map +7 -0
- package/dist/components/icon-button/icon-button.styles.d.ts +2 -0
- package/dist/components/icon-button/icon-button.styles.js +10 -0
- package/dist/components/icon-button/icon-button.styles.js.map +7 -0
- package/dist/components/input/input.component.js +6 -6
- package/dist/components/input/input.js +7 -7
- package/dist/components/radio/radio.component.js +5 -5
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tag/tag.component.d.ts +33 -0
- package/dist/components/tag/tag.component.js +25 -0
- package/dist/components/tag/tag.component.js.map +7 -0
- package/dist/components/tag/tag.custom.styles.d.ts +2 -0
- package/dist/components/tag/tag.custom.styles.js +8 -0
- package/dist/components/tag/tag.custom.styles.js.map +7 -0
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +26 -0
- package/dist/components/tag/tag.js.map +7 -0
- package/dist/components/tag/tag.styles.d.ts +2 -0
- package/dist/components/tag/tag.styles.js +10 -0
- package/dist/components/tag/tag.styles.js.map +7 -0
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/custom-elements.json +629 -184
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-remove.d.ts +6 -0
- package/dist/synergy.d.ts +2 -0
- package/dist/synergy.js +47 -33
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +119 -17
- package/dist/web-types.json +218 -30
- package/package.json +14 -13
- /package/dist/chunks/{chunk.SUNIN43Y.js.map → chunk.2OYZUDFV.js.map} +0 -0
- /package/dist/chunks/{chunk.XVJVR3MD.js.map → chunk.3CSVGX3J.js.map} +0 -0
- /package/dist/chunks/{chunk.B7KNRAHG.js.map → chunk.44U5VKNJ.js.map} +0 -0
- /package/dist/chunks/{chunk.JVSVQG6I.js.map → chunk.4EWYZIJS.js.map} +0 -0
- /package/dist/chunks/{chunk.FJGYV3Y3.js.map → chunk.4EXY5F5M.js.map} +0 -0
- /package/dist/chunks/{chunk.4XAK6MOQ.js.map → chunk.6PFQSQLU.js.map} +0 -0
- /package/dist/chunks/{chunk.3NY33MCF.js.map → chunk.ADE7GDYK.js.map} +0 -0
- /package/dist/chunks/{chunk.U2NJG6GX.js.map → chunk.AFVZYX7H.js.map} +0 -0
- /package/dist/chunks/{chunk.MB5S3IM7.js.map → chunk.CB2M3AVU.js.map} +0 -0
- /package/dist/chunks/{chunk.W5GPJ6ZR.js.map → chunk.D5YL3H6T.js.map} +0 -0
- /package/dist/chunks/{chunk.D7KU5L75.js.map → chunk.E2TU3YYJ.js.map} +0 -0
- /package/dist/chunks/{chunk.IFPM2NRM.js.map → chunk.FHYBGERU.js.map} +0 -0
- /package/dist/chunks/{chunk.M5DMOLZK.js.map → chunk.JRAW7QJL.js.map} +0 -0
- /package/dist/chunks/{chunk.WVYTLFNV.js.map → chunk.MJC7VLA2.js.map} +0 -0
- /package/dist/chunks/{chunk.P3O63FHH.js.map → chunk.MUP4GIQL.js.map} +0 -0
- /package/dist/chunks/{chunk.HZERAHZP.js.map → chunk.NRA7I7QC.js.map} +0 -0
- /package/dist/chunks/{chunk.5SKPG6DM.js.map → chunk.Q7NHWXSL.js.map} +0 -0
- /package/dist/chunks/{chunk.U7R4EV7C.js.map → chunk.RG4Z2I6D.js.map} +0 -0
- /package/dist/chunks/{chunk.PHG2CETE.js.map → chunk.RKQHPBKM.js.map} +0 -0
- /package/dist/chunks/{chunk.DUAFHNTR.js.map → chunk.SEHRSICV.js.map} +0 -0
- /package/dist/chunks/{chunk.7MTLFTYG.js.map → chunk.TACOOH3N.js.map} +0 -0
- /package/dist/chunks/{chunk.G3EPLUES.js.map → chunk.ZGZ7W6BC.js.map} +0 -0
package/dist/events/events.d.ts
CHANGED
package/dist/synergy.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export { default as SynButtonGroup } from './components/button-group/button-group.js';
|
|
2
2
|
export { default as SynButton } from './components/button/button.js';
|
|
3
3
|
export { default as SynCheckbox } from './components/checkbox/checkbox.js';
|
|
4
|
+
export { default as SynIconButton } from './components/icon-button/icon-button.js';
|
|
4
5
|
export { default as SynIcon } from './components/icon/icon.js';
|
|
5
6
|
export { default as SynInput } from './components/input/input.js';
|
|
6
7
|
export { default as SynRadioButton } from './components/radio-button/radio-button.js';
|
|
7
8
|
export { default as SynRadioGroup } from './components/radio-group/radio-group.js';
|
|
8
9
|
export { default as SynRadio } from './components/radio/radio.js';
|
|
9
10
|
export { default as SynSwitch } from './components/switch/switch.js';
|
|
11
|
+
export { default as SynTag } from './components/tag/tag.js';
|
|
10
12
|
export { default as SynTextarea } from './components/textarea/textarea.js';
|
|
11
13
|
export * from './utilities/base-path.js';
|
|
12
14
|
export * from './utilities/icon-library.js';
|
package/dist/synergy.js
CHANGED
|
@@ -4,72 +4,84 @@ import {
|
|
|
4
4
|
} from "./chunks/chunk.Z3RZUTQU.js";
|
|
5
5
|
import "./chunks/chunk.NKIYFJN2.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./chunks/chunk.
|
|
7
|
+
tag_default
|
|
8
|
+
} from "./chunks/chunk.CAIB544F.js";
|
|
9
9
|
import {
|
|
10
10
|
textarea_default
|
|
11
|
-
} from "./chunks/chunk.
|
|
12
|
-
import "./chunks/chunk.
|
|
11
|
+
} from "./chunks/chunk.4EXY5F5M.js";
|
|
12
|
+
import "./chunks/chunk.D5YL3H6T.js";
|
|
13
13
|
import "./chunks/chunk.23HTU3YE.js";
|
|
14
14
|
import "./chunks/chunk.YBIBWRKC.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./chunks/chunk.
|
|
18
|
-
import "./chunks/chunk.
|
|
16
|
+
switch_default
|
|
17
|
+
} from "./chunks/chunk.E2TU3YYJ.js";
|
|
18
|
+
import "./chunks/chunk.2OYZUDFV.js";
|
|
19
19
|
import "./chunks/chunk.MNMITYTH.js";
|
|
20
20
|
import "./chunks/chunk.AFEABUNX.js";
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import "./chunks/chunk.B7KNRAHG.js";
|
|
25
|
-
import "./chunks/chunk.JBYBQ5TQ.js";
|
|
26
|
-
import "./chunks/chunk.V6VND4OF.js";
|
|
21
|
+
import "./chunks/chunk.ESQOUQV3.js";
|
|
22
|
+
import "./chunks/chunk.QHFGD6WW.js";
|
|
23
|
+
import "./chunks/chunk.7W73A57K.js";
|
|
27
24
|
import {
|
|
28
25
|
radio_button_default
|
|
29
|
-
} from "./chunks/chunk.
|
|
30
|
-
import "./chunks/chunk.
|
|
26
|
+
} from "./chunks/chunk.MJC7VLA2.js";
|
|
27
|
+
import "./chunks/chunk.CB2M3AVU.js";
|
|
31
28
|
import "./chunks/chunk.OVVMSN4D.js";
|
|
32
|
-
import
|
|
29
|
+
import {
|
|
30
|
+
radio_group_default
|
|
31
|
+
} from "./chunks/chunk.AFVZYX7H.js";
|
|
32
|
+
import "./chunks/chunk.ADE7GDYK.js";
|
|
33
33
|
import "./chunks/chunk.4I6M5V6O.js";
|
|
34
34
|
import "./chunks/chunk.F4MRQLNL.js";
|
|
35
|
-
import {
|
|
36
|
-
icon_default
|
|
37
|
-
} from "./chunks/chunk.G3EPLUES.js";
|
|
38
35
|
import {
|
|
39
36
|
input_default
|
|
40
|
-
} from "./chunks/chunk.
|
|
41
|
-
import "./chunks/chunk.
|
|
37
|
+
} from "./chunks/chunk.JRAW7QJL.js";
|
|
38
|
+
import "./chunks/chunk.RG4Z2I6D.js";
|
|
42
39
|
import "./chunks/chunk.OXUFFH57.js";
|
|
43
40
|
import "./chunks/chunk.JHXCBOUD.js";
|
|
44
41
|
import "./chunks/chunk.W46CFM2R.js";
|
|
42
|
+
import {
|
|
43
|
+
radio_default
|
|
44
|
+
} from "./chunks/chunk.4EWYZIJS.js";
|
|
45
|
+
import "./chunks/chunk.44U5VKNJ.js";
|
|
46
|
+
import "./chunks/chunk.JBYBQ5TQ.js";
|
|
47
|
+
import "./chunks/chunk.V6VND4OF.js";
|
|
48
|
+
import {
|
|
49
|
+
icon_default
|
|
50
|
+
} from "./chunks/chunk.ZGZ7W6BC.js";
|
|
51
|
+
import {
|
|
52
|
+
icon_button_default
|
|
53
|
+
} from "./chunks/chunk.VTYPMAXM.js";
|
|
54
|
+
import "./chunks/chunk.L6I5ZLBO.js";
|
|
55
|
+
import "./chunks/chunk.2FN5DTS6.js";
|
|
56
|
+
import "./chunks/chunk.OJF7KL44.js";
|
|
45
57
|
import {
|
|
46
58
|
button_group_default
|
|
47
|
-
} from "./chunks/chunk.
|
|
59
|
+
} from "./chunks/chunk.SEHRSICV.js";
|
|
48
60
|
import {
|
|
49
61
|
checkbox_default
|
|
50
|
-
} from "./chunks/chunk.
|
|
51
|
-
import "./chunks/chunk.
|
|
62
|
+
} from "./chunks/chunk.TACOOH3N.js";
|
|
63
|
+
import "./chunks/chunk.3CSVGX3J.js";
|
|
52
64
|
import "./chunks/chunk.WFAJR3FN.js";
|
|
53
65
|
import "./chunks/chunk.4CBN5LPQ.js";
|
|
54
66
|
import "./chunks/chunk.2XZKXVMR.js";
|
|
55
67
|
import {
|
|
56
68
|
button_default
|
|
57
|
-
} from "./chunks/chunk.
|
|
58
|
-
import "./chunks/chunk.
|
|
59
|
-
import "./chunks/chunk.
|
|
69
|
+
} from "./chunks/chunk.MUP4GIQL.js";
|
|
70
|
+
import "./chunks/chunk.NRA7I7QC.js";
|
|
71
|
+
import "./chunks/chunk.FHYBGERU.js";
|
|
60
72
|
import "./chunks/chunk.N2I6HVX3.js";
|
|
73
|
+
import "./chunks/chunk.XGXFE6IF.js";
|
|
61
74
|
import "./chunks/chunk.R6VNLE6N.js";
|
|
62
75
|
import "./chunks/chunk.A3SKDWCT.js";
|
|
63
|
-
import "./chunks/chunk.XGXFE6IF.js";
|
|
64
76
|
import "./chunks/chunk.P2LNG2PZ.js";
|
|
65
|
-
import "./chunks/chunk.
|
|
77
|
+
import "./chunks/chunk.RKQHPBKM.js";
|
|
66
78
|
import "./chunks/chunk.VZ7S7YYN.js";
|
|
67
79
|
import {
|
|
68
80
|
registerIconLibrary,
|
|
69
81
|
unregisterIconLibrary
|
|
70
|
-
} from "./chunks/chunk.
|
|
82
|
+
} from "./chunks/chunk.6PFQSQLU.js";
|
|
71
83
|
import "./chunks/chunk.6C4JXZZN.js";
|
|
72
|
-
import "./chunks/chunk.
|
|
84
|
+
import "./chunks/chunk.EJXWL3JM.js";
|
|
73
85
|
import "./chunks/chunk.RSONAU45.js";
|
|
74
86
|
import "./chunks/chunk.PJO6TM3T.js";
|
|
75
87
|
import {
|
|
@@ -78,8 +90,8 @@ import {
|
|
|
78
90
|
} from "./chunks/chunk.C7624ITA.js";
|
|
79
91
|
import "./chunks/chunk.YTS5TRJZ.js";
|
|
80
92
|
import "./chunks/chunk.FVSP4LXX.js";
|
|
81
|
-
import "./chunks/chunk.
|
|
82
|
-
import "./chunks/chunk.
|
|
93
|
+
import "./chunks/chunk.Q7NHWXSL.js";
|
|
94
|
+
import "./chunks/chunk.SPPBO7QV.js";
|
|
83
95
|
import "./chunks/chunk.4ZURABYO.js";
|
|
84
96
|
import "./chunks/chunk.O7USYXBT.js";
|
|
85
97
|
import "./chunks/chunk.DJOAQ4JU.js";
|
|
@@ -88,11 +100,13 @@ export {
|
|
|
88
100
|
button_group_default as SynButtonGroup,
|
|
89
101
|
checkbox_default as SynCheckbox,
|
|
90
102
|
icon_default as SynIcon,
|
|
103
|
+
icon_button_default as SynIconButton,
|
|
91
104
|
input_default as SynInput,
|
|
92
105
|
radio_default as SynRadio,
|
|
93
106
|
radio_button_default as SynRadioButton,
|
|
94
107
|
radio_group_default as SynRadioGroup,
|
|
95
108
|
switch_default as SynSwitch,
|
|
109
|
+
tag_default as SynTag,
|
|
96
110
|
textarea_default as SynTextarea,
|
|
97
111
|
getBasePath,
|
|
98
112
|
getFormControls,
|
|
@@ -2,9 +2,9 @@ import "../chunks/chunk.NKIYFJN2.js";
|
|
|
2
2
|
import {
|
|
3
3
|
registerIconLibrary,
|
|
4
4
|
unregisterIconLibrary
|
|
5
|
-
} from "../chunks/chunk.
|
|
5
|
+
} from "../chunks/chunk.6PFQSQLU.js";
|
|
6
6
|
import "../chunks/chunk.6C4JXZZN.js";
|
|
7
|
-
import "../chunks/chunk.
|
|
7
|
+
import "../chunks/chunk.EJXWL3JM.js";
|
|
8
8
|
import "../chunks/chunk.C7624ITA.js";
|
|
9
9
|
import "../chunks/chunk.DJOAQ4JU.js";
|
|
10
10
|
export {
|
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
3
|
"version": 1.1,
|
|
4
4
|
"tags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "syn-button-group",
|
|
7
|
+
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
8
|
+
"attributes": [
|
|
9
|
+
{
|
|
10
|
+
"name": "label",
|
|
11
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
12
|
+
"values": []
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"references": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Documentation",
|
|
18
|
+
"url": "https://synergy.style/components/button-group"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
5
22
|
{
|
|
6
23
|
"name": "syn-button",
|
|
7
24
|
"description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the button loses focus.\n- **syn-focus** - Emitted when the button gains focus.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<syn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
|
|
@@ -131,23 +148,6 @@
|
|
|
131
148
|
}
|
|
132
149
|
]
|
|
133
150
|
},
|
|
134
|
-
{
|
|
135
|
-
"name": "syn-button-group",
|
|
136
|
-
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
137
|
-
"attributes": [
|
|
138
|
-
{
|
|
139
|
-
"name": "label",
|
|
140
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
141
|
-
"values": []
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
"references": [
|
|
145
|
-
{
|
|
146
|
-
"name": "Documentation",
|
|
147
|
-
"url": "https://synergy.style/components/button-group"
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
151
|
{
|
|
152
152
|
"name": "syn-checkbox",
|
|
153
153
|
"description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.",
|
|
@@ -237,6 +237,82 @@
|
|
|
237
237
|
}
|
|
238
238
|
]
|
|
239
239
|
},
|
|
240
|
+
{
|
|
241
|
+
"name": "syn-icon-button",
|
|
242
|
+
"description": "Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the icon button loses focus.\n- **syn-focus** - Emitted when the icon button gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the icon button.\n- **focus(options: _FocusOptions_)** - Sets focus on the icon button.\n- **blur()** - Removes focus from the icon button.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
243
|
+
"attributes": [
|
|
244
|
+
{
|
|
245
|
+
"name": "name",
|
|
246
|
+
"description": "The name of the icon to draw. Available names depend on the icon library being used.",
|
|
247
|
+
"values": []
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "library",
|
|
251
|
+
"description": "The name of a registered custom icon library.",
|
|
252
|
+
"values": []
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "src",
|
|
256
|
+
"description": "An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\ncan result in XSS attacks.",
|
|
257
|
+
"values": []
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "href",
|
|
261
|
+
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
262
|
+
"values": []
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "target",
|
|
266
|
+
"description": "Tells the browser where to open the link. Only used when `href` is set.",
|
|
267
|
+
"values": [
|
|
268
|
+
{ "name": "_blank" },
|
|
269
|
+
{ "name": "_parent" },
|
|
270
|
+
{ "name": "_self" },
|
|
271
|
+
{ "name": "_top" }
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "download",
|
|
276
|
+
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
277
|
+
"values": []
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "label",
|
|
281
|
+
"description": "A description that gets read by assistive devices. For optimal accessibility, you should always include a label\nthat describes what the icon button does.",
|
|
282
|
+
"values": []
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "size",
|
|
286
|
+
"description": "The icon button's size.",
|
|
287
|
+
"values": [
|
|
288
|
+
{ "name": "small" },
|
|
289
|
+
{ "name": "medium" },
|
|
290
|
+
{ "name": "large" },
|
|
291
|
+
{ "name": "inherit" }
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "color",
|
|
296
|
+
"description": "The color of the icon button.\nThe default \"currentColor\" makes it possible to easily style the icon button from outside without any CSS variables.",
|
|
297
|
+
"values": [
|
|
298
|
+
{ "name": "currentColor" },
|
|
299
|
+
{ "name": "primary" },
|
|
300
|
+
{ "name": "neutral" }
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "disabled",
|
|
305
|
+
"description": "Disables the button.",
|
|
306
|
+
"values": []
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"references": [
|
|
310
|
+
{
|
|
311
|
+
"name": "Documentation",
|
|
312
|
+
"url": "https://synergy.style/components/icon-button"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
240
316
|
{
|
|
241
317
|
"name": "syn-input",
|
|
242
318
|
"description": "Inputs collect data from the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-clear** - Emitted when the clear button is activated.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **showPicker()** - Displays the browser picker for an input element (only works if the browser supports it for the input type).\n- **stepUp()** - Increments the value of a numeric input type by the value of the step attribute.\n- **stepDown()** - Decrements the value of a numeric input type by the value of the step attribute.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.",
|
|
@@ -606,6 +682,32 @@
|
|
|
606
682
|
}
|
|
607
683
|
]
|
|
608
684
|
},
|
|
685
|
+
{
|
|
686
|
+
"name": "syn-tag",
|
|
687
|
+
"description": "Tags are used as labels to organize things or to indicate a selection.\n---\n\n\n### **Events:**\n - **syn-remove** - Emitted when the remove button is activated.\n\n### **Slots:**\n - _default_ - The tag's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - The tag's content.\n- **remove-button** - The tag's remove button, an `<syn-icon-button>`.\n- **remove-button__base** - The remove button's exported `base` part.",
|
|
688
|
+
"attributes": [
|
|
689
|
+
{
|
|
690
|
+
"name": "size",
|
|
691
|
+
"description": "The tag's size.",
|
|
692
|
+
"values": [
|
|
693
|
+
{ "name": "small" },
|
|
694
|
+
{ "name": "medium" },
|
|
695
|
+
{ "name": "large" }
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"name": "removable",
|
|
700
|
+
"description": "Makes the tag removable and shows a remove button.",
|
|
701
|
+
"values": []
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"references": [
|
|
705
|
+
{
|
|
706
|
+
"name": "Documentation",
|
|
707
|
+
"url": "https://synergy.style/components/tag"
|
|
708
|
+
}
|
|
709
|
+
]
|
|
710
|
+
},
|
|
609
711
|
{
|
|
610
712
|
"name": "syn-textarea",
|
|
611
713
|
"description": "Textareas collect data from the user and allow multiple lines of text.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the textarea.\n- **blur()** - Removes focus from the textarea.\n- **select()** - Selects all the text in the textarea.\n- **scrollPosition(position: _{ top?: number; left?: number }_): _{ top: number; left: number } | undefined_** - Gets or sets the textarea's scroll position.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The textarea's label. Alternatively, you can use the `label` attribute.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **textarea** - The internal `<textarea>` control.",
|
package/dist/web-types.json
CHANGED
|
@@ -1,11 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@synergy-design-system/components",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
|
+
{
|
|
10
|
+
"name": "syn-button-group",
|
|
11
|
+
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
12
|
+
"doc-url": "",
|
|
13
|
+
"attributes": [
|
|
14
|
+
{
|
|
15
|
+
"name": "label",
|
|
16
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
17
|
+
"value": { "type": "string", "default": "''" }
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"slots": [
|
|
21
|
+
{
|
|
22
|
+
"name": "",
|
|
23
|
+
"description": "One or more `<syn-button>` elements to display in the button group."
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"events": [],
|
|
27
|
+
"js": {
|
|
28
|
+
"properties": [
|
|
29
|
+
{
|
|
30
|
+
"name": "label",
|
|
31
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
32
|
+
"value": { "type": "string" }
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"events": []
|
|
36
|
+
}
|
|
37
|
+
},
|
|
9
38
|
{
|
|
10
39
|
"name": "syn-button",
|
|
11
40
|
"description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the button loses focus.\n- **syn-focus** - Emitted when the button gains focus.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<syn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
|
|
@@ -255,35 +284,6 @@
|
|
|
255
284
|
]
|
|
256
285
|
}
|
|
257
286
|
},
|
|
258
|
-
{
|
|
259
|
-
"name": "syn-button-group",
|
|
260
|
-
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
261
|
-
"doc-url": "",
|
|
262
|
-
"attributes": [
|
|
263
|
-
{
|
|
264
|
-
"name": "label",
|
|
265
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
266
|
-
"value": { "type": "string", "default": "''" }
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"slots": [
|
|
270
|
-
{
|
|
271
|
-
"name": "",
|
|
272
|
-
"description": "One or more `<syn-button>` elements to display in the button group."
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"events": [],
|
|
276
|
-
"js": {
|
|
277
|
-
"properties": [
|
|
278
|
-
{
|
|
279
|
-
"name": "label",
|
|
280
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
281
|
-
"value": { "type": "string" }
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
"events": []
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
287
|
{
|
|
288
288
|
"name": "syn-checkbox",
|
|
289
289
|
"description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.",
|
|
@@ -496,6 +496,147 @@
|
|
|
496
496
|
]
|
|
497
497
|
}
|
|
498
498
|
},
|
|
499
|
+
{
|
|
500
|
+
"name": "syn-icon-button",
|
|
501
|
+
"description": "Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the icon button loses focus.\n- **syn-focus** - Emitted when the icon button gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the icon button.\n- **focus(options: _FocusOptions_)** - Sets focus on the icon button.\n- **blur()** - Removes focus from the icon button.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
502
|
+
"doc-url": "",
|
|
503
|
+
"attributes": [
|
|
504
|
+
{
|
|
505
|
+
"name": "name",
|
|
506
|
+
"description": "The name of the icon to draw. Available names depend on the icon library being used.",
|
|
507
|
+
"value": { "type": "string | undefined" }
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "library",
|
|
511
|
+
"description": "The name of a registered custom icon library.",
|
|
512
|
+
"value": { "type": "string | undefined" }
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "src",
|
|
516
|
+
"description": "An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\ncan result in XSS attacks.",
|
|
517
|
+
"value": { "type": "string | undefined" }
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "href",
|
|
521
|
+
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
522
|
+
"value": { "type": "string | undefined" }
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "target",
|
|
526
|
+
"description": "Tells the browser where to open the link. Only used when `href` is set.",
|
|
527
|
+
"value": {
|
|
528
|
+
"type": "'_blank' | '_parent' | '_self' | '_top' | undefined"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "download",
|
|
533
|
+
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
534
|
+
"value": { "type": "string | undefined" }
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "label",
|
|
538
|
+
"description": "A description that gets read by assistive devices. For optimal accessibility, you should always include a label\nthat describes what the icon button does.",
|
|
539
|
+
"value": { "type": "string", "default": "''" }
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "size",
|
|
543
|
+
"description": "The icon button's size.",
|
|
544
|
+
"value": {
|
|
545
|
+
"type": "'small' | 'medium' | 'large' | 'inherit'",
|
|
546
|
+
"default": "'inherit'"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"name": "color",
|
|
551
|
+
"description": "The color of the icon button.\nThe default \"currentColor\" makes it possible to easily style the icon button from outside without any CSS variables.",
|
|
552
|
+
"value": {
|
|
553
|
+
"type": "'currentColor' | 'primary' | 'neutral'",
|
|
554
|
+
"default": "'currentColor'"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "disabled",
|
|
559
|
+
"description": "Disables the button.",
|
|
560
|
+
"value": { "type": "boolean", "default": "false" }
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"events": [
|
|
564
|
+
{
|
|
565
|
+
"name": "syn-blur",
|
|
566
|
+
"description": "Emitted when the icon button loses focus."
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "syn-focus",
|
|
570
|
+
"description": "Emitted when the icon button gains focus."
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
"js": {
|
|
574
|
+
"properties": [
|
|
575
|
+
{
|
|
576
|
+
"name": "name",
|
|
577
|
+
"description": "The name of the icon to draw. Available names depend on the icon library being used.",
|
|
578
|
+
"value": { "type": "string | undefined" }
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"name": "library",
|
|
582
|
+
"description": "The name of a registered custom icon library.",
|
|
583
|
+
"value": { "type": "string | undefined" }
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "src",
|
|
587
|
+
"description": "An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and\ncan result in XSS attacks.",
|
|
588
|
+
"value": { "type": "string | undefined" }
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "href",
|
|
592
|
+
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
593
|
+
"value": { "type": "string | undefined" }
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "target",
|
|
597
|
+
"description": "Tells the browser where to open the link. Only used when `href` is set.",
|
|
598
|
+
"value": {
|
|
599
|
+
"type": "'_blank' | '_parent' | '_self' | '_top' | undefined"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "download",
|
|
604
|
+
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
605
|
+
"value": { "type": "string | undefined" }
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "label",
|
|
609
|
+
"description": "A description that gets read by assistive devices. For optimal accessibility, you should always include a label\nthat describes what the icon button does.",
|
|
610
|
+
"value": { "type": "string" }
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "size",
|
|
614
|
+
"description": "The icon button's size.",
|
|
615
|
+
"value": { "type": "'small' | 'medium' | 'large' | 'inherit'" }
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "color",
|
|
619
|
+
"description": "The color of the icon button.\nThe default \"currentColor\" makes it possible to easily style the icon button from outside without any CSS variables.",
|
|
620
|
+
"value": { "type": "'currentColor' | 'primary' | 'neutral'" }
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "disabled",
|
|
624
|
+
"description": "Disables the button.",
|
|
625
|
+
"value": { "type": "boolean" }
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"events": [
|
|
629
|
+
{
|
|
630
|
+
"name": "syn-blur",
|
|
631
|
+
"description": "Emitted when the icon button loses focus."
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "syn-focus",
|
|
635
|
+
"description": "Emitted when the icon button gains focus."
|
|
636
|
+
}
|
|
637
|
+
]
|
|
638
|
+
}
|
|
639
|
+
},
|
|
499
640
|
{
|
|
500
641
|
"name": "syn-input",
|
|
501
642
|
"description": "Inputs collect data from the user.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-clear** - Emitted when the clear button is activated.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **showPicker()** - Displays the browser picker for an input element (only works if the browser supports it for the input type).\n- **stepUp()** - Increments the value of a numeric input type by the value of the step attribute.\n- **stepDown()** - Decrements the value of a numeric input type by the value of the step attribute.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.",
|
|
@@ -1295,6 +1436,53 @@
|
|
|
1295
1436
|
]
|
|
1296
1437
|
}
|
|
1297
1438
|
},
|
|
1439
|
+
{
|
|
1440
|
+
"name": "syn-tag",
|
|
1441
|
+
"description": "Tags are used as labels to organize things or to indicate a selection.\n---\n\n\n### **Events:**\n - **syn-remove** - Emitted when the remove button is activated.\n\n### **Slots:**\n - _default_ - The tag's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - The tag's content.\n- **remove-button** - The tag's remove button, an `<syn-icon-button>`.\n- **remove-button__base** - The remove button's exported `base` part.",
|
|
1442
|
+
"doc-url": "",
|
|
1443
|
+
"attributes": [
|
|
1444
|
+
{
|
|
1445
|
+
"name": "size",
|
|
1446
|
+
"description": "The tag's size.",
|
|
1447
|
+
"value": {
|
|
1448
|
+
"type": "'small' | 'medium' | 'large'",
|
|
1449
|
+
"default": "'medium'"
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
"name": "removable",
|
|
1454
|
+
"description": "Makes the tag removable and shows a remove button.",
|
|
1455
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1456
|
+
}
|
|
1457
|
+
],
|
|
1458
|
+
"slots": [{ "name": "", "description": "The tag's content." }],
|
|
1459
|
+
"events": [
|
|
1460
|
+
{
|
|
1461
|
+
"name": "syn-remove",
|
|
1462
|
+
"description": "Emitted when the remove button is activated."
|
|
1463
|
+
}
|
|
1464
|
+
],
|
|
1465
|
+
"js": {
|
|
1466
|
+
"properties": [
|
|
1467
|
+
{
|
|
1468
|
+
"name": "size",
|
|
1469
|
+
"description": "The tag's size.",
|
|
1470
|
+
"value": { "type": "'small' | 'medium' | 'large'" }
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"name": "removable",
|
|
1474
|
+
"description": "Makes the tag removable and shows a remove button.",
|
|
1475
|
+
"value": { "type": "boolean" }
|
|
1476
|
+
}
|
|
1477
|
+
],
|
|
1478
|
+
"events": [
|
|
1479
|
+
{
|
|
1480
|
+
"name": "syn-remove",
|
|
1481
|
+
"description": "Emitted when the remove button is activated."
|
|
1482
|
+
}
|
|
1483
|
+
]
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1298
1486
|
{
|
|
1299
1487
|
"name": "syn-textarea",
|
|
1300
1488
|
"description": "Textareas collect data from the user and allow multiple lines of text.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the textarea.\n- **blur()** - Removes focus from the textarea.\n- **select()** - Selects all the text in the textarea.\n- **scrollPosition(position: _{ top?: number; left?: number }_): _{ top: number; left: number } | undefined_** - Gets or sets the textarea's scroll position.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The textarea's label. Alternatively, you can use the `label` attribute.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **textarea** - The internal `<textarea>` control.",
|