@landtrustinc/design-system 1.2.29-beta.2 → 1.2.29-beta.3
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/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8677,14 +8677,14 @@ var ScrollingCarouselStep = ({
|
|
|
8677
8677
|
});
|
|
8678
8678
|
}
|
|
8679
8679
|
}, [inView, index, dispatch]);
|
|
8680
|
-
const dataStep = { [`data-step-${parentId}`]: index };
|
|
8681
8680
|
return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8682
8681
|
"div",
|
|
8683
8682
|
{
|
|
8684
8683
|
ref,
|
|
8685
8684
|
css: step,
|
|
8686
8685
|
className,
|
|
8687
|
-
|
|
8686
|
+
"data-carousel-id": parentId,
|
|
8687
|
+
"data-carousel-index": index,
|
|
8688
8688
|
onClick,
|
|
8689
8689
|
role: "group",
|
|
8690
8690
|
"aria-roledescription": "slide",
|
|
@@ -8798,8 +8798,8 @@ var useCarouselNavigation = ({
|
|
|
8798
8798
|
const getStepEl = (0, import_react55.useCallback)(
|
|
8799
8799
|
(index) => {
|
|
8800
8800
|
if (carousel2.current) {
|
|
8801
|
-
const
|
|
8802
|
-
return carousel2.current.
|
|
8801
|
+
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
8802
|
+
return carousel2.current.querySelector(selector);
|
|
8803
8803
|
}
|
|
8804
8804
|
return null;
|
|
8805
8805
|
},
|