@mantine/carousel
Advanced tools
Comparing version 5.8.3 to 5.8.4
@@ -198,3 +198,3 @@ 'use strict'; | ||
return void 0; | ||
}, [embla]); | ||
}, [embla, slidesToScroll]); | ||
React.useEffect(() => { | ||
@@ -206,3 +206,3 @@ if (embla) { | ||
} | ||
}, [React.Children.toArray(children).length]); | ||
}, [React.Children.toArray(children).length, slidesToScroll]); | ||
const canScrollPrev = (embla == null ? void 0 : embla.canScrollPrev()) || false; | ||
@@ -209,0 +209,0 @@ const canScrollNext = (embla == null ? void 0 : embla.canScrollNext()) || false; |
@@ -189,3 +189,3 @@ import React, { forwardRef, useState, useCallback, useEffect, Children } from 'react'; | ||
return void 0; | ||
}, [embla]); | ||
}, [embla, slidesToScroll]); | ||
useEffect(() => { | ||
@@ -197,3 +197,3 @@ if (embla) { | ||
} | ||
}, [Children.toArray(children).length]); | ||
}, [Children.toArray(children).length, slidesToScroll]); | ||
const canScrollPrev = (embla == null ? void 0 : embla.canScrollPrev()) || false; | ||
@@ -200,0 +200,0 @@ const canScrollNext = (embla == null ? void 0 : embla.canScrollNext()) || false; |
{ | ||
"name": "@mantine/carousel", | ||
"description": "Embla based carousel", | ||
"version": "5.8.3", | ||
"version": "5.8.4", | ||
"main": "cjs/index.js", | ||
@@ -25,4 +25,4 @@ "module": "esm/index.js", | ||
"peerDependencies": { | ||
"@mantine/core": "5.8.3", | ||
"@mantine/hooks": "5.8.3", | ||
"@mantine/core": "5.8.4", | ||
"@mantine/hooks": "5.8.4", | ||
"embla-carousel-react": "^7.0.0", | ||
@@ -32,5 +32,5 @@ "react": ">=16.8.0" | ||
"dependencies": { | ||
"@mantine/utils": "5.8.3" | ||
"@mantine/utils": "5.8.4" | ||
}, | ||
"devDependencies": {} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
142872
+ Added@mantine/core@5.8.4(transitive)
+ Added@mantine/hooks@5.8.4(transitive)
+ Added@mantine/styles@5.8.4(transitive)
+ Added@mantine/utils@5.8.4(transitive)
- Removed@mantine/core@5.8.3(transitive)
- Removed@mantine/hooks@5.8.3(transitive)
- Removed@mantine/styles@5.8.3(transitive)
- Removed@mantine/utils@5.8.3(transitive)
Updated@mantine/utils@5.8.4