@upbound/monarch-blocks 0.8.0 → 0.8.2

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.
@@ -175,4 +175,5 @@ declare function DataTableEmptyView({ emptyView, tableState, filterCount, resetF
175
175
  resetFilters: () => void;
176
176
  }): React.JSX.Element;
177
177
 
178
- export { type DataTableEmptyConfig as D, type TableDataState as T, DataTableEmptyView as a, defaultErrorConfig as b, defaultNoFilterFoundConfig as c, defaultEmptyConfig as d };
178
+ export { DataTableEmptyView as a, defaultErrorConfig as b, defaultNoFilterFoundConfig as c, defaultEmptyConfig as d };
179
+ export type { DataTableEmptyConfig as D, TableDataState as T };
@@ -80,4 +80,5 @@ interface FilterChipProps {
80
80
  }
81
81
  declare function FilterChip({ definition, value, autoOpen, container, onChangeValue, onRemove }: FilterChipProps): React.JSX.Element;
82
82
 
83
- export { type ActiveFilter, type CheckboxFilterDefinition, type CheckboxFilterValue, type DateFilterDefinition, type DateFilterValue, FilterBar, type FilterBarProps, FilterChip, type FilterDefinition, type FilterOption, type FilterType, type FilterValue, type MultiTextFilterDefinition, type MultiTextFilterValue, type RadioFilterDefinition, type RadioFilterValue, type TextFilterDefinition, type TextFilterValue };
83
+ export { FilterBar, FilterChip };
84
+ export type { ActiveFilter, CheckboxFilterDefinition, CheckboxFilterValue, DateFilterDefinition, DateFilterValue, FilterBarProps, FilterDefinition, FilterOption, FilterType, FilterValue, MultiTextFilterDefinition, MultiTextFilterValue, RadioFilterDefinition, RadioFilterValue, TextFilterDefinition, TextFilterValue };
package/dist/graph.d.ts CHANGED
@@ -2,7 +2,8 @@ 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-CQtcr_Ew.js';
5
+ import { T as TableDataState } from './empty-view-CjRwaITk.js';
6
+ import { DataTableEmptyConfig } from './data-table.js';
6
7
  import '@upbound/monarch-core';
7
8
 
8
9
  type GraphBadgeVariant = 'default' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link' | 'healthy' | 'unhealthy' | 'warning' | 'stale' | 'info' | 'unknown';
@@ -179,4 +180,5 @@ declare const getGraphDescendants: (node: Node, nodes: Node[], edges: Edge[]) =>
179
180
  edges: Edge[];
180
181
  };
181
182
 
182
- export { type AutoLayoutReturn, Graph, type GraphActions, GraphActionsProvider, type GraphActionsProviderRef, type GraphBadgeVariant, type GraphDataState, GraphEdge, type GraphEmptyView, GraphNode, type GraphNodeProps, GraphNodeSkeleton, type GraphOptions, type GraphProps, GraphView, type NodeData, type NodeDefault, type NodeLoading, type UseNodeVisibilityReturn, defaultGraphEmptyConfig, defaultGraphErrorConfig, defaultGraphNoFilterFoundConfig, getGraphDescendants, isDefaultNode, useAutoLayout, useGetViewportNodeIds, useGraphActions, useGraphActionsContext, useNodeVisibility };
183
+ export { Graph, GraphActionsProvider, GraphEdge, GraphNode, GraphNodeSkeleton, GraphView, defaultGraphEmptyConfig, defaultGraphErrorConfig, defaultGraphNoFilterFoundConfig, getGraphDescendants, isDefaultNode, useAutoLayout, useGetViewportNodeIds, useGraphActions, useGraphActionsContext, useNodeVisibility };
184
+ export type { AutoLayoutReturn, GraphActions, GraphActionsProviderRef, GraphBadgeVariant, GraphDataState, GraphEmptyView, GraphNodeProps, GraphOptions, GraphProps, NodeData, NodeDefault, NodeLoading, UseNodeVisibilityReturn };
package/dist/graph.js CHANGED
@@ -489,6 +489,21 @@ function getTableState({
489
489
  return rowCount === 0 ? "empty" : "success";
490
490
  }
491
491
 
492
+ // src/lib/search-input.ts
493
+ var SEARCH_INPUT_PROPS = {
494
+ type: "search",
495
+ autoComplete: "off",
496
+ "data-1p-ignore": true,
497
+ // 1Password
498
+ "data-lpignore": "true",
499
+ // LastPass
500
+ "data-bwignore": true,
501
+ // Bitwarden
502
+ "data-form-type": "other"
503
+ // Dashlane
504
+ };
505
+ var SEARCH_INPUT_CLASS = "[&::-webkit-search-cancel-button]:appearance-none";
506
+
492
507
  // src/data-table/empty-view.tsx
493
508
  import { Alert, AlertDescription } from "@upbound/monarch-core";
494
509
  import { Button } from "@upbound/monarch-core";
@@ -1558,6 +1573,7 @@ function Graph({
1558
1573
  }) {
1559
1574
  var _a, _b, _c;
1560
1575
  const graphRef = React7.useRef(null);
1576
+ const searchInputId = `graph-search-${React7.useId()}`;
1561
1577
  const [innerGlobalFilter, setInnerGlobalFilter] = React7.useState("");
1562
1578
  const [innerColumnFilters, setInnerColumnFilters] = React7.useState([]);
1563
1579
  const globalFilter = parentGlobalFilter != null ? parentGlobalFilter : innerGlobalFilter;
@@ -1627,13 +1643,15 @@ function Graph({
1627
1643
  /* @__PURE__ */ jsx9(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ jsx9(Icon4, { name: "magnifying-glass" }) }),
1628
1644
  /* @__PURE__ */ jsx9(
1629
1645
  InputGroupInput,
1630
- {
1646
+ __spreadProps(__spreadValues({}, SEARCH_INPUT_PROPS), {
1647
+ id: searchInputId,
1648
+ className: SEARCH_INPUT_CLASS,
1631
1649
  "aria-label": "Search",
1632
1650
  placeholder: "Search\u2026",
1633
1651
  disabled: shouldDisable,
1634
1652
  value: globalFilter,
1635
1653
  onChange: (e) => setGlobalFilter(e.target.value)
1636
- }
1654
+ })
1637
1655
  )
1638
1656
  ] }),
1639
1657
  !!Actions && /* @__PURE__ */ jsx9("div", { className: "ml-auto flex items-center gap-2", children: /* @__PURE__ */ jsx9(Actions, { state: graphState }) })