@y14e/disclosure-css 1.3.0 → 1.3.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.
package/dist/index.cjs CHANGED
@@ -572,12 +572,6 @@ var Disclosure = class {
572
572
  this.#bindings.set(summary, binding);
573
573
  this.#bindings.set(content, binding);
574
574
  });
575
- this.#cleanupRovingTabIndex = createRovingTabIndex(this.#rootElement, {
576
- direction: "vertical",
577
- navigationOnly: true,
578
- selector: `summary${NOT_NESTED}`,
579
- wrap: true
580
- });
581
575
  this.#initialize();
582
576
  }
583
577
  open(details) {
@@ -625,6 +619,12 @@ var Disclosure = class {
625
619
  summary.style.setProperty("pointer-events", "none");
626
620
  }
627
621
  });
622
+ this.#cleanupRovingTabIndex = createRovingTabIndex(this.#rootElement, {
623
+ direction: "vertical",
624
+ navigationOnly: true,
625
+ selector: "summary:not(:scope summary + * *)",
626
+ wrap: true
627
+ });
628
628
  this.#rootElement.setAttribute("data-disclosure-initialized", "");
629
629
  }
630
630
  #toggle(details, isOpen) {
@@ -644,7 +644,7 @@ function isFocusable2(element) {
644
644
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
645
645
  * Using the <details> and <summary> element.
646
646
  *
647
- * @version 1.3.0
647
+ * @version 1.3.1
648
648
  * @author Yusuke Kamiyamane
649
649
  * @license MIT
650
650
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@
3
3
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
4
4
  * Using the <details> and <summary> element.
5
5
  *
6
- * @version 1.3.0
6
+ * @version 1.3.1
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
4
4
  * Using the <details> and <summary> element.
5
5
  *
6
- * @version 1.3.0
6
+ * @version 1.3.1
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -570,12 +570,6 @@ var Disclosure = class {
570
570
  this.#bindings.set(summary, binding);
571
571
  this.#bindings.set(content, binding);
572
572
  });
573
- this.#cleanupRovingTabIndex = createRovingTabIndex(this.#rootElement, {
574
- direction: "vertical",
575
- navigationOnly: true,
576
- selector: `summary${NOT_NESTED}`,
577
- wrap: true
578
- });
579
573
  this.#initialize();
580
574
  }
581
575
  open(details) {
@@ -623,6 +617,12 @@ var Disclosure = class {
623
617
  summary.style.setProperty("pointer-events", "none");
624
618
  }
625
619
  });
620
+ this.#cleanupRovingTabIndex = createRovingTabIndex(this.#rootElement, {
621
+ direction: "vertical",
622
+ navigationOnly: true,
623
+ selector: "summary:not(:scope summary + * *)",
624
+ wrap: true
625
+ });
626
626
  this.#rootElement.setAttribute("data-disclosure-initialized", "");
627
627
  }
628
628
  #toggle(details, isOpen) {
@@ -642,7 +642,7 @@ function isFocusable2(element) {
642
642
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
643
643
  * Using the <details> and <summary> element.
644
644
  *
645
- * @version 1.3.0
645
+ * @version 1.3.1
646
646
  * @author Yusuke Kamiyamane
647
647
  * @license MIT
648
648
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/disclosure-css",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "WAI-ARIA compliant disclosure pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",