@synergy-design-system/components 0.1.0 → 1.0.0-main.2

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 (80) hide show
  1. package/package.json +29 -10
  2. package/dist/chunks/chunk.2A3352EO.js +0 -10
  3. package/dist/chunks/chunk.2CFEYJLE.js +0 -29
  4. package/dist/chunks/chunk.2DA7CIOQ.js +0 -44
  5. package/dist/chunks/chunk.4NMNW5OM.js +0 -22
  6. package/dist/chunks/chunk.7XI5LKCC.js +0 -14
  7. package/dist/chunks/chunk.HQUF2ZAX.js +0 -62
  8. package/dist/chunks/chunk.HSF5YXAS.js +0 -294
  9. package/dist/chunks/chunk.KHU4AFPL.js +0 -11
  10. package/dist/chunks/chunk.MAS2SHYD.js +0 -41
  11. package/dist/chunks/chunk.NBKDLFEY.js +0 -201
  12. package/dist/chunks/chunk.O3LUPMYG.js +0 -372
  13. package/dist/chunks/chunk.PM7NIY3M.js +0 -35
  14. package/dist/chunks/chunk.Q5SD5LHE.js +0 -607
  15. package/dist/chunks/chunk.QPNUJNT5.js +0 -70
  16. package/dist/chunks/chunk.SVIWEI6P.js +0 -27
  17. package/dist/chunks/chunk.VRTJZYIC.js +0 -127
  18. package/dist/chunks/chunk.XVEDHRRP.js +0 -500
  19. package/dist/chunks/chunk.Y5USHY74.js +0 -31
  20. package/dist/chunks/chunk.Z6AW3P62.js +0 -317
  21. package/dist/components/button/button.component.d.ts +0 -132
  22. package/dist/components/button/button.component.js +0 -21
  23. package/dist/components/button/button.d.ts +0 -8
  24. package/dist/components/button/button.js +0 -25
  25. package/dist/components/button/button.styles.d.ts +0 -2
  26. package/dist/components/button/button.styles.js +0 -8
  27. package/dist/components/icon/icon.component.d.ts +0 -42
  28. package/dist/components/icon/icon.component.js +0 -14
  29. package/dist/components/icon/icon.d.ts +0 -8
  30. package/dist/components/icon/icon.js +0 -18
  31. package/dist/components/icon/icon.styles.d.ts +0 -2
  32. package/dist/components/icon/icon.styles.js +0 -8
  33. package/dist/components/icon/library.d.ts +0 -19
  34. package/dist/components/icon/library.default.d.ts +0 -3
  35. package/dist/components/icon/library.default.js +0 -8
  36. package/dist/components/icon/library.js +0 -18
  37. package/dist/components/icon/library.system.d.ts +0 -3
  38. package/dist/components/icon/library.system.js +0 -7
  39. package/dist/components/input/input.component.d.ts +0 -179
  40. package/dist/components/input/input.component.js +0 -19
  41. package/dist/components/input/input.d.ts +0 -8
  42. package/dist/components/input/input.js +0 -20
  43. package/dist/components/input/input.styles.d.ts +0 -2
  44. package/dist/components/input/input.styles.js +0 -8
  45. package/dist/components/spinner/spinner.component.d.ts +0 -20
  46. package/dist/components/spinner/spinner.component.js +0 -12
  47. package/dist/components/spinner/spinner.styles.d.ts +0 -2
  48. package/dist/components/spinner/spinner.styles.js +0 -8
  49. package/dist/custom-elements.json +0 -1967
  50. package/dist/events/events.d.ts +0 -8
  51. package/dist/events/syn-blur.d.ts +0 -6
  52. package/dist/events/syn-change.d.ts +0 -6
  53. package/dist/events/syn-clear.d.ts +0 -6
  54. package/dist/events/syn-error.d.ts +0 -8
  55. package/dist/events/syn-focus.d.ts +0 -6
  56. package/dist/events/syn-input.d.ts +0 -6
  57. package/dist/events/syn-invalid.d.ts +0 -6
  58. package/dist/events/syn-load.d.ts +0 -6
  59. package/dist/internal/default-value.d.ts +0 -2
  60. package/dist/internal/form.d.ts +0 -73
  61. package/dist/internal/slot.d.ts +0 -23
  62. package/dist/internal/synergy-element.d.ts +0 -47
  63. package/dist/internal/test/form-control-base-tests.d.ts +0 -7
  64. package/dist/internal/watch.d.ts +0 -26
  65. package/dist/styles/component.styles.d.ts +0 -2
  66. package/dist/styles/form-control.styles.d.ts +0 -2
  67. package/dist/synergy-autoloader.d.ts +0 -4
  68. package/dist/synergy-autoloader.js +0 -40
  69. package/dist/synergy.d.ts +0 -2
  70. package/dist/synergy.js +0 -20
  71. package/dist/translations/de.d.ts +0 -3
  72. package/dist/translations/de.js +0 -45
  73. package/dist/translations/en.d.ts +0 -3
  74. package/dist/translations/en.js +0 -7
  75. package/dist/utilities/base-path.d.ts +0 -18
  76. package/dist/utilities/base-path.js +0 -9
  77. package/dist/utilities/localize.d.ts +0 -33
  78. package/dist/utilities/localize.js +0 -10
  79. package/dist/vscode.html-custom-data.json +0 -400
  80. package/dist/web-types.json +0 -790
@@ -1,400 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
- "version": 1.1,
4
- "tags": [
5
- {
6
- "name": "syn-button",
7
- "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.",
8
- "attributes": [
9
- { "name": "title", "values": [] },
10
- {
11
- "name": "variant",
12
- "description": "The button's theme variant.",
13
- "values": [
14
- { "name": "default" },
15
- { "name": "primary" },
16
- { "name": "success" },
17
- { "name": "neutral" },
18
- { "name": "warning" },
19
- { "name": "danger" },
20
- { "name": "text" }
21
- ]
22
- },
23
- {
24
- "name": "size",
25
- "description": "The button's size.",
26
- "values": [
27
- { "name": "small" },
28
- { "name": "medium" },
29
- { "name": "large" }
30
- ]
31
- },
32
- {
33
- "name": "caret",
34
- "description": "Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior.",
35
- "values": []
36
- },
37
- {
38
- "name": "disabled",
39
- "description": "Disables the button.",
40
- "values": []
41
- },
42
- {
43
- "name": "loading",
44
- "description": "Draws the button in a loading state.",
45
- "values": []
46
- },
47
- {
48
- "name": "outline",
49
- "description": "Draws an outlined button.",
50
- "values": []
51
- },
52
- {
53
- "name": "pill",
54
- "description": "Draws a pill-style button with rounded edges.",
55
- "values": []
56
- },
57
- {
58
- "name": "circle",
59
- "description": "Draws a circular icon button. When this attribute is present, the button expects a single `<syn-icon>` in the\ndefault slot.",
60
- "values": []
61
- },
62
- {
63
- "name": "type",
64
- "description": "The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.",
65
- "values": [
66
- { "name": "button" },
67
- { "name": "submit" },
68
- { "name": "reset" }
69
- ]
70
- },
71
- {
72
- "name": "name",
73
- "description": "The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\nThis attribute is ignored when `href` is present.",
74
- "values": []
75
- },
76
- {
77
- "name": "value",
78
- "description": "The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\nbutton is the submitter. This attribute is ignored when `href` is present.",
79
- "values": []
80
- },
81
- {
82
- "name": "href",
83
- "description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
84
- "values": []
85
- },
86
- {
87
- "name": "target",
88
- "description": "Tells the browser where to open the link. Only used when `href` is present.",
89
- "values": [
90
- { "name": "_blank" },
91
- { "name": "_parent" },
92
- { "name": "_self" },
93
- { "name": "_top" }
94
- ]
95
- },
96
- {
97
- "name": "rel",
98
- "description": "When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\ndefault is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\nspecific tab/window, this will prevent that from working correctly. You can remove or change the default value by\nsetting the attribute to an empty string or a value of your choice, respectively.",
99
- "values": []
100
- },
101
- {
102
- "name": "download",
103
- "description": "Tells the browser to download the linked file as this filename. Only used when `href` is present.",
104
- "values": []
105
- },
106
- {
107
- "name": "form",
108
- "description": "The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.",
109
- "values": []
110
- },
111
- {
112
- "name": "formaction",
113
- "description": "Used to override the form owner's `action` attribute.",
114
- "values": []
115
- },
116
- {
117
- "name": "formenctype",
118
- "description": "Used to override the form owner's `enctype` attribute.",
119
- "values": [
120
- { "name": "application/x-www-form-urlencoded" },
121
- { "name": "multipart/form-data" },
122
- { "name": "text/plain" }
123
- ]
124
- },
125
- {
126
- "name": "formmethod",
127
- "description": "Used to override the form owner's `method` attribute.",
128
- "values": [{ "name": "post" }, { "name": "get" }]
129
- },
130
- {
131
- "name": "formnovalidate",
132
- "description": "Used to override the form owner's `novalidate` attribute.",
133
- "values": []
134
- },
135
- {
136
- "name": "formtarget",
137
- "description": "Used to override the form owner's `target` attribute.",
138
- "values": [
139
- { "name": "_self" },
140
- { "name": "_blank" },
141
- { "name": "_parent" },
142
- { "name": "_top" }
143
- ]
144
- }
145
- ],
146
- "references": [
147
- {
148
- "name": "Documentation",
149
- "url": "https://synergy.style/components/button"
150
- }
151
- ]
152
- },
153
- {
154
- "name": "syn-icon",
155
- "description": "Icons are symbols that can be used to represent various options within an application.\n---\n\n\n### **Events:**\n - **syn-load** - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.\n- **syn-error** - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.\n\n### **CSS Parts:**\n - **svg** - The internal SVG element.\n- **use** - The <use> element generated when using `spriteSheet: true`",
156
- "attributes": [
157
- {
158
- "name": "name",
159
- "description": "The name of the icon to draw. Available names depend on the icon library being used.",
160
- "values": []
161
- },
162
- {
163
- "name": "src",
164
- "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.",
165
- "values": []
166
- },
167
- {
168
- "name": "label",
169
- "description": "An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and\nignored by assistive devices.",
170
- "values": []
171
- },
172
- {
173
- "name": "library",
174
- "description": "The name of a registered custom icon library.",
175
- "values": []
176
- }
177
- ],
178
- "references": [
179
- {
180
- "name": "Documentation",
181
- "url": "https://synergy.style/components/icon"
182
- }
183
- ]
184
- },
185
- {
186
- "name": "syn-input",
187
- "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.",
188
- "attributes": [
189
- { "name": "title", "values": [] },
190
- {
191
- "name": "type",
192
- "description": "The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\nto `text`.",
193
- "values": [
194
- { "name": "" },
195
- { "name": "date" },
196
- { "name": "datetime-local" },
197
- { "name": "email" },
198
- { "name": "number" },
199
- { "name": "password" },
200
- { "name": "search" },
201
- { "name": "tel" },
202
- { "name": "text" },
203
- { "name": "time" },
204
- { "name": "url" }
205
- ]
206
- },
207
- {
208
- "name": "name",
209
- "description": "The name of the input, submitted as a name/value pair with form data.",
210
- "values": []
211
- },
212
- {
213
- "name": "value",
214
- "description": "The current value of the input, submitted as a name/value pair with form data.",
215
- "values": []
216
- },
217
- {
218
- "name": "size",
219
- "description": "The input's size.",
220
- "values": [
221
- { "name": "small" },
222
- { "name": "medium" },
223
- { "name": "large" }
224
- ]
225
- },
226
- {
227
- "name": "filled",
228
- "description": "Draws a filled input.",
229
- "values": []
230
- },
231
- {
232
- "name": "pill",
233
- "description": "Draws a pill-style input with rounded edges.",
234
- "values": []
235
- },
236
- {
237
- "name": "label",
238
- "description": "The input's label. If you need to display HTML, use the `label` slot instead.",
239
- "values": []
240
- },
241
- {
242
- "name": "help-text",
243
- "description": "The input's help text. If you need to display HTML, use the `help-text` slot instead.",
244
- "values": []
245
- },
246
- {
247
- "name": "clearable",
248
- "description": "Adds a clear button when the input is not empty.",
249
- "values": []
250
- },
251
- {
252
- "name": "disabled",
253
- "description": "Disables the input.",
254
- "values": []
255
- },
256
- {
257
- "name": "placeholder",
258
- "description": "Placeholder text to show as a hint when the input is empty.",
259
- "values": []
260
- },
261
- {
262
- "name": "readonly",
263
- "description": "Makes the input readonly.",
264
- "values": []
265
- },
266
- {
267
- "name": "password-toggle",
268
- "description": "Adds a button to toggle the password's visibility. Only applies to password types.",
269
- "values": []
270
- },
271
- {
272
- "name": "password-visible",
273
- "description": "Determines whether or not the password is currently visible. Only applies to password input types.",
274
- "values": []
275
- },
276
- {
277
- "name": "no-spin-buttons",
278
- "description": "Hides the browser's built-in increment/decrement spin buttons for number inputs.",
279
- "values": []
280
- },
281
- {
282
- "name": "form",
283
- "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
284
- "values": []
285
- },
286
- {
287
- "name": "required",
288
- "description": "Makes the input a required field.",
289
- "values": []
290
- },
291
- {
292
- "name": "pattern",
293
- "description": "A regular expression pattern to validate input against.",
294
- "values": []
295
- },
296
- {
297
- "name": "minlength",
298
- "description": "The minimum length of input that will be considered valid.",
299
- "values": []
300
- },
301
- {
302
- "name": "maxlength",
303
- "description": "The maximum length of input that will be considered valid.",
304
- "values": []
305
- },
306
- {
307
- "name": "min",
308
- "description": "The input's minimum value. Only applies to date and number input types.",
309
- "values": []
310
- },
311
- {
312
- "name": "max",
313
- "description": "The input's maximum value. Only applies to date and number input types.",
314
- "values": []
315
- },
316
- {
317
- "name": "step",
318
- "description": "Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is\nimplied, allowing any numeric value. Only applies to date and number input types.",
319
- "values": [{ "name": "any" }]
320
- },
321
- {
322
- "name": "autocapitalize",
323
- "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
324
- "values": [
325
- { "name": "off" },
326
- { "name": "none" },
327
- { "name": "on" },
328
- { "name": "sentences" },
329
- { "name": "words" },
330
- { "name": "characters" }
331
- ]
332
- },
333
- {
334
- "name": "autocorrect",
335
- "description": "Indicates whether the browser's autocorrect feature is on or off.",
336
- "values": [{ "name": "off" }, { "name": "on" }]
337
- },
338
- {
339
- "name": "autocomplete",
340
- "description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
341
- "values": []
342
- },
343
- {
344
- "name": "autofocus",
345
- "description": "Indicates that the input should receive focus on page load.",
346
- "values": []
347
- },
348
- {
349
- "name": "enterkeyhint",
350
- "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
351
- "values": [
352
- { "name": "enter" },
353
- { "name": "done" },
354
- { "name": "go" },
355
- { "name": "next" },
356
- { "name": "previous" },
357
- { "name": "search" },
358
- { "name": "send" }
359
- ]
360
- },
361
- {
362
- "name": "spellcheck",
363
- "description": "Enables spell checking on the input.",
364
- "values": []
365
- },
366
- {
367
- "name": "inputmode",
368
- "description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
369
- "values": [
370
- { "name": "none" },
371
- { "name": "text" },
372
- { "name": "decimal" },
373
- { "name": "numeric" },
374
- { "name": "tel" },
375
- { "name": "search" },
376
- { "name": "email" },
377
- { "name": "url" }
378
- ]
379
- }
380
- ],
381
- "references": [
382
- {
383
- "name": "Documentation",
384
- "url": "https://synergy.style/components/input"
385
- }
386
- ]
387
- },
388
- {
389
- "name": "syn-spinner",
390
- "description": "Spinners are used to show the progress of an indeterminate operation.\n---\n\n\n### **CSS Properties:**\n - **--track-width** - The width of the track. _(default: undefined)_\n- **--track-color** - The color of the track. _(default: undefined)_\n- **--indicator-color** - The color of the spinner's indicator. _(default: undefined)_\n- **--speed** - The time it takes for the spinner to complete one animation cycle. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
391
- "attributes": [],
392
- "references": [
393
- {
394
- "name": "Documentation",
395
- "url": "https://synergy.style/components/spinner"
396
- }
397
- ]
398
- }
399
- ]
400
- }