@synergy-design-system/components 1.0.0-main.12 → 1.0.0-main.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/chunks/chunk.2XZKXVMR.js +44 -0
  2. package/dist/chunks/chunk.2XZKXVMR.js.map +7 -0
  3. package/dist/chunks/{chunk.LHABVDZ7.js → chunk.7QGGFKPO.js} +10 -10
  4. package/dist/chunks/{chunk.JNINAWXW.js → chunk.FKB4BI2F.js} +2 -2
  5. package/dist/chunks/{chunk.DAJKQKPJ.js → chunk.FLF2E2W4.js} +6 -6
  6. package/dist/chunks/chunk.HOGDOKQS.js +224 -0
  7. package/dist/chunks/chunk.HOGDOKQS.js.map +7 -0
  8. package/dist/chunks/{chunk.ZHDLZBQY.js → chunk.J44T4LO6.js} +4 -4
  9. package/dist/chunks/{chunk.ZHDLZBQY.js.map → chunk.J44T4LO6.js.map} +1 -1
  10. package/dist/chunks/{chunk.ILASEOQC.js → chunk.KALIQJUH.js} +5 -5
  11. package/dist/chunks/{chunk.I2ZSSHIT.js → chunk.LJVC6UEV.js} +2 -2
  12. package/dist/chunks/chunk.MFFJYORB.js +137 -0
  13. package/dist/chunks/chunk.MFFJYORB.js.map +7 -0
  14. package/dist/chunks/chunk.MMNWMRST.js +12 -0
  15. package/dist/chunks/chunk.MMNWMRST.js.map +7 -0
  16. package/dist/chunks/chunk.NXKZDAMQ.js +12 -0
  17. package/dist/chunks/chunk.NXKZDAMQ.js.map +7 -0
  18. package/dist/chunks/{chunk.Y7LUF2FP.js → chunk.SQTGI355.js} +10 -10
  19. package/dist/chunks/{chunk.J3QXOBMS.js → chunk.T5JJNDG6.js} +2 -2
  20. package/dist/chunks/{chunk.SMPSHOMU.js → chunk.TKXG7VM3.js} +2 -2
  21. package/dist/chunks/{chunk.SV25P4HG.js → chunk.UFEBKPYW.js} +2 -2
  22. package/dist/chunks/{chunk.SV25P4HG.js.map → chunk.UFEBKPYW.js.map} +1 -1
  23. package/dist/chunks/{chunk.E6TDVDGF.js → chunk.WANL6A7U.js} +4 -4
  24. package/dist/components/button/button.component.js +7 -7
  25. package/dist/components/button/button.js +8 -8
  26. package/dist/components/checkbox/checkbox.component.d.ts +93 -0
  27. package/dist/components/checkbox/checkbox.component.js +21 -0
  28. package/dist/components/checkbox/checkbox.component.js.map +7 -0
  29. package/dist/components/checkbox/checkbox.custom.styles.js +3 -6
  30. package/dist/components/checkbox/checkbox.custom.styles.js.map +3 -3
  31. package/dist/components/checkbox/checkbox.d.ts +8 -0
  32. package/dist/components/checkbox/checkbox.js +22 -0
  33. package/dist/components/checkbox/checkbox.js.map +7 -0
  34. package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
  35. package/dist/components/checkbox/checkbox.styles.js +10 -0
  36. package/dist/components/checkbox/checkbox.styles.js.map +7 -0
  37. package/dist/components/icon/icon.component.js +2 -2
  38. package/dist/components/icon/icon.js +4 -7
  39. package/dist/components/icon/icon.js.map +3 -3
  40. package/dist/components/input/input.component.js +8 -8
  41. package/dist/components/input/input.js +9 -9
  42. package/dist/components/input/input.styles.js +2 -2
  43. package/dist/components/spinner/spinner.component.js +3 -3
  44. package/dist/components/textarea/textarea.component.js +5 -5
  45. package/dist/components/textarea/textarea.js +6 -6
  46. package/dist/components/textarea/textarea.styles.js +2 -2
  47. package/dist/custom-elements.json +433 -1
  48. package/dist/internal/test.d.ts +28 -0
  49. package/dist/synergy.d.ts +2 -0
  50. package/dist/synergy.js +30 -19
  51. package/dist/vscode.html-custom-data.json +57 -0
  52. package/dist/web-types.json +142 -1
  53. package/package.json +3 -3
  54. /package/dist/chunks/{chunk.LHABVDZ7.js.map → chunk.7QGGFKPO.js.map} +0 -0
  55. /package/dist/chunks/{chunk.JNINAWXW.js.map → chunk.FKB4BI2F.js.map} +0 -0
  56. /package/dist/chunks/{chunk.DAJKQKPJ.js.map → chunk.FLF2E2W4.js.map} +0 -0
  57. /package/dist/chunks/{chunk.ILASEOQC.js.map → chunk.KALIQJUH.js.map} +0 -0
  58. /package/dist/chunks/{chunk.I2ZSSHIT.js.map → chunk.LJVC6UEV.js.map} +0 -0
  59. /package/dist/chunks/{chunk.Y7LUF2FP.js.map → chunk.SQTGI355.js.map} +0 -0
  60. /package/dist/chunks/{chunk.J3QXOBMS.js.map → chunk.T5JJNDG6.js.map} +0 -0
  61. /package/dist/chunks/{chunk.SMPSHOMU.js.map → chunk.TKXG7VM3.js.map} +0 -0
  62. /package/dist/chunks/{chunk.E6TDVDGF.js.map → chunk.WANL6A7U.js.map} +0 -0
@@ -1,7 +1,7 @@
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.0-main.12",
4
+ "version": "1.0.0-main.13",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -326,6 +326,147 @@
326
326
  ]
327
327
  }
328
328
  },
329
+ {
330
+ "name": "syn-checkbox",
331
+ "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.",
332
+ "doc-url": "",
333
+ "attributes": [
334
+ { "name": "title", "value": { "type": "string", "default": "''" } },
335
+ {
336
+ "name": "name",
337
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
338
+ "value": { "type": "string", "default": "''" }
339
+ },
340
+ {
341
+ "name": "value",
342
+ "description": "The current value of the checkbox, submitted as a name/value pair with form data.",
343
+ "value": { "type": "string" }
344
+ },
345
+ {
346
+ "name": "size",
347
+ "description": "The checkbox's size.",
348
+ "value": {
349
+ "type": "'small' | 'medium' | 'large'",
350
+ "default": "'medium'"
351
+ }
352
+ },
353
+ {
354
+ "name": "disabled",
355
+ "description": "Disables the checkbox.",
356
+ "value": { "type": "boolean", "default": "false" }
357
+ },
358
+ {
359
+ "name": "checked",
360
+ "description": "Draws the checkbox in a checked state.",
361
+ "value": { "type": "boolean", "default": "false" }
362
+ },
363
+ {
364
+ "name": "indeterminate",
365
+ "description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
366
+ "value": { "type": "boolean", "default": "false" }
367
+ },
368
+ {
369
+ "name": "form",
370
+ "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.",
371
+ "value": { "type": "string", "default": "''" }
372
+ },
373
+ {
374
+ "name": "required",
375
+ "description": "Makes the checkbox a required field.",
376
+ "value": { "type": "boolean", "default": "false" }
377
+ }
378
+ ],
379
+ "slots": [{ "name": "", "description": "The checkbox's label." }],
380
+ "events": [
381
+ {
382
+ "name": "syn-blur",
383
+ "description": "Emitted when the checkbox loses focus."
384
+ },
385
+ {
386
+ "name": "syn-change",
387
+ "description": "Emitted when the checked state changes."
388
+ },
389
+ {
390
+ "name": "syn-focus",
391
+ "description": "Emitted when the checkbox gains focus."
392
+ },
393
+ {
394
+ "name": "syn-input",
395
+ "description": "Emitted when the checkbox receives input."
396
+ },
397
+ {
398
+ "name": "syn-invalid",
399
+ "description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied."
400
+ }
401
+ ],
402
+ "js": {
403
+ "properties": [
404
+ { "name": "title", "value": { "type": "string" } },
405
+ {
406
+ "name": "name",
407
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
408
+ "value": { "type": "string" }
409
+ },
410
+ {
411
+ "name": "value",
412
+ "description": "The current value of the checkbox, submitted as a name/value pair with form data.",
413
+ "value": { "type": "string" }
414
+ },
415
+ {
416
+ "name": "size",
417
+ "description": "The checkbox's size.",
418
+ "value": { "type": "'small' | 'medium' | 'large'" }
419
+ },
420
+ {
421
+ "name": "disabled",
422
+ "description": "Disables the checkbox.",
423
+ "value": { "type": "boolean" }
424
+ },
425
+ {
426
+ "name": "checked",
427
+ "description": "Draws the checkbox in a checked state.",
428
+ "value": { "type": "boolean" }
429
+ },
430
+ {
431
+ "name": "indeterminate",
432
+ "description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
433
+ "value": { "type": "boolean" }
434
+ },
435
+ {
436
+ "name": "form",
437
+ "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.",
438
+ "value": { "type": "string" }
439
+ },
440
+ {
441
+ "name": "required",
442
+ "description": "Makes the checkbox a required field.",
443
+ "value": { "type": "boolean" }
444
+ }
445
+ ],
446
+ "events": [
447
+ {
448
+ "name": "syn-blur",
449
+ "description": "Emitted when the checkbox loses focus."
450
+ },
451
+ {
452
+ "name": "syn-change",
453
+ "description": "Emitted when the checked state changes."
454
+ },
455
+ {
456
+ "name": "syn-focus",
457
+ "description": "Emitted when the checkbox gains focus."
458
+ },
459
+ {
460
+ "name": "syn-input",
461
+ "description": "Emitted when the checkbox receives input."
462
+ },
463
+ {
464
+ "name": "syn-invalid",
465
+ "description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied."
466
+ }
467
+ ]
468
+ }
469
+ },
329
470
  {
330
471
  "name": "syn-input",
331
472
  "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.",
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.0.0-main.12",
7
+ "version": "1.0.0-main.13",
8
8
  "description": "",
9
9
  "repository": {
10
10
  "type": "git",
@@ -55,6 +55,7 @@
55
55
  "@web/test-runner-commands": "^0.8.1",
56
56
  "@web/test-runner-playwright": "^0.10.1",
57
57
  "chalk": "^5.3.0",
58
+ "change-case": "^4.1.2",
58
59
  "command-line-args": "^5.2.1",
59
60
  "comment-parser": "^1.4.0",
60
61
  "custom-element-jet-brains-integration": "^1.3.1",
@@ -73,7 +74,6 @@
73
74
  "jsdom": "^22.1.0",
74
75
  "ng-packagr": "^17.0.0",
75
76
  "ora": "^7.0.1",
76
- "pascal-case": "^4.0.0",
77
77
  "prettier": "^3.0.3",
78
78
  "remark-parse": "^11.0.0",
79
79
  "semantic-release": "^19.0.5",
@@ -87,7 +87,7 @@
87
87
  "vendorism": "github:mariohamann/vendorism",
88
88
  "@synergy-design-system/eslint-config-syn": "0.1.0",
89
89
  "@synergy-design-system/stylelint-config-syn": "0.1.0",
90
- "@synergy-design-system/tokens": "1.0.0-main.9"
90
+ "@synergy-design-system/tokens": "1.0.0-main.11"
91
91
  },
92
92
  "release": {
93
93
  "branches": [