@royaloperahouse/harmonic 0.13.1-a → 0.13.1-b
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/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +3 -1
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +3 -1
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/types.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ITabProps } from '../../../types/types';
|
|
3
|
-
declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, }: ITabProps) => React.JSX.Element;
|
|
3
|
+
declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, isOpen, }: ITabProps) => React.JSX.Element;
|
|
4
4
|
export default Tab;
|
|
@@ -2,6 +2,6 @@ interface FocusableTabProps {
|
|
|
2
2
|
$hide?: boolean;
|
|
3
3
|
}
|
|
4
4
|
export declare const SkiptoMainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const FocusableTab: import("styled-components").StyledComponent<({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, }: import("../../../types/types").ITabProps) => import("react").JSX.Element, any, FocusableTabProps, never>;
|
|
5
|
+
export declare const FocusableTab: import("styled-components").StyledComponent<({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, isOpen, }: import("../../../types/types").ITabProps) => import("react").JSX.Element, any, FocusableTabProps, never>;
|
|
6
6
|
export declare const HiddenBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
7
|
export {};
|
|
@@ -3709,7 +3709,8 @@ var Tab = function Tab(_ref) {
|
|
|
3709
3709
|
role = _ref.role,
|
|
3710
3710
|
ariaLabel = _ref.ariaLabel,
|
|
3711
3711
|
tabLinkId = _ref.tabLinkId,
|
|
3712
|
-
color = _ref.color
|
|
3712
|
+
color = _ref.color,
|
|
3713
|
+
isOpen = _ref.isOpen;
|
|
3713
3714
|
var clickHandler = function clickHandler() {
|
|
3714
3715
|
if (onClick) {
|
|
3715
3716
|
onClick(titleLink);
|
|
@@ -3728,6 +3729,7 @@ var Tab = function Tab(_ref) {
|
|
|
3728
3729
|
return /*#__PURE__*/React__default.createElement(TitleContainer, {
|
|
3729
3730
|
role: role,
|
|
3730
3731
|
"aria-label": ariaLabel,
|
|
3732
|
+
"aria-expanded": isOpen,
|
|
3731
3733
|
withTextInMobile: withTextInMobile,
|
|
3732
3734
|
withIcon: withIcon,
|
|
3733
3735
|
selected: selected,
|