mtxuilib 0.1.305 → 0.1.308
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Button } from "react-day-picker";
|
|
3
4
|
import { IconArrowDown } from "../icons/icons-ai";
|
|
4
5
|
import { cn } from "../lib/utils";
|
|
5
|
-
import { Button } from "../ui/button";
|
|
6
6
|
export function ButtonScrollToBottom({ className, isAtBottom, scrollToBottom, ...props }) {
|
|
7
7
|
return (_jsxs(Button, { variant: "outline", size: "icon", className: cn("absolute right-4 top-1 z-10 bg-background transition-opacity duration-300 sm:right-8 md:top-2", isAtBottom ? "opacity-0" : "opacity-100", className), onClick: () => scrollToBottom(), ...props, children: [_jsx(IconArrowDown, {}), _jsx("span", { className: "sr-only", children: "Scroll to bottom" })] }));
|
|
8
8
|
}
|