@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.
@@ -167,13 +167,12 @@ type DataTableEmptyView = {
167
167
  error?: DataTableEmptyConfig;
168
168
  filter?: DataTableEmptyConfig;
169
169
  };
170
- declare function DataTableEmptyView({ emptyView, tableState, filterCount, resetFilters, className, }: {
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-DO36LNvk.js';
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 p-6", wrapperClassName, className), children: config && // The error state ignores its own config's `className` for outer
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 }),