@royaloperahouse/harmonic 0.8.0-a → 0.8.0-c

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.
@@ -8665,7 +8665,7 @@ var ContactCard = function ContactCard(_ref) {
8665
8665
  return /*#__PURE__*/React__default.createElement("div", {
8666
8666
  className: className
8667
8667
  }, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
8668
- columnStartDesktop: 2,
8668
+ columnStartDesktop: 3,
8669
8669
  columnSpanDesktop: 12,
8670
8670
  columnStartDevice: 1,
8671
8671
  columnSpanDevice: 14
@@ -8837,14 +8837,13 @@ var _excluded$k = ["text", "onClick"];
8837
8837
  var HotFilters = function HotFilters(_ref) {
8838
8838
  var items = _ref.items,
8839
8839
  className = _ref.className,
8840
- defaultSelectedIndex = _ref.defaultSelectedIndex;
8841
- var _useState = useState(defaultSelectedIndex != null ? defaultSelectedIndex : 0),
8842
- selectedIndex = _useState[0],
8843
- setSelectedIndex = _useState[1];
8844
- var handleClick = function handleClick(index, onClick) {
8845
- setSelectedIndex(index);
8840
+ _ref$selectedIndex = _ref.selectedIndex,
8841
+ selectedIndex = _ref$selectedIndex === void 0 ? 0 : _ref$selectedIndex,
8842
+ onSelect = _ref.onSelect;
8843
+ var handleClick = React__default.useCallback(function (index, onClick) {
8844
+ if (onSelect) onSelect(index);
8846
8845
  if (onClick) onClick();
8847
- };
8846
+ }, [onSelect]);
8848
8847
  return /*#__PURE__*/React__default.createElement(HotFiltersWrapper, {
8849
8848
  className: className
8850
8849
  }, /*#__PURE__*/React__default.createElement(HotFilterOptionsWrapper, null, items.map(function (item, index) {
@@ -8861,7 +8860,8 @@ var HotFilters = function HotFilters(_ref) {
8861
8860
  backgroundColor: isSelected ? 'base-black' : 'base-white',
8862
8861
  textColor: isSelected ? 'base-white' : 'base-black',
8863
8862
  hoveredColor: "base-black",
8864
- pressedColor: "black-pressed"
8863
+ pressedColor: "black-pressed",
8864
+ "aria-pressed": isSelected
8865
8865
  }, rest), text);
8866
8866
  })));
8867
8867
  };