gantri-components 1.58.0 → 1.59.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.
@@ -1,3 +1,4 @@
1
1
  import { StyledImageContainerProps, StyledImageProps } from './image.types';
2
2
  export declare const StyledImageContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledImageContainerProps, never>;
3
3
  export declare const StyledImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, StyledImageProps, never>;
4
+ export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -2,15 +2,6 @@ import { Property } from 'csstype';
2
2
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
3
3
  import { Color } from '../../styles';
4
4
  import { Optional } from '../../types/common';
5
- /**
6
- * Used to define common transformation for images.
7
- * f => full width
8
- * h => half width
9
- * q => quarter width
10
- * ffh => desktop full width, tablet full width, mobile half width
11
- * hff => desktop half width, tablet full width, mobile full width
12
- * hhf => desktop half width, tablet half width, mobile full width
13
- */
14
5
  export declare type ImageTransformationsVariant = 'f' | 'h' | 'q' | 'ffh' | 'hff' | 'hhf';
15
6
  export interface ImageProps {
16
7
  alt: string;
@@ -32,6 +23,15 @@ export interface ImageProps {
32
23
  source?: Optional<ImageSource>;
33
24
  src: ResolutionAwareProp<string>;
34
25
  transformations?: Optional<ResolutionAwareProp<Transformations>>;
26
+ /**
27
+ * Used to define common transformation for images.
28
+ * f => full width
29
+ * h => half width
30
+ * q => quarter width
31
+ * ffh => desktop full width, tablet full width, mobile half width
32
+ * hff => desktop half width, tablet full width, mobile full width
33
+ * hhf => desktop half width, tablet half width, mobile full width
34
+ */
35
35
  transformationsVariant?: Optional<ImageTransformationsVariant>;
36
36
  width?: Optional<ResolutionAwareProp<string | number>>;
37
37
  }