@ehfuse/overlay-scrollbar 1.7.22 → 1.7.23

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.
@@ -0,0 +1,22 @@
1
+ import type React from "react";
2
+ /**
3
+ * 스크롤 컨테이너의 `padding-bottom` 은 내용이 넘칠 때 브라우저가 스크롤 가능 영역(scrollHeight)에
4
+ * 포함시키지 않는다. `padding-top` 은 반영되지만 bottom 만 무시되는 블록/플렉스 오버플로 동작이라,
5
+ * 사용자가 `containerStyle`/`contentStyle` 에 `paddingBottom` 을 줘도 스크롤 끝에서 여백이 사라진다.
6
+ *
7
+ * 그래서 이 컴포넌트는 지정된 하단 padding 을 스타일에서 걷어내고, 같은 높이의 spacer 엘리먼트를
8
+ * content 맨 끝에 렌더해 동일한 여백을 실제 레이아웃 높이로 만들어 준다.
9
+ */
10
+ /** CSS 길이 값을 px 숫자로 바꾼다. px/숫자만 지원하고 그 외 단위(%, em 등)는 null 을 반환한다. */
11
+ export declare const toPixelLength: (value: string | number | undefined) => number | null;
12
+ /** paddingBottom 을 걷어낸 스타일과, spacer 로 옮길 높이(px)를 함께 반환한다. */
13
+ export interface ExtractedBottomPadding {
14
+ style: React.CSSProperties | undefined;
15
+ spacerHeight: number;
16
+ }
17
+ /**
18
+ * 스타일에서 하단 padding 을 분리한다.
19
+ * px 로 환산 가능한 값만 spacer 로 옮기고, %/em 같이 환산 불가한 값은 원래 스타일에 그대로 둔다.
20
+ */
21
+ export declare const extractBottomPadding: (style: React.CSSProperties | undefined) => ExtractedBottomPadding;
22
+ //# sourceMappingURL=bottomSpacerUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bottomSpacerUtils.d.ts","sourceRoot":"","sources":["../../src/utils/bottomSpacerUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;GAOG;AAEH,sEAAsE;AACtE,eAAO,MAAM,aAAa,GACtB,OAAO,MAAM,GAAG,MAAM,GAAG,SAAS,KACnC,MAAM,GAAG,IAaX,CAAC;AAiCF,6DAA6D;AAC7D,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC7B,OAAO,KAAK,CAAC,aAAa,GAAG,SAAS,KACvC,sBA2BF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/overlay-scrollbar",
3
- "version": "1.7.22",
3
+ "version": "1.7.23",
4
4
  "description": "A React component that provides a custom overlay scrollbar with smooth animations and auto-hide functionality",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",