hamzus-ui 0.0.89 → 0.0.91
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/index.d.ts
CHANGED
|
@@ -42,6 +42,9 @@ export * as Tooltip from "./src/components/hamzus-ui/AdvancedTooltip";
|
|
|
42
42
|
export { default as ScrollArea } from "./src/components/hamzus-ui/ScrollArea/ScrollArea.svelte"
|
|
43
43
|
export * as Sidebar from "./src/layout/Sidebar"
|
|
44
44
|
|
|
45
|
+
// special
|
|
46
|
+
export { default as Portal } from "./src/components/hamzus-ui/Portal/Portal.svelte"
|
|
47
|
+
|
|
45
48
|
// utils
|
|
46
49
|
export { config as config } from "./src/utils/hamzus.config.js"
|
|
47
50
|
export { getCookie as getCookie } from "./src/utils/clientCookie.js"
|
package/index.js
CHANGED
|
@@ -37,6 +37,9 @@ export * as Tooltip from "./src/components/hamzus-ui/AdvancedTooltip"
|
|
|
37
37
|
export { default as ScrollArea } from "./src/components/hamzus-ui/ScrollArea/ScrollArea.svelte"
|
|
38
38
|
export * as Sidebar from "./src/layout/Sidebar"
|
|
39
39
|
|
|
40
|
+
// special
|
|
41
|
+
export { default as Portal } from "./src/components/hamzus-ui/Portal/Portal.svelte"
|
|
42
|
+
|
|
40
43
|
// utils
|
|
41
44
|
export { config as config } from "./src/utils/hamzus.config.js"
|
|
42
45
|
export { getCookie as getCookie } from "./src/utils/clientCookie.js"
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
export let className = '';
|
|
7
7
|
export let proximity = 20;
|
|
8
8
|
export let isReverse = false
|
|
9
|
+
export let onBottom = ()=>{}
|
|
9
10
|
|
|
10
11
|
let isVisible = false;
|
|
11
12
|
let lastMove = 0;
|
|
@@ -183,7 +184,11 @@
|
|
|
183
184
|
leftTrack = (scrollArea.scrollLeft / scrollWidth) * 100;
|
|
184
185
|
|
|
185
186
|
topTrack = isReverse ? -calcTop : calcTop
|
|
186
|
-
|
|
187
|
+
|
|
188
|
+
const bottom = scrollArea.scrollHeight - scrollArea.scrollTop === scrollArea.clientHeight;
|
|
189
|
+
if (bottom) {
|
|
190
|
+
onBottom()
|
|
191
|
+
}
|
|
187
192
|
}
|
|
188
193
|
function handleDisplayScrollBar() {
|
|
189
194
|
|