aria-ease 2.0.2 → 2.1.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 (76) hide show
  1. package/README.md +2 -3
  2. package/bin/audit-cli.cjs +663 -0
  3. package/bin/audit-cli.cjs.map +1 -0
  4. package/bin/audit-cli.d.cts +1 -0
  5. package/bin/audit-cli.d.ts +1 -0
  6. package/bin/audit-cli.js +566 -0
  7. package/bin/audit-cli.js.map +1 -0
  8. package/bin/audit-cli.ts +80 -0
  9. package/dist/Types.d-p85gN5m_.d.cts +22 -0
  10. package/dist/Types.d-p85gN5m_.d.ts +22 -0
  11. package/dist/chunk-4366LRNM.js +38 -0
  12. package/dist/chunk-4366LRNM.js.map +1 -0
  13. package/dist/chunk-5HQ6LLC5.js +21 -0
  14. package/dist/chunk-5HQ6LLC5.js.map +1 -0
  15. package/dist/chunk-FBQ5LF2T.js +21 -0
  16. package/dist/chunk-FBQ5LF2T.js.map +1 -0
  17. package/dist/chunk-KVTLMA4J.js +58 -0
  18. package/dist/chunk-KVTLMA4J.js.map +1 -0
  19. package/dist/chunk-MEA5U2G4.js +24 -0
  20. package/dist/chunk-MEA5U2G4.js.map +1 -0
  21. package/dist/chunk-RK3JUAFZ.js +18 -0
  22. package/dist/chunk-RK3JUAFZ.js.map +1 -0
  23. package/dist/chunk-RT5IROW4.js +99 -0
  24. package/dist/chunk-RT5IROW4.js.map +1 -0
  25. package/dist/index.cjs +6 -55
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +7 -115
  28. package/dist/index.d.ts +7 -115
  29. package/dist/index.js +7 -313
  30. package/dist/index.js.map +1 -1
  31. package/dist/src/accordion/index.cjs +25 -0
  32. package/dist/src/accordion/index.cjs.map +1 -0
  33. package/dist/src/accordion/index.d.cts +13 -0
  34. package/dist/src/accordion/index.d.ts +13 -0
  35. package/dist/src/accordion/index.js +2 -0
  36. package/dist/src/accordion/index.js.map +1 -0
  37. package/dist/src/block/index.cjs +121 -0
  38. package/dist/src/block/index.cjs.map +1 -0
  39. package/dist/src/block/index.d.cts +8 -0
  40. package/dist/src/block/index.d.ts +8 -0
  41. package/dist/src/block/index.js +3 -0
  42. package/dist/src/block/index.js.map +1 -0
  43. package/dist/src/checkbox/index.cjs +19 -0
  44. package/dist/src/checkbox/index.cjs.map +1 -0
  45. package/dist/src/checkbox/index.d.cts +13 -0
  46. package/dist/src/checkbox/index.d.ts +13 -0
  47. package/dist/src/checkbox/index.js +2 -0
  48. package/dist/src/checkbox/index.js.map +1 -0
  49. package/dist/src/menu/index.cjs +155 -0
  50. package/dist/src/menu/index.cjs.map +1 -0
  51. package/dist/src/menu/index.d.cts +17 -0
  52. package/dist/src/menu/index.d.ts +17 -0
  53. package/dist/src/menu/index.js +3 -0
  54. package/dist/src/menu/index.js.map +1 -0
  55. package/dist/src/radio/index.cjs +22 -0
  56. package/dist/src/radio/index.cjs.map +1 -0
  57. package/dist/src/radio/index.d.cts +13 -0
  58. package/dist/src/radio/index.d.ts +13 -0
  59. package/dist/src/radio/index.js +2 -0
  60. package/dist/src/radio/index.js.map +1 -0
  61. package/dist/src/toggle/index.cjs +22 -0
  62. package/dist/src/toggle/index.cjs.map +1 -0
  63. package/dist/src/toggle/index.d.cts +13 -0
  64. package/dist/src/toggle/index.d.ts +13 -0
  65. package/dist/src/toggle/index.js +2 -0
  66. package/dist/src/toggle/index.js.map +1 -0
  67. package/dist/src/utils/audit/audit.cjs +208 -0
  68. package/dist/src/utils/audit/audit.cjs.map +1 -0
  69. package/dist/src/utils/audit/audit.d.cts +5 -0
  70. package/dist/src/utils/audit/audit.d.ts +5 -0
  71. package/dist/src/utils/audit/audit.js +201 -0
  72. package/dist/src/utils/audit/audit.js.map +1 -0
  73. package/package.json +46 -4
  74. package/dist/index.d.mts +0 -140
  75. package/dist/index.mjs +0 -110
  76. package/dist/index.mjs.map +0 -1
