@selfdecode/sd-component-library 2.43.7 → 2.43.8

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,3 @@
1
+ import React from "react";
2
+ import { GridContainerV2Props as Props } from "./interfaces";
3
+ export declare const GridContainerV2: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { GridContainerV2 } from "./grid-container-v2";
@@ -0,0 +1,15 @@
1
+ import { BoxProps } from "rebass";
2
+ export interface GridContainerV2Props extends Omit<BoxProps, "display"> {
3
+ /**
4
+ * Grid columns template.
5
+ */
6
+ gridTemplateColumns?: string | string[];
7
+ /**
8
+ * Grid rows template.
9
+ */
10
+ gridTemplateRows?: string | string[];
11
+ /**
12
+ * Gap between elements.
13
+ */
14
+ gap?: string | string[];
15
+ }
@@ -31,10 +31,6 @@ export interface TabBarV2Props {
31
31
  * Border radius of the tab bar (in px).
32
32
  */
33
33
  borderRadius?: number;
34
- /**
35
- * Side padding of the tab bar.
36
- */
37
- paddingX?: string;
38
34
  /**
39
35
  * Side padding of the tab.
40
36
  */
@@ -20,4 +20,5 @@ export interface TabV2Props extends TabV2Config, Required<Omit<TabBarV2Props, "t
20
20
  * Side padding of the tab
21
21
  */
22
22
  px?: string | string[];
23
+ observer?: IntersectionObserver;
23
24
  }
@@ -41,3 +41,11 @@ export declare function useBreakPoints(): {
41
41
  isTab: boolean;
42
42
  isDesktop: boolean;
43
43
  };
44
+ /**
45
+ * Provided intersection observer for the specified elements.
46
+ *
47
+ * @param rootRef Ref for the root element.
48
+ * @param rootMargin Margin for the root element area.
49
+ * @param callback Function to process intersection changes.
50
+ */
51
+ export declare function useIntersectionObserver(rootRef: RefObject<HTMLElement>, rootMargin: string, callback: IntersectionObserverCallback): IntersectionObserver | undefined;
package/lib/index.d.ts CHANGED
@@ -53,6 +53,7 @@ export { MaxFrContainer } from "./components/containers/grid-containers/max-fr-c
53
53
  export { MaxMaxContainer } from "./components/containers/grid-containers/max-max-container";
54
54
  export { SectionContainer } from "./components/containers/section-container";
55
55
  export { MaxWidthContainer } from "./components/containers/max-width-container";
56
+ export { GridContainerV2 as Grid } from "./components/containers/grid-containers/grid-container-v2";
56
57
  export { CarouselSectionContainer } from "./components/carousels/carousel-section-container";
57
58
  export { ResponsiveGridContainerT1 } from "./components/containers/responsive-containers/responsive-container-t1";
58
59
  export { ResponsiveGridContainerT2 } from "./components/containers/responsive-containers/responsive-container-t2";