@acusti/dropdown 1.0.0 → 1.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.
- package/README.md +54 -4
- package/dist/Dropdown.d.ts +6 -3
- package/dist/Dropdown.js +279 -237
- package/dist/Dropdown.js.map +1 -1
- package/dist/helpers.d.ts +3 -0
- package/package.json +1 -1
package/dist/helpers.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export declare const LIST_CONTAINER_SELECTOR = "menu, ol, ul";
|
|
|
7
7
|
export declare const FOCUSABLE_SELECTOR = "a[href], button, input, select, textarea, [tabindex]";
|
|
8
8
|
export type OnToggleSubmenu = (item: HTMLElement, isExpanded: boolean) => void;
|
|
9
9
|
type MaybeHTMLElement = HTMLElement | null;
|
|
10
|
+
export declare const isInOwnBody: (dropdownElement: MaybeHTMLElement, element: Element) => boolean;
|
|
11
|
+
export declare const isFormlessTextInput: (element: Element) => boolean;
|
|
12
|
+
export declare const isSubmitKey: (event: KeyboardEvent) => boolean;
|
|
10
13
|
export declare const getLevelRoot: (element: HTMLElement) => MaybeHTMLElement;
|
|
11
14
|
export declare const getSubmenuOfItem: (item: HTMLElement) => MaybeHTMLElement;
|
|
12
15
|
export declare const getParentItem: (levelRoot: HTMLElement) => MaybeHTMLElement;
|