@royaloperahouse/chord 2.3.1 → 2.3.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/CHANGELOG.md +3 -0
- package/dist/chord.cjs.development.js +20 -11
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +20 -11
- package/dist/chord.esm.js.map +1 -1
- package/dist/types/auxiliaryNav.d.ts +8 -8
- package/package.json +1 -1
|
@@ -9,29 +9,29 @@ export interface IAuxiliaryNavProps {
|
|
|
9
9
|
*/
|
|
10
10
|
activeItem: string;
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* If component should render the mobile view
|
|
13
|
+
*/
|
|
14
14
|
isMobile?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
* aria-label attribute for nav element
|
|
17
|
+
*/
|
|
18
18
|
ariaLabel?: string;
|
|
19
19
|
}
|
|
20
20
|
export declare type INavProps = Pick<IAuxiliaryNavProps, 'items' | 'activeItem' | 'ariaLabel'>;
|
|
21
21
|
export interface IItem {
|
|
22
22
|
/**
|
|
23
23
|
* Item text
|
|
24
|
-
|
|
24
|
+
*/
|
|
25
25
|
text: string;
|
|
26
26
|
/**
|
|
27
27
|
* Href for item link
|
|
28
|
-
|
|
28
|
+
*/
|
|
29
29
|
href: string;
|
|
30
30
|
/**
|
|
31
31
|
* Item click handler
|
|
32
32
|
* Default link behavior will be prevented if this specified
|
|
33
|
-
|
|
34
|
-
onClick?: () => void;
|
|
33
|
+
*/
|
|
34
|
+
onClick?: (e: MouseEvent) => void;
|
|
35
35
|
}
|
|
36
36
|
export interface IItemProps extends IItem {
|
|
37
37
|
isActive: boolean;
|