@majoo-ui/react 1.55.6 → 1.55.8

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.
@@ -705,7 +705,7 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
705
705
  */
706
706
  css?: CSS;
707
707
  /**
708
- * Render custom footer inside option
708
+ * Render custom footer inside option. If onClick not working on mobile, you can using both onClick and onTouchStart.
709
709
  */
710
710
  renderFooter?: () => React.ReactNode;
711
711
  }
@@ -1,7 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface ProgressListData {
3
3
  progress: number;
4
- title: string;
4
+ title: string | (() => HTMLElement | React.ReactElement | JSX.Element);
5
+ icon?: React.ReactElement | undefined;
5
6
  }
6
7
  interface ProgressIndicatorProps {
7
8
  progress: number;
@@ -19,7 +19,8 @@ interface MobileTableProps {
19
19
  css?: CSS;
20
20
  customRowsStyle?: (e: any) => CustomRowsStyle[];
21
21
  cellAlign?: 'top' | 'center' | 'bottom';
22
- renderContextMenu?: () => JSX.Element;
22
+ renderContextMenu: () => JSX.Element;
23
+ handleRowClick: (row: object, index: number) => void;
23
24
  }
24
25
  declare const MobileTable: React.ForwardRefExoticComponent<MobileTableProps & React.RefAttributes<HTMLDivElement>>;
25
26
  export default MobileTable;
@@ -1241,8 +1241,12 @@ export interface TableProps {
1241
1241
  */
1242
1242
  showDuplicatedData?: boolean;
1243
1243
  onRowClick?: (record: Row, index: number) => void;
1244
+ /**
1245
+ * Additional props for Hide Pagination
1246
+ */
1247
+ hidePagination?: boolean;
1244
1248
  }
1245
- export declare function Table({ columns, data: rawData, keyId, pageIndex: controlledPageIndex, totalPage, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps: emptyDataProps, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, }: TableProps): JSX.Element;
1249
+ export declare function Table({ columns, data: rawData, keyId, pageIndex: controlledPageIndex, totalPage, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps: emptyDataProps, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, hidePagination, }: TableProps): JSX.Element;
1246
1250
  export interface TableColumnProps {
1247
1251
  /**
1248
1252
  * Required if accessor is a function<br/>
@@ -1,2 +1,2 @@
1
1
  import { PixelCrop } from 'react-image-crop';
2
- export declare function imgPreview(image: HTMLImageElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any): Promise<unknown>;
2
+ export declare function imgPreview(image: HTMLImageElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any, type: any): Promise<unknown>;
package/index.esm.css CHANGED
@@ -779,27 +779,14 @@
779
779
 
780
780
  border-radius: 100%;
781
781
  display: inline-block;
782
- -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
783
782
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
784
783
  }
785
784
  .rdw-spinner .rdw-bounce1 {
786
- -webkit-animation-delay: -0.32s;
787
785
  animation-delay: -0.32s;
788
786
  }
789
787
  .rdw-spinner .rdw-bounce2 {
790
- -webkit-animation-delay: -0.16s;
791
788
  animation-delay: -0.16s;
792
789
  }
793
- @-webkit-keyframes sk-bouncedelay {
794
- 0%,
795
- 80%,
796
- 100% {
797
- -webkit-transform: scale(0);
798
- }
799
- 40% {
800
- -webkit-transform: scale(1);
801
- }
802
- }
803
790
  @keyframes sk-bouncedelay {
804
791
  0%,
805
792
  80%,