gantri-components 1.131.0 → 1.132.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.
@@ -19,6 +19,7 @@ export interface ImageProps {
19
19
  objectFit?: Optional<ResolutionAwareProp<Property.ObjectFit>>;
20
20
  objectPosition?: Optional<ResolutionAwareProp<Property.ObjectPosition>>;
21
21
  observerMargin?: string;
22
+ onClick?: () => void;
22
23
  quality?: Optional<TransformationQuality>;
23
24
  showLoadingIndicator?: Optional<boolean>;
24
25
  source?: Optional<ImageSource>;
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { InViewProps } from './in-view.types';
3
+ export declare const InView: FC<PropsWithChildren<InViewProps>>;
@@ -0,0 +1,2 @@
1
+ import { InViewProps } from './in-view.types';
2
+ export declare const InViewPresets: InViewProps;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * rootMargin, threshold should be specified according to the specifications of IntersectionObserver api
3
+ * https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
4
+ * */
5
+ export interface InViewProps {
6
+ rootMargin?: string;
7
+ threshold?: number;
8
+ /**
9
+ * If true, the observer will stop executing after it actives once
10
+ * */
11
+ triggerOnce?: boolean;
12
+ }
@@ -0,0 +1 @@
1
+ export * from './in-view';
@@ -16,6 +16,7 @@ export * from './formik-input';
16
16
  export * from './grid';
17
17
  export * from './icon';
18
18
  export * from './image';
19
+ export * from './in-view';
19
20
  export * from './linear-progress';
20
21
  export * from './modal';
21
22
  export * from './overlay';