gantri-components 1.57.0 → 1.58.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,7 +1,4 @@
1
1
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
2
2
  import { ImageTransformationsVariant, Transformations } from './image.types';
3
3
  import { Optional } from '../../types/common';
4
- export declare const FULL_WIDTH_TRANSFORMATIONS: Optional<ResolutionAwareProp<Transformations>>;
5
- export declare const HALF_WIDTH_TRANSFORMATIONS: Optional<ResolutionAwareProp<Transformations>>;
6
- export declare const QUARTER_WIDTH_TRANSFORMATIONS: Optional<ResolutionAwareProp<Transformations>>;
7
4
  export declare const TRANSFORMATION_VARIANTS_MAP: Record<ImageTransformationsVariant, Optional<ResolutionAwareProp<Transformations>>>;
@@ -2,7 +2,16 @@ 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
- export declare type ImageTransformationsVariant = 'full-width' | 'half-width' | 'quarter-width';
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
+ export declare type ImageTransformationsVariant = 'f' | 'h' | 'q' | 'ffh' | 'hff' | 'hhf';
6
15
  export interface ImageProps {
7
16
  alt: string;
8
17
  aspectRatio?: Optional<ResolutionAwareProp<string>>;