@aurodesignsystem/auro-accordion 5.2.6 → 6.0.0-rc-206.1

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 (97) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/NOTICE +2 -0
  3. package/README.md +16 -50
  4. package/custom-elements.json +966 -0
  5. package/demo/api.html +1 -1
  6. package/demo/api.js +2 -1
  7. package/demo/api.md +48 -41
  8. package/demo/api.min.js +16 -2028
  9. package/demo/auro-accordion.min.js +771 -0
  10. package/demo/index.js +12 -14
  11. package/demo/index.min.js +13 -2024
  12. package/dist/auro-accordion-Dlfg1ee3.js +117 -0
  13. package/dist/index.d.ts +125 -0
  14. package/dist/index.js +1 -0
  15. package/dist/registered.js +1 -0
  16. package/package.json +47 -134
  17. package/.husky/commit-msg +0 -1
  18. package/.husky/pre-commit +0 -1
  19. package/.vscode/settings.json +0 -8
  20. package/apiExamples/accordionGroup.html +0 -47
  21. package/apiExamples/accordionGroupLg.html +0 -47
  22. package/apiExamples/accordionGroupSm.html +0 -47
  23. package/apiExamples/alignChevronRight.html +0 -15
  24. package/apiExamples/alignRight.html +0 -15
  25. package/apiExamples/basic.html +0 -15
  26. package/apiExamples/chevronNone.html +0 -15
  27. package/apiExamples/chevronRight.html +0 -15
  28. package/apiExamples/custom.html +0 -15
  29. package/apiExamples/customGroup.html +0 -47
  30. package/apiExamples/disabled.html +0 -15
  31. package/apiExamples/disabledGroup.html +0 -47
  32. package/apiExamples/emphasis.html +0 -47
  33. package/apiExamples/expanded.html +0 -17
  34. package/apiExamples/expanded.js +0 -11
  35. package/apiExamples/noToggleExpanded.html +0 -47
  36. package/coverage/lcov-report/base.css +0 -224
  37. package/coverage/lcov-report/block-navigation.js +0 -87
  38. package/coverage/lcov-report/favicon.png +0 -0
  39. package/coverage/lcov-report/index.html +0 -131
  40. package/coverage/lcov-report/prettify.css +0 -1
  41. package/coverage/lcov-report/prettify.js +0 -2
  42. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  43. package/coverage/lcov-report/sorter.js +0 -196
  44. package/coverage/lcov-report/src/auro-accordion-button.js.html +0 -283
  45. package/coverage/lcov-report/src/auro-accordion-group.js.html +0 -538
  46. package/coverage/lcov-report/src/auro-accordion.js.html +0 -895
  47. package/coverage/lcov-report/src/iconVersion.js.html +0 -85
  48. package/coverage/lcov-report/src/index.html +0 -161
  49. package/coverage/lcov-report/src/styles/color-css.js.html +0 -91
  50. package/coverage/lcov-report/src/styles/index.html +0 -161
  51. package/coverage/lcov-report/src/styles/style-button-css.js.html +0 -91
  52. package/coverage/lcov-report/src/styles/style-css.js.html +0 -91
  53. package/coverage/lcov-report/src/styles/tokens-css.js.html +0 -91
  54. package/coverage/lcov.info +0 -682
  55. package/dist/auro-accordion__bundled.js +0 -2023
  56. package/dist/src/auro-accordion-button.d.ts +0 -19
  57. package/dist/src/auro-accordion-button.d.ts.map +0 -1
  58. package/dist/src/auro-accordion-group.d.ts +0 -61
  59. package/dist/src/auro-accordion-group.d.ts.map +0 -1
  60. package/dist/src/auro-accordion.d.ts +0 -106
  61. package/dist/src/auro-accordion.d.ts.map +0 -1
  62. package/dist/src/iconVersion.d.ts +0 -3
  63. package/dist/src/iconVersion.d.ts.map +0 -1
  64. package/dist/src/styles/color-css.d.ts +0 -3
  65. package/dist/src/styles/color-css.d.ts.map +0 -1
  66. package/dist/src/styles/style-button-css.d.ts +0 -3
  67. package/dist/src/styles/style-button-css.d.ts.map +0 -1
  68. package/dist/src/styles/style-css.d.ts +0 -3
  69. package/dist/src/styles/style-css.d.ts.map +0 -1
  70. package/dist/src/styles/tokens-css.d.ts +0 -3
  71. package/dist/src/styles/tokens-css.d.ts.map +0 -1
  72. package/dist/test/auro-accordion-group.test.d.ts +0 -2
  73. package/dist/test/auro-accordion-group.test.d.ts.map +0 -1
  74. package/dist/test/auro-accordion.test.d.ts +0 -2
  75. package/dist/test/auro-accordion.test.d.ts.map +0 -1
  76. package/index.js +0 -3
  77. package/packageScripts/postinstall.mjs +0 -28
  78. package/scripts/version.mjs +0 -3
  79. package/scripts/wca/auro-accordion.js +0 -12
  80. package/src/auro-accordion-button.js +0 -66
  81. package/src/auro-accordion-group.js +0 -151
  82. package/src/auro-accordion.js +0 -270
  83. package/src/iconVersion.js +0 -1
  84. package/src/styles/color-css.js +0 -2
  85. package/src/styles/color.css +0 -43
  86. package/src/styles/color.scss +0 -75
  87. package/src/styles/style-button-css.js +0 -2
  88. package/src/styles/style-button.css +0 -63
  89. package/src/styles/style-button.scss +0 -86
  90. package/src/styles/style-css.js +0 -2
  91. package/src/styles/style.css +0 -341
  92. package/src/styles/style.scss +0 -191
  93. package/src/styles/tokens-css.js +0 -2
  94. package/src/styles/tokens.css +0 -7
  95. package/src/styles/tokens.scss +0 -9
  96. package/test/auro-accordion-group.test.js +0 -230
  97. package/test/auro-accordion.test.js +0 -104
package/demo/api.html CHANGED
@@ -48,7 +48,7 @@
48
48
  Prism.highlightAll();
49
49
  });
50
50
  </script>
51
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
51
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
52
52
  <script type="module" data-demo-script="true">
53
53
  import { initExamples } from './api.min.js';
54
54
  initExamples();
package/demo/api.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { expandedExample } from "../apiExamples/expanded";
2
- import '../index.js';
2
+ import "../src/registered.js";
3
3
 
4
4
  export function initExamples(initCount) {
5
+ // biome-ignore lint/style/noParameterAssign: recursion, just for demos
5
6
  initCount = initCount || 0;
6
7
 
7
8
  try {
package/demo/api.md CHANGED
@@ -6,45 +6,46 @@
6
6
  Auro-accordion provides users a way to have collapsible content on a page.
7
7
  Use auro-accordion-group if you want to have auto closing accordion components when others are selected.
8
8
 
9
- ## Properties
9
+ ### Properties & Attributes
10
10
 
11
- | Property | Attribute | Type | Default | Description |
12
- |--------------|--------------|-----------|---------|--------------------------------------------------|
13
- | [alignRight](#alignRight) | `alignRight` | `Boolean` | | If set, the trigger content will align right. |
14
- | [chevron](#chevron) | `chevron` | `String` | | Sets chevron variant option. Possible values are: `none`, `right`. |
15
- | [disabled](#disabled) | `disabled` | `Boolean` | | If set, the accordion is disabled and have reduced opacity. |
16
- | [emphasis](#emphasis) | `emphasis` | `Boolean` | | If set, emphasis styles will be applied to the auro-accordions. |
17
- | [expanded](#expanded) | `expanded` | `Boolean` | false | If set, the accordion is expanded. |
18
- | [grouped](#grouped) | `grouped` | `Boolean` | | Attribute will be set on accordion when it appears in an accordion group. |
19
- | [variant](#variant) | `variant` | `String` | | Sets accordion variant option. Possible values are: `sm`, `lg`. |
20
-
21
- ## Methods
22
-
23
- | Method | Type | Description |
24
- |----------|------------|--------------------------------------------------|
25
- | [toggle](#toggle) | `(): void` | Toggles the visibility of the accordion content. |
26
-
27
- ## Events
28
-
29
- | Event | Type | Description |
30
- |------------------|---------------------------------------|--------------------------------------------------|
31
- | [toggleExpanded](#toggleExpanded) | `CustomEvent<{ expanded: boolean; }>` | Notifies that the accordion has been expanded or closed. |
11
+ | Properties | Attributes | Type | Default | Description |
12
+ | --- | --- | --- | --- | --- |
13
+ expanded | expanded | boolean | false | If set, the accordion is expanded.
14
+ alignRight | alignRight | boolean | | If set, the trigger content will align right.
15
+ emphasis | emphasis | boolean | | If set, emphasis styles will be applied to the auro-accordions.
16
+ grouped | grouped | boolean | | Attribute will be set on accordion when it appears in an accordion group.
17
+ chevron | chevron | string | | Sets chevron variant option. Possible values are: `none`, `right`.
18
+ variant | variant | string | | Sets accordion variant option. Possible values are: `sm`, `lg`.
19
+ disabled | disabled | boolean | | If set, the accordion is disabled and have reduced opacity.
20
+
21
+ ### Methods
32
22
 
33
- ## Slots
23
+ | Name | Parameters | Return | Description |
24
+ | --- | --- | --- | --- |
25
+ register | `name` (string) - The name of element that you want to register to. | | This will register this element with the browser.
26
+ toggle | None | | Toggles the visibility of the accordion content.
27
+
28
+ ### Events
34
29
 
35
- | Name | Description |
36
- |-----------|---------------------------------------------|
37
- | | Default slot for the accordion content. |
38
- | [trigger](#trigger) | Defines the content of the trigger element. |
30
+ | Name | Description |
31
+ | --- | --- |
32
+ toggleExpanded | Notifies that the accordion has been expanded or closed.
33
+
34
+ ### Slots
39
35
 
40
- ## CSS Shadow Parts
36
+ | Name | Description |
37
+ | --- | --- |
38
+ (default) | Default slot for the accordion content.
39
+ trigger | Defines the content of the trigger element.
40
+
41
+ ### CSS Shadow Parts
41
42
 
42
- | Part | Description |
43
- |-------------|-------------------------------------|
44
- | [accordion](#accordion) | Apply CSS to Accordion wrapper. |
45
- | [chevron](#chevron) | Apply CSS to chevron icon. |
46
- | [content](#content) | Apply CSS to the accordion content. |
47
- | [trigger](#trigger) | Apply CSS to trigger element. |
43
+ | Name | Description |
44
+ | --- | --- |
45
+ accordion | Apply CSS to Accordion wrapper.
46
+ trigger | Apply CSS to trigger element.
47
+ chevron | Apply CSS to chevron icon.
48
+ content | Apply CSS to the accordion content.
48
49
  <!-- AURO-GENERATED-CONTENT:END -->
49
50
 
50
51
  ## Accordion API Examples
@@ -507,15 +508,21 @@ The accordion can be programatically expanded or collapsed by setting the `expan
507
508
 
508
509
  ```js
509
510
  export function expandedExample() {
510
- const expandedExampleElem = document.querySelector('#auroaccordionExpandedExample');
511
+ const expandedExampleElem = document.querySelector(
512
+ "#auroaccordionExpandedExample",
513
+ );
511
514
 
512
- document.querySelector('#auroaccordionExpandedExampleBtnTrue').addEventListener('click', () => {
513
- expandedExampleElem.expanded = true;
514
- })
515
+ document
516
+ .querySelector("#auroaccordionExpandedExampleBtnTrue")
517
+ .addEventListener("click", () => {
518
+ expandedExampleElem.expanded = true;
519
+ });
515
520
 
516
- document.querySelector('#auroaccordionExpandedExampleBtnFalse').addEventListener('click', () => {
517
- expandedExampleElem.expanded = false;
518
- })
521
+ document
522
+ .querySelector("#auroaccordionExpandedExampleBtnFalse")
523
+ .addEventListener("click", () => {
524
+ expandedExampleElem.expanded = false;
525
+ });
519
526
  }
520
527
  ```
521
528
  <!-- AURO-GENERATED-CONTENT:END -->