@sellgar/kit 0.0.175 → 0.0.176

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sellgar/kit",
3
3
  "type": "module",
4
- "version": "0.0.175",
4
+ "version": "0.0.176",
5
5
  "description": "Sellgar kit",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -0,0 +1 @@
1
+ export { StickyStack } from './sticky-stack.tsx';
@@ -0,0 +1,27 @@
1
+ import { default as React } from 'react';
2
+ interface IStickyStackProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ offsetTop?: number;
4
+ /**
5
+ * @deprecated use gap instead.
6
+ */
7
+ step?: number;
8
+ gap?: number;
9
+ zIndexStart?: number;
10
+ }
11
+ interface IStickyStackItemProps extends React.HTMLAttributes<HTMLDivElement> {
12
+ top?: number;
13
+ zIndex?: number;
14
+ }
15
+ interface IInternalStickyStackItemProps extends IStickyStackItemProps {
16
+ __stickyIndex?: number;
17
+ __computedTop?: number;
18
+ __zIndexStart?: number;
19
+ __onElement?(stickyIndex: number, element: HTMLDivElement | null): void;
20
+ }
21
+ declare const StickyStackItemComponent: React.FC<React.PropsWithChildren<IInternalStickyStackItemProps>>;
22
+ declare const StickyStackComponent: React.FC<React.PropsWithChildren<IStickyStackProps>>;
23
+ type TStickyStack = typeof StickyStackComponent & {
24
+ Item: typeof StickyStackItemComponent;
25
+ };
26
+ export declare const StickyStack: TStickyStack;
27
+ export {};