@blateral/b.kit 2.0.0-beta.27.1 → 2.0.0-beta.28.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/lib/components/base/Section.d.ts.map +1 -1
- package/lib/components/sections/FeatureList.d.ts +4 -0
- package/lib/components/sections/FeatureList.d.ts.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/useEqualSheetHeight.d.ts +2 -0
- package/lib/utils/useEqualSheetHeight.d.ts.map +1 -1
- package/lib/utils/usePageScroll.d.ts +2 -0
- package/lib/utils/usePageScroll.d.ts.map +1 -1
- package/lib/utils/useResizeThrottle.d.ts +9 -0
- package/lib/utils/useResizeThrottle.d.ts.map +1 -0
- package/lib/utils/useScrollThrottle.d.ts +7 -0
- package/lib/utils/useScrollThrottle.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ export declare const useEqualSheetHeight: <T extends HTMLElement>(props: {
|
|
|
10
10
|
listLength: number;
|
|
11
11
|
identifiers: string[];
|
|
12
12
|
responsive?: ItemsPerRow;
|
|
13
|
+
/** Throttle timeout for resize events. Default: 400ms */
|
|
14
|
+
resizeThrottleTimeout?: number;
|
|
13
15
|
}) => {
|
|
14
16
|
sheetRefs: MutableRefObject<T>[];
|
|
15
17
|
triggerCalculation: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEqualSheetHeight.d.ts","sourceRoot":"","sources":["../../src/utils/useEqualSheetHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,gBAAgB,EAGnB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useEqualSheetHeight.d.ts","sourceRoot":"","sources":["../../src/utils/useEqualSheetHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,gBAAgB,EAGnB,MAAM,OAAO,CAAC;AAKf,UAAU,WAAW;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD,eAAO,MAAM,mBAAmB,iCAAkC;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,yDAAyD;IACzD,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC;;;CAqIA,CAAC"}
|
|
@@ -12,6 +12,8 @@ interface ScrollSettings {
|
|
|
12
12
|
offset?: number;
|
|
13
13
|
/** On leave top offset callback */
|
|
14
14
|
onLeftOffset?: (dir: PageScrollDirection) => void;
|
|
15
|
+
/** Throttle timeout of resize event. Default: 200ms */
|
|
16
|
+
resizeThrottleTimeout?: number;
|
|
15
17
|
}
|
|
16
18
|
declare const usePageScroll: (settings?: ScrollSettings | undefined) => {
|
|
17
19
|
isTop: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePageScroll.d.ts","sourceRoot":"","sources":["../../src/utils/usePageScroll.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePageScroll.d.ts","sourceRoot":"","sources":["../../src/utils/usePageScroll.ts"],"names":[],"mappings":"AAGA,oBAAY,mBAAmB;IAC3B,EAAE,IAAA;IACF,IAAI,IAAA;CACP;AAED,UAAU,cAAc;IACpB,6CAA6C;IAC7C,eAAe,CAAC,EAAE;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClD,uDAAuD;IACvD,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,QAAA,MAAM,aAAa;;;;;CAgGlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ResizeState {
|
|
2
|
+
clientWidth: number;
|
|
3
|
+
clientHeight: number;
|
|
4
|
+
innerHeight: number;
|
|
5
|
+
innerWidth: number;
|
|
6
|
+
}
|
|
7
|
+
declare const useResizeThrottle: (timeout?: number, callback?: ((state: ResizeState) => void) | undefined) => ResizeState | null;
|
|
8
|
+
export default useResizeThrottle;
|
|
9
|
+
//# sourceMappingURL=useResizeThrottle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResizeThrottle.d.ts","sourceRoot":"","sources":["../../src/utils/useResizeThrottle.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,iBAAiB,yCAEA,WAAW,KAAK,IAAI,oCAqD1C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ScrollState {
|
|
2
|
+
scrollY: number;
|
|
3
|
+
scrollX: number;
|
|
4
|
+
}
|
|
5
|
+
declare const useScrollThrottle: (timeout?: number, callback?: ((state: ScrollState) => void) | undefined) => ScrollState | null;
|
|
6
|
+
export default useScrollThrottle;
|
|
7
|
+
//# sourceMappingURL=useScrollThrottle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrollThrottle.d.ts","sourceRoot":"","sources":["../../src/utils/useScrollThrottle.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,iBAAiB,yCAEA,WAAW,KAAK,IAAI,oCA+C1C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|