gantri-components 2.37.2 → 2.37.3
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.
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { StyledImageContainerProps, StyledImageProps } from './image.types';
|
|
2
2
|
export declare const StyledImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, StyledImageProps, never>;
|
|
3
3
|
export declare const StyledImageOverlay: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, StyledImageProps, never>;
|
|
4
|
-
export declare const StyledImageContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledImageContainerProps
|
|
5
|
-
$hasOverlay?: boolean | undefined;
|
|
6
|
-
}, never>;
|
|
4
|
+
export declare const StyledImageContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledImageContainerProps, never>;
|
|
7
5
|
export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -31,6 +31,7 @@ export interface ImageProps {
|
|
|
31
31
|
observerMargin?: string;
|
|
32
32
|
onClick?: () => void;
|
|
33
33
|
overlaySrc?: string;
|
|
34
|
+
rounded?: boolean;
|
|
34
35
|
showLoadingIndicator?: Optional<boolean>;
|
|
35
36
|
source?: Optional<ImageSource>;
|
|
36
37
|
src: ResolutionAwareProp<string>;
|
|
@@ -60,6 +61,8 @@ export type ImageSource = 'static' | 'dynamic' | 'absolute';
|
|
|
60
61
|
export type TransformationMode = 'scale' | 'limitFit' | 'limitFill' | 'limitPad' | 'fill' | 'fit' | 'crop' | 'pad' | 'imaggaCrop' | 'imaggaScale' | 'minimumFit' | 'minimumPad' | 'fillPad';
|
|
61
62
|
export type TransformationQuality = 'auto' | 'autoBest' | 'autoEco' | 'autoGood' | 'autoLow' | 'jpegmini' | 'jpegminiBest' | 'jpegminiHigh' | 'jpegminiMedium';
|
|
62
63
|
export interface StyledImageContainerProps extends Pick<ImageProps, 'containerAspectRatio' | 'width' | 'height' | 'fallbackColor' | 'maxWidth' | 'maxHeight' | 'minWidth' | 'minHeight'> {
|
|
64
|
+
$hasOverlay?: boolean;
|
|
65
|
+
$rounded?: boolean;
|
|
63
66
|
}
|
|
64
67
|
export interface StyledImageProps extends Pick<ImageProps, 'objectFit' | 'objectPosition'> {
|
|
65
68
|
}
|