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

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
  }
@@ -1670,9 +1667,6 @@ video {
1670
1667
  .pl-2 {
1671
1668
  padding-left: 0.5rem;
1672
1669
  }
1673
- .pl-3 {
1674
- padding-left: 0.75rem;
1675
- }
1676
1670
  .pl-4 {
1677
1671
  padding-left: 1rem;
1678
1672
  }
@@ -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 })
@@ -22061,7 +22062,7 @@ function DataTableServer({
22061
22062
  options: filterOptions[String(filterParam)] || [],
22062
22063
  value: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
22063
22064
  clearable: true,
22064
- className: "pl-3"
22065
+ className: "px-1"
22065
22066
  }
22066
22067
  ),
22067
22068
  filterType && filterType !== "select" && /* @__PURE__ */ jsx(
@@ -22076,7 +22077,7 @@ function DataTableServer({
22076
22077
  type: filterType,
22077
22078
  value: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
22078
22079
  clearable: true,
22079
- className: "max-w-[300px] min-w-[100px] pl-3"
22080
+ className: "max-w-[300px] min-w-[100px] px-1"
22080
22081
  }
22081
22082
  )
22082
22083
  ]
@@ -22151,7 +22152,7 @@ function DataTableServer({
22151
22152
  "td",
22152
22153
  {
22153
22154
  onClick: rowAction ? () => rowAction(item) : void 0,
22154
- className: `px-3 py-2 cursor-pointer ${colIndex === 0 ? "font-medium text-gray-900" : "text-gray-700"} ${classes || ""}`,
22155
+ className: `px-3 py-2 ${rowAction ? "cursor-pointer" : ""} ${colIndex === 0 ? "font-medium text-gray-900" : "text-gray-700"} ${classes || ""}`,
22155
22156
  children: [
22156
22157
  render ? render(item) : "",
22157
22158
  actions && actions.filter((it) => {