@moontra/moonui-pro 2.26.12 → 2.26.13

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.
package/dist/index.mjs CHANGED
@@ -73710,7 +73710,7 @@ function DataTableFacetedFilter({
73710
73710
  return label.toLowerCase().includes(searchQuery.toLowerCase());
73711
73711
  });
73712
73712
  }, [availableOptions, searchQuery]);
73713
- const displayTitle = title || columnId;
73713
+ const displayTitle = title || column.columnDef.header || columnId;
73714
73714
  const handleSelect = (value) => {
73715
73715
  const newValues = new Set(selectedValues);
73716
73716
  if (newValues.has(value)) {
@@ -74152,15 +74152,20 @@ function DataTable({
74152
74152
  },
74153
74153
  `quick-${filter.column}-${index2}`
74154
74154
  )) }),
74155
- facetedFilters.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: facetedFilters.map((columnId) => /* @__PURE__ */ jsx(
74156
- DataTableFacetedFilter,
74157
- {
74158
- table,
74159
- column: columnId,
74160
- data
74161
- },
74162
- `faceted-${columnId}`
74163
- )) }),
74155
+ facetedFilters.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: facetedFilters.map((filter, index2) => {
74156
+ const columnId = typeof filter === "string" ? filter : filter.column;
74157
+ const label = typeof filter === "string" ? void 0 : filter.label;
74158
+ return /* @__PURE__ */ jsx(
74159
+ DataTableFacetedFilter,
74160
+ {
74161
+ table,
74162
+ column: columnId,
74163
+ title: label,
74164
+ data
74165
+ },
74166
+ `faceted-${columnId}-${index2}`
74167
+ );
74168
+ }) }),
74164
74169
  filterable && /* @__PURE__ */ jsxs(
74165
74170
  MoonUIButtonPro,
74166
74171
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.26.12",
3
+ "version": "2.26.13",
4
4
  "description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",