@addsign/moje-agenda-shared-lib 0.0.94 → 0.0.95

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.
@@ -846,9 +846,6 @@ video {
846
846
  .max-h-full {
847
847
  max-height: 100%;
848
848
  }
849
- .min-h-14 {
850
- min-height: 3.5rem;
851
- }
852
849
  .min-h-5 {
853
850
  min-height: 1.25rem;
854
851
  }
@@ -13,6 +13,7 @@ interface DataTableServerProps<T> {
13
13
  title?: string;
14
14
  subtitle?: string;
15
15
  allowSearch?: boolean;
16
+ showHeader?: boolean;
16
17
  rowAction?: (item: T) => void;
17
18
  bulkActions?: BulkAction<T>[];
18
19
  filters?: object;
@@ -21,5 +22,5 @@ type DataTableInternalItems = {
21
22
  _isHighlighted?: boolean;
22
23
  id: string;
23
24
  };
24
- declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns, itemsPerPage, title, subtitle, allowSearch, rowAction, bulkActions, filters, }: DataTableServerProps<T>): import("react/jsx-runtime").JSX.Element;
25
+ declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns, itemsPerPage, title, subtitle, allowSearch, showHeader, rowAction, bulkActions, filters, }: DataTableServerProps<T>): import("react/jsx-runtime").JSX.Element;
25
26
  export default DataTableServer;
@@ -21688,7 +21688,8 @@ function DataTableServer({
21688
21688
  itemsPerPage = 10,
21689
21689
  title,
21690
21690
  subtitle,
21691
- allowSearch = true,
21691
+ allowSearch = false,
21692
+ showHeader = true,
21692
21693
  rowAction,
21693
21694
  bulkActions,
21694
21695
  filters
@@ -21976,7 +21977,7 @@ function DataTableServer({
21976
21977
  className: "shadow-lg border border-gray-200 rounded-xl",
21977
21978
  style: { overflowY: "visible" },
21978
21979
  children: [
21979
- (title || subtitle || allowSearch) && /* @__PURE__ */ jsxs("div", { className: "p-5 leading-9 flex", children: [
21980
+ showHeader && /* @__PURE__ */ jsxs("div", { className: "p-5 leading-9 flex", children: [
21980
21981
  /* @__PURE__ */ jsxs("div", { className: "flex-grow", children: [
21981
21982
  title && /* @__PURE__ */ jsx("h1", { className: "font-semibold text-xl leading-[42px]", children: title }),
21982
21983
  subtitle && /* @__PURE__ */ jsx("p", { className: "font-normal text-gray-600", children: subtitle })