@bigbinary/neeto-fields-frontend 2.3.11 → 2.3.12

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.
@@ -22,7 +22,7 @@ import { u as useFetchFields, b as useDestroyField, f as useReorderFields } from
22
22
  import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
23
23
  import NoData from '@bigbinary/neetoui/NoData';
24
24
  import Table from '@bigbinary/neetoui/Table';
25
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
25
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
26
26
  import NeetoUIHeader from '@bigbinary/neeto-molecules/Header';
27
27
  import Button from '@bigbinary/neetoui/Button';
28
28
  import MenuBar from '@bigbinary/neeto-molecules/MenuBar';
@@ -338,8 +338,7 @@ var FieldsTable = function FieldsTable(_ref) {
338
338
  }
339
339
  };
340
340
  }
341
- return /*#__PURE__*/jsx(TableWrapper, {
342
- hasPagination: totalCount > DEFAULT_PAGE_SIZE,
341
+ return /*#__PURE__*/jsx(Fragment, {
343
342
  children: showNoDataScreen ? /*#__PURE__*/jsx("div", {
344
343
  className: "flex h-full w-full items-center justify-center",
345
344
  children: /*#__PURE__*/jsx(NoData, _objectSpread$2({
@@ -350,20 +349,23 @@ var FieldsTable = function FieldsTable(_ref) {
350
349
  title: title
351
350
  })
352
351
  }, noDataProps))
353
- }) : /*#__PURE__*/jsx(Table, {
354
- columnData: columnData,
355
- rowData: rowData,
356
- totalCount: totalCount,
357
- fixedHeight: true,
358
- allowRowClick: false,
359
- currentPageNumber: page,
360
- defaultPageSize: pageSize,
361
- handlePageChange: function handlePageChange(page) {
362
- return setPageProps(_objectSpread$2(_objectSpread$2({}, pageProps), {}, {
363
- page: page
364
- }));
365
- },
366
- loading: isFetching
352
+ }) : /*#__PURE__*/jsx(TableWrapper, {
353
+ hasPagination: totalCount > DEFAULT_PAGE_SIZE,
354
+ children: /*#__PURE__*/jsx(Table, {
355
+ columnData: columnData,
356
+ rowData: rowData,
357
+ totalCount: totalCount,
358
+ fixedHeight: true,
359
+ allowRowClick: false,
360
+ currentPageNumber: page,
361
+ defaultPageSize: pageSize,
362
+ handlePageChange: function handlePageChange(page) {
363
+ return setPageProps(_objectSpread$2(_objectSpread$2({}, pageProps), {}, {
364
+ page: page
365
+ }));
366
+ },
367
+ loading: isFetching
368
+ })
367
369
  })
368
370
  });
369
371
  };
@@ -4797,7 +4799,8 @@ var ReorderPane = function ReorderPane(_ref) {
4797
4799
  };
4798
4800
 
4799
4801
  var Subheader = function Subheader(_ref) {
4800
- var count = _ref.count,
4802
+ var _ref$count = _ref.count,
4803
+ count = _ref$count === void 0 ? 0 : _ref$count,
4801
4804
  reorderable = _ref.reorderable,
4802
4805
  searchKeywordProps = _ref.searchKeywordProps,
4803
4806
  setIsReorderPaneOpen = _ref.setIsReorderPaneOpen,
@@ -4814,6 +4817,7 @@ var Subheader = function Subheader(_ref) {
4814
4817
  count: count
4815
4818
  })
4816
4819
  }), /*#__PURE__*/jsx(FilterBar, {
4820
+ className: "mb-0",
4817
4821
  keyword: searchKeywordProps
4818
4822
  })]
4819
4823
  }),