@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 CHANGED
@@ -44425,7 +44425,12 @@ var SlideViewer = React23__namespace.forwardRef(
44425
44425
  const containerClasses = cn(slideViewerVariants({ size }), className);
44426
44426
  const currentSlide = slides[api.state.currentSlide];
44427
44427
  const slideAriaProps = api.getSlideAriaProps();
44428
- const handleKeyDown = createKeyboardHandler(api.keyboardHandlers);
44428
+ function handleKeyDown(event) {
44429
+ const handler = api.keyboardHandlers[event.key];
44430
+ if (!handler) return;
44431
+ handler(event);
44432
+ rerender();
44433
+ }
44429
44434
  function handlePrev() {
44430
44435
  api.prev();
44431
44436
  rerender();