@upbound/monarch-blocks 0.7.2 → 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 +2 -2
|
@@ -167,13 +167,12 @@ type DataTableEmptyView = {
|
|
|
167
167
|
error?: DataTableEmptyConfig;
|
|
168
168
|
filter?: DataTableEmptyConfig;
|
|
169
169
|
};
|
|
170
|
-
declare function DataTableEmptyView({ emptyView, tableState, filterCount, resetFilters,
|
|
170
|
+
declare function DataTableEmptyView({ emptyView, tableState, filterCount, resetFilters, }: {
|
|
171
171
|
emptyView?: DataTableEmptyView;
|
|
172
172
|
/** `'success'`/`'loading'` render nothing here — the table body handles those. */
|
|
173
173
|
tableState: TableDataState;
|
|
174
174
|
filterCount: number;
|
|
175
175
|
resetFilters: () => void;
|
|
176
|
-
className?: string;
|
|
177
176
|
}): React.JSX.Element;
|
|
178
177
|
|
|
179
178
|
export { type DataTableEmptyConfig as D, type TableDataState as T, DataTableEmptyView as a, defaultErrorConfig as b, defaultNoFilterFoundConfig as c, defaultEmptyConfig as d };
|
package/dist/graph.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Node, NodeProps, Edge, EdgeProps, NodeTypes, EdgeTypes } from 'reactflo
|
|
|
2
2
|
export { Edge, Node } from 'reactflow';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ColumnDef, ColumnFiltersState } from '@tanstack/react-table';
|
|
5
|
-
import { D as DataTableEmptyConfig, T as TableDataState } from './empty-view-
|
|
5
|
+
import { D as DataTableEmptyConfig, T as TableDataState } from './empty-view-CQtcr_Ew.js';
|
|
6
6
|
import '@upbound/monarch-core';
|
|
7
7
|
|
|
8
8
|
type GraphBadgeVariant = 'default' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link' | 'healthy' | 'unhealthy' | 'warning' | 'stale' | 'info' | 'unknown';
|
package/dist/graph.js
CHANGED
|
@@ -515,8 +515,7 @@ function DataTableEmptyView({
|
|
|
515
515
|
emptyView,
|
|
516
516
|
tableState,
|
|
517
517
|
filterCount,
|
|
518
|
-
resetFilters
|
|
519
|
-
className
|
|
518
|
+
resetFilters
|
|
520
519
|
}) {
|
|
521
520
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
522
521
|
const isFilteredEmpty = tableState === "empty" && filterCount > 0;
|
|
@@ -526,9 +525,7 @@ function DataTableEmptyView({
|
|
|
526
525
|
/* @__PURE__ */ jsx4(Icon2, { name: "xmark" }),
|
|
527
526
|
"Clear filters"
|
|
528
527
|
] }) : null;
|
|
529
|
-
return /* @__PURE__ */ jsx4("div", { className: cn("flex size-full flex-col justify-center
|
|
530
|
-
// padding, matching the source's forced `pt-0` on that branch.
|
|
531
|
-
/* @__PURE__ */ jsxs3(Empty, { className: tableState === "error" ? "pt-0" : config.className, children: [
|
|
528
|
+
return /* @__PURE__ */ jsx4("div", { className: cn("flex size-full flex-col justify-center", wrapperClassName), children: config && /* @__PURE__ */ jsxs3(Empty, { className: cn("border border-dashed", config.className), children: [
|
|
532
529
|
/* @__PURE__ */ jsxs3(EmptyHeader, { children: [
|
|
533
530
|
config.icon && /* @__PURE__ */ jsx4(EmptyMedia, { children: /* @__PURE__ */ jsx4(IconTile, { variant: "branded", children: /* @__PURE__ */ jsx4(Icon2, { name: config.icon }) }) }),
|
|
534
531
|
config.header && /* @__PURE__ */ jsx4(EmptyTitle, { children: config.header }),
|