@mantine-vue/hooks 3.1.0 → 3.2.0

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/esm/index.mjs CHANGED
@@ -1005,7 +1005,7 @@ function range$1(start, end) {
1005
1005
  }
1006
1006
  function usePagination({ total, siblings = 1, boundaries = 1, page, initialPage, onChange, startValue = 1 }) {
1007
1007
  const start = computed(() => Math.max(Math.trunc(startValue), 1));
1008
- const end = computed(() => Math.max(Math.trunc(total), start.value));
1008
+ const end = computed(() => Math.max(Math.trunc(toValue(total)), start.value));
1009
1009
  const totalPages = computed(() => end.value - start.value + 1);
1010
1010
  const firstPage = computed(() => initialPage ?? start.value);
1011
1011
  const [active, setActive] = useUncontrolled({