@luscii-healthtech/web-ui 0.10.1 → 0.10.4

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.
@@ -23,7 +23,7 @@ export interface PaginationMenuLargeProps {
23
23
  resultCount?: number;
24
24
  }
25
25
  export declare type OnPaginationChange = (pageNumber: number, pageSize?: PageSize) => void;
26
- export declare type PageSize = 50 | 100 | 150 | 200;
26
+ export declare type PageSize = 25 | 50 | 75 | 100;
27
27
  export interface Localization {
28
28
  display: string;
29
29
  page: string;
@@ -2313,7 +2313,7 @@ var CustomSelect = /*#__PURE__*/React__default.forwardRef(function (props, _ref)
2313
2313
  }));
2314
2314
  });
2315
2315
 
2316
- var PAGE_SIZES = [50, 100, 150, 200];
2316
+ var PAGE_SIZES = [25, 50, 75, 100];
2317
2317
  var PAGE_SIZE_OPTIONS = /*#__PURE__*/PAGE_SIZES.map(function (pageSize) {
2318
2318
  return {
2319
2319
  label: pageSize.toString(),
@@ -2481,7 +2481,7 @@ function Table(_ref) {
2481
2481
  fieldConfigurations: fieldConfigurations
2482
2482
  }) : null, /*#__PURE__*/React__default.createElement(TableBody, {
2483
2483
  className: classNames({
2484
- "border-b border-slate-100": !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0
2484
+ "border-b border-slate-100": !isLoading && !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0
2485
2485
  }),
2486
2486
  items: items,
2487
2487
  fieldConfigurations: fieldConfigurations,
@@ -2490,7 +2490,7 @@ function Table(_ref) {
2490
2490
  isLoading: isLoading,
2491
2491
  showEmptyView: showEmptyView,
2492
2492
  onRowClick: onRowClick
2493
- }), !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0 ? /*#__PURE__*/React__default.createElement(TableFooter, {
2493
+ }), !isLoading && !showEmptyView && paginationMenuProps && paginationMenuProps.currentPageNumber > 0 && paginationMenuProps.pageCount > 0 ? /*#__PURE__*/React__default.createElement(TableFooter, {
2494
2494
  colSpan: fieldConfigurations.length,
2495
2495
  paginationMenuProps: paginationMenuProps
2496
2496
  }) : null);
@@ -2733,15 +2733,11 @@ var List = function List(_ref) {
2733
2733
  };
2734
2734
 
2735
2735
  var setupDragging = function setupDragging() {
2736
- if (onDragEnd) {
2737
- var dragulaInstance = dragula([listRef.current], {
2738
- revertOnSpill: true
2739
- });
2740
- dragulaInstance.on("dragend", handleDragEnd);
2741
- return dragulaInstance;
2742
- }
2743
-
2744
- return null;
2736
+ var dragulaInstance = dragula([listRef.current], {
2737
+ revertOnSpill: true
2738
+ });
2739
+ dragulaInstance.on("dragend", handleDragEnd);
2740
+ return dragulaInstance;
2745
2741
  };
2746
2742
 
2747
2743
  return /*#__PURE__*/React__default.createElement("div", {