@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.
- package/{accordion-B5LiN1uy.cjs → accordion-DRIm0xHf.cjs} +2 -1
- package/{accordion-_zen-g8l.js → accordion-DqnKGmbS.js} +2 -1
- package/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/utils/internal/dom.d.ts +2 -0
|
@@ -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-
|
|
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;
|
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-
|
|
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-
|
|
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
package/utils/internal/dom.d.ts
CHANGED
|
@@ -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;
|