package/dist/index.d.mts DELETED
@@ -1,140 +0,0 @@
1
- declare global {
2
- type HTMLElement = Element;
3
- type NodeListOf<HTMLElement> = Iterable<HTMLElement>;
4
- }
5
-
6
- interface AccordionStates {
7
- display: boolean;
8
- openedAriaLabel: string;
9
- closedAriaLabel: string;
10
- }
11
-
12
- interface CheckboxStates {
13
- checked: boolean;
14
- checkedAriaLabel: string;
15
- uncheckedAriaLabel: string;
16
- }
17
-
18
- interface RadioStates {
19
- checked: boolean;
20
- }
21
-
22
- interface ToggleStates {
23
- pressed: boolean;
24
- }
25
-
26
- /**
27
- * Adds screen reader accessibility to accordions. Updates the aria attributes of the accordion trigger button. Trigger button element must possess the following aria attributes; aria-expanded and aria-label.
28
- * @param {AccordionStates[]} accordionStates Array of objects containing accordions state information
29
- * @param {string} accordionsClass The shared class of all the accordion triggers
30
- * @param {number} currentClickedTriggerIndex Index of the currently clicked accordion trigger
31
- */
32
-
33
- declare function updateAccordionTriggerAriaAttributes(accordionStates: AccordionStates[], accordionsClass: string, currentClickedTriggerIndex: number): void;
34
-
35
- declare const index$5_updateAccordionTriggerAriaAttributes: typeof updateAccordionTriggerAriaAttributes;
36
- declare namespace index$5 {
37
- export { index$5_updateAccordionTriggerAriaAttributes as updateAccordionTriggerAriaAttributes };
38
- }
39
-
40
- /**
41
- * Adds keyboard interaction to block. The block traps focus and can be interacted with using the keyboard.
42
- * @param {string} blockId The id of the block
43
- * @param {string} blockItemsClass The shared class of the items that are children of thes block
44
- */
45
- declare function makeBlockAccessible(blockId: string, blockItemsClass: string): void;
46
-
47
- declare const index$4_makeBlockAccessible: typeof makeBlockAccessible;
48
- declare namespace index$4 {
49
- export { index$4_makeBlockAccessible as makeBlockAccessible };
50
- }
51
-
52
- /**
53
- * Adds screen reader accessibility to a single checkbox. Updates the aria attributes of the checkbox. Checkbox element must possess the following aria attributes; aria-checked and aria-label.
54
- * @param {string} checkboxClass The shared class of all the checkboxes
55
- * @param {string} updatedAriaLabel The aria label to be updated to checkbox element
56
- */
57
- declare function updateSingleCheckboxAriaAttributes(checkboxClass: string, updatedAriaLabel: string): void;
58
-
59
- /**
60
- * Adds screen reader accessibility to multiple checkboxes. Updates the aria attributes of the checkboxes. Checkbox elements must possess the following aria attributes; aria-checked and aria-label.
61
- * @param {CheckboxStates[]} checkboxStates Array of objects containing checkboxes state information
62
- * @param {string} checkboxesClass The shared class of all the checkboxes
63
- * @param {number} currentPressedCheckboxIndex Index of the currently checked or unchecked checkbox
64
- */
65
-
66
- declare function updateGroupCheckboxesAriaAttributes(checkboxStates: CheckboxStates[], checkboxesClass: string, currentPressedCheckboxIndex: number): void;
67
-
68
- declare const index$3_updateGroupCheckboxesAriaAttributes: typeof updateGroupCheckboxesAriaAttributes;
69
- declare const index$3_updateSingleCheckboxAriaAttributes: typeof updateSingleCheckboxAriaAttributes;
70
- declare namespace index$3 {
71
- export { index$3_updateGroupCheckboxesAriaAttributes as updateGroupCheckboxesAriaAttributes, index$3_updateSingleCheckboxAriaAttributes as updateSingleCheckboxAriaAttributes };
72
- }
73
-
74
- declare function cleanUpMenuEventListeners(menuId: string, menuItemsClass: string): void;
75
-
76
- /**
77
- * Adds keyboard interaction to toggle menu. The menu traps focus and can be interacted with using the keyboard. The first item of the menu has focus when menu appears.
78
- * @param {string} menuId The id of the menu
79
- * @param {string} menuItemsClass The shared class of the items that are children of the menu
80
- */
81
- declare function makeMenuAccessible(menuId: string, menuItemsClass: string): void;
82
-
83
- /**
84
- * Adds screen reader accessibility to menus. Updates the aria attributes of the menu trigger button. Trigger button element must possess the following aria attributes; aria-expanded and aria-label.
85
- * @param {string} triggerId The id of the trigger button that toggles the menu
86
- * @param {string} ariaLabel The aria label to be updated to trigger element
87
- */
88
- declare function updateMenuTriggerAriaAttributes(triggerId: string, ariaLabel: string): void;
89
-
90
- declare const index$2_cleanUpMenuEventListeners: typeof cleanUpMenuEventListeners;
91
- declare const index$2_makeMenuAccessible: typeof makeMenuAccessible;
92
- declare const index$2_updateMenuTriggerAriaAttributes: typeof updateMenuTriggerAriaAttributes;
93
- declare namespace index$2 {
94
- export { index$2_cleanUpMenuEventListeners as cleanUpMenuEventListeners, index$2_makeMenuAccessible as makeMenuAccessible, index$2_updateMenuTriggerAriaAttributes as updateMenuTriggerAriaAttributes };
95
- }
96
-
97
- /**
98
- * Adds screen reader accessibility to single radio button. Updates the aria attribute of the radio button. Radio element must possess the following aria attributes; aria-checked and aria-label.
99
- * @param {string} radioClass The class of the radio button
100
- * @param {string} updatedAriaLabel The aria label to be updated to button element
101
- */
102
- declare function updateSingleRadioAriaAttributes(radioClass: string): void;
103
-
104
- /**
105
- * Adds screen reader accessibility to multiple radio buttons. Updates the aria attributes of the radio buttons. Radio elements must possess the following aria attributes; aria-checked and aria-label.
106
- * @param {RadioStates[]} radioStates Array of objects containing radio buttons state information
107
- * @param {string} radiosClass The shared class of all the radio buttons
108
- * @param {number} currentPressedRadioIndex Index of the currently checked or unchecked radio button
109
- */
110
-
111
- declare function updateGroupRadiosAriaAttributes(radioStates: RadioStates[], radiosClass: string, currentPressedRadioIndex: number): void;
112
-
113
- declare const index$1_updateGroupRadiosAriaAttributes: typeof updateGroupRadiosAriaAttributes;
114
- declare const index$1_updateSingleRadioAriaAttributes: typeof updateSingleRadioAriaAttributes;
115
- declare namespace index$1 {
116
- export { index$1_updateGroupRadiosAriaAttributes as updateGroupRadiosAriaAttributes, index$1_updateSingleRadioAriaAttributes as updateSingleRadioAriaAttributes };
117
- }
118
-
119
- /**
120
- * Adds screen reader accessibility to a single toggle element. Updates the aria attribute of the toggle element. Toggle element must possess the aria-pressed attribute.
121
- * @param {string} toggleClass The class of all the toggle element
122
- */
123
- declare function updateSingleToggleAriaAttributes(toggleClass: string): void;
124
-
125
- /**
126
- * Adds screen reader accessibility to toggle buttons. Updates the aria attributes of the toggle buttons. Button must be button element with a role of button, and possess the aria-pressed attribute.
127
- * @param {ToggleStates[]} toggleStates Array of objects containing toggle buttons state information
128
- * @param {string} togglesClass The shared class of all the toggle buttons
129
- * @param {number} currentPressedToggleIndex Index of the currently pressed or unpressed toggle button
130
- */
131
-
132
- declare function updateGroupTogglesAriaAttributes(toggleStates: ToggleStates[], togglesClass: string, currentPressedToggleIndex: number): void;
133
-
134
- declare const index_updateGroupTogglesAriaAttributes: typeof updateGroupTogglesAriaAttributes;
135
- declare const index_updateSingleToggleAriaAttributes: typeof updateSingleToggleAriaAttributes;
136
- declare namespace index {
137
- export { index_updateGroupTogglesAriaAttributes as updateGroupTogglesAriaAttributes, index_updateSingleToggleAriaAttributes as updateSingleToggleAriaAttributes };
138
- }
139
-
140
- export { index$5 as Accordion, index$4 as Block, index$3 as Checkbox, index$2 as Menu, index$1 as Radio, index as Toggle };
package/dist/index.mjs DELETED
@@ -1,110 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = function(target, all) {
3
- for(var name in all)__defProp(target, name, {
4
- get: all[name],
5
- enumerable: true
6
- });
7
- };
8
- // src/accordion/index.ts
9
- var accordion_exports = {};
10
- __export(accordion_exports, {
11
- updateAccordionTriggerAriaAttributes: function() {
12
- return updateAccordionTriggerAriaAttributes;
13
- }
14
- });
15
- // src/accordion/src/updateAccordionTriggerAriaAttributes/updateAccordionTriggerAriaAttributes.ts
16
- function updateAccordionTriggerAriaAttributes(accordionStates, accordionsClass, currentClickedTriggerIndex) {
17
- console.log("Accordion updateAccordionTriggerAriaAttributes initiated");
18
- }
19
- // src/block/index.ts
20
- var block_exports = {};
21
- __export(block_exports, {
22
- makeBlockAccessible: function() {
23
- return makeBlockAccessible;
24
- }
25
- });
26
- // src/block/src/makeBlockAccessible/makeBlockAccessible.ts
27
- function makeBlockAccessible(blockId, blockItemsClass) {
28
- console.log("Block makeBlockAccessible initiated");
29
- }
30
- // src/checkbox/index.ts
31
- var checkbox_exports = {};
32
- __export(checkbox_exports, {
33
- updateGroupCheckboxesAriaAttributes: function() {
34
- return updateGroupCheckboxesAriaAttributes;
35
- },
36
- updateSingleCheckboxAriaAttributes: function() {
37
- return updateSingleCheckboxAriaAttributes;
38
- }
39
- });
40
- // src/checkbox/src/single-checkbox/updateSingleCheckboxAriaAttributes/updateSingleCheckboxAriaAttributes.ts
41
- function updateSingleCheckboxAriaAttributes(checkboxClass, updatedAriaLabel) {
42
- console.log("Checkbox updateSingleCheckboxAriaAttributes initiated");
43
- }
44
- // src/checkbox/src/group-checkbox/updateGroupCheckboxesAriaAttributes/updateGroupCheckboxesAriaAttributes.ts
45
- function updateGroupCheckboxesAriaAttributes(checkboxStates, checkboxesClass, currentPressedCheckboxIndex) {
46
- console.log("Checkbox updateGroupCheckboxesAriaAttributes initiated");
47
- }
48
- // src/menu/index.ts
49
- var menu_exports = {};
50
- __export(menu_exports, {
51
- cleanUpMenuEventListeners: function() {
52
- return cleanUpMenuEventListeners;
53
- },
54
- makeMenuAccessible: function() {
55
- return makeMenuAccessible;
56
- },
57
- updateMenuTriggerAriaAttributes: function() {
58
- return updateMenuTriggerAriaAttributes;
59
- }
60
- });
61
- // src/menu/src/cleanUpMenuEventListeners/cleanUpMenuEventListeners.ts
62
- function cleanUpMenuEventListeners(menuId, menuItemsClass) {
63
- console.log("Menu cleanUpMenuEventListeners initiated");
64
- }
65
- // src/menu/src/makeMenuAccessible/makeMenuAccessible.ts
66
- function makeMenuAccessible(menuId, menuItemsClass) {
67
- console.log("Menu makeMenuAccessible initiated");
68
- }
69
- // src/menu/src/updateMenuTriggerAriaAttributes/updateMenuTriggerAriaAttributes.ts
70
- function updateMenuTriggerAriaAttributes(triggerId, ariaLabel) {
71
- console.log("Menu updateMenuTriggerAriaAttributes initiated");
72
- }
73
- // src/radio/index.ts
74
- var radio_exports = {};
75
- __export(radio_exports, {
76
- updateGroupRadiosAriaAttributes: function() {
77
- return updateGroupRadiosAriaAttributes;
78
- },
79
- updateSingleRadioAriaAttributes: function() {
80
- return updateSingleRadioAriaAttributes;
81
- }
82
- });
83
- // src/radio/src/single-radio/updateSingleRadioAriaAttributes.ts
84
- function updateSingleRadioAriaAttributes(radioClass) {
85
- console.log("Radio updateSingleRadioAriaAttributes initiated");
86
- }
87
- // src/radio/src/group-radio/updateGroupRadiosAriaAttributes.ts
88
- function updateGroupRadiosAriaAttributes(radioStates, radiosClass, currentPressedRadioIndex) {
89
- console.log("Radio updateGroupRadiosAriaAttributes initiated");
90
- }
91
- // src/toggle/index.ts
92
- var toggle_exports = {};
93
- __export(toggle_exports, {
94
- updateGroupTogglesAriaAttributes: function() {
95
- return updateGroupTogglesAriaAttributes;
96
- },
97
- updateSingleToggleAriaAttributes: function() {
98
- return updateSingleToggleAriaAttributes;
99
- }
100
- });
101
- // src/toggle/src/single-toggle/updateSingleToggleAriaAttributes.ts
102
- function updateSingleToggleAriaAttributes(toggleClass) {
103
- console.log("Toggle updateSingleToggleAriaAttributes initiated");
104
- }
105
- // src/toggle/src/group-toggle/updateGroupTogglesAriaAttributes.ts
106
- function updateGroupTogglesAriaAttributes(toggleStates, togglesClass, currentPressedToggleIndex) {
107
- console.log("Toggle updateGroupTogglesAriaAttributes initiated");
108
- }
109
- export { accordion_exports as Accordion, block_exports as Block, checkbox_exports as Checkbox, menu_exports as Menu, radio_exports as Radio, toggle_exports as Toggle }; //# sourceMappingURL=index.mjs.map
110
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/Users/macx/aria-ease/package/dist/index.mjs","../src/accordion/index.ts","../src/accordion/src/updateAccordionTriggerAriaAttributes/updateAccordionTriggerAriaAttributes.ts","../src/block/index.ts","../src/block/src/makeBlockAccessible/makeBlockAccessible.ts","../src/checkbox/index.ts","../src/checkbox/src/single-checkbox/updateSingleCheckboxAriaAttributes/updateSingleCheckboxAriaAttributes.ts","../src/checkbox/src/group-checkbox/updateGroupCheckboxesAriaAttributes/updateGroupCheckboxesAriaAttributes.ts","../src/menu/index.ts","../src/menu/src/cleanUpMenuEventListeners/cleanUpMenuEventListeners.ts","../src/menu/src/makeMenuAccessible/makeMenuAccessible.ts","../src/menu/src/updateMenuTriggerAriaAttributes/updateMenuTriggerAriaAttributes.ts"],"names":["__defProp","Object","defineProperty","__export","target","all","name","get","enumerable","accordion_exports","updateAccordionTriggerAriaAttributes","block_exports","makeBlockAccessible","blockId","blockItemsClass","updateGroupCheckboxesAriaAttributes","updateSingleCheckboxAriaAttributes","checkboxClass","updatedAriaLabel","console","log","menu_exports","cleanUpMenuEventListeners","makeMenuAccessible","updateMenuTriggerAriaAttributes","triggerId","ariaLabel"],"mappings":"AAAA,IAAIA,YAAYC,OAAOC,cAAc;AACrC,IAAIC,WAAW,SAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAACC,QAAQC;YACtB,CAAA,CAAK,CAAA,CAAA,CAAA,CAAIC,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAQD,EACyB,CAAA,CAAxCL,AAAwC,CAAA,CAAA,CAAdO,AAAc,CAAA,CAAA,CAAA,CAAA,CAATF,AAAS,CAATA,AAAS,CAA9BD,AAA8B,CAAN,AAAM,CAALE,AAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAtBA,AAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAhB;QAAgB,KAAA,GAAA,CAAA,KAAA;QAAA,YAAA;IAAA;QAAA,YAAA;QAAA,YAAA,KAAA;QAAA,YAAA,IAAA,CAAA;QAAA,CAAA,WAAA,IAAA,CAAA,GAAA;UAAA,CAAA,WAAA,IAAA,CAAA,GAAA,YAAA;eAAA;;UAAEE,CAAAA,WAAY,IAAA,CAAA,GAAA,YAAA;;IAC1D,EAAA,GAAA,EAAA,eAAA,CAAA,GAAA,YAAA,IAAA,eAAA,EAAA,eAAA,EAAA,0BAAA;;IAEA,EAAA,GAAA,EAAA,eAAA,CAAyB,GAAA,YAAA,IAAA,eAAA,EAAA,eAAA,EAAA,0BAAA;ICNzB,EAAAC,GAAAA,EAAAA,UAAAA,KAAA,CAAA,GAAA,YAAA,IAAA,eAAA,EAAA,eAAA,EAAA,0BAAA;IAAAN,KAAAA,EAAAM,SAAAA,CAAAA,SAAA,YAAA,IAAA,eAAA,EAAA,eAAA,EAAA,0BAAA;IAAAC,KAAAA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A;;eAAA,SAAA,0CAAA;;MVoDhB,MAAA,GAAA,CAAA,QAAA,CAAA,cAAA;AWvDO,IAAA,KAASI,WAAAA,CAAAA,IAAAA,gBAAgCC,SAAA,EAAmBC,EAAAA,OAAA,IAAA,EAAA,wBAAA;iBAEnE,aAAA,SAAA,EAAA,iBAAA,KAAA,EAAA,oBAAA,QAAA,EAAA,gBAAA,IAAA,EAAA,iBAAA,KAAA,EAAA,kBAAA,MAAA,GAAA","sourcesContent":["var __defProp = Object.defineProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\n\n// src/accordion/index.ts\nvar accordion_exports = {};\n__export(accordion_exports, {\n updateAccordionTriggerAriaAttributes: () => updateAccordionTriggerAriaAttributes\n});\n\n// src/accordion/src/updateAccordionTriggerAriaAttributes/updateAccordionTriggerAriaAttributes.ts\nfunction updateAccordionTriggerAriaAttributes(accordionStates, accordionsClass, currentClickedTriggerIndex) {\n console.log(\"Accordion updateAccordionTriggerAriaAttributes initiated\");\n}\n\n// src/block/index.ts\nvar block_exports = {};\n__export(block_exports, {\n makeBlockAccessible: () => makeBlockAccessible\n});\n\n// src/block/src/makeBlockAccessible/makeBlockAccessible.ts\nfunction makeBlockAccessible(blockId, blockItemsClass) {\n console.log(\"Block makeBlockAccessible initiated\");\n}\n\n// src/checkbox/index.ts\nvar checkbox_exports = {};\n__export(checkbox_exports, {\n updateGroupCheckboxesAriaAttributes: () => updateGroupCheckboxesAriaAttributes,\n updateSingleCheckboxAriaAttributes: () => updateSingleCheckboxAriaAttributes\n});\n\n// src/checkbox/src/single-checkbox/updateSingleCheckboxAriaAttributes/updateSingleCheckboxAriaAttributes.ts\nfunction updateSingleCheckboxAriaAttributes(checkboxClass, updatedAriaLabel) {\n console.log(\"Checkbox updateSingleCheckboxAriaAttributes initiated\");\n}\n\n// src/checkbox/src/group-checkbox/updateGroupCheckboxesAriaAttributes/updateGroupCheckboxesAriaAttributes.ts\nfunction updateGroupCheckboxesAriaAttributes(checkboxStates, checkboxesClass, currentPressedCheckboxIndex) {\n console.log(\"Checkbox updateGroupCheckboxesAriaAttributes initiated\");\n}\n\n// src/menu/index.ts\nvar menu_exports = {};\n__export(menu_exports, {\n cleanUpMenuEventListeners: () => cleanUpMenuEventListeners,\n makeMenuAccessible: () => makeMenuAccessible,\n updateMenuTriggerAriaAttributes: () => updateMenuTriggerAriaAttributes\n});\n\n// src/menu/src/cleanUpMenuEventListeners/cleanUpMenuEventListeners.ts\nfunction cleanUpMenuEventListeners(menuId, menuItemsClass) {\n console.log(\"Menu cleanUpMenuEventListeners initiated\");\n}\n\n// src/menu/src/makeMenuAccessible/makeMenuAccessible.ts\nfunction makeMenuAccessible(menuId, menuItemsClass) {\n console.log(\"Menu makeMenuAccessible initiated\");\n}\n\n// src/menu/src/updateMenuTriggerAriaAttributes/updateMenuTriggerAriaAttributes.ts\nfunction updateMenuTriggerAriaAttributes(triggerId, ariaLabel) {\n console.log(\"Menu updateMenuTriggerAriaAttributes initiated\");\n}\n\n// src/radio/index.ts\nvar radio_exports = {};\n__export(radio_exports, {\n updateGroupRadiosAriaAttributes: () => updateGroupRadiosAriaAttributes,\n updateSingleRadioAriaAttributes: () => updateSingleRadioAriaAttributes\n});\n\n// src/radio/src/single-radio/updateSingleRadioAriaAttributes.ts\nfunction updateSingleRadioAriaAttributes(radioClass) {\n console.log(\"Radio updateSingleRadioAriaAttributes initiated\");\n}\n\n// src/radio/src/group-radio/updateGroupRadiosAriaAttributes.ts\nfunction updateGroupRadiosAriaAttributes(radioStates, radiosClass, currentPressedRadioIndex) {\n console.log(\"Radio updateGroupRadiosAriaAttributes initiated\");\n}\n\n// src/toggle/index.ts\nvar toggle_exports = {};\n__export(toggle_exports, {\n updateGroupTogglesAriaAttributes: () => updateGroupTogglesAriaAttributes,\n updateSingleToggleAriaAttributes: () => updateSingleToggleAriaAttributes\n});\n\n// src/toggle/src/single-toggle/updateSingleToggleAriaAttributes.ts\nfunction updateSingleToggleAriaAttributes(toggleClass) {\n console.log(\"Toggle updateSingleToggleAriaAttributes initiated\");\n}\n\n// src/toggle/src/group-toggle/updateGroupTogglesAriaAttributes.ts\nfunction updateGroupTogglesAriaAttributes(toggleStates, togglesClass, currentPressedToggleIndex) {\n console.log(\"Toggle updateGroupTogglesAriaAttributes initiated\");\n}\n\nexport { accordion_exports as Accordion, block_exports as Block, checkbox_exports as Checkbox, menu_exports as Menu, radio_exports as Radio, toggle_exports as Toggle };\n//# sourceMappingURL=index.mjs.map\n","import { updateAccordionTriggerAriaAttributes } from './src/updateAccordionTriggerAriaAttributes/updateAccordionTriggerAriaAttributes';\n\nexport { updateAccordionTriggerAriaAttributes }","/**\n * Adds screen reader accessibility to accordions. Updates the aria attributes of the accordion trigger button. Trigger button element must possess the following aria attributes; aria-expanded and aria-label.\n * @param {AccordionStates[]} accordionStates Array of objects containing accordions state information\n * @param {string} accordionsClass The shared class of all the accordion triggers\n * @param {number} currentClickedTriggerIndex Index of the currently clicked accordion trigger\n */\n\nimport { HTMLElement, AccordionStates } from \"../../../../Types\";\n\nexport function updateAccordionTriggerAriaAttributes(accordionStates: AccordionStates[], accordionsClass: string, currentClickedTriggerIndex: number): void {\n console.log('Accordion updateAccordionTriggerAriaAttributes initiated')\n}","import { makeBlockAccessible } from \"./src/makeBlockAccessible/makeBlockAccessible\";\n\nexport { makeBlockAccessible }","/** \n * Adds keyboard interaction to block. The block traps focus and can be interacted with using the keyboard.\n * @param {string} blockId The id of the block\n * @param {string} blockItemsClass The shared class of the items that are children of thes block\n*/\n\nimport { HTMLElement, NodeListOfHTMLElement } from \"../../../../Types\"\n\nlet eventListenersAdded: Set<HTMLElement> = new Set();\n\nexport function makeBlockAccessible(blockId: string, blockItemsClass: string) {\n console.log('Block makeBlockAccessible initiated')\n}","import { updateSingleCheckboxAriaAttributes } from \"./src/single-checkbox/updateSingleCheckboxAriaAttributes/updateSingleCheckboxAriaAttributes\";\nimport { updateGroupCheckboxesAriaAttributes } from \"./src/group-checkbox/updateGroupCheckboxesAriaAttributes/updateGroupCheckboxesAriaAttributes\";\n\nexport { updateSingleCheckboxAriaAttributes, updateGroupCheckboxesAriaAttributes }","/**\n * Adds screen reader accessibility to a single checkbox. Updates the aria attributes of the checkbox. Checkbox element must possess the following aria attributes; aria-checked and aria-label.\n * @param {string} checkboxClass The shared class of all the checkboxes\n * @param {string} updatedAriaLabel The aria label to be updated to checkbox element\n */\n\nimport { HTMLElement } from \"../../../../../Types\";\n\nexport function updateSingleCheckboxAriaAttributes(checkboxClass: string, updatedAriaLabel: string): void {\n console.log('Checkbox updateSingleCheckboxAriaAttributes initiated');\n}","/**\n * Adds screen reader accessibility to multiple checkboxes. Updates the aria attributes of the checkboxes. Checkbox elements must possess the following aria attributes; aria-checked and aria-label.\n * @param {CheckboxStates[]} checkboxStates Array of objects containing checkboxes state information\n * @param {string} checkboxesClass The shared class of all the checkboxes\n * @param {number} currentPressedCheckboxIndex Index of the currently checked or unchecked checkbox\n */\n\nimport { HTMLElement, CheckboxStates } from \"../../../../../Types\";\n\nexport function updateGroupCheckboxesAriaAttributes(checkboxStates: CheckboxStates[], checkboxesClass: string, currentPressedCheckboxIndex: number): void {\n console.log('Checkbox updateGroupCheckboxesAriaAttributes initiated');\n}","import { cleanUpMenuEventListeners } from \"./src/cleanUpMenuEventListeners/cleanUpMenuEventListeners\";\nimport { makeMenuAccessible } from \"./src/makeMenuAccessible/makeMenuAccessible\";\nimport { updateMenuTriggerAriaAttributes } from \"./src/updateMenuTriggerAriaAttributes/updateMenuTriggerAriaAttributes\";\n\nexport { cleanUpMenuEventListeners, makeMenuAccessible, updateMenuTriggerAriaAttributes }","import { NodeListOfHTMLElement } from \"../../../../Types\";\n\n\nexport function cleanUpMenuEventListeners(menuId: string, menuItemsClass: string): void {\n console.log('Menu cleanUpMenuEventListeners initiated');\n}","/**\n * Adds keyboard interaction to toggle menu. The menu traps focus and can be interacted with using the keyboard. The first item of the menu has focus when menu appears.\n * @param {string} menuId The id of the menu\n * @param {string} menuItemsClass The shared class of the items that are children of the menu\n*/\n\nimport { HTMLElement, NodeListOfHTMLElement } from '../../../../Types'\n\nlet eventListenersAdded: Set<HTMLElement> = new Set();\n\nexport function makeMenuAccessible(menuId: string, menuItemsClass: string): void {\n console.log('Menu makeMenuAccessible initiated');\n}","/**\n * Adds screen reader accessibility to menus. Updates the aria attributes of the menu trigger button. Trigger button element must possess the following aria attributes; aria-expanded and aria-label.\n * @param {string} triggerId The id of the trigger button that toggles the menu\n * @param {string} ariaLabel The aria label to be updated to trigger element\n */\n\nimport { HTMLElement } from \"../../../../Types\";\n\nexport function updateMenuTriggerAriaAttributes(triggerId: string, ariaLabel: string): void {\n console.log('Menu updateMenuTriggerAriaAttributes initiated');\n}"]}