@upbound/monarch-blocks 0.7.3 → 0.8.0
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/data-table.d.ts +2 -2
- package/dist/data-table.js +2 -5
- package/dist/data-table.js.map +1 -1
- package/dist/{empty-view-DO36LNvk.d.ts → empty-view-CQtcr_Ew.d.ts} +1 -2
- package/dist/graph.d.ts +1 -1
- package/dist/graph.js +2 -5
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/data-table.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, Dispatch, SetStateAction, ComponentType } from 'react';
|
|
|
3
3
|
import { RowData, ColumnFilter, Cell, Column, ColumnOrderState, Row, ColumnDef, CellContext, HeaderGroup, TableOptions, TableState, InitialTableState, SortingFn, FilterFn, ExpandedState, ColumnFiltersState, PaginationState, SortingState, VisibilityState, ColumnPinningState, GroupingState, OnChangeFn, ColumnSizingState } from '@tanstack/react-table';
|
|
4
4
|
import { DropdownMenuItem } from '@upbound/monarch-core';
|
|
5
5
|
import { f as CelFilterSchema, g as CelFilterTree, k as CompileResult, i as CelRestrictedOptionSelectPayload } from './types-BULiU2qC.js';
|
|
6
|
-
import { T as TableDataState, a as DataTableEmptyView } from './empty-view-
|
|
7
|
-
export { D as DataTableEmptyConfig, d as defaultEmptyConfig, b as defaultErrorConfig, c as defaultNoFilterFoundConfig } from './empty-view-
|
|
6
|
+
import { T as TableDataState, a as DataTableEmptyView } from './empty-view-CQtcr_Ew.js';
|
|
7
|
+
export { D as DataTableEmptyConfig, d as defaultEmptyConfig, b as defaultErrorConfig, c as defaultNoFilterFoundConfig } from './empty-view-CQtcr_Ew.js';
|
|
8
8
|
|
|
9
9
|
/** A single entry (or nested submenu) in a cell's contextual right-click menu, alongside the built-in "Filter by this value" item. */
|
|
10
10
|
type ContextualMenuAction<TData extends RowData = RowData, TValue = unknown> = {
|
package/dist/data-table.js
CHANGED
|
@@ -2995,8 +2995,7 @@ function DataTableEmptyView({
|
|
|
2995
2995
|
emptyView,
|
|
2996
2996
|
tableState,
|
|
2997
2997
|
filterCount,
|
|
2998
|
-
resetFilters
|
|
2999
|
-
className
|
|
2998
|
+
resetFilters
|
|
3000
2999
|
}) {
|
|
3001
3000
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
3002
3001
|
const isFilteredEmpty = tableState === "empty" && filterCount > 0;
|
|
@@ -3006,9 +3005,7 @@ function DataTableEmptyView({
|
|
|
3006
3005
|
/* @__PURE__ */ jsx6(Icon4, { name: "xmark" }),
|
|
3007
3006
|
"Clear filters"
|
|
3008
3007
|
] }) : null;
|
|
3009
|
-
return /* @__PURE__ */ jsx6("div", { className: cn("flex size-full flex-col justify-center
|
|
3010
|
-
// padding, matching the source's forced `pt-0` on that branch.
|
|
3011
|
-
/* @__PURE__ */ jsxs5(Empty, { className: tableState === "error" ? "pt-0" : config.className, children: [
|
|
3008
|
+
return /* @__PURE__ */ jsx6("div", { className: cn("flex size-full flex-col justify-center", wrapperClassName), children: config && /* @__PURE__ */ jsxs5(Empty, { className: cn("border border-dashed", config.className), children: [
|
|
3012
3009
|
/* @__PURE__ */ jsxs5(EmptyHeader, { children: [
|
|
3013
3010
|
config.icon && /* @__PURE__ */ jsx6(EmptyMedia, { children: /* @__PURE__ */ jsx6(IconTile, { variant: "branded", children: /* @__PURE__ */ jsx6(Icon4, { name: config.icon }) }) }),
|
|
3014
3011
|
config.header && /* @__PURE__ */ jsx6(EmptyTitle, { children: config.header }),
|