@aic-kits/react 0.3.1 → 0.4.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,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { Size } from '../../theme/common';
2
3
  import { BoxProps } from '../Box';
3
4
  export interface BaseArtProps extends BoxProps {
4
5
  /**
@@ -8,7 +9,7 @@ export interface BaseArtProps extends BoxProps {
8
9
  /**
9
10
  * Height of the art
10
11
  */
11
- height?: string | number;
12
+ height?: Size | string | number;
12
13
  /**
13
14
  * Testing id of the component
14
15
  */
@@ -50,7 +51,7 @@ export interface SvgArtProps extends BaseArtProps {
50
51
  /**
51
52
  * SVG content
52
53
  */
53
- art: string;
54
+ art: React.FunctionComponent<React.SVGAttributes<SVGElement>> | string;
54
55
  }
55
56
  export interface ImageArtProps extends BaseArtProps {
56
57
  /**
@@ -1,4 +1,4 @@
1
- import { Size, Theme } from '../../theme';
1
+ import { Theme, Size } from '../../theme';
2
2
  /**
3
3
  * Helper function to get the actual size value from theme or direct input.
4
4
  */