@upbound/monarch-blocks 0.8.1 → 0.8.3
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/cel-filter-bar.d.ts +2 -2
- package/dist/chart.d.ts +2 -1
- package/dist/chat-interface.d.ts +2 -1
- package/dist/code-block.d.ts +2 -1
- package/dist/data-table.d.ts +5 -4
- package/dist/{empty-view-CQtcr_Ew.d.ts → empty-view-CjRwaITk.d.ts} +2 -1
- package/dist/filter-bar.d.ts +2 -1
- package/dist/graph.d.ts +4 -2
- package/dist/index.d.ts +2 -2
- package/dist/relative-time.d.ts +2 -1
- package/dist/{types-BULiU2qC.d.ts → types-D3SmFR8j.d.ts} +2 -1
- package/package.json +3 -3
package/dist/cel-filter-bar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { k as CompileResult, t as CelValidationMeta, d as CelFilterCondition, f as CelFilterSchema, V as ValidationIssue, g as CelFilterTree, P as PillActiveSurface, u as CelFilterType, h as CelOperator, v as CelFilterShape, C as CelColumnDefinition, w as CelEmitOn, D as DateCelValue, M as MapKeyCelValue, l as MultiTextCelValue, m as RelativeDurationPreset, c as CelFilterBarProps } from './types-
|
|
3
|
-
export { a as CelColumnOption, b as CelConditionValue, e as CelFilterGroup, i as CelRestrictedOptionSelectPayload, j as CheckboxCelValue, R as RadioCelValue, n as isCelFilterCondition, o as isCelFilterGroup, p as isCheckboxCelValue, q as isDateCelValue, r as isMapKeyCelValue, s as isMultiTextCelValue } from './types-
|
|
2
|
+
import { k as CompileResult, t as CelValidationMeta, d as CelFilterCondition, f as CelFilterSchema, V as ValidationIssue, g as CelFilterTree, P as PillActiveSurface, u as CelFilterType, h as CelOperator, v as CelFilterShape, C as CelColumnDefinition, w as CelEmitOn, D as DateCelValue, M as MapKeyCelValue, l as MultiTextCelValue, m as RelativeDurationPreset, c as CelFilterBarProps } from './types-D3SmFR8j.js';
|
|
3
|
+
export { a as CelColumnOption, b as CelConditionValue, e as CelFilterGroup, i as CelRestrictedOptionSelectPayload, j as CheckboxCelValue, R as RadioCelValue, n as isCelFilterCondition, o as isCelFilterGroup, p as isCheckboxCelValue, q as isDateCelValue, r as isMapKeyCelValue, s as isMultiTextCelValue } from './types-D3SmFR8j.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Applies draft/commit display rules to a raw compile result.
|
package/dist/chart.d.ts
CHANGED
|
@@ -48,4 +48,5 @@ declare function ChartDescription({ className, ...props }: React.ComponentProps<
|
|
|
48
48
|
declare function ChartAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
49
49
|
declare function ChartFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
50
50
|
|
|
51
|
-
export { ChartAction,
|
|
51
|
+
export { ChartAction, ChartContainer, ChartDescription, ChartFooter, ChartHeader, ChartLegend, ChartLegendContent, ChartStyle, ChartTitle, ChartTooltip, ChartTooltipContent };
|
|
52
|
+
export type { ChartConfig };
|
package/dist/chat-interface.d.ts
CHANGED
|
@@ -139,4 +139,5 @@ interface ChatInterfaceProps extends ChatThreadProps, ChatNavRailProps {
|
|
|
139
139
|
}
|
|
140
140
|
declare function ChatInterface({ sessions, activeSessionId, onSelectSession, onNewSession, onOpenRoutines, onOpenConnectors, onOpenCustomize, className, ...threadProps }: ChatInterfaceProps): React.JSX.Element;
|
|
141
141
|
|
|
142
|
-
export { ChatInput,
|
|
142
|
+
export { ChatInput, ChatInterface, ChatMessageBubble, ChatSessionList, ChatThread };
|
|
143
|
+
export type { ChatInputProps, ChatInterfaceProps, ChatMessage, ChatRoutine, ChatSession, ChatSessionListProps, ChatThreadProps, ChatToolCall };
|
package/dist/code-block.d.ts
CHANGED
|
@@ -40,4 +40,5 @@ declare function CodeBlockDownloadButton({ code, fileName, mimeType, className,
|
|
|
40
40
|
mimeType?: string;
|
|
41
41
|
}): React.JSX.Element;
|
|
42
42
|
|
|
43
|
-
export { CodeBlock, CodeBlockBody,
|
|
43
|
+
export { CodeBlock, CodeBlockBody, CodeBlockCopyButton, CodeBlockDownloadButton, CodeBlockFooter, CodeBlockHeader };
|
|
44
|
+
export type { CodeBlockCode, CodeBlockLanguage };
|
package/dist/data-table.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as React$1 from 'react';
|
|
|
2
2
|
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
|
-
import {
|
|
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-
|
|
5
|
+
import { CelFilterSchema, CelFilterTree, CompileResult, CelRestrictedOptionSelectPayload } from './cel-filter-bar.js';
|
|
6
|
+
import { T as TableDataState, a as DataTableEmptyView } from './empty-view-CjRwaITk.js';
|
|
7
|
+
export { D as DataTableEmptyConfig, d as defaultEmptyConfig, b as defaultErrorConfig, c as defaultNoFilterFoundConfig } from './empty-view-CjRwaITk.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> = {
|
|
@@ -388,4 +388,5 @@ type ViewFilterProps<TData extends RowData> = {
|
|
|
388
388
|
*/
|
|
389
389
|
declare function ViewFilter<TData extends RowData>({ columns, columnFilters, onColumnFiltersChange, className, }: ViewFilterProps<TData>): React$1.JSX.Element;
|
|
390
390
|
|
|
391
|
-
export { CellContextualFilter,
|
|
391
|
+
export { CellContextualFilter, ColumnOptions, DataTable, DataTableBody, DataTableCell, DataTableEmptyView, DataTableExpandedRow, DataTableGroupRow, DataTableHeader, DataTablePagination, DataTableRow, DataTableSkeletonBody, DataTableValueCell, ExpandButton, RowActionItem, RowActions, TimestampCell, ViewFilter, getActionsColumnDefinition, getExpandColumnDefinition, normalizePageSizeOptions };
|
|
392
|
+
export type { CellContextualFilterProps, ColumnOptionsProps, ContextualMenuAction, DataTableCelFilterConfig, DataTableFilterVisibilityConfig, DataTablePaginationConfig, DataTablePaginationProps, DataTableProps, DataTableRowProps, DataTableSearchConfig, DataTableValueCellProps, RowCountRelation, StickyHeaderConfig, TableHookOptions, TableLayout, ViewFilterProps };
|
|
@@ -175,4 +175,5 @@ declare function DataTableEmptyView({ emptyView, tableState, filterCount, resetF
|
|
|
175
175
|
resetFilters: () => void;
|
|
176
176
|
}): React.JSX.Element;
|
|
177
177
|
|
|
178
|
-
export {
|
|
178
|
+
export { DataTableEmptyView as a, defaultErrorConfig as b, defaultNoFilterFoundConfig as c, defaultEmptyConfig as d };
|
|
179
|
+
export type { DataTableEmptyConfig as D, TableDataState as T };
|
package/dist/filter-bar.d.ts
CHANGED
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { CelFilterBar, RELATIVE_DURATION_PRESET_VALUES, allowsMultipleConditions, appendCondition, applyDisplayRules, applyOperatorChange, calendarDayEndInstant, calendarDayStartInstant, celStringLiteral, compileCelFilterTree, computeIsEmitReady, createCelNodeId, createDefaultCondition, createEmptyCelFilterTree, dateBoundaryForOperator, denormalizeColumnIdWithReservedNames, denormalizeColumnsWithReservedNames, escapeCelString, formatCalendarDateUtc, formatInstantLabel, getAllowedOperators, getColumnEmitOn, getDefaultOperator, getOperatorLabel, getQuantifierLabel, isDateRangeOperator, isDateRelativeOperator, isDateWindowOperator, isEndOfDayTimestamp, isEndOfMinuteTimestamp, isMultiTextColumn, isRealCalendarDay, isRelativeDateCelValue, isRelativeDurationPreset, isStartOfDayTimestamp, mergeContextualIntoCelTree, normalizeColumnsWithReservedNames, parseCalendarDate, readDateCelValue, readMapKeyCelValue, readMultiTextCelValue, readTimeOfDay, removeConditionById, replaceCondition, resolveColumnDefinition, resolveFilterShape, startInstantFromEndOfDay, startInstantFromEndOfMinute, validateCondition, withTimeOfDay } from './cel-filter-bar.js';
|
|
2
|
-
export { C as CelColumnDefinition, a as CelColumnOption, b as CelConditionValue, c as CelFilterBarProps, d as CelFilterCondition, e as CelFilterGroup, f as CelFilterSchema, g as CelFilterTree, h as CelOperator, i as CelRestrictedOptionSelectPayload, j as CheckboxCelValue, k as CompileResult, D as DateCelValue, M as MapKeyCelValue, l as MultiTextCelValue, P as PillActiveSurface, R as RadioCelValue, m as RelativeDurationPreset, V as ValidationIssue, n as isCelFilterCondition, o as isCelFilterGroup, p as isCheckboxCelValue, q as isDateCelValue, r as isMapKeyCelValue, s as isMultiTextCelValue } from './types-
|
|
2
|
+
export { C as CelColumnDefinition, a as CelColumnOption, b as CelConditionValue, c as CelFilterBarProps, d as CelFilterCondition, e as CelFilterGroup, f as CelFilterSchema, g as CelFilterTree, h as CelOperator, i as CelRestrictedOptionSelectPayload, j as CheckboxCelValue, k as CompileResult, D as DateCelValue, M as MapKeyCelValue, l as MultiTextCelValue, P as PillActiveSurface, R as RadioCelValue, m as RelativeDurationPreset, V as ValidationIssue, n as isCelFilterCondition, o as isCelFilterGroup, p as isCheckboxCelValue, q as isDateCelValue, r as isMapKeyCelValue, s as isMultiTextCelValue } from './types-D3SmFR8j.js';
|
|
3
3
|
export { ChartAction, ChartConfig, ChartContainer, ChartDescription, ChartFooter, ChartHeader, ChartLegend, ChartLegendContent, ChartStyle, ChartTitle, ChartTooltip, ChartTooltipContent } from './chart.js';
|
|
4
4
|
export { ChatInput, ChatInputProps, ChatInterface, ChatInterfaceProps, ChatMessage, ChatMessageBubble, ChatRoutine, ChatSession, ChatSessionList, ChatSessionListProps, ChatThread, ChatThreadProps, ChatToolCall } from './chat-interface.js';
|
|
5
5
|
export { CodeBlock, CodeBlockBody, CodeBlockCode, CodeBlockCopyButton, CodeBlockDownloadButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLanguage } from './code-block.js';
|
|
6
6
|
export { CellContextualFilter, CellContextualFilterProps, ColumnOptions, ColumnOptionsProps, ContextualMenuAction, DataTable, DataTableBody, DataTableCelFilterConfig, DataTableCell, DataTableExpandedRow, DataTableFilterVisibilityConfig, DataTableGroupRow, DataTableHeader, DataTablePagination, DataTablePaginationConfig, DataTablePaginationProps, DataTableProps, DataTableRow, DataTableRowProps, DataTableSearchConfig, DataTableSkeletonBody, DataTableValueCell, DataTableValueCellProps, ExpandButton, RowActionItem, RowActions, RowCountRelation, StickyHeaderConfig, TableHookOptions, TableLayout, TimestampCell, ViewFilter, ViewFilterProps, getActionsColumnDefinition, getExpandColumnDefinition, normalizePageSizeOptions } from './data-table.js';
|
|
7
|
-
export { D as DataTableEmptyConfig, a as DataTableEmptyView, d as defaultEmptyConfig, b as defaultErrorConfig, c as defaultNoFilterFoundConfig } from './empty-view-
|
|
7
|
+
export { D as DataTableEmptyConfig, a as DataTableEmptyView, d as defaultEmptyConfig, b as defaultErrorConfig, c as defaultNoFilterFoundConfig } from './empty-view-CjRwaITk.js';
|
|
8
8
|
export { ActiveFilter, CheckboxFilterDefinition, CheckboxFilterValue, DateFilterDefinition, DateFilterValue, FilterBar, FilterBarProps, FilterChip, FilterDefinition, FilterOption, FilterType, FilterValue, MultiTextFilterDefinition, MultiTextFilterValue, RadioFilterDefinition, RadioFilterValue, TextFilterDefinition, TextFilterValue } from './filter-bar.js';
|
|
9
9
|
export { FloatingWidget, FloatingWidgetProvider, useFloatingWidget } from './floating-widget.js';
|
|
10
10
|
export { Edge, Node } from 'reactflow';
|
package/dist/relative-time.d.ts
CHANGED
|
@@ -56,4 +56,5 @@ interface ElapsedTimeProps extends Omit<React.TimeHTMLAttributes<HTMLTimeElement
|
|
|
56
56
|
*/
|
|
57
57
|
declare function ElapsedTime({ seconds: secondsProp, variant, live, startedAt, className, ...props }: ElapsedTimeProps): React.JSX.Element;
|
|
58
58
|
|
|
59
|
-
export { AbsoluteTimestamp,
|
|
59
|
+
export { AbsoluteTimestamp, ElapsedTime, RelativeTime };
|
|
60
|
+
export type { AbsoluteTimestampProps, ElapsedTimeProps, RelativeTimeProps };
|
|
@@ -167,4 +167,5 @@ declare const isMultiTextCelValue: (value: unknown) => value is MultiTextCelValu
|
|
|
167
167
|
declare const isDateCelValue: (value: unknown) => value is DateCelValue;
|
|
168
168
|
declare const isMapKeyCelValue: (value: unknown) => value is MapKeyCelValue;
|
|
169
169
|
|
|
170
|
-
export {
|
|
170
|
+
export { isCelFilterCondition as n, isCelFilterGroup as o, isCheckboxCelValue as p, isDateCelValue as q, isMapKeyCelValue as r, isMultiTextCelValue as s };
|
|
171
|
+
export type { CelColumnDefinition as C, DateCelValue as D, MapKeyCelValue as M, PillActiveSurface as P, RadioCelValue as R, ValidationIssue as V, CelColumnOption as a, CelConditionValue as b, CelFilterBarProps as c, CelFilterCondition as d, CelFilterGroup as e, CelFilterSchema as f, CelFilterTree as g, CelOperator as h, CelRestrictedOptionSelectPayload as i, CheckboxCelValue as j, CompileResult as k, MultiTextCelValue as l, RelativeDurationPreset as m, CelValidationMeta as t, CelFilterType as u, CelFilterShape as v, CelEmitOn as w };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upbound/monarch-blocks",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Upbound's design system — composed components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@tanstack/react-table": "^8.21.3",
|
|
51
|
-
"@upbound/monarch-core": "^0.
|
|
51
|
+
"@upbound/monarch-core": "^0.12.0",
|
|
52
52
|
"radix-ui": "^1.6.7",
|
|
53
53
|
"react-day-picker": "^10.0.1",
|
|
54
54
|
"reactflow": "11.11.4",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"babel-jest": "^30.5.1",
|
|
62
62
|
"glob": "^13.0.6",
|
|
63
63
|
"ts-jest": "^29.4.12",
|
|
64
|
-
"tsup": "^
|
|
64
|
+
"tsup": "^9.0.0"
|
|
65
65
|
}
|
|
66
66
|
}
|