@synergy-design-system/components 1.1.0 → 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.
Files changed (107) hide show
  1. package/README.md +24 -16
  2. package/dist/chunks/{chunk.RAJNSJOZ.js → chunk.2OYZUDFV.js} +2 -2
  3. package/dist/chunks/{chunk.OVS5OKTW.js → chunk.3CSVGX3J.js} +3 -3
  4. package/dist/chunks/{chunk.P3EPUBB3.js → chunk.44U5VKNJ.js} +3 -3
  5. package/dist/chunks/{chunk.V3UXMJRA.js → chunk.4EWYZIJS.js} +2 -2
  6. package/dist/chunks/{chunk.OEII5257.js → chunk.4EXY5F5M.js} +2 -2
  7. package/dist/chunks/{chunk.4XAK6MOQ.js → chunk.6PFQSQLU.js} +2 -2
  8. package/dist/chunks/chunk.7W73A57K.js +108 -0
  9. package/dist/chunks/chunk.7W73A57K.js.map +7 -0
  10. package/dist/chunks/{chunk.BBI3HWRM.js → chunk.ADE7GDYK.js} +3 -3
  11. package/dist/chunks/{chunk.5D2VBXTP.js → chunk.AFVZYX7H.js} +2 -2
  12. package/dist/chunks/chunk.CAIB544F.js +12 -0
  13. package/dist/chunks/chunk.CAIB544F.js.map +7 -0
  14. package/dist/chunks/{chunk.7ODKEYK3.js → chunk.CB2M3AVU.js} +2 -2
  15. package/dist/chunks/{chunk.43IE6Z7Q.js → chunk.D5YL3H6T.js} +2 -2
  16. package/dist/chunks/{chunk.ICDHGCRE.js → chunk.E2TU3YYJ.js} +2 -2
  17. package/dist/chunks/{chunk.GNAJOKCJ.js → chunk.EJXWL3JM.js} +4 -2
  18. package/dist/chunks/{chunk.GNAJOKCJ.js.map → chunk.EJXWL3JM.js.map} +2 -2
  19. package/dist/chunks/chunk.ESQOUQV3.js +75 -0
  20. package/dist/chunks/chunk.ESQOUQV3.js.map +7 -0
  21. package/dist/chunks/{chunk.EXMVZ32W.js → chunk.FHYBGERU.js} +2 -2
  22. package/dist/chunks/{chunk.7LGURT5X.js → chunk.JRAW7QJL.js} +2 -2
  23. package/dist/chunks/{chunk.A7ZVGGIT.js → chunk.L6I5ZLBO.js} +3 -3
  24. package/dist/chunks/{chunk.JSGAT7FF.js → chunk.MJC7VLA2.js} +2 -2
  25. package/dist/chunks/{chunk.L6QCO373.js → chunk.MUP4GIQL.js} +2 -2
  26. package/dist/chunks/{chunk.JEEPLCYY.js → chunk.NRA7I7QC.js} +4 -4
  27. package/dist/chunks/{chunk.EEG4VWBU.js → chunk.Q7NHWXSL.js} +2 -2
  28. package/dist/chunks/chunk.QHFGD6WW.js +73 -0
  29. package/dist/chunks/chunk.QHFGD6WW.js.map +7 -0
  30. package/dist/chunks/{chunk.5DHO22JT.js → chunk.RG4Z2I6D.js} +3 -3
  31. package/dist/chunks/{chunk.7NADL2IT.js → chunk.RKQHPBKM.js} +3 -3
  32. package/dist/chunks/{chunk.CIYOYCTY.js → chunk.SEHRSICV.js} +2 -2
  33. package/dist/chunks/{chunk.S424QLI7.js → chunk.SPPBO7QV.js} +2 -2
  34. package/dist/chunks/{chunk.S424QLI7.js.map → chunk.SPPBO7QV.js.map} +1 -1
  35. package/dist/chunks/{chunk.QP2S2MDN.js → chunk.TACOOH3N.js} +2 -2
  36. package/dist/chunks/{chunk.6WUVZQ3H.js → chunk.VTYPMAXM.js} +2 -2
  37. package/dist/chunks/{chunk.UU5CELZK.js → chunk.ZGZ7W6BC.js} +2 -2
  38. package/dist/components/button/button.component.js +6 -6
  39. package/dist/components/button/button.js +7 -7
  40. package/dist/components/button-group/button-group.component.js +2 -2
  41. package/dist/components/button-group/button-group.js +3 -3
  42. package/dist/components/checkbox/checkbox.component.js +5 -5
  43. package/dist/components/checkbox/checkbox.js +6 -6
  44. package/dist/components/icon/icon.component.js +4 -4
  45. package/dist/components/icon/icon.js +5 -5
  46. package/dist/components/icon/library.js +2 -2
  47. package/dist/components/icon/library.system.js +1 -1
  48. package/dist/components/icon-button/icon-button.component.js +5 -5
  49. package/dist/components/icon-button/icon-button.js +6 -6
  50. package/dist/components/input/input.component.js +5 -5
  51. package/dist/components/input/input.js +6 -6
  52. package/dist/components/radio/radio.component.js +5 -5
  53. package/dist/components/radio/radio.js +6 -6
  54. package/dist/components/radio-button/radio-button.component.js +2 -2
  55. package/dist/components/radio-button/radio-button.js +3 -3
  56. package/dist/components/radio-group/radio-group.component.js +3 -3
  57. package/dist/components/radio-group/radio-group.js +4 -4
  58. package/dist/components/spinner/spinner.component.js +2 -2
  59. package/dist/components/switch/switch.component.js +2 -2
  60. package/dist/components/switch/switch.js +3 -3
  61. package/dist/components/tag/tag.component.d.ts +33 -0
  62. package/dist/components/tag/tag.component.js +25 -0
  63. package/dist/components/tag/tag.component.js.map +7 -0
  64. package/dist/components/tag/tag.custom.styles.d.ts +2 -0
  65. package/dist/components/tag/tag.custom.styles.js +8 -0
  66. package/dist/components/tag/tag.custom.styles.js.map +7 -0
  67. package/dist/components/tag/tag.d.ts +8 -0
  68. package/dist/components/tag/tag.js +26 -0
  69. package/dist/components/tag/tag.js.map +7 -0
  70. package/dist/components/tag/tag.styles.d.ts +2 -0
  71. package/dist/components/tag/tag.styles.js +10 -0
  72. package/dist/components/tag/tag.styles.js.map +7 -0
  73. package/dist/components/textarea/textarea.component.js +2 -2
  74. package/dist/components/textarea/textarea.js +3 -3
  75. package/dist/custom-elements.json +273 -141
  76. package/dist/events/events.d.ts +1 -0
  77. package/dist/events/syn-remove.d.ts +6 -0
  78. package/dist/synergy.d.ts +1 -0
  79. package/dist/synergy.js +37 -30
  80. package/dist/utilities/icon-library.js +2 -2
  81. package/dist/vscode.html-custom-data.json +43 -17
  82. package/dist/web-types.json +77 -30
  83. package/package.json +2 -1
  84. /package/dist/chunks/{chunk.RAJNSJOZ.js.map → chunk.2OYZUDFV.js.map} +0 -0
  85. /package/dist/chunks/{chunk.OVS5OKTW.js.map → chunk.3CSVGX3J.js.map} +0 -0
  86. /package/dist/chunks/{chunk.P3EPUBB3.js.map → chunk.44U5VKNJ.js.map} +0 -0
  87. /package/dist/chunks/{chunk.V3UXMJRA.js.map → chunk.4EWYZIJS.js.map} +0 -0
  88. /package/dist/chunks/{chunk.OEII5257.js.map → chunk.4EXY5F5M.js.map} +0 -0
  89. /package/dist/chunks/{chunk.4XAK6MOQ.js.map → chunk.6PFQSQLU.js.map} +0 -0
  90. /package/dist/chunks/{chunk.BBI3HWRM.js.map → chunk.ADE7GDYK.js.map} +0 -0
  91. /package/dist/chunks/{chunk.5D2VBXTP.js.map → chunk.AFVZYX7H.js.map} +0 -0
  92. /package/dist/chunks/{chunk.7ODKEYK3.js.map → chunk.CB2M3AVU.js.map} +0 -0
  93. /package/dist/chunks/{chunk.43IE6Z7Q.js.map → chunk.D5YL3H6T.js.map} +0 -0
  94. /package/dist/chunks/{chunk.ICDHGCRE.js.map → chunk.E2TU3YYJ.js.map} +0 -0
  95. /package/dist/chunks/{chunk.EXMVZ32W.js.map → chunk.FHYBGERU.js.map} +0 -0
  96. /package/dist/chunks/{chunk.7LGURT5X.js.map → chunk.JRAW7QJL.js.map} +0 -0
  97. /package/dist/chunks/{chunk.A7ZVGGIT.js.map → chunk.L6I5ZLBO.js.map} +0 -0
  98. /package/dist/chunks/{chunk.JSGAT7FF.js.map → chunk.MJC7VLA2.js.map} +0 -0
  99. /package/dist/chunks/{chunk.L6QCO373.js.map → chunk.MUP4GIQL.js.map} +0 -0
  100. /package/dist/chunks/{chunk.JEEPLCYY.js.map → chunk.NRA7I7QC.js.map} +0 -0
  101. /package/dist/chunks/{chunk.EEG4VWBU.js.map → chunk.Q7NHWXSL.js.map} +0 -0
  102. /package/dist/chunks/{chunk.5DHO22JT.js.map → chunk.RG4Z2I6D.js.map} +0 -0
  103. /package/dist/chunks/{chunk.7NADL2IT.js.map → chunk.RKQHPBKM.js.map} +0 -0
  104. /package/dist/chunks/{chunk.CIYOYCTY.js.map → chunk.SEHRSICV.js.map} +0 -0
  105. /package/dist/chunks/{chunk.QP2S2MDN.js.map → chunk.TACOOH3N.js.map} +0 -0
  106. /package/dist/chunks/{chunk.6WUVZQ3H.js.map → chunk.VTYPMAXM.js.map} +0 -0
  107. /package/dist/chunks/{chunk.UU5CELZK.js.map → chunk.ZGZ7W6BC.js.map} +0 -0
@@ -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.",
@@ -682,6 +682,32 @@
682
682
  }
683
683
  ]
684
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
+ },
685
711
  {
686
712
  "name": "syn-textarea",
687
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.",
@@ -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.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.",
@@ -1436,6 +1436,53 @@
1436
1436
  ]
1437
1437
  }
1438
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
+ },
1439
1486
  {
1440
1487
  "name": "syn-textarea",
1441
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.",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://www.sick.com"
5
5
  },
6
6
  "name": "@synergy-design-system/components",
7
- "version": "1.1.0",
7
+ "version": "1.2.0",
8
8
  "description": "",
9
9
  "repository": {
10
10
  "type": "git",
@@ -168,6 +168,7 @@
168
168
  "lint:css": "stylelint \"src/**/*.{css,js,ts}\"",
169
169
  "lint:js": "eslint src",
170
170
  "lint": "pnpm run /^lint:.*/",
171
+ "format.eslint": "pnpm lint:js --fix",
171
172
  "release": "semantic-release --tagFormat 'components/${version}' -e semantic-release-monorepo",
172
173
  "release.angular": "git add ../angular && git commit -m \"chore(release/angular) via component release [skip actions]\"",
173
174
  "release.react": "git add ../react && git commit -m \"chore(release/react) via component release [skip actions]\"",