@aic-kits/react 0.14.1 → 0.14.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,3 +1,16 @@
1
1
  import { default as React } from 'react';
2
2
  import { ImageArtProps } from './types';
3
- export declare const ImageArt: ({ art, width, height, style, "data-testid": testId, ...rest }: ImageArtProps) => React.ReactElement;
3
+ /**
4
+ * @component ImageArt
5
+ * @description Renders an image art element. It displays a Skeleton loader
6
+ * while the image is loading and handles potential loading errors.
7
+ *
8
+ * @param {ImageArtProps} props - The props for the component.
9
+ * @param {string} props.art - The URL of the image source.
10
+ * @param {ResponsiveValue<SizeValue>} [props.width] - The width of the art element. Uses defaultSize if not provided.
11
+ * @param {ResponsiveValue<SizeValue>} [props.height] - The height of the art element. Uses defaultSize if not provided.
12
+ * @param {React.CSSProperties} [props.style] - Custom CSS styles for the container Box.
13
+ * @param {string} [props.'data-testid'] - Test ID for the container Box.
14
+ * @returns {React.ReactElement} The rendered ImageArt component.
15
+ */
16
+ export declare const ImageArt: ({ art, width, height, style, "data-testid": testId, alt, fallback, ...boxProps }: ImageArtProps) => React.ReactElement;
@@ -78,6 +78,14 @@ export interface ImageArtProps extends BaseArtProps, WidthHeightProps {
78
78
  * Image URL
79
79
  */
80
80
  art: string;
81
+ /**
82
+ * Alternative text
83
+ */
84
+ alt?: string;
85
+ /**
86
+ * Fallback text or React node
87
+ */
88
+ fallback?: string | React.ReactNode;
81
89
  }
82
90
  export interface BrandArtProps extends BaseArtProps, WidthHeightProps {
83
91
  /**
@@ -1 +1,2 @@
1
1
  export * from './useMediaQuery';
2
+ export * from './usePrevious';
@@ -0,0 +1,2 @@
1
+ declare function usePrevious<T>(value: T): T | undefined;
2
+ export default usePrevious;