@agnos-ui/core 0.10.0-next.1 → 0.10.0-next.2

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.
@@ -155,7 +155,8 @@ function createAccordionItem(config) {
155
155
  attributes: {
156
156
  id: tansu.computed(() => `${id$()}-body-container`),
157
157
  class: bodyContainerClassName$,
158
- "aria-labelledby": tansu.computed(() => `${id$()}-toggle`)
158
+ "aria-labelledby": tansu.computed(() => `${id$()}-toggle`),
159
+ role: tansu.readable("region")
159
160
  }
160
161
  }));
161
162
  return {
@@ -154,7 +154,8 @@ function createAccordionItem(config) {
154
154
  attributes: {
155
155
  id: computed(() => `${id$()}-body-container`),
156
156
  class: bodyContainerClassName$,
157
- "aria-labelledby": computed(() => `${id$()}-toggle`)
157
+ "aria-labelledby": computed(() => `${id$()}-toggle`),
158
+ role: readable("region")
158
159
  }
159
160
  }));
160
161
  return {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const accordion = require("../../accordion-B5LiN1uy.cjs");
3
+ const accordion = require("../../accordion-DRIm0xHf.cjs");
4
4
  exports.createAccordion = accordion.createAccordion;
5
5
  exports.createAccordionItem = accordion.createAccordionItem;
6
6
  exports.factoryCreateAccordion = accordion.factoryCreateAccordion;
@@ -1,4 +1,4 @@
1
- import { a, c, f, g } from "../../accordion-_zen-g8l.js";
1
+ import { a, c, f, g } from "../../accordion-DqnKGmbS.js";
2
2
  export {
3
3
  a as createAccordion,
4
4
  c as createAccordionItem,
package/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const types = require("./types.cjs");
4
- const accordion = require("./accordion-B5LiN1uy.cjs");
4
+ const accordion = require("./accordion-DRIm0xHf.cjs");
5
5
  const alert = require("./alert-B-jQDQcB.cjs");
6
6
  const collapse = require("./collapse-gLiT080Y.cjs");
7
7
  const modal = require("./modal-DiXZXYjR.cjs");
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FACTORY_WIDGET_NAME, INVALID_VALUE } from "./types.js";
2
- import { a, c, f, g } from "./accordion-_zen-g8l.js";
2
+ import { a, c, f, g } from "./accordion-DqnKGmbS.js";
3
3
  import { c as c2, g as g2 } from "./alert-gGz2CDS9.js";
4
4
  import { c as c3, g as g3 } from "./collapse-BV4kD3j9.js";
5
5
  import { c as c4, g as g4, a as a2, b, m } from "./modal-CAvQW-vo.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agnos-ui/core",
3
3
  "description": "Framework-agnostic headless component library.",
4
- "version": "0.10.0-next.1",
4
+ "version": "0.10.0-next.2",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",
7
7
  "module": "./index.js",
@@ -32,6 +32,8 @@ export declare const removeClasses: (element: SSRHTMLElement, classes?: string[]
32
32
  * @param type - A string representing the event type to listen for.
33
33
  * @param fn - The event listener function or object.
34
34
  * @param options - An options object that specifies characteristics about the event listener.
35
+ * @template K - event type
36
+ * @template T - event object type
35
37
  * @returns A function that removes the event listener from the element.
36
38
  */
37
39
  export declare function addEvent<K extends keyof HTMLElementEventMap, T extends HTMLElementEventMap[K]>(element: EventTarget, type: K, fn: (this: EventTarget, ev: T) => any, options?: boolean | AddEventListenerOptions): () => void;