@refraction-ui/react 0.18.1 → 0.18.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/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14357,7 +14357,12 @@ var SlideViewer = React23.forwardRef(
|
|
|
14357
14357
|
const containerClasses = cn(slideViewerVariants({ size }), className);
|
|
14358
14358
|
const currentSlide = slides[api.state.currentSlide];
|
|
14359
14359
|
const slideAriaProps = api.getSlideAriaProps();
|
|
14360
|
-
|
|
14360
|
+
function handleKeyDown(event) {
|
|
14361
|
+
const handler = api.keyboardHandlers[event.key];
|
|
14362
|
+
if (!handler) return;
|
|
14363
|
+
handler(event);
|
|
14364
|
+
rerender();
|
|
14365
|
+
}
|
|
14361
14366
|
function handlePrev() {
|
|
14362
14367
|
api.prev();
|
|
14363
14368
|
rerender();
|