@matthiaskrijgsman/mat-ui 0.0.39 → 0.0.41
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/components/AutoScroll.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1154 -1133
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,5 +3,11 @@ export type AutoScrollProps = {
|
|
|
3
3
|
duration?: number;
|
|
4
4
|
ease?: "linear" | "easeIn" | "easeOut" | "easeInOut";
|
|
5
5
|
horizontal?: boolean;
|
|
6
|
+
/** Pause auto-scrolling when the user scrolls away from the end; resume when they scroll back. */
|
|
7
|
+
pauseOnScroll?: boolean;
|
|
8
|
+
/** Distance (px) from the end still treated as "pinned" to the end. Defaults to 32. */
|
|
9
|
+
threshold?: number;
|
|
10
|
+
/** Called when the pinned-to-end state changes — e.g. to toggle a "scroll to bottom" affordance. */
|
|
11
|
+
onPinnedChange?: (pinned: boolean) => void;
|
|
6
12
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
7
13
|
export declare const AutoScroll: (props: AutoScrollProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export { DropdownButton } from "./components/dropdown-menu/DropdownButton.tsx";
|
|
|
60
60
|
export { DropdownButtonGroup } from "./components/dropdown-menu/DropdownButtonGroup.tsx";
|
|
61
61
|
export { DropdownPanel } from "./components/dropdown-menu/DropdownPanel.tsx";
|
|
62
62
|
export { DropdownMenu } from "./components/dropdown-menu/DropdownMenu.tsx";
|
|
63
|
+
export { useDropdownDismiss, DropdownDismissContext } from "./components/dropdown-menu/use-dropdown-dismiss.ts";
|
|
63
64
|
export { usePopover } from "./popover/use-popover.tsx";
|
|
64
65
|
export { useSelectPopover } from "./popover/use-select-popover.tsx";
|
|
65
66
|
export { PopoverBase } from "./popover/PopoverBase.tsx";
|