@royaloperahouse/harmonic 0.11.0-n → 0.11.0-o
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/dist/harmonic.cjs.development.js +5 -7
- 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 +5 -7
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/navigation.d.ts +0 -2
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -6153,8 +6153,6 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6153
6153
|
bottomBorder = _ref$bottomBorder === void 0 ? false : _ref$bottomBorder,
|
|
6154
6154
|
_ref$withShadow = _ref.withShadow,
|
|
6155
6155
|
withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow,
|
|
6156
|
-
_ref$offsetHeight = _ref.offsetHeight,
|
|
6157
|
-
offsetHeight = _ref$offsetHeight === void 0 ? 0 : _ref$offsetHeight,
|
|
6158
6156
|
className = _ref.className;
|
|
6159
6157
|
var tabListRef = useRef(null);
|
|
6160
6158
|
var wrapperRef = useRef(null);
|
|
@@ -6186,16 +6184,16 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6186
6184
|
if (!selectedItem) return;
|
|
6187
6185
|
var targetSectionElement = document.getElementById(selectedItem);
|
|
6188
6186
|
if (targetSectionElement) {
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6187
|
+
targetSectionElement.scrollIntoView({
|
|
6188
|
+
behavior: 'auto',
|
|
6189
|
+
block: 'start'
|
|
6190
|
+
});
|
|
6193
6191
|
}
|
|
6194
6192
|
var clickedTab = document.getElementById("tablink-" + selectedItem);
|
|
6195
6193
|
if (clickedTab) {
|
|
6196
6194
|
clickedTab.focus();
|
|
6197
6195
|
}
|
|
6198
|
-
}, [selectedItem
|
|
6196
|
+
}, [selectedItem]);
|
|
6199
6197
|
var getScrollWidth = function getScrollWidth() {
|
|
6200
6198
|
var width = 0;
|
|
6201
6199
|
var selectedItemIndex = tabs.findIndex(function (el) {
|