@stll/workspace-ui 0.14.1 → 0.14.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.
@@ -1,6 +1,6 @@
1
- import { FormattedCalculation } from "./calculation-format.js";
2
- import { CalculationSelection } from "./calculation-selection.js";
3
1
  import { CalculationKind, CalculationResult, CalculationValue } from "@stll/calculations";
2
+ import { CalculationSelection } from "./calculation-selection.js";
3
+ import { FormattedCalculation } from "./calculation-format.js";
4
4
  import { ReactNode } from "react";
5
5
  //#region src/calculations.d.ts
6
6
  /** A property a view can calculate over, with the reductions its values allow. */
@@ -1,6 +1,6 @@
1
+ import { ConditionNode, GroupNode } from "@stll/conditions";
1
2
  import { ConditionOperator, FieldOption, FieldValueType, ValueEditorKind } from "./logic.js";
2
3
  import { ReactNode } from "react";
3
- import { ConditionNode, GroupNode } from "@stll/conditions";
4
4
  //#region src/conditions/builder.d.ts
5
5
  /**
6
6
  * Every string the builder draws. The module resolves none of them: a host
@@ -100,4 +100,5 @@ type ConditionBuilderProps = {
100
100
  locale: string;
101
101
  };
102
102
  export declare const ConditionBuilder: ({ value, onChange, capabilities, labels, locale }: ConditionBuilderProps) => import("react").JSX.Element;
103
- //#endregion
103
+ //#endregion
104
+ export {};
@@ -1,5 +1,5 @@
1
- import { PropertyIconType } from "../property-icon.js";
2
1
  import { ConditionNode, GroupNode, RefOperand } from "@stll/conditions";
2
+ import { PropertyIconType } from "../property-icon.js";
3
3
  //#region src/conditions/logic.d.ts
4
4
  /**
5
5
  * Context-agnostic description of one operand the builder may filter
@@ -66,4 +66,5 @@ export declare const asGroup: (value: ConditionNode | null) => GroupNode;
66
66
  export declare const replaceChild: (group: GroupNode, index: number, child: ConditionNode) => GroupNode;
67
67
  export declare const removeChild: (group: GroupNode, index: number) => GroupNode;
68
68
  export declare const appendChild: (group: GroupNode, child: ConditionNode) => GroupNode;
69
- //#endregion
69
+ //#endregion
70
+ export {};
@@ -1,6 +1,6 @@
1
- import { PreviewMatter } from "./mock-data.js";
2
- import { FeaturePreviewProps } from "./surface.js";
3
1
  import { CentsAmount } from "@stll/money";
2
+ import { FeaturePreviewProps } from "./surface.js";
3
+ import { PreviewMatter } from "./mock-data.js";
4
4
  //#region src/feature-previews/billing-preview.d.ts
5
5
  export type BillingPreviewLabels = {
6
6
  /** Column headings of the invoice's time entries: date, description,
@@ -1,5 +1,5 @@
1
- import { PreviewMatter } from "./mock-data.js";
2
1
  import { FeaturePreviewProps } from "./surface.js";
2
+ import { PreviewMatter } from "./mock-data.js";
3
3
  //#region src/feature-previews/contacts-preview.d.ts
4
4
  export type ContactsPreviewLabels = {
5
5
  /** Heading of the section filled from the company registry. */
@@ -1,5 +1,5 @@
1
- import { PreviewPerson } from "./mock-data.js";
2
1
  import { FeaturePreviewProps } from "./surface.js";
2
+ import { PreviewPerson } from "./mock-data.js";
3
3
  //#region src/feature-previews/documents-preview.d.ts
4
4
  export type DocumentsPreviewLabels = {
5
5
  /** Heading of the comment rail beside the page. */
@@ -13,4 +13,5 @@ export declare const formatPreviewDuration: (locale: string, totalMinutes: numbe
13
13
  /** Minutes as decimal hours, the way an invoice bills them. */
14
14
  export declare const formatPreviewHours: (locale: string, totalMinutes: number) => string;
15
15
  export declare const formatPreviewCount: (locale: string, count: number) => string;
16
- //#endregion
16
+ //#endregion
17
+ export {};
@@ -1,9 +1,9 @@
1
- import { PreviewMatter, PreviewPerson } from "./mock-data.js";
2
- import { FeaturePreviewProps } from "./surface.js";
3
1
  import { BillingPreview, BillingPreviewData, BillingPreviewEntry, BillingPreviewLabels } from "./billing-preview.js";
4
2
  import { ContactsPreview, ContactsPreviewData, ContactsPreviewLabels } from "./contacts-preview.js";
5
3
  import { DocumentsPreview, DocumentsPreviewComment, DocumentsPreviewData, DocumentsPreviewLabels } from "./documents-preview.js";
4
+ import { FeaturePreviewProps } from "./surface.js";
6
5
  import { MattersPreview, MattersPreviewData, MattersPreviewLabels, MattersPreviewTask, MattersPreviewTaskStatus } from "./matters-preview.js";
6
+ import { PreviewMatter, PreviewPerson } from "./mock-data.js";
7
7
  import { ResearchPreview, ResearchPreviewData, ResearchPreviewDecision, ResearchPreviewLabels } from "./research-preview.js";
8
8
  import { TimeTrackingPreview, TimeTrackingPreviewData, TimeTrackingPreviewEntry, TimeTrackingPreviewLabels } from "./time-tracking-preview.js";
9
9
  export { BillingPreview, type BillingPreviewData, type BillingPreviewEntry, type BillingPreviewLabels, ContactsPreview, type ContactsPreviewData, type ContactsPreviewLabels, DocumentsPreview, type DocumentsPreviewComment, type DocumentsPreviewData, type DocumentsPreviewLabels, type FeaturePreviewProps, MattersPreview, type MattersPreviewData, type MattersPreviewLabels, type MattersPreviewTask, type MattersPreviewTaskStatus, type PreviewMatter, type PreviewPerson, ResearchPreview, type ResearchPreviewData, type ResearchPreviewDecision, type ResearchPreviewLabels, TimeTrackingPreview, type TimeTrackingPreviewData, type TimeTrackingPreviewEntry, type TimeTrackingPreviewLabels };
@@ -1,5 +1,5 @@
1
- import { PreviewMatter, PreviewPerson } from "./mock-data.js";
2
1
  import { FeaturePreviewProps } from "./surface.js";
2
+ import { PreviewMatter, PreviewPerson } from "./mock-data.js";
3
3
  //#region src/feature-previews/matters-preview.d.ts
4
4
  export type MattersPreviewLabels = {
5
5
  /** Column names: the task statuses the board groups by. */
@@ -1,5 +1,5 @@
1
- import { FeaturePreviewProps } from "./surface.js";
2
1
  import { COURT_TIER_WEIGHT } from "@stll/ui/document-identity-badge.logic";
2
+ import { FeaturePreviewProps } from "./surface.js";
3
3
  //#region src/feature-previews/research-preview.d.ts
4
4
  export type ResearchPreviewLabels = {
5
5
  /** Title of the case-law search surface. */
@@ -1,5 +1,5 @@
1
- import { PreviewPerson } from "./mock-data.js";
2
1
  import * as React from "react";
2
+ import { PreviewPerson } from "./mock-data.js";
3
3
  //#region src/feature-previews/surface.d.ts
4
4
  /** Props every scene takes: its interface labels, the formatting locale for
5
5
  * its dates and numbers, its content, and classes for the host's sizing. */
@@ -31,4 +31,5 @@ export declare const PreviewAvatarStack: ({ people }: {
31
31
  export declare const PreviewAvatar: ({ person }: {
32
32
  person: PreviewPerson;
33
33
  }) => React.JSX.Element;
34
- //#endregion
34
+ //#endregion
35
+ export {};
@@ -1,5 +1,5 @@
1
- import { PreviewMatter } from "./mock-data.js";
2
1
  import { FeaturePreviewProps } from "./surface.js";
2
+ import { PreviewMatter } from "./mock-data.js";
3
3
  //#region src/feature-previews/time-tracking-preview.d.ts
4
4
  export type TimeTrackingPreviewLabels = {
5
5
  /** Title of the time-tracking surface. */
@@ -69,4 +69,5 @@ type PendingSkeletonProps = {
69
69
  export declare const PendingSkeleton: ({ contentType }: PendingSkeletonProps) => import("react").JSX.Element;
70
70
  export declare const getSelectPropertyColor: (property: GenericProperty, option: string | null) => import("@stll/ui/option-color").ColorVariants | undefined;
71
71
  export declare const getIntClassName: (variant: FieldValueVariant) => "block max-w-full min-w-0 truncate text-start tabular-nums" | "block min-w-0 max-w-full truncate text-start text-sm tabular-nums" | "text-muted-foreground bg-muted/60 rounded px-1.5 py-0.5 text-xs leading-none tabular-nums";
72
- //#endregion
72
+ //#endregion
73
+ export {};
@@ -19,4 +19,5 @@ export type WorkspaceUiFormattingProviderProps = PropsWithChildren<{
19
19
  export declare const WorkspaceUiFormattingProvider: ({ children, locale, timeZone }: WorkspaceUiFormattingProviderProps) => import("react").JSX.Element;
20
20
  export declare const useFormatter: () => Formatter;
21
21
  export declare const useFormattingLocale: () => string;
22
- //#endregion
22
+ //#endregion
23
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { WorkspaceViewSwitcher, WorkspaceViewSwitcherEditing, WorkspaceViewSwitcherItem, WorkspaceViewSwitcherProps, WorkspaceViewSwitcherReorder } from "./view-switcher.js";
2
- import { CalculationFormatters, CalculationLabels, FormatCalculationParams, FormattedCalculation, formatCalculationResult } from "./calculation-format.js";
3
1
  import { ApplyCalculationSelectionParams, CalculationSelection, applyCalculationSelection } from "./calculation-selection.js";
2
+ import { CONDITION_OPERATORS, ConditionOperator, FieldOption, FieldOptionChoice, FieldValueType, ValueEditorKind, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor } from "./conditions/logic.js";
3
+ import { CalculationFormatters, CalculationLabels, FormatCalculationParams, FormattedCalculation, formatCalculationResult } from "./calculation-format.js";
4
4
  import { CalculationKindPicker, CalculationKindPickerProps, CalculationPicker, CalculationPickerProps, CalculationProperty, CalculationResult, CalculationSummary, CalculationSummaryProps, ColumnCalculation, UseCalculationParams, WorkspaceCalculationLabels, useCalculation } from "./calculations.js";
5
5
  import { ColorVariants, OptionColor, emptyColor, optionColors, resolveOptionColor } from "./colors.js";
6
- import { FIELD_CONTENT_TYPES, FieldContent, GenericProperty, WorkspaceFieldContent } from "./types.js";
7
- import { PropertyIcon, PropertyIconType } from "./property-icon.js";
8
- import { CONDITION_OPERATORS, ConditionOperator, FieldOption, FieldOptionChoice, FieldValueType, ValueEditorKind, appendChild, asGroup, buildLeaf, fieldForNode, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, operandsEqual, operatorsFor, removeChild, replaceChild, valueEditorFor } from "./conditions/logic.js";
9
6
  import { ConditionBuilder, ConditionBuilderLabels, ConditionCapabilities, FormulaCellRenderCtx, ValueEditorRenderCtx } from "./conditions/builder.js";
10
- import { getClipFieldValueLabel } from "./field-value-logic.js";
11
- import { WorkspaceUiFormattingProvider, WorkspaceUiFormattingProviderProps } from "./formatting.js";
7
+ import { CreateWorkspaceKanbanSchemaParams, KANBAN_EMPTY_GROUP_VISIBILITIES, KANBAN_SAVED_VIEW_STATE_VERSION, KanbanBoardPresentation, KanbanEmptyGroupVisibility, KanbanPresentedBand, KanbanPresentedLane, KanbanSavedAxisState, KanbanSavedGroupAxisState, KanbanSavedGroupReference, KanbanSavedSubgroupState, KanbanSavedViewState, KanbanSavedViewStateV1, ResolveWorkspaceKanbanViewParams, ResolvedWorkspaceKanbanView, WorkspaceKanbanBuiltInGroupLabel, WorkspaceKanbanGroupingChoice, WorkspaceKanbanGroupingPickerLabels, WorkspaceKanbanGroupingPickerProps, WorkspaceKanbanProperty, createWorkspaceKanbanSchema, getWorkspaceKanbanGroupingChoices, normalizeKanbanSavedViewState, presentKanbanBoard, resolveWorkspaceKanbanView } from "./kanban-view.js";
8
+ import { FIELD_CONTENT_TYPES, FieldContent, GenericProperty, WorkspaceFieldContent } from "./types.js";
12
9
  import { FieldValue, IntFieldValue, MoneyFieldValue, PersonFieldValue } from "./field-value.js";
10
+ import { PropertyIcon, PropertyIconType } from "./property-icon.js";
13
11
  import { SortChips, SortChipsLabels, SortChipsProps, SortDescriptor, SortableProperty } from "./sorts.js";
14
12
  import { TableSkeletonRows } from "./table-skeleton-rows.js";
15
- import { CreateWorkspaceKanbanSchemaParams, KANBAN_EMPTY_GROUP_VISIBILITIES, KANBAN_SAVED_VIEW_STATE_VERSION, KanbanBoardPresentation, KanbanEmptyGroupVisibility, KanbanPresentedBand, KanbanPresentedLane, KanbanSavedAxisState, KanbanSavedGroupAxisState, KanbanSavedGroupReference, KanbanSavedSubgroupState, KanbanSavedViewState, KanbanSavedViewStateV1, ResolveWorkspaceKanbanViewParams, ResolvedWorkspaceKanbanView, WorkspaceKanbanBuiltInGroupLabel, WorkspaceKanbanGroupingChoice, WorkspaceKanbanGroupingPickerLabels, WorkspaceKanbanGroupingPickerProps, WorkspaceKanbanProperty, createWorkspaceKanbanSchema, getWorkspaceKanbanGroupingChoices, normalizeKanbanSavedViewState, presentKanbanBoard, resolveWorkspaceKanbanView } from "./kanban-view.js";
16
- import { WorkspaceKanbanGroupingPicker } from "./kanban-grouping-picker.js";
17
13
  import { WorkspaceFrame, WorkspaceFrameEndRail, WorkspaceFrameInspector, WorkspaceFrameNavigation, WorkspaceFrameNavigationItem, WorkspaceFrameProps, WorkspaceFrameTopBar } from "./workspace-frame.js";
14
+ import { WorkspaceKanbanGroupingPicker } from "./kanban-grouping-picker.js";
15
+ import { WorkspaceUiFormattingProvider, WorkspaceUiFormattingProviderProps } from "./formatting.js";
16
+ import { WorkspaceViewSwitcher, WorkspaceViewSwitcherEditing, WorkspaceViewSwitcherItem, WorkspaceViewSwitcherProps, WorkspaceViewSwitcherReorder } from "./view-switcher.js";
17
+ import { getClipFieldValueLabel } from "./field-value-logic.js";
18
18
  export { type ApplyCalculationSelectionParams, CONDITION_OPERATORS, type CalculationFormatters, CalculationKindPicker, type CalculationKindPickerProps, type CalculationLabels, CalculationPicker, type CalculationPickerProps, type CalculationProperty, type CalculationResult, type CalculationSelection, CalculationSummary, type CalculationSummaryProps, type ColorVariants, ColumnCalculation, ConditionBuilder, type ConditionBuilderLabels, type ConditionCapabilities, type ConditionOperator, type CreateWorkspaceKanbanSchemaParams, FIELD_CONTENT_TYPES, type FieldContent, type FieldOption, type FieldOptionChoice, FieldValue, type FieldValueType, type FormatCalculationParams, type FormattedCalculation, type FormulaCellRenderCtx, type GenericProperty, IntFieldValue, KANBAN_EMPTY_GROUP_VISIBILITIES, KANBAN_SAVED_VIEW_STATE_VERSION, type KanbanBoardPresentation, type KanbanEmptyGroupVisibility, type KanbanPresentedBand, type KanbanPresentedLane, type KanbanSavedAxisState, type KanbanSavedGroupAxisState, type KanbanSavedGroupReference, type KanbanSavedSubgroupState, type KanbanSavedViewState, type KanbanSavedViewStateV1, MoneyFieldValue, type OptionColor, PersonFieldValue, PropertyIcon, type PropertyIconType, type ResolveWorkspaceKanbanViewParams, type ResolvedWorkspaceKanbanView, SortChips, type SortChipsLabels, type SortChipsProps, type SortDescriptor, type SortableProperty, TableSkeletonRows, type UseCalculationParams, type ValueEditorKind, type ValueEditorRenderCtx, type WorkspaceCalculationLabels, type WorkspaceFieldContent, WorkspaceFrame, type WorkspaceFrameEndRail, type WorkspaceFrameInspector, type WorkspaceFrameNavigation, type WorkspaceFrameNavigationItem, type WorkspaceFrameProps, type WorkspaceFrameTopBar, type WorkspaceKanbanBuiltInGroupLabel, type WorkspaceKanbanGroupingChoice, WorkspaceKanbanGroupingPicker, type WorkspaceKanbanGroupingPickerLabels, type WorkspaceKanbanGroupingPickerProps, type WorkspaceKanbanProperty, WorkspaceUiFormattingProvider, type WorkspaceUiFormattingProviderProps, WorkspaceViewSwitcher, type WorkspaceViewSwitcherEditing, type WorkspaceViewSwitcherItem, type WorkspaceViewSwitcherProps, type WorkspaceViewSwitcherReorder, appendChild, applyCalculationSelection, asGroup, buildLeaf, createWorkspaceKanbanSchema, emptyColor, fieldForNode, formatCalculationResult, getClipFieldValueLabel, getWorkspaceKanbanGroupingChoices, isConditionOperator, isMultiValue, leafFromField, leafOperand, leafOperator, leafValueList, leafValueString, normalizeKanbanSavedViewState, operandsEqual, operatorsFor, optionColors, presentKanbanBoard, removeChild, replaceChild, resolveOptionColor, resolveWorkspaceKanbanView, useCalculation, valueEditorFor };
@@ -130,4 +130,5 @@ export declare const presentKanbanBoard: <TRow>({ matrix, state }: {
130
130
  matrix: KanbanBoardMatrix<TRow>;
131
131
  state: KanbanSavedViewState;
132
132
  }) => KanbanBoardPresentation<TRow>;
133
- //#endregion
133
+ //#endregion
134
+ export {};
@@ -8,4 +8,5 @@ type PropertyHelperProps = {
8
8
  className?: string;
9
9
  };
10
10
  export declare const PropertyIcon: ({ type, className }: PropertyHelperProps) => import("react").JSX.Element;
11
- //#endregion
11
+ //#endregion
12
+ export {};
@@ -7,4 +7,5 @@ type ResponsiveActionToolbarItemProps = React.PropsWithChildren<{
7
7
  className?: string | undefined;
8
8
  }>;
9
9
  export declare const ResponsiveActionToolbarItem: ({ slot, className, children }: ResponsiveActionToolbarItemProps) => React.JSX.Element;
10
- //#endregion
10
+ //#endregion
11
+ export {};
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
1
  import { Column, RowData, TableFeatures } from "@tanstack/react-table";
2
+ import { ReactNode } from "react";
3
3
  //#region src/table-skeleton-rows.d.ts
4
4
  type TableSkeletonRowsProps<TFeatures extends TableFeatures, TData extends RowData> = {
5
5
  columns: readonly Column<TFeatures, TData>[];
@@ -14,4 +14,5 @@ type TableSkeletonRowsProps<TFeatures extends TableFeatures, TData extends RowDa
14
14
  * columns (e.g. `table.getAllLeafColumns()`).
15
15
  */
16
16
  export declare const TableSkeletonRows: <TFeatures extends TableFeatures, TData extends RowData>({ columns, rowCount, renderCell }: TableSkeletonRowsProps<TFeatures, TData>) => import("react").JSX.Element[];
17
- //#endregion
17
+ //#endregion
18
+ export {};
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { OptionColor, OptionColor as OptionColor$1 } from "@stll/ui/option-color";
2
1
  import { KanbanColumnBand } from "@stll/ui/kanban";
2
+ import { OptionColor, OptionColor as OptionColor$1 } from "@stll/ui/option-color";
3
3
  //#region src/types.d.ts
4
4
  /**
5
5
  * Why a document could not be converted. Mirrors the API contract type; the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/workspace-ui",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "Reusable workspace presentation components and view helpers for Stella.",
5
5
  "keywords": [
6
6
  "calculations",
@@ -130,7 +130,7 @@
130
130
  "@stll/calculations": "^0.1.3",
131
131
  "@stll/conditions": "^0.4.0",
132
132
  "@stll/money": "^0.3.1",
133
- "@stll/ui": "^0.54.0",
133
+ "@stll/ui": "^0.56.0",
134
134
  "better-result": "3.0.1",
135
135
  "temporal-polyfill": "1.0.5",
136
136
  "use-intl": "4.14.9"
@@ -146,10 +146,10 @@
146
146
  "@types/react-dom": "^19.3.0",
147
147
  "bun-types": "1.4.4",
148
148
  "fast-check": "^4.10.2",
149
- "react": "^19.3.0",
150
- "react-dom": "^19.3.0",
149
+ "react": "^19.3.1",
150
+ "react-dom": "^19.3.1",
151
151
  "tailwindcss": "4.3.3",
152
- "tsdown": "0.23.0",
152
+ "tsdown": "0.23.1",
153
153
  "tsrs": "0.18.0-ts7.1.0-dev.20260929"
154
154
  },
155
155
  "peerDependencies": {