@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,8 +1,8 @@
1
1
  import {
2
2
  textarea_styles_default
3
- } from "../../chunks/chunk.ZHDLZBQY.js";
4
- import "../../chunks/chunk.YBIBWRKC.js";
3
+ } from "../../chunks/chunk.J44T4LO6.js";
5
4
  import "../../chunks/chunk.VNC7HKGP.js";
5
+ import "../../chunks/chunk.YBIBWRKC.js";
6
6
  import "../../chunks/chunk.O7USYXBT.js";
7
7
  import "../../chunks/chunk.DJOAQ4JU.js";
8
8
  export {
@@ -813,6 +813,438 @@
813
813
  }
814
814
  ]
815
815
  },
816
+ {
817
+ "kind": "javascript-module",
818
+ "path": "components/checkbox/checkbox.js",
819
+ "declarations": [
820
+ {
821
+ "kind": "class",
822
+ "description": "",
823
+ "name": "SynCheckbox",
824
+ "cssParts": [
825
+ {
826
+ "description": "The component's base wrapper.",
827
+ "name": "base"
828
+ },
829
+ {
830
+ "description": "The square container that wraps the checkbox's checked state.",
831
+ "name": "control"
832
+ },
833
+ {
834
+ "description": "Matches the control part when the checkbox is checked.",
835
+ "name": "control--checked"
836
+ },
837
+ {
838
+ "description": "Matches the control part when the checkbox is indeterminate.",
839
+ "name": "control--indeterminate"
840
+ },
841
+ {
842
+ "description": "The checked icon, an `<syn-icon>` element.",
843
+ "name": "checked-icon"
844
+ },
845
+ {
846
+ "description": "The indeterminate icon, an `<syn-icon>` element.",
847
+ "name": "indeterminate-icon"
848
+ },
849
+ {
850
+ "description": "The container that wraps the checkbox's label.",
851
+ "name": "label"
852
+ }
853
+ ],
854
+ "slots": [
855
+ {
856
+ "description": "The checkbox's label.",
857
+ "name": ""
858
+ }
859
+ ],
860
+ "members": [
861
+ {
862
+ "kind": "field",
863
+ "name": "dependencies",
864
+ "type": {
865
+ "text": "object"
866
+ },
867
+ "static": true,
868
+ "default": "{ 'syn-icon': SynIcon }"
869
+ },
870
+ {
871
+ "kind": "field",
872
+ "name": "formControlController",
873
+ "privacy": "private",
874
+ "readonly": true,
875
+ "default": "new FormControlController(this, {\n value: (control: SynCheckbox) => (control.checked ? control.value || 'on' : undefined),\n defaultValue: (control: SynCheckbox) => control.defaultChecked,\n setValue: (control: SynCheckbox, checked: boolean) => (control.checked = checked)\n })"
876
+ },
877
+ {
878
+ "kind": "field",
879
+ "name": "input",
880
+ "type": {
881
+ "text": "HTMLInputElement"
882
+ }
883
+ },
884
+ {
885
+ "kind": "field",
886
+ "name": "hasFocus",
887
+ "type": {
888
+ "text": "boolean"
889
+ },
890
+ "privacy": "private",
891
+ "default": "false"
892
+ },
893
+ {
894
+ "kind": "field",
895
+ "name": "title",
896
+ "type": {
897
+ "text": "string"
898
+ },
899
+ "default": "''",
900
+ "attribute": "title"
901
+ },
902
+ {
903
+ "kind": "field",
904
+ "name": "name",
905
+ "type": {
906
+ "text": "string"
907
+ },
908
+ "default": "''",
909
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
910
+ "attribute": "name"
911
+ },
912
+ {
913
+ "kind": "field",
914
+ "name": "value",
915
+ "type": {
916
+ "text": "string"
917
+ },
918
+ "description": "The current value of the checkbox, submitted as a name/value pair with form data.",
919
+ "attribute": "value"
920
+ },
921
+ {
922
+ "kind": "field",
923
+ "name": "size",
924
+ "type": {
925
+ "text": "'small' | 'medium' | 'large'"
926
+ },
927
+ "default": "'medium'",
928
+ "description": "The checkbox's size.",
929
+ "attribute": "size",
930
+ "reflects": true
931
+ },
932
+ {
933
+ "kind": "field",
934
+ "name": "disabled",
935
+ "type": {
936
+ "text": "boolean"
937
+ },
938
+ "default": "false",
939
+ "description": "Disables the checkbox.",
940
+ "attribute": "disabled",
941
+ "reflects": true
942
+ },
943
+ {
944
+ "kind": "field",
945
+ "name": "checked",
946
+ "type": {
947
+ "text": "boolean"
948
+ },
949
+ "default": "false",
950
+ "description": "Draws the checkbox in a checked state.",
951
+ "attribute": "checked",
952
+ "reflects": true
953
+ },
954
+ {
955
+ "kind": "field",
956
+ "name": "indeterminate",
957
+ "type": {
958
+ "text": "boolean"
959
+ },
960
+ "default": "false",
961
+ "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.",
962
+ "attribute": "indeterminate",
963
+ "reflects": true
964
+ },
965
+ {
966
+ "kind": "field",
967
+ "name": "defaultChecked",
968
+ "type": {
969
+ "text": "boolean"
970
+ },
971
+ "default": "false",
972
+ "description": "The default value of the form control. Primarily used for resetting the form control."
973
+ },
974
+ {
975
+ "kind": "field",
976
+ "name": "form",
977
+ "type": {
978
+ "text": "string"
979
+ },
980
+ "default": "''",
981
+ "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.",
982
+ "attribute": "form",
983
+ "reflects": true
984
+ },
985
+ {
986
+ "kind": "field",
987
+ "name": "required",
988
+ "type": {
989
+ "text": "boolean"
990
+ },
991
+ "default": "false",
992
+ "description": "Makes the checkbox a required field.",
993
+ "attribute": "required",
994
+ "reflects": true
995
+ },
996
+ {
997
+ "kind": "field",
998
+ "name": "validity",
999
+ "description": "Gets the validity state object",
1000
+ "readonly": true
1001
+ },
1002
+ {
1003
+ "kind": "field",
1004
+ "name": "validationMessage",
1005
+ "description": "Gets the validation message",
1006
+ "readonly": true
1007
+ },
1008
+ {
1009
+ "kind": "method",
1010
+ "name": "handleClick",
1011
+ "privacy": "private"
1012
+ },
1013
+ {
1014
+ "kind": "method",
1015
+ "name": "handleBlur",
1016
+ "privacy": "private"
1017
+ },
1018
+ {
1019
+ "kind": "method",
1020
+ "name": "handleInput",
1021
+ "privacy": "private"
1022
+ },
1023
+ {
1024
+ "kind": "method",
1025
+ "name": "handleInvalid",
1026
+ "privacy": "private",
1027
+ "parameters": [
1028
+ {
1029
+ "name": "event",
1030
+ "type": {
1031
+ "text": "Event"
1032
+ }
1033
+ }
1034
+ ]
1035
+ },
1036
+ {
1037
+ "kind": "method",
1038
+ "name": "handleFocus",
1039
+ "privacy": "private"
1040
+ },
1041
+ {
1042
+ "kind": "method",
1043
+ "name": "handleDisabledChange"
1044
+ },
1045
+ {
1046
+ "kind": "method",
1047
+ "name": "handleStateChange"
1048
+ },
1049
+ {
1050
+ "kind": "method",
1051
+ "name": "click",
1052
+ "description": "Simulates a click on the checkbox."
1053
+ },
1054
+ {
1055
+ "kind": "method",
1056
+ "name": "focus",
1057
+ "parameters": [
1058
+ {
1059
+ "name": "options",
1060
+ "optional": true,
1061
+ "type": {
1062
+ "text": "FocusOptions"
1063
+ }
1064
+ }
1065
+ ],
1066
+ "description": "Sets focus on the checkbox."
1067
+ },
1068
+ {
1069
+ "kind": "method",
1070
+ "name": "blur",
1071
+ "description": "Removes focus from the checkbox."
1072
+ },
1073
+ {
1074
+ "kind": "method",
1075
+ "name": "checkValidity",
1076
+ "description": "Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid."
1077
+ },
1078
+ {
1079
+ "kind": "method",
1080
+ "name": "getForm",
1081
+ "return": {
1082
+ "type": {
1083
+ "text": "HTMLFormElement | null"
1084
+ }
1085
+ },
1086
+ "description": "Gets the associated form, if one exists."
1087
+ },
1088
+ {
1089
+ "kind": "method",
1090
+ "name": "reportValidity",
1091
+ "description": "Checks for validity and shows the browser's validation message if the control is invalid."
1092
+ },
1093
+ {
1094
+ "kind": "method",
1095
+ "name": "setCustomValidity",
1096
+ "parameters": [
1097
+ {
1098
+ "name": "message",
1099
+ "type": {
1100
+ "text": "string"
1101
+ }
1102
+ }
1103
+ ],
1104
+ "description": "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."
1105
+ }
1106
+ ],
1107
+ "events": [
1108
+ {
1109
+ "description": "Emitted when the checkbox loses focus.",
1110
+ "name": "syn-blur",
1111
+ "reactName": "onSynBlur",
1112
+ "eventName": "SynBlurEvent"
1113
+ },
1114
+ {
1115
+ "description": "Emitted when the checked state changes.",
1116
+ "name": "syn-change",
1117
+ "reactName": "onSynChange",
1118
+ "eventName": "SynChangeEvent"
1119
+ },
1120
+ {
1121
+ "description": "Emitted when the checkbox gains focus.",
1122
+ "name": "syn-focus",
1123
+ "reactName": "onSynFocus",
1124
+ "eventName": "SynFocusEvent"
1125
+ },
1126
+ {
1127
+ "description": "Emitted when the checkbox receives input.",
1128
+ "name": "syn-input",
1129
+ "reactName": "onSynInput",
1130
+ "eventName": "SynInputEvent"
1131
+ },
1132
+ {
1133
+ "description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied.",
1134
+ "name": "syn-invalid",
1135
+ "reactName": "onSynInvalid",
1136
+ "eventName": "SynInvalidEvent"
1137
+ }
1138
+ ],
1139
+ "attributes": [
1140
+ {
1141
+ "name": "title",
1142
+ "type": {
1143
+ "text": "string"
1144
+ },
1145
+ "default": "''",
1146
+ "fieldName": "title"
1147
+ },
1148
+ {
1149
+ "name": "name",
1150
+ "type": {
1151
+ "text": "string"
1152
+ },
1153
+ "default": "''",
1154
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
1155
+ "fieldName": "name"
1156
+ },
1157
+ {
1158
+ "name": "value",
1159
+ "type": {
1160
+ "text": "string"
1161
+ },
1162
+ "description": "The current value of the checkbox, submitted as a name/value pair with form data.",
1163
+ "fieldName": "value"
1164
+ },
1165
+ {
1166
+ "name": "size",
1167
+ "type": {
1168
+ "text": "'small' | 'medium' | 'large'"
1169
+ },
1170
+ "default": "'medium'",
1171
+ "description": "The checkbox's size.",
1172
+ "fieldName": "size"
1173
+ },
1174
+ {
1175
+ "name": "disabled",
1176
+ "type": {
1177
+ "text": "boolean"
1178
+ },
1179
+ "default": "false",
1180
+ "description": "Disables the checkbox.",
1181
+ "fieldName": "disabled"
1182
+ },
1183
+ {
1184
+ "name": "checked",
1185
+ "type": {
1186
+ "text": "boolean"
1187
+ },
1188
+ "default": "false",
1189
+ "description": "Draws the checkbox in a checked state.",
1190
+ "fieldName": "checked"
1191
+ },
1192
+ {
1193
+ "name": "indeterminate",
1194
+ "type": {
1195
+ "text": "boolean"
1196
+ },
1197
+ "default": "false",
1198
+ "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.",
1199
+ "fieldName": "indeterminate"
1200
+ },
1201
+ {
1202
+ "name": "form",
1203
+ "type": {
1204
+ "text": "string"
1205
+ },
1206
+ "default": "''",
1207
+ "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.",
1208
+ "fieldName": "form"
1209
+ },
1210
+ {
1211
+ "name": "required",
1212
+ "type": {
1213
+ "text": "boolean"
1214
+ },
1215
+ "default": "false",
1216
+ "description": "Makes the checkbox a required field.",
1217
+ "fieldName": "required"
1218
+ }
1219
+ ],
1220
+ "superclass": {
1221
+ "name": "SynergyElement",
1222
+ "module": "/src/internal/synergy-element.js"
1223
+ },
1224
+ "summary": "Checkboxes allow the user to toggle an option on or off.",
1225
+ "tagNameWithoutPrefix": "checkbox",
1226
+ "tagName": "syn-checkbox",
1227
+ "customElement": true,
1228
+ "jsDoc": "/**\n * @summary Checkboxes allow the user to toggle an option on or off.\n * @documentation https://synergy.style/components/checkbox\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The checkbox's label.\n *\n * @event syn-blur - Emitted when the checkbox loses focus.\n * @event syn-change - Emitted when the checked state changes.\n * @event syn-focus - Emitted when the checkbox gains focus.\n * @event syn-input - Emitted when the checkbox receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The square container that wraps the checkbox's checked state.\n * @csspart control--checked - Matches the control part when the checkbox is checked.\n * @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart indeterminate-icon - The indeterminate icon, an `<syn-icon>` element.\n * @csspart label - The container that wraps the checkbox's label.\n */",
1229
+ "documentation": "https://synergy.style/components/checkbox",
1230
+ "status": "stable",
1231
+ "since": "2.0",
1232
+ "dependencies": [
1233
+ "syn-icon"
1234
+ ]
1235
+ }
1236
+ ],
1237
+ "exports": [
1238
+ {
1239
+ "kind": "js",
1240
+ "name": "default",
1241
+ "declaration": {
1242
+ "name": "SynCheckbox",
1243
+ "module": "components/checkbox/checkbox.js"
1244
+ }
1245
+ }
1246
+ ]
1247
+ },
816
1248
  {
817
1249
  "kind": "javascript-module",
818
1250
  "path": "components/input/input.js",
@@ -2614,7 +3046,7 @@
2614
3046
  "package": {
2615
3047
  "name": "@synergy-design-system/components",
2616
3048
  "description": "",
2617
- "version": "1.0.0-main.12",
3049
+ "version": "1.0.0-main.13",
2618
3050
  "author": {
2619
3051
  "name": "SICK Global UX Foundation",
2620
3052
  "url": "https://www.sick.com"
@@ -0,0 +1,28 @@
1
+ /** A testing utility that measures an element's position and clicks on it. */
2
+ export declare function clickOnElement(
3
+ /** The element to click */
4
+ el: Element,
5
+ /** The location of the element to click */
6
+ position?: 'top' | 'right' | 'bottom' | 'left' | 'center',
7
+ /** The horizontal offset to apply to the position when clicking */
8
+ offsetX?: number,
9
+ /** The vertical offset to apply to the position when clicking */
10
+ offsetY?: number): Promise<void>;
11
+ /** A testing utility that moves the mouse onto an element. */
12
+ export declare function moveMouseOnElement(
13
+ /** The element to click */
14
+ el: Element,
15
+ /** The location of the element to click */
16
+ position?: 'top' | 'right' | 'bottom' | 'left' | 'center',
17
+ /** The horizontal offset to apply to the position when clicking */
18
+ offsetX?: number,
19
+ /** The vertical offset to apply to the position when clicking */
20
+ offsetY?: number): Promise<void>;
21
+ /** A testing utility that drags an element with the mouse. */
22
+ export declare function dragElement(
23
+ /** The element to drag */
24
+ el: Element,
25
+ /** The horizontal distance to drag in pixels */
26
+ deltaX?: number,
27
+ /** The vertical distance to drag in pixels */
28
+ deltaY?: number): Promise<void>;
package/dist/synergy.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export { default as SynButton } from './components/button/button.js';
2
+ export { default as SynCheckbox } from './components/checkbox/checkbox.js';
3
+ export { default as SynIcon } from './components/icon/icon.js';
2
4
  export { default as SynInput } from './components/input/input.js';
3
5
  export { default as SynTextarea } from './components/textarea/textarea.js';
4
6
  export * from './utilities/form.js';
package/dist/synergy.js CHANGED
@@ -1,45 +1,56 @@
1
+ import {
2
+ textarea_default
3
+ } from "./chunks/chunk.T5JJNDG6.js";
1
4
  import {
2
5
  getFormControls,
3
6
  serialize
4
7
  } from "./chunks/chunk.WTCUSH7V.js";
5
8
  import {
6
9
  input_default
7
- } from "./chunks/chunk.JNINAWXW.js";
8
- import {
9
- textarea_default
10
- } from "./chunks/chunk.J3QXOBMS.js";
11
- import "./chunks/chunk.DAJKQKPJ.js";
12
- import "./chunks/chunk.ZHDLZBQY.js";
13
- import "./chunks/chunk.YBIBWRKC.js";
14
- import "./chunks/chunk.Y7LUF2FP.js";
15
- import "./chunks/chunk.WFAJR3FN.js";
16
- import "./chunks/chunk.E6TDVDGF.js";
17
- import "./chunks/chunk.VNC7HKGP.js";
10
+ } from "./chunks/chunk.FKB4BI2F.js";
11
+ import "./chunks/chunk.SQTGI355.js";
12
+ import "./chunks/chunk.WANL6A7U.js";
18
13
  import "./chunks/chunk.W46CFM2R.js";
14
+ import "./chunks/chunk.FLF2E2W4.js";
15
+ import "./chunks/chunk.J44T4LO6.js";
16
+ import "./chunks/chunk.VNC7HKGP.js";
17
+ import "./chunks/chunk.YBIBWRKC.js";
18
+ import {
19
+ checkbox_default
20
+ } from "./chunks/chunk.MMNWMRST.js";
21
+ import {
22
+ icon_default
23
+ } from "./chunks/chunk.NXKZDAMQ.js";
19
24
  import {
20
25
  button_default
21
- } from "./chunks/chunk.SMPSHOMU.js";
22
- import "./chunks/chunk.LHABVDZ7.js";
23
- import "./chunks/chunk.ILASEOQC.js";
24
- import "./chunks/chunk.N2I6HVX3.js";
25
- import "./chunks/chunk.XGXFE6IF.js";
26
- import "./chunks/chunk.WDCAHRYG.js";
26
+ } from "./chunks/chunk.TKXG7VM3.js";
27
+ import "./chunks/chunk.7QGGFKPO.js";
28
+ import "./chunks/chunk.KALIQJUH.js";
27
29
  import "./chunks/chunk.R6VNLE6N.js";
28
30
  import "./chunks/chunk.A3SKDWCT.js";
31
+ import "./chunks/chunk.N2I6HVX3.js";
32
+ import "./chunks/chunk.XGXFE6IF.js";
29
33
  import "./chunks/chunk.YTS5TRJZ.js";
30
34
  import "./chunks/chunk.FVSP4LXX.js";
31
- import "./chunks/chunk.I2ZSSHIT.js";
35
+ import "./chunks/chunk.HOGDOKQS.js";
36
+ import "./chunks/chunk.WFAJR3FN.js";
37
+ import "./chunks/chunk.MFFJYORB.js";
38
+ import "./chunks/chunk.WDCAHRYG.js";
39
+ import "./chunks/chunk.LJVC6UEV.js";
32
40
  import "./chunks/chunk.VZ7S7YYN.js";
33
- import "./chunks/chunk.SV25P4HG.js";
41
+ import "./chunks/chunk.UFEBKPYW.js";
34
42
  import "./chunks/chunk.BREU4ILT.js";
35
43
  import "./chunks/chunk.5OIEI73E.js";
36
44
  import "./chunks/chunk.6C4JXZZN.js";
37
45
  import "./chunks/chunk.U7ZJ22QM.js";
38
46
  import "./chunks/chunk.C7624ITA.js";
39
47
  import "./chunks/chunk.O7USYXBT.js";
48
+ import "./chunks/chunk.2XZKXVMR.js";
40
49
  import "./chunks/chunk.DJOAQ4JU.js";
41
50
  export {
42
51
  button_default as SynButton,
52
+ checkbox_default as SynCheckbox,
53
+ icon_default as SynIcon,
43
54
  input_default as SynInput,
44
55
  textarea_default as SynTextarea,
45
56
  getFormControls,
@@ -163,6 +163,63 @@
163
163
  }
164
164
  ]
165
165
  },
166
+ {
167
+ "name": "syn-checkbox",
168
+ "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.",
169
+ "attributes": [
170
+ { "name": "title", "values": [] },
171
+ {
172
+ "name": "name",
173
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
174
+ "values": []
175
+ },
176
+ {
177
+ "name": "value",
178
+ "description": "The current value of the checkbox, submitted as a name/value pair with form data.",
179
+ "values": []
180
+ },
181
+ {
182
+ "name": "size",
183
+ "description": "The checkbox's size.",
184
+ "values": [
185
+ { "name": "small" },
186
+ { "name": "medium" },
187
+ { "name": "large" }
188
+ ]
189
+ },
190
+ {
191
+ "name": "disabled",
192
+ "description": "Disables the checkbox.",
193
+ "values": []
194
+ },
195
+ {
196
+ "name": "checked",
197
+ "description": "Draws the checkbox in a checked state.",
198
+ "values": []
199
+ },
200
+ {
201
+ "name": "indeterminate",
202
+ "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.",
203
+ "values": []
204
+ },
205
+ {
206
+ "name": "form",
207
+ "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.",
208
+ "values": []
209
+ },
210
+ {
211
+ "name": "required",
212
+ "description": "Makes the checkbox a required field.",
213
+ "values": []
214
+ }
215
+ ],
216
+ "references": [
217
+ {
218
+ "name": "Documentation",
219
+ "url": "https://synergy.style/components/checkbox"
220
+ }
221
+ ]
222
+ },
166
223
  {
167
224
  "name": "syn-input",
168
225
  "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.",