@croquiscom/pds 15.11.0 → 15.11.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 15.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ef3298d: ImagePreview 너비, 높이 Props 확장
8
+
3
9
  ## 15.11.0
4
10
 
5
11
  ### Minor Changes
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
+ import { CSSValueWithLength } from '../../styles';
2
3
  export interface ImagePreviewProps {
3
4
  src?: string;
4
- width?: number;
5
- height?: number;
5
+ width?: CSSValueWithLength;
6
+ height?: CSSValueWithLength;
6
7
  alt?: string;
7
8
  label?: string;
8
9
  objectFit: 'contain' | 'cover' | 'fill';
@@ -12,13 +13,9 @@ export interface ImagePreviewProps {
12
13
  error?: boolean;
13
14
  onClick?: (image_url: string) => void;
14
15
  }
15
- export declare const getImagePreviewSize: ({ size, width, height }: Pick<ImagePreviewProps, 'size' | 'width' | 'height'>) => string;
16
+ export declare const getImagePreviewSize: ({ size, width, height }: Pick<ImagePreviewProps, 'size' | 'width' | 'height'>) => string | undefined;
16
17
  export declare const ImagePreview: React.ForwardRefExoticComponent<ImagePreviewProps & React.RefAttributes<HTMLImageElement>>;
17
18
  export declare const ImagePreviewContainer: import("@emotion/styled").StyledComponent<{
18
19
  theme?: import("@emotion/react").Theme | undefined;
19
20
  as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
20
- } & {
21
- size: 'medium' | 'small';
22
- width?: number | undefined;
23
- height?: number | undefined;
24
- }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
+ } & Pick<ImagePreviewProps, "width" | "height" | "size">, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -9,3 +9,4 @@ export declare const WithLabel: Story;
9
9
  export declare const Dark: Story;
10
10
  export declare const OnloadError: Story;
11
11
  export declare const SyncSrc: Story;
12
+ export declare const Fill: Story;