@royaloperahouse/harmonic 0.13.1 → 0.13.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/components/atoms/Tab/Tab.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, color, }: ITabProps) => React.JSX.Element;
|
|
3
|
+
declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, color, isOpen, }: ITabProps) => React.JSX.Element;
|
|
4
4
|
export default Tab;
|
|
@@ -3708,7 +3708,8 @@ var Tab = function Tab(_ref) {
|
|
|
3708
3708
|
className = _ref.className,
|
|
3709
3709
|
role = _ref.role,
|
|
3710
3710
|
ariaLabel = _ref.ariaLabel,
|
|
3711
|
-
color = _ref.color
|
|
3711
|
+
color = _ref.color,
|
|
3712
|
+
isOpen = _ref.isOpen;
|
|
3712
3713
|
var clickHandler = function clickHandler() {
|
|
3713
3714
|
if (onClick) {
|
|
3714
3715
|
onClick(titleLink);
|
|
@@ -3727,6 +3728,7 @@ var Tab = function Tab(_ref) {
|
|
|
3727
3728
|
return /*#__PURE__*/React__default.createElement(TitleContainer, {
|
|
3728
3729
|
role: role,
|
|
3729
3730
|
"aria-label": ariaLabel,
|
|
3731
|
+
"aria-expanded": isOpen,
|
|
3730
3732
|
withTextInMobile: withTextInMobile,
|
|
3731
3733
|
withIcon: withIcon,
|
|
3732
3734
|
selected: selected,
|