@touchtech/baselayer-ui 8.3.18 → 8.3.20

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,5 +1,5 @@
1
- import React, { RefObject } from "react";
2
- export type ImageProps = {
1
+ import React, { ImgHTMLAttributes, RefObject } from "react";
2
+ export type ImageProps = ImgHTMLAttributes<HTMLImageElement> & {
3
3
  alt?: string;
4
4
  children?: React.ReactNode;
5
5
  containerRef?: RefObject<HTMLDivElement>;
@@ -11,5 +11,5 @@ export type ImageProps = {
11
11
  loading?: "eager" | "lazy";
12
12
  style?: React.CSSProperties;
13
13
  };
14
- declare function ImageComponent({ src, alt, srcWidth, srcHeight, children, containerRef, layout, decoding, loading, style, }: ImageProps): JSX.Element;
14
+ declare function ImageComponent({ src, alt, srcWidth, srcHeight, children, containerRef, layout, decoding, loading, style, ...otherImageProps }: ImageProps): JSX.Element;
15
15
  export default ImageComponent;
@@ -31,6 +31,7 @@ type Props = {
31
31
  isHeaderSticky?: boolean;
32
32
  hasVirtualScroll?: boolean;
33
33
  className?: string;
34
+ scrollToTop?: boolean;
34
35
  };
35
- declare function Table({ columns, dataSource, onRowClick, hasArrow, onLoadMore, page, setPage, pageSize, tableHeight, placeholder, rowHeight, headerHeight, disableLazyLoader, activeRows, itemsCount, isHeaderSticky, hasVirtualScroll, className, }: Props): JSX.Element;
36
+ declare function Table({ columns, dataSource, onRowClick, hasArrow, onLoadMore, page, setPage, pageSize, tableHeight, placeholder, rowHeight, headerHeight, disableLazyLoader, activeRows, itemsCount, isHeaderSticky, hasVirtualScroll, scrollToTop, className, }: Props): JSX.Element;
36
37
  export default Table;
@@ -1,4 +1,4 @@
1
- import { ReactNode, RefObject } from "react";
1
+ import { ReactNode, RefObject, VideoHTMLAttributes } from "react";
2
2
  /**
3
3
  * There is a known issue in React in regards to the 'muted' property which causes the warning:
4
4
  * "Warning: unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering."
@@ -8,7 +8,7 @@ import { ReactNode, RefObject } from "react";
8
8
  * https://github.com/testing-library/react-testing-library/issues/470
9
9
  */
10
10
  type Layout = "cover" | "contain" | "stretchHorizontally" | "stretchVertically";
11
- export type VideoProps = {
11
+ export type VideoProps = VideoHTMLAttributes<HTMLVideoElement> & {
12
12
  src: string;
13
13
  type: string;
14
14
  layout?: Layout;
@@ -19,5 +19,5 @@ export type VideoProps = {
19
19
  containerRef?: RefObject<HTMLDivElement>;
20
20
  poster?: string;
21
21
  };
22
- declare function Video({ src, type, children, containerRef, poster, muted, loop, autoPlay, layout, }: VideoProps): JSX.Element;
22
+ declare function Video({ src, type, children, containerRef, poster, muted, loop, autoPlay, layout, ...otherVideoProps }: VideoProps): JSX.Element;
23
23
  export default Video;