@tensor_1/react 2.20.0 → 2.22.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/{ChartCore-Do6gRBN3.d.cts → ChartCore-DzWe10bN.d.cts} +16 -1
- package/dist/chart-preset.cjs +25 -13
- package/dist/chart-preset.d.cts +2 -2
- package/dist/chart-preset.d.ts +1 -1
- package/dist/chart-preset.js +2 -1
- package/dist/chart.cjs +25 -13
- package/dist/chart.d.cts +2 -2
- package/dist/chart.d.ts +1 -1
- package/dist/chart.js +2 -1
- package/dist/components/AppShell.d.ts +5 -1
- package/dist/components/AppShell.js +4 -2
- package/dist/components/Avatar.d.ts +4 -2
- package/dist/components/Avatar.js +2 -2
- package/dist/components/BrandProfiles.d.ts +29 -2
- package/dist/components/BrandProfiles.js +45 -20
- package/dist/components/BuilderCanvas.d.ts +27 -2
- package/dist/components/BuilderCanvas.js +45 -22
- package/dist/components/Chart.d.ts +1 -1
- package/dist/components/Chart.js +2 -1
- package/dist/components/ChartCore.d.ts +17 -2
- package/dist/components/ChartCore.js +24 -13
- package/dist/components/ColorPicker.d.ts +24 -2
- package/dist/components/ColorPicker.js +38 -20
- package/dist/components/CommandPalette.d.ts +3 -1
- package/dist/components/CommandPalette.js +2 -2
- package/dist/components/DateRangePicker.d.ts +21 -2
- package/dist/components/DateRangePicker.js +26 -6
- package/dist/components/DetailPage.d.ts +22 -3
- package/dist/components/DetailPage.js +33 -3
- package/dist/components/DiffViewer.d.ts +34 -3
- package/dist/components/DiffViewer.js +60 -40
- package/dist/components/Drawer.d.ts +3 -1
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Inbox.d.ts +3 -1
- package/dist/components/Inbox.js +2 -2
- package/dist/components/MatchReview.d.ts +49 -2
- package/dist/components/MatchReview.js +72 -30
- package/dist/components/Meter.d.ts +3 -1
- package/dist/components/Meter.js +3 -2
- package/dist/components/Pagination.d.ts +10 -2
- package/dist/components/Pagination.js +11 -4
- package/dist/components/Peek.d.ts +7 -1
- package/dist/components/Peek.js +4 -4
- package/dist/components/RelationshipGraph.js +6 -2
- package/dist/components/RuleBuilder.d.ts +42 -2
- package/dist/components/RuleBuilder.js +71 -37
- package/dist/components/SchedulingCalendar.d.ts +25 -2
- package/dist/components/SchedulingCalendar.js +38 -15
- package/dist/components/Stat.d.ts +5 -0
- package/dist/components/Stat.js +2 -2
- package/dist/components/Table.d.ts +11 -3
- package/dist/components/Table.js +5 -8
- package/dist/components/Tabs.d.ts +8 -1
- package/dist/components/Tabs.js +4 -5
- package/dist/components/Toast.d.ts +6 -2
- package/dist/components/Toast.js +4 -4
- package/dist/components/Tree.d.ts +9 -1
- package/dist/components/Tree.js +55 -8
- package/dist/fill-label.d.ts +7 -0
- package/dist/fill-label.js +9 -0
- package/dist/index.cjs +765 -463
- package/dist/index.d.cts +341 -28
- package/dist/index.d.ts +10 -10
- package/dist/index.js +18 -9
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { RefObject, ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, AriaAttributes, HTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, AnchorHTMLAttributes, DetailsHTMLAttributes, TdHTMLAttributes, TableHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
|
+
import { RefObject, ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, AriaAttributes, HTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, AnchorHTMLAttributes, MouseEvent, DetailsHTMLAttributes, TdHTMLAttributes, TableHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
3
3
|
import { P as Placement } from './overlay-position-CEGSz6Z2.cjs';
|
|
4
4
|
export { A as Align, a as PositionOptions, b as PositionResult, R as Rect, S as Side, c as Size, d as computePosition } from './overlay-position-CEGSz6Z2.cjs';
|
|
5
5
|
|
|
@@ -339,15 +339,23 @@ interface PromptDialogProps {
|
|
|
339
339
|
declare function PromptDialog({ open, title, description, inputLabel, defaultValue, placeholder, submitLabel, cancelLabel, closeLabel, onSubmit, onCancel, validate, pending }: PromptDialogProps): react.JSX.Element;
|
|
340
340
|
|
|
341
341
|
interface DrawerProps extends Omit<HTMLAttributes<HTMLDialogElement>, 'title'> {
|
|
342
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
343
|
+
closeLabel?: string;
|
|
342
344
|
open: boolean;
|
|
343
345
|
onClose?: () => void;
|
|
344
346
|
title?: ReactNode;
|
|
345
347
|
children?: ReactNode;
|
|
346
348
|
footer?: ReactNode;
|
|
347
349
|
}
|
|
348
|
-
declare function Drawer({ open, onClose, title, children, footer, className, ...rest }: DrawerProps): react.JSX.Element;
|
|
350
|
+
declare function Drawer({ open, onClose, title, children, footer, closeLabel, className, ...rest }: DrawerProps): react.JSX.Element;
|
|
349
351
|
|
|
350
352
|
interface PeekProps extends Omit<HTMLAttributes<HTMLDialogElement>, 'title'> {
|
|
353
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
354
|
+
previousLabel?: string;
|
|
355
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
356
|
+
nextLabel?: string;
|
|
357
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
358
|
+
closeLabel?: string;
|
|
351
359
|
open: boolean;
|
|
352
360
|
onClose?: () => void;
|
|
353
361
|
title?: ReactNode;
|
|
@@ -357,7 +365,7 @@ interface PeekProps extends Omit<HTMLAttributes<HTMLDialogElement>, 'title'> {
|
|
|
357
365
|
onNavNext?: () => void;
|
|
358
366
|
hint?: string;
|
|
359
367
|
}
|
|
360
|
-
declare function Peek({ open, onClose, title, children, footer, onNavPrev, onNavNext, hint, className, onClick, ...rest }: PeekProps): react.JSX.Element;
|
|
368
|
+
declare function Peek({ open, onClose, title, children, footer, onNavPrev, onNavNext, hint, previousLabel, nextLabel, closeLabel, className, onClick, ...rest }: PeekProps): react.JSX.Element;
|
|
361
369
|
|
|
362
370
|
interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
363
371
|
title?: ReactNode;
|
|
@@ -432,6 +440,14 @@ interface DetailPageMetric {
|
|
|
432
440
|
label: ReactNode;
|
|
433
441
|
value: ReactNode;
|
|
434
442
|
}
|
|
443
|
+
/** What `renderLink` receives: render it as your router's link (TENSOR RX-125, UIX-10). */
|
|
444
|
+
interface DetailPageLinkProps {
|
|
445
|
+
href: string;
|
|
446
|
+
className: string;
|
|
447
|
+
children: ReactNode;
|
|
448
|
+
'aria-current'?: 'page';
|
|
449
|
+
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
450
|
+
}
|
|
435
451
|
interface DetailPageProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
436
452
|
back?: {
|
|
437
453
|
href: string;
|
|
@@ -446,9 +462,20 @@ interface DetailPageProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
|
446
462
|
side?: ReactNode;
|
|
447
463
|
children?: ReactNode;
|
|
448
464
|
tabsLabel?: string;
|
|
465
|
+
/**
|
|
466
|
+
* Renders the back link and every tab link. Default: a plain `<a>`. Pass your
|
|
467
|
+
* router's link (e.g. next/link) so switching tabs never reloads the page.
|
|
468
|
+
*/
|
|
469
|
+
renderLink?: (props: DetailPageLinkProps) => ReactNode;
|
|
470
|
+
/**
|
|
471
|
+
* Controlled tabs: called with the tab id on a plain left click, which then does
|
|
472
|
+
* not navigate. `href` stays the progressive-enhancement fallback (new tab,
|
|
473
|
+
* modified click, no JS).
|
|
474
|
+
*/
|
|
475
|
+
onTabSelect?: (id: string) => void;
|
|
449
476
|
}
|
|
450
477
|
/** Framework-neutral record-detail scaffold; routing and data policy stay with the application. */
|
|
451
|
-
declare function DetailPage({ back, eyebrow, title, subtitle, actions, tabs, metrics, side, children, tabsLabel, className, ...props }: DetailPageProps): react.JSX.Element;
|
|
478
|
+
declare function DetailPage({ back, eyebrow, title, subtitle, actions, tabs, metrics, side, children, tabsLabel, renderLink, onTabSelect, className, ...props }: DetailPageProps): react.JSX.Element;
|
|
452
479
|
|
|
453
480
|
interface RelatedLinkItem {
|
|
454
481
|
id: string;
|
|
@@ -550,8 +577,15 @@ interface TabsProps {
|
|
|
550
577
|
* shown on the side that has hidden tabs. The selected tab is always scrolled into view.
|
|
551
578
|
*/
|
|
552
579
|
overflow?: 'wrap' | 'scroll';
|
|
580
|
+
/**
|
|
581
|
+
* Keyboard activation (TENSOR RX-125, UIX-11). `'automatic'` (default, unchanged):
|
|
582
|
+
* Arrow/Home/End move focus AND select, so traversing mounts every panel passed over.
|
|
583
|
+
* `'manual'`: arrows only move focus; Enter/Space (the button's own click) selects —
|
|
584
|
+
* the APG choice when a panel is costly to show. Pairs with `TabPanel keepMounted`.
|
|
585
|
+
*/
|
|
586
|
+
activation?: 'automatic' | 'manual';
|
|
553
587
|
}
|
|
554
|
-
declare function Tabs({ variant, value, onChange, children, className, overflow }: TabsProps): react.JSX.Element;
|
|
588
|
+
declare function Tabs({ variant, value, onChange, children, className, overflow, activation }: TabsProps): react.JSX.Element;
|
|
555
589
|
interface TabProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
556
590
|
value: string;
|
|
557
591
|
children?: ReactNode;
|
|
@@ -599,8 +633,12 @@ interface AppShellProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
599
633
|
sidebar?: ReactNode;
|
|
600
634
|
topbar?: ReactNode;
|
|
601
635
|
children?: ReactNode;
|
|
636
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
637
|
+
skipToContentLabel?: ReactNode;
|
|
638
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
639
|
+
exitFocusLabel?: ReactNode;
|
|
602
640
|
}
|
|
603
|
-
declare function AppShell({ nav, collapsed, focus, onExitFocus, mainBleed, mainId, sidebar, topbar, children, className, ...props }: AppShellProps): react.JSX.Element;
|
|
641
|
+
declare function AppShell({ nav, collapsed, focus, onExitFocus, mainBleed, mainId, sidebar, topbar, children, skipToContentLabel, exitFocusLabel, className, ...props }: AppShellProps): react.JSX.Element;
|
|
604
642
|
|
|
605
643
|
interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
606
644
|
collapsed?: boolean;
|
|
@@ -768,6 +806,8 @@ declare function Spinner({ size, accent, label, className, ...props }: SpinnerPr
|
|
|
768
806
|
|
|
769
807
|
type ToastTone = 'success' | 'danger' | 'info';
|
|
770
808
|
interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
809
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
810
|
+
dismissLabel?: string;
|
|
771
811
|
title?: ReactNode;
|
|
772
812
|
message?: ReactNode;
|
|
773
813
|
tone?: ToastTone;
|
|
@@ -775,11 +815,13 @@ interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
|
775
815
|
onClose?: () => void;
|
|
776
816
|
leaving?: boolean;
|
|
777
817
|
}
|
|
778
|
-
declare function Toast({ title, message, tone, icon, onClose, leaving, className, ...props }: ToastProps): react.JSX.Element;
|
|
818
|
+
declare function Toast({ title, message, tone, icon, onClose, leaving, dismissLabel, className, ...props }: ToastProps): react.JSX.Element;
|
|
779
819
|
interface ToasterProps extends HTMLAttributes<HTMLDivElement> {
|
|
820
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
821
|
+
regionLabel?: string;
|
|
780
822
|
children?: ReactNode;
|
|
781
823
|
}
|
|
782
|
-
declare function Toaster({ children, className, ...props }: ToasterProps): react.JSX.Element;
|
|
824
|
+
declare function Toaster({ children, regionLabel, className, ...props }: ToasterProps): react.JSX.Element;
|
|
783
825
|
|
|
784
826
|
interface TableWrapProps extends HTMLAttributes<HTMLDivElement> {
|
|
785
827
|
/**
|
|
@@ -820,12 +862,16 @@ interface TrProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
|
820
862
|
}
|
|
821
863
|
declare function Tr({ selected, pinned, className, children, ...props }: TrProps): react.JSX.Element;
|
|
822
864
|
interface BulkBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
823
|
-
/** number of selected rows, rendered
|
|
865
|
+
/** number of selected rows, rendered through `selectedLabel` */
|
|
824
866
|
count?: number;
|
|
825
867
|
children?: ReactNode;
|
|
868
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
869
|
+
label?: string;
|
|
870
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
871
|
+
selectedLabel?: (count: number) => ReactNode;
|
|
826
872
|
}
|
|
827
873
|
/** Contextual action bar shown above the table when ≥1 row is selected. */
|
|
828
|
-
declare function BulkBar({ count, children, className, ...props }: BulkBarProps): react.JSX.Element;
|
|
874
|
+
declare function BulkBar({ count, children, label, selectedLabel, className, ...props }: BulkBarProps): react.JSX.Element;
|
|
829
875
|
interface RowActionsProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
830
876
|
children?: ReactNode;
|
|
831
877
|
}
|
|
@@ -837,12 +883,16 @@ interface RowActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
837
883
|
/** A single hover-revealed row action button (icon inside). */
|
|
838
884
|
declare function RowAction({ children, className, type, ...props }: RowActionProps): react.JSX.Element;
|
|
839
885
|
interface ExpandToggleProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
886
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
887
|
+
expandLabel?: string;
|
|
888
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
889
|
+
collapseLabel?: string;
|
|
840
890
|
expanded?: boolean;
|
|
841
891
|
/** id of the detail row this toggle controls → `aria-controls` (UIX-A11Y-2). */
|
|
842
892
|
controls?: string;
|
|
843
893
|
}
|
|
844
894
|
/** Chevron button that expands/collapses an inline detail row. */
|
|
845
|
-
declare function ExpandToggle({ expanded, controls, className, type, ...props }: ExpandToggleProps): react.JSX.Element;
|
|
895
|
+
declare function ExpandToggle({ expanded, controls, expandLabel, collapseLabel, className, type, ...props }: ExpandToggleProps): react.JSX.Element;
|
|
846
896
|
/** Emphasised primary cell text. */
|
|
847
897
|
declare function CellStrong({ children, className, ...props }: HTMLAttributes<HTMLSpanElement>): react.JSX.Element;
|
|
848
898
|
/** Secondary line under a primary cell value (muted, meta size). */
|
|
@@ -859,12 +909,20 @@ interface HighlightedProps {
|
|
|
859
909
|
/** Render `text` with case-insensitive matches of `query` wrapped in <mark>. */
|
|
860
910
|
declare function Highlighted({ text, query }: HighlightedProps): react.JSX.Element;
|
|
861
911
|
|
|
912
|
+
/** TENSOR RX-125 (UIX-04): the pager's accessible names. */
|
|
913
|
+
interface PaginationLabels {
|
|
914
|
+
region: string;
|
|
915
|
+
previous: string;
|
|
916
|
+
next: string;
|
|
917
|
+
}
|
|
918
|
+
declare const DEFAULT_PAGINATION_LABELS: PaginationLabels;
|
|
862
919
|
interface PaginationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
863
920
|
page: number;
|
|
864
921
|
pageCount: number;
|
|
865
922
|
onChange: (page: number) => void;
|
|
923
|
+
labels?: Partial<PaginationLabels>;
|
|
866
924
|
}
|
|
867
|
-
declare function Pagination({ page, pageCount, onChange, className, ...props }: PaginationProps): react.JSX.Element;
|
|
925
|
+
declare function Pagination({ page, pageCount, onChange, labels: labelOverrides, className, ...props }: PaginationProps): react.JSX.Element;
|
|
868
926
|
|
|
869
927
|
type PillTone = 'neutral' | 'success' | 'info' | 'warning' | 'danger' | 'critical' | 'muted' | 'attention' | 'overdue' | 'sla-ok' | 'sla-at-risk' | 'sla-breached' | 'p1' | 'p2' | 'p3' | 'p4' | 'p5';
|
|
870
928
|
type PillTreatment = 'filled' | 'outline';
|
|
@@ -898,9 +956,11 @@ interface MeterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
898
956
|
tone?: MeterTone;
|
|
899
957
|
/** Accessible name — rendered as `aria-label` (an explicit `aria-label` prop wins). */
|
|
900
958
|
label?: string;
|
|
959
|
+
/** TENSOR RX-125 (UIX-04): the spoken tone words; English defaults. */
|
|
960
|
+
toneLabels?: Partial<Record<Exclude<MeterTone, 'success'>, string>>;
|
|
901
961
|
}
|
|
902
962
|
/** Horizontal utilization / threshold bar backed by `.uix-meter`. */
|
|
903
|
-
declare function Meter({ value, tone, label, className, ...props }: MeterProps): react.JSX.Element;
|
|
963
|
+
declare function Meter({ value, tone, label, toneLabels, className, ...props }: MeterProps): react.JSX.Element;
|
|
904
964
|
|
|
905
965
|
interface StatTrend {
|
|
906
966
|
direction: 'up' | 'down';
|
|
@@ -926,6 +986,11 @@ interface StatProps extends HTMLAttributes<HTMLElement> {
|
|
|
926
986
|
onActivate?: () => void;
|
|
927
987
|
/** Action word appended to the accessible name, e.g. "change" → "Priority: P1, change". */
|
|
928
988
|
activateLabel?: string;
|
|
989
|
+
/** TENSOR RX-125 (UIX-04): the spoken trend direction; English defaults. */
|
|
990
|
+
trendLabels?: {
|
|
991
|
+
up?: string;
|
|
992
|
+
down?: string;
|
|
993
|
+
};
|
|
929
994
|
/** Whether the editor this tile opens is currently open (`aria-expanded`). */
|
|
930
995
|
expanded?: boolean;
|
|
931
996
|
}
|
|
@@ -1055,7 +1120,9 @@ interface LabelProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
1055
1120
|
declare function Label({ color, dot, children, className, style, ...props }: LabelProps): react.JSX.Element;
|
|
1056
1121
|
|
|
1057
1122
|
interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1058
|
-
|
|
1123
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
1124
|
+
onlineLabel?: string;
|
|
1125
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1059
1126
|
src?: string;
|
|
1060
1127
|
alt?: string;
|
|
1061
1128
|
/** Initials / fallback shown when there is no `src`. */
|
|
@@ -1064,7 +1131,7 @@ interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
1064
1131
|
status?: boolean;
|
|
1065
1132
|
}
|
|
1066
1133
|
/** Avatar over `.uix-avatar`. Renders an image when `src` is set, else children (initials). */
|
|
1067
|
-
declare function Avatar({ size, src, alt, children, status, className, ...props }: AvatarProps): react.JSX.Element;
|
|
1134
|
+
declare function Avatar({ size, src, alt, children, status, onlineLabel, className, ...props }: AvatarProps): react.JSX.Element;
|
|
1068
1135
|
interface AvatarGroupProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1069
1136
|
children?: ReactNode;
|
|
1070
1137
|
}
|
|
@@ -1375,6 +1442,8 @@ interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1375
1442
|
declare function Popover({ popover, anchor, placement, offset, className, children, ...props }: PopoverProps): react.JSX.Element;
|
|
1376
1443
|
|
|
1377
1444
|
interface CommandPaletteProps extends HTMLAttributes<HTMLDivElement> {
|
|
1445
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
1446
|
+
inputLabel?: string;
|
|
1378
1447
|
/** Props for the search input (value/onChange/placeholder wired by the consumer). */
|
|
1379
1448
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
1380
1449
|
children?: ReactNode;
|
|
@@ -1385,7 +1454,7 @@ interface CommandPaletteProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1385
1454
|
* a combobox over the listbox of `CommandItem`s; spreads override every default, so
|
|
1386
1455
|
* consumers already passing their own roles/labels keep working.
|
|
1387
1456
|
*/
|
|
1388
|
-
declare function CommandPalette({ inputProps, children, className, ...props }: CommandPaletteProps): react.JSX.Element;
|
|
1457
|
+
declare function CommandPalette({ inputProps, children, inputLabel, className, ...props }: CommandPaletteProps): react.JSX.Element;
|
|
1389
1458
|
interface CommandGroupProps {
|
|
1390
1459
|
label?: ReactNode;
|
|
1391
1460
|
children?: ReactNode;
|
|
@@ -1414,6 +1483,8 @@ interface InboxProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1414
1483
|
/** Two-pane inbox master-detail container backed by `.uix-inbox`. Place `<InboxList>` and `<InboxDetail>` as children. */
|
|
1415
1484
|
declare function Inbox({ view, children, className, ...props }: InboxProps): react.JSX.Element;
|
|
1416
1485
|
interface InboxListProps extends HTMLAttributes<HTMLDivElement> {
|
|
1486
|
+
/** TENSOR RX-125 (UIX-04): translatable; English default. */
|
|
1487
|
+
listLabel?: string;
|
|
1417
1488
|
children?: ReactNode;
|
|
1418
1489
|
}
|
|
1419
1490
|
/**
|
|
@@ -1421,7 +1492,7 @@ interface InboxListProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1421
1492
|
* (UIX-A11Y-2): the list is the single tab stop; ArrowUp/ArrowDown/Home/End move the
|
|
1422
1493
|
* active option via `aria-activedescendant`, Enter/Space click it.
|
|
1423
1494
|
*/
|
|
1424
|
-
declare function InboxList({ children, className, ...props }: InboxListProps): react.JSX.Element;
|
|
1495
|
+
declare function InboxList({ children, listLabel, className, ...props }: InboxListProps): react.JSX.Element;
|
|
1425
1496
|
interface InboxItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
1426
1497
|
/** Primary subject / title line. */
|
|
1427
1498
|
subject?: ReactNode;
|
|
@@ -1490,6 +1561,8 @@ interface TreeNodeProps {
|
|
|
1490
1561
|
onSelect?: (id: string) => void;
|
|
1491
1562
|
onFocusNode: (id: string) => void;
|
|
1492
1563
|
level?: number;
|
|
1564
|
+
/** Whether a click on the row itself toggles a branch (see {@link TreeProps.toggleOnRowClick}). */
|
|
1565
|
+
rowToggles?: boolean;
|
|
1493
1566
|
}
|
|
1494
1567
|
interface TreeProps extends Omit<HTMLAttributes<HTMLUListElement>, 'onSelect' | 'onChange'> {
|
|
1495
1568
|
nodes: TreeNodeData[];
|
|
@@ -1509,8 +1582,14 @@ interface TreeProps extends Omit<HTMLAttributes<HTMLUListElement>, 'onSelect' |
|
|
|
1509
1582
|
rowHeight?: number;
|
|
1510
1583
|
/** Scroll-viewport height (px) when virtualizing. Default 384. */
|
|
1511
1584
|
maxHeight?: number;
|
|
1585
|
+
/**
|
|
1586
|
+
* Whether clicking a branch row toggles it (TENSOR RX-125, UIX-09). Defaults to true for a
|
|
1587
|
+
* pure navigation tree and to false when the tree is selectable (`selected` / `onSelect`),
|
|
1588
|
+
* where a row click only selects and the chevron toggles. Enter/Space still does both.
|
|
1589
|
+
*/
|
|
1590
|
+
toggleOnRowClick?: boolean;
|
|
1512
1591
|
}
|
|
1513
|
-
declare function Tree({ nodes, expanded: controlledExpanded, defaultExpanded, selected, onToggle, onSelect, virtualize, rowHeight, maxHeight, className, ...props }: TreeProps): react.JSX.Element;
|
|
1592
|
+
declare function Tree({ nodes, expanded: controlledExpanded, defaultExpanded, selected, onToggle, onSelect, virtualize, rowHeight, maxHeight, toggleOnRowClick, className, ...props }: TreeProps): react.JSX.Element;
|
|
1514
1593
|
|
|
1515
1594
|
/**
|
|
1516
1595
|
* uix tree model — framework-agnostic, dependency-free tree flattening + keyboard nav.
|
|
@@ -1807,6 +1886,42 @@ interface RuleActionDefinition {
|
|
|
1807
1886
|
label: string;
|
|
1808
1887
|
renderParameters?: (action: RuleAction, onChange: (parameters: Record<string, JsonValue>) => void, disabled: boolean) => ReactNode;
|
|
1809
1888
|
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Every word the rule builder renders (TENSOR RX-125, UIX-12). `{item}` is one of
|
|
1891
|
+
* `itemGroup` / `itemCondition` / `itemAction`; `{field}` a field label; `{count}` a number.
|
|
1892
|
+
*/
|
|
1893
|
+
interface RuleBuilderLabels {
|
|
1894
|
+
region: string;
|
|
1895
|
+
summary: string;
|
|
1896
|
+
when: string;
|
|
1897
|
+
group: string;
|
|
1898
|
+
match: string;
|
|
1899
|
+
all: string;
|
|
1900
|
+
any: string;
|
|
1901
|
+
field: string;
|
|
1902
|
+
operator: string;
|
|
1903
|
+
valueFor: string;
|
|
1904
|
+
itemGroup: string;
|
|
1905
|
+
itemCondition: string;
|
|
1906
|
+
itemAction: string;
|
|
1907
|
+
moveUp: string;
|
|
1908
|
+
moveUpNamed: string;
|
|
1909
|
+
moveDown: string;
|
|
1910
|
+
moveDownNamed: string;
|
|
1911
|
+
remove: string;
|
|
1912
|
+
removeNamed: string;
|
|
1913
|
+
then: string;
|
|
1914
|
+
actionType: string;
|
|
1915
|
+
valid: string;
|
|
1916
|
+
issuesOne: string;
|
|
1917
|
+
issuesMany: string;
|
|
1918
|
+
summaryIssuesOne: string;
|
|
1919
|
+
summaryIssuesMany: string;
|
|
1920
|
+
addCondition: string;
|
|
1921
|
+
addGroup: string;
|
|
1922
|
+
addAction: string;
|
|
1923
|
+
}
|
|
1924
|
+
declare const DEFAULT_RULE_BUILDER_LABELS: RuleBuilderLabels;
|
|
1810
1925
|
interface RuleBuilderProps {
|
|
1811
1926
|
value: RuleDefinition;
|
|
1812
1927
|
onChange: (value: RuleDefinition) => void;
|
|
@@ -1817,12 +1932,16 @@ interface RuleBuilderProps {
|
|
|
1817
1932
|
readOnly?: boolean;
|
|
1818
1933
|
validate?: (value: RuleDefinition) => RuleValidationIssue[];
|
|
1819
1934
|
className?: string;
|
|
1935
|
+
/** @deprecated use `labels.addCondition` */
|
|
1820
1936
|
addConditionLabel?: string;
|
|
1937
|
+
/** @deprecated use `labels.addGroup` */
|
|
1821
1938
|
addGroupLabel?: string;
|
|
1939
|
+
/** @deprecated use `labels.addAction` */
|
|
1822
1940
|
addActionLabel?: string;
|
|
1941
|
+
labels?: Partial<RuleBuilderLabels>;
|
|
1823
1942
|
}
|
|
1824
1943
|
/** Declarative controlled when-conditions-to-actions editor with bounded nesting. */
|
|
1825
|
-
declare function RuleBuilder({ value, onChange, fields, operators, actions, maxDepth, readOnly, validate, className, addConditionLabel, addGroupLabel, addActionLabel, }: RuleBuilderProps): react.JSX.Element;
|
|
1944
|
+
declare function RuleBuilder({ value, onChange, fields, operators, actions, maxDepth, readOnly, validate, className, addConditionLabel, addGroupLabel, addActionLabel, labels: labelOverrides, }: RuleBuilderProps): react.JSX.Element;
|
|
1826
1945
|
|
|
1827
1946
|
interface BuilderCanvasItem {
|
|
1828
1947
|
id: string;
|
|
@@ -1837,6 +1956,30 @@ interface BuilderPaletteItem {
|
|
|
1837
1956
|
description?: string;
|
|
1838
1957
|
create: () => BuilderCanvasItem;
|
|
1839
1958
|
}
|
|
1959
|
+
/** Every word the builder renders (TENSOR RX-125, UIX-12). `{label}` is the item's label. */
|
|
1960
|
+
interface BuilderCanvasLabels {
|
|
1961
|
+
region: string;
|
|
1962
|
+
palette: string;
|
|
1963
|
+
paletteHeading: string;
|
|
1964
|
+
paletteEmpty: string;
|
|
1965
|
+
add: string;
|
|
1966
|
+
addFirst: string;
|
|
1967
|
+
canvasHeading: string;
|
|
1968
|
+
loading: string;
|
|
1969
|
+
retry: string;
|
|
1970
|
+
moveUp: string;
|
|
1971
|
+
moveUpNamed: string;
|
|
1972
|
+
moveDown: string;
|
|
1973
|
+
moveDownNamed: string;
|
|
1974
|
+
remove: string;
|
|
1975
|
+
removeNamed: string;
|
|
1976
|
+
properties: string;
|
|
1977
|
+
propertiesHeading: string;
|
|
1978
|
+
propertiesEmpty: string;
|
|
1979
|
+
type: string;
|
|
1980
|
+
label: string;
|
|
1981
|
+
}
|
|
1982
|
+
declare const DEFAULT_BUILDER_CANVAS_LABELS: BuilderCanvasLabels;
|
|
1840
1983
|
interface BuilderCanvasProps {
|
|
1841
1984
|
items: BuilderCanvasItem[];
|
|
1842
1985
|
onItemsChange: (items: BuilderCanvasItem[]) => void;
|
|
@@ -1850,9 +1993,10 @@ interface BuilderCanvasProps {
|
|
|
1850
1993
|
onRetry?: () => void;
|
|
1851
1994
|
emptyMessage?: string;
|
|
1852
1995
|
className?: string;
|
|
1996
|
+
labels?: Partial<BuilderCanvasLabels>;
|
|
1853
1997
|
}
|
|
1854
1998
|
/** Palette + sortable canvas + property panel scaffold. Owns interaction, never persistence. */
|
|
1855
|
-
declare function BuilderCanvas({ items, onItemsChange, palette, selectedId: controlledSelectedId, onSelect, renderItem, renderProperties, loading, error, onRetry, emptyMessage, className, }: BuilderCanvasProps): react.JSX.Element;
|
|
1999
|
+
declare function BuilderCanvas({ items, onItemsChange, palette, selectedId: controlledSelectedId, onSelect, renderItem, renderProperties, loading, error, onRetry, emptyMessage, className, labels: labelOverrides, }: BuilderCanvasProps): react.JSX.Element;
|
|
1856
2000
|
|
|
1857
2001
|
type SchedulingCalendarView = 'month' | 'week' | 'agenda';
|
|
1858
2002
|
type SchedulingEntryState = 'scheduled' | 'conflicted' | 'in-progress' | 'blackout-violation';
|
|
@@ -1872,6 +2016,28 @@ interface SchedulingCalendarOverlay {
|
|
|
1872
2016
|
end: string;
|
|
1873
2017
|
kind: SchedulingOverlayKind;
|
|
1874
2018
|
}
|
|
2019
|
+
/**
|
|
2020
|
+
* Every word the calendar renders (TENSOR RX-125, UIX-12). `{timeZone}`, `{view}`,
|
|
2021
|
+
* `{title}`, `{state}`, `{start}`, `{end}` are placeholders.
|
|
2022
|
+
*/
|
|
2023
|
+
interface SchedulingCalendarLabels {
|
|
2024
|
+
region: string;
|
|
2025
|
+
previous: string;
|
|
2026
|
+
next: string;
|
|
2027
|
+
viewGroup: string;
|
|
2028
|
+
viewMonth: string;
|
|
2029
|
+
viewWeek: string;
|
|
2030
|
+
viewAgenda: string;
|
|
2031
|
+
loading: string;
|
|
2032
|
+
retry: string;
|
|
2033
|
+
agenda: string;
|
|
2034
|
+
agendaEmpty: string;
|
|
2035
|
+
grid: string;
|
|
2036
|
+
entry: string;
|
|
2037
|
+
legend: string;
|
|
2038
|
+
states: Record<SchedulingEntryState, string>;
|
|
2039
|
+
}
|
|
2040
|
+
declare const DEFAULT_SCHEDULING_CALENDAR_LABELS: SchedulingCalendarLabels;
|
|
1875
2041
|
interface SchedulingCalendarProps {
|
|
1876
2042
|
entries: SchedulingCalendarEntry[];
|
|
1877
2043
|
anchorDate: string;
|
|
@@ -1888,9 +2054,10 @@ interface SchedulingCalendarProps {
|
|
|
1888
2054
|
error?: string;
|
|
1889
2055
|
onRetry?: () => void;
|
|
1890
2056
|
className?: string;
|
|
2057
|
+
labels?: Partial<SchedulingCalendarLabels>;
|
|
1891
2058
|
}
|
|
1892
2059
|
/** Month/week/agenda calendar for UTC ranges rendered in an explicit IANA time zone. */
|
|
1893
|
-
declare function SchedulingCalendar({ entries, anchorDate, timeZone, view: controlledView, onViewChange, onAnchorDateChange, onSelectEntry, overlays, filter, renderEntry, locale, loading, error, onRetry, className, }: SchedulingCalendarProps): react.JSX.Element;
|
|
2060
|
+
declare function SchedulingCalendar({ entries, anchorDate, timeZone, view: controlledView, onViewChange, onAnchorDateChange, onSelectEntry, overlays, filter, renderEntry, locale, loading, error, onRetry, className, labels: labelOverrides, }: SchedulingCalendarProps): react.JSX.Element;
|
|
1894
2061
|
|
|
1895
2062
|
interface CalendarDay {
|
|
1896
2063
|
date: string;
|
|
@@ -1922,6 +2089,23 @@ declare function isDateUnavailable(date: string, options: {
|
|
|
1922
2089
|
isDisabled?: (date: string) => boolean;
|
|
1923
2090
|
}): boolean;
|
|
1924
2091
|
|
|
2092
|
+
/**
|
|
2093
|
+
* Every word the picker renders or announces (TENSOR RX-125, UIX-13). `{start}` and
|
|
2094
|
+
* `{end}` are replaced with the locale-formatted dates.
|
|
2095
|
+
*/
|
|
2096
|
+
interface DateRangePickerLabels {
|
|
2097
|
+
previous: string;
|
|
2098
|
+
previousMonth: string;
|
|
2099
|
+
next: string;
|
|
2100
|
+
nextMonth: string;
|
|
2101
|
+
noneSelected: string;
|
|
2102
|
+
startSelected: string;
|
|
2103
|
+
rangeSelected: string;
|
|
2104
|
+
rangeStart: string;
|
|
2105
|
+
rangeEnd: string;
|
|
2106
|
+
inRange: string;
|
|
2107
|
+
}
|
|
2108
|
+
declare const DEFAULT_DATE_RANGE_PICKER_LABELS: DateRangePickerLabels;
|
|
1925
2109
|
interface DateRangePickerProps {
|
|
1926
2110
|
value: DateRangeValue;
|
|
1927
2111
|
onChange: (value: DateRangeValue) => void;
|
|
@@ -1937,9 +2121,11 @@ interface DateRangePickerProps {
|
|
|
1937
2121
|
invalidMessage?: string;
|
|
1938
2122
|
disabled?: boolean;
|
|
1939
2123
|
className?: string;
|
|
2124
|
+
/** Translatable words; English defaults in {@link DEFAULT_DATE_RANGE_PICKER_LABELS}. */
|
|
2125
|
+
labels?: Partial<DateRangePickerLabels>;
|
|
1940
2126
|
}
|
|
1941
2127
|
/** Controlled, two-month range picker using the UIx calendar language. */
|
|
1942
|
-
declare function DateRangePicker({ value, onChange, visibleMonth: controlledMonth, onVisibleMonthChange, months, min, max, isDateDisabled, locale, label, invalid, invalidMessage, disabled, className, }: DateRangePickerProps): react.JSX.Element;
|
|
2128
|
+
declare function DateRangePicker({ value, onChange, visibleMonth: controlledMonth, onVisibleMonthChange, months, min, max, isDateDisabled, locale, label, invalid, invalidMessage, disabled, className, labels: labelOverrides, }: DateRangePickerProps): react.JSX.Element;
|
|
1943
2129
|
|
|
1944
2130
|
interface RelationshipGraphNode {
|
|
1945
2131
|
id: string;
|
|
@@ -2199,6 +2385,52 @@ interface MatchBulkResult {
|
|
|
2199
2385
|
succeeded: number;
|
|
2200
2386
|
failed?: number;
|
|
2201
2387
|
}
|
|
2388
|
+
/**
|
|
2389
|
+
* Every word the match review renders or announces (TENSOR RX-125, UIX-12). Plural
|
|
2390
|
+
* pairs are `…One` / `…Many`; `{count}`, `{pending}`, `{total}`, `{id}` are placeholders.
|
|
2391
|
+
*/
|
|
2392
|
+
interface MatchReviewLabels {
|
|
2393
|
+
region: string;
|
|
2394
|
+
loading: string;
|
|
2395
|
+
retry: string;
|
|
2396
|
+
empty: string;
|
|
2397
|
+
emptyDetail: string;
|
|
2398
|
+
pendingOf: string;
|
|
2399
|
+
bulk: string;
|
|
2400
|
+
selectedCount: string;
|
|
2401
|
+
applying: string;
|
|
2402
|
+
acceptSelected: string;
|
|
2403
|
+
dismissSelected: string;
|
|
2404
|
+
caption: string;
|
|
2405
|
+
select: string;
|
|
2406
|
+
confidence: string;
|
|
2407
|
+
status: string;
|
|
2408
|
+
actions: string;
|
|
2409
|
+
selectCandidate: string;
|
|
2410
|
+
notScored: string;
|
|
2411
|
+
resolved: string;
|
|
2412
|
+
pending: string;
|
|
2413
|
+
decisionAccepted: string;
|
|
2414
|
+
decisionDismissed: string;
|
|
2415
|
+
decisionSplit: string;
|
|
2416
|
+
decisionOther: string;
|
|
2417
|
+
accept: string;
|
|
2418
|
+
dismiss: string;
|
|
2419
|
+
split: string;
|
|
2420
|
+
pickOther: string;
|
|
2421
|
+
acceptingOne: string;
|
|
2422
|
+
acceptingMany: string;
|
|
2423
|
+
dismissingOne: string;
|
|
2424
|
+
dismissingMany: string;
|
|
2425
|
+
acceptedOne: string;
|
|
2426
|
+
acceptedMany: string;
|
|
2427
|
+
dismissedOne: string;
|
|
2428
|
+
dismissedMany: string;
|
|
2429
|
+
failedSuffix: string;
|
|
2430
|
+
bulkAcceptFailed: string;
|
|
2431
|
+
bulkDismissFailed: string;
|
|
2432
|
+
}
|
|
2433
|
+
declare const DEFAULT_MATCH_REVIEW_LABELS: MatchReviewLabels;
|
|
2202
2434
|
interface MatchReviewProps {
|
|
2203
2435
|
incoming: Record<string, JsonValue>;
|
|
2204
2436
|
incomingLabel?: string;
|
|
@@ -2212,9 +2444,10 @@ interface MatchReviewProps {
|
|
|
2212
2444
|
error?: string;
|
|
2213
2445
|
onRetry?: () => void;
|
|
2214
2446
|
className?: string;
|
|
2447
|
+
labels?: Partial<MatchReviewLabels>;
|
|
2215
2448
|
}
|
|
2216
2449
|
/** Generic descriptor-driven incoming-record to candidate-match decision surface. */
|
|
2217
|
-
declare function MatchReview({ incoming, incomingLabel, fields, candidates, selectedIds, onSelectionChange, onDecision, onBulkDecision, loading, error, onRetry, className, }: MatchReviewProps): react.JSX.Element;
|
|
2450
|
+
declare function MatchReview({ incoming, incomingLabel, fields, candidates, selectedIds, onSelectionChange, onDecision, onBulkDecision, loading, error, onRetry, className, labels: labelOverrides, }: MatchReviewProps): react.JSX.Element;
|
|
2218
2451
|
|
|
2219
2452
|
interface MetricInputProps {
|
|
2220
2453
|
value: number | null;
|
|
@@ -2283,6 +2516,32 @@ interface AppliedBrandProfileSnapshot {
|
|
|
2283
2516
|
/** Apply only the existing UIx brand/font slots and readable logo metadata. */
|
|
2284
2517
|
declare function applyBrandProfile(profile: BrandProfile, target?: HTMLElement | null): AppliedBrandProfileSnapshot | undefined;
|
|
2285
2518
|
declare function restoreBrandProfile(snapshot: AppliedBrandProfileSnapshot, target?: HTMLElement | null): void;
|
|
2519
|
+
/**
|
|
2520
|
+
* Every word the brand-profile editor renders (TENSOR RX-125, UIX-12). `{name}` is the
|
|
2521
|
+
* profile's name. The preview copy is sample content and may be replaced too.
|
|
2522
|
+
*/
|
|
2523
|
+
interface BrandProfileEditorLabels {
|
|
2524
|
+
region: string;
|
|
2525
|
+
profile: string;
|
|
2526
|
+
name: string;
|
|
2527
|
+
brand: string;
|
|
2528
|
+
brandColor: string;
|
|
2529
|
+
onBrand: string;
|
|
2530
|
+
onBrandColor: string;
|
|
2531
|
+
bodyFont: string;
|
|
2532
|
+
headingFont: string;
|
|
2533
|
+
logoFile: string;
|
|
2534
|
+
apply: string;
|
|
2535
|
+
applied: string;
|
|
2536
|
+
preview: string;
|
|
2537
|
+
logoPlaceholder: string;
|
|
2538
|
+
previewTitleFallback: string;
|
|
2539
|
+
previewHeading: string;
|
|
2540
|
+
previewBody: string;
|
|
2541
|
+
previewPrimary: string;
|
|
2542
|
+
previewLink: string;
|
|
2543
|
+
}
|
|
2544
|
+
declare const DEFAULT_BRAND_PROFILE_EDITOR_LABELS: BrandProfileEditorLabels;
|
|
2286
2545
|
interface BrandProfileEditorProps {
|
|
2287
2546
|
value: BrandProfile;
|
|
2288
2547
|
onChange: (profile: BrandProfile) => void;
|
|
@@ -2293,9 +2552,10 @@ interface BrandProfileEditorProps {
|
|
|
2293
2552
|
onLogoFile?: (file: File) => void;
|
|
2294
2553
|
colorPresets?: string[];
|
|
2295
2554
|
className?: string;
|
|
2555
|
+
labels?: Partial<BrandProfileEditorLabels>;
|
|
2296
2556
|
}
|
|
2297
2557
|
/** Small controlled editor composition for serializable UIx brand profiles. */
|
|
2298
|
-
declare function BrandProfileEditor({ value, onChange, profiles, onSelectProfile, onApply, applyTarget, onLogoFile, colorPresets, className, }: BrandProfileEditorProps): react.JSX.Element;
|
|
2558
|
+
declare function BrandProfileEditor({ value, onChange, profiles, onSelectProfile, onApply, applyTarget, onLogoFile, colorPresets, className, labels: labelOverrides, }: BrandProfileEditorProps): react.JSX.Element;
|
|
2299
2559
|
/** Canonical Phase 46.9 export; equivalent to BrandProfileEditor. */
|
|
2300
2560
|
declare const BrandProfiles: typeof BrandProfileEditor;
|
|
2301
2561
|
|
|
@@ -2319,6 +2579,37 @@ interface DiffSummary {
|
|
|
2319
2579
|
declare function buildThreeWayDiff(base: JsonValue | undefined, current: JsonValue | undefined, incoming: JsonValue | undefined, path?: string): DiffEntry[];
|
|
2320
2580
|
declare function summarizeDiff(entries: DiffEntry[], resolutions?: Record<string, DiffResolution>): DiffSummary;
|
|
2321
2581
|
|
|
2582
|
+
/**
|
|
2583
|
+
* Every word the diff viewer renders (TENSOR RX-125, UIX-12). `base` / `current` /
|
|
2584
|
+
* `incoming` keep their meaning from before; `{path}`, `{version}`, `{resolved}` and
|
|
2585
|
+
* `{total}` are placeholders.
|
|
2586
|
+
*/
|
|
2587
|
+
interface DiffViewerLabels {
|
|
2588
|
+
base: string;
|
|
2589
|
+
current: string;
|
|
2590
|
+
incoming: string;
|
|
2591
|
+
region: string;
|
|
2592
|
+
summary: string;
|
|
2593
|
+
noDifferences: string;
|
|
2594
|
+
noDifferencesDetail: string;
|
|
2595
|
+
conflicted: string;
|
|
2596
|
+
changed: string;
|
|
2597
|
+
added: string;
|
|
2598
|
+
removed: string;
|
|
2599
|
+
resolved: string;
|
|
2600
|
+
pending: string;
|
|
2601
|
+
valueFor: string;
|
|
2602
|
+
resolve: string;
|
|
2603
|
+
acceptIncoming: string;
|
|
2604
|
+
keepCurrent: string;
|
|
2605
|
+
markPending: string;
|
|
2606
|
+
resolutionAccept: string;
|
|
2607
|
+
resolutionSkip: string;
|
|
2608
|
+
resolutionPending: string;
|
|
2609
|
+
notPresent: string;
|
|
2610
|
+
progress: string;
|
|
2611
|
+
}
|
|
2612
|
+
declare const DEFAULT_DIFF_VIEWER_LABELS: DiffViewerLabels;
|
|
2322
2613
|
interface DiffViewerProps {
|
|
2323
2614
|
base?: JsonValue;
|
|
2324
2615
|
current?: JsonValue;
|
|
@@ -2326,12 +2617,33 @@ interface DiffViewerProps {
|
|
|
2326
2617
|
entries?: DiffEntry[];
|
|
2327
2618
|
resolutions?: Record<string, DiffResolution>;
|
|
2328
2619
|
onResolutionChange?: (path: string, resolution: DiffResolution) => void;
|
|
2329
|
-
labels?: Partial<
|
|
2620
|
+
labels?: Partial<DiffViewerLabels>;
|
|
2330
2621
|
className?: string;
|
|
2331
2622
|
}
|
|
2332
2623
|
/** Three-way configuration diff with per-entry keyboard-operable resolution. */
|
|
2333
|
-
declare function DiffViewer({ base, current, incoming, entries: providedEntries, resolutions: controlledResolutions, onResolutionChange, labels, className, }: DiffViewerProps): react.JSX.Element;
|
|
2624
|
+
declare function DiffViewer({ base, current, incoming, entries: providedEntries, resolutions: controlledResolutions, onResolutionChange, labels: labelOverrides, className, }: DiffViewerProps): react.JSX.Element;
|
|
2334
2625
|
|
|
2626
|
+
/**
|
|
2627
|
+
* Every word the colour picker renders (TENSOR RX-125, UIX-12). `{label}`, `{color}`,
|
|
2628
|
+
* `{ratio}` and `{minimum}` are placeholders; `sample` is the contrast preview text.
|
|
2629
|
+
*/
|
|
2630
|
+
interface ColorPickerLabels {
|
|
2631
|
+
trigger: string;
|
|
2632
|
+
sample: string;
|
|
2633
|
+
hue: string;
|
|
2634
|
+
saturation: string;
|
|
2635
|
+
brightness: string;
|
|
2636
|
+
hex: string;
|
|
2637
|
+
set: string;
|
|
2638
|
+
presets: string;
|
|
2639
|
+
recent: string;
|
|
2640
|
+
usePreset: string;
|
|
2641
|
+
useRecent: string;
|
|
2642
|
+
contrastPasses: string;
|
|
2643
|
+
contrastFails: string;
|
|
2644
|
+
done: string;
|
|
2645
|
+
}
|
|
2646
|
+
declare const DEFAULT_COLOR_PICKER_LABELS: ColorPickerLabels;
|
|
2335
2647
|
interface ColorPickerProps {
|
|
2336
2648
|
value: string;
|
|
2337
2649
|
onChange: (value: string) => void;
|
|
@@ -2342,9 +2654,10 @@ interface ColorPickerProps {
|
|
|
2342
2654
|
label?: string;
|
|
2343
2655
|
disabled?: boolean;
|
|
2344
2656
|
className?: string;
|
|
2657
|
+
labels?: Partial<ColorPickerLabels>;
|
|
2345
2658
|
}
|
|
2346
2659
|
/** Token-friendly HSV/hex picker with a fully keyboard-operable path and contrast feedback. */
|
|
2347
|
-
declare function ColorPicker({ value, onChange, foreground, presets, recent, minimumContrast, label, disabled, className, }: ColorPickerProps): react.JSX.Element;
|
|
2660
|
+
declare function ColorPicker({ value, onChange, foreground, presets, recent, minimumContrast, label, disabled, className, labels: labelOverrides, }: ColorPickerProps): react.JSX.Element;
|
|
2348
2661
|
|
|
2349
2662
|
interface RgbColor {
|
|
2350
2663
|
r: number;
|
|
@@ -2365,4 +2678,4 @@ declare function hsvToHex(value: HsvColor): string;
|
|
|
2365
2678
|
declare function contrastRatio(background: string, foreground: string): number | undefined;
|
|
2366
2679
|
declare function meetsContrast(background: string, foreground: string, minimum?: number): boolean;
|
|
2367
2680
|
|
|
2368
|
-
export { type AccessStateProps, Alert, type AlertProps, type AlertTone, AppShell, type AppShellProps, type AppliedBrandProfileSnapshot, type AsyncOperationState, AsyncOperationStatus, type AsyncOperationStatusProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BoundedRelationshipGraph, type BrandProfile, BrandProfileEditor, type BrandProfileEditorProps, type BrandProfileLogo, type BrandProfileTypography, BrandProfiles, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, BuilderCanvas, type BuilderCanvasItem, type BuilderCanvasProps, type BuilderPaletteItem, BulkBar, type BulkBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type CalendarDay, Card, CardLink, type CardLinkProps, type CardProps, CellStrong, CellSub, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ColorPicker, type ColorPickerProps, type ColumnFilter, Combobox, type ComboboxOption, type ComboboxProps, CommandGroup, type CommandGroupProps, CommandItem, type CommandItemProps, CommandPalette, type CommandPaletteProps, Comment, type CommentProps, Comments, type CommentsProps, Composer, ComposerBar, type ComposerBarProps, type ComposerProps, ConfirmDialog, type ConfirmDialogProps, ContentList, ContentListItem, type ContentListItemProps, type ContentListProps, CopyButton, type CopyButtonProps, DEFAULT_RELATIONSHIP_GRAPH_LABELS, DEFAULT_SAVE_STATUS_LABELS, DateRangePicker, type DateRangePickerProps, type DateRangeValue, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListItem, type DescriptionListProps, DetailLayout, type DetailLayoutProps, DetailPage, type DetailPageMetric, type DetailPageProps, type DetailPageTab, type DiffEntry, type DiffKind, type DiffResolution, type DiffSummary, DiffViewer, type DiffViewerProps, Drawer, type DrawerProps, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, EventRow, type EventRowProps, ExpandToggle, type ExpandToggleProps, FeaturedRundown, FeaturedRundownItem, type FeaturedRundownItemProps, type FeaturedRundownProps, FeaturedStage, type FeaturedStageProps, Field, type FieldProps, type FilterKind, type FilterOp, type FilterOption, FilterPopover, type FilterPopoverProps, FilteredEmptyState, type FlatNode, Flow, FlowNode, type FlowNodeProps, type FlowNodeState, type FlowProps, type FlowVariant, ForbiddenState, Highlighted, type HighlightedProps, type HsvColor, Inbox, InboxDetail, type InboxDetailProps, InboxItem, type InboxItemProps, InboxList, type InboxListProps, type InboxProps, Input, InputGroup, type InputGroupProps, type InputProps, type JsonPrimitive, type JsonValue, Kanban, KanbanCard, type KanbanCardProps, KanbanColumn, type KanbanColumnProps, type KanbanMoveDirection, type KanbanProps, Label, type LabelProps, type LayeredColumn, type LayeredEdgeClassification, type LayeredEdgeKind, type LayeredItem, type LayeredLayout, type LayeredLayoutOptions, type LayeredNavigationKey, LicensePositionBar, type LicensePositionBarProps, List, ListItem, type ListItemProps, type ListProps, LoadingState, type LoadingStateProps, Mark, type MarkProps, type MatchBulkResult, MatchReview, type MatchReviewAction, type MatchReviewCandidate, type MatchReviewField, type MatchReviewProps, Meter, type MeterProps, type MeterTone, MetricInput, type MetricInputProps, Modal, type ModalProps, type NavFavouriteItem, NavFavourites, type NavFavouritesLabels, type NavFavouritesProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, NewsLead, type NewsLeadProps, NotFoundState, Note, type NoteProps, type NoteTone, NoticeQueue, type NoticeQueueProps, PageHeader, type PageHeaderProps, PageIntro, type PageIntroProps, Pagination, type PaginationProps, Peek, type PeekProps, type PillTone, type PillTreatment, Pipeline, type PipelineProps, PipelineStage, type PipelineStageProps, type PipelineStageState, Placement, Popover, type PopoverProps, type PositionedRelationshipNode, type Primitive, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Prose, type ProseProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RelatedLinkItem, RelatedLinks, type RelatedLinksProps, RelationshipGraph, type RelationshipGraphArrow, type RelationshipGraphCluster, type RelationshipGraphEdge, type RelationshipGraphLabels, type RelationshipGraphLegendItem, type RelationshipGraphNode, type RelationshipGraphProps, RelativeTime, type RelativeTimeFormatContext, type RelativeTimeProps, type RelativeTimeUnit, type RelativeTimeValue, ResourceGrid, type ResourceGridProps, type RgbColor, type RoutedEdge, type Row, RowAction, type RowActionProps, RowActions, type RowActionsProps, type RuleAction, type RuleActionDefinition, RuleBuilder, type RuleBuilderProps, type RuleCondition, type RuleDefinition, type RuleFieldDefinition, type RuleGroup, type RuleOperatorDefinition, type RuleValidationIssue, type RuleValueEditorProps, SaveStatus, type SaveStatusLabels, type SaveStatusProps, type SaveStatusState, type SavedViewItem, SavedViewMenu, type SavedViewMenuProps, SchedulingCalendar, type SchedulingCalendarEntry, type SchedulingCalendarOverlay, type SchedulingCalendarProps, type SchedulingCalendarView, type SchedulingEntryState, type SchedulingOverlayKind, SectionHead, type SectionHeadProps, type Segment, Segmented, SegmentedOption, type SegmentedOptionProps, type SegmentedProps, Select, type SelectAllState, type SelectProps, type ShellNav, Sidebar, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonProps, type SortDir, type SortDirection, type SortKey, Spinner, type SpinnerProps, StarButton, type StarButtonProps, Stat, StatLine, type StatLineItem, type StatLineProps, type StatProps, type StatTrend, type StateVariant, StatusPill, type StatusPillProps, StatusRow, type StatusRowProps, SubNavItem, type SubNavItemProps, Switch, type SwitchProps, Tab, TabPanel, type TabPanelProps, type TabProps, Table, type TableDensity, type TableProps, TableWrap, type TableWrapProps, Tabs, type TabsProps, Td, type TdProps, Textarea, type TextareaProps, Th, type ThProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, Toast, type ToastProps, type ToastTone, Toaster, type ToasterProps, ToggleRow, type ToggleRowProps, Tooltip, type TooltipProps, Tr, type TrProps, Tree, type TreeLike, type TreeNavAction, type TreeNodeData, type TreeNodeProps, type TreeProps, type UseAnchoredPositionOptions, type UseTableOptions, type UseTableResult, type UseVirtualRowsOptions, type UseVirtualRowsResult, UserChip, type UserChipProps, ViewMenu, type ViewMenuColumn, type ViewMenuProps, type ViewState, type VirtualWindow, type ZonedDateSpan, addCalendarDays, addCalendarMonths, appendRuleNode, applyBrandProfile, applyFilters, boundRelationshipGraph, buildMonthGrid, buildThreeWayDiff, clampMetricValue, clampWidth, classifyLayeredEdges, clusterIdFor, contrastRatio, cx, enumerateDateSpan, filterComboboxOptions, findRuleNodeDepth, flattenTree, hexToRgb, highlightSegments, hsvToHex, hsvToRgb, isDateInRange, isDateUnavailable, isRuleGroup, layeredNeighbor, layoutLayeredGraph, layoutRelationshipGraph, mapRuleGroup, matchFilter, meetsContrast, mergePinned, moveRuleNode, multiSort, nextSortDir, normalizeHex, parseDateValue, parseMetricValue, parseView, relationshipNeighbors, relativeTimeValue, removeRuleNode, reorder, restoreBrandProfile, rgbToHex, rgbToHsv, ruleDepth, searchRows, selectAllState, selectRangeDate, serializeView, shouldVirtualize, startOfMonth, stepMetricValue, summarizeDiff, summarizeRule, toDateKey, toggleId, togglePage, toggleSort, traverseRelationshipNode, treeNav, useAnchoredPosition, useDialog, useTable, useVirtualRows, validateRuleDefinition, virtualWindow, wrapEdgeLabel, zonedDateKey, zonedDateSpan };
|
|
2681
|
+
export { type AccessStateProps, Alert, type AlertProps, type AlertTone, AppShell, type AppShellProps, type AppliedBrandProfileSnapshot, type AsyncOperationState, AsyncOperationStatus, type AsyncOperationStatusProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BoundedRelationshipGraph, type BrandProfile, BrandProfileEditor, type BrandProfileEditorLabels, type BrandProfileEditorProps, type BrandProfileLogo, type BrandProfileTypography, BrandProfiles, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, BuilderCanvas, type BuilderCanvasItem, type BuilderCanvasLabels, type BuilderCanvasProps, type BuilderPaletteItem, BulkBar, type BulkBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type CalendarDay, Card, CardLink, type CardLinkProps, type CardProps, CellStrong, CellSub, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ColorPicker, type ColorPickerLabels, type ColorPickerProps, type ColumnFilter, Combobox, type ComboboxOption, type ComboboxProps, CommandGroup, type CommandGroupProps, CommandItem, type CommandItemProps, CommandPalette, type CommandPaletteProps, Comment, type CommentProps, Comments, type CommentsProps, Composer, ComposerBar, type ComposerBarProps, type ComposerProps, ConfirmDialog, type ConfirmDialogProps, ContentList, ContentListItem, type ContentListItemProps, type ContentListProps, CopyButton, type CopyButtonProps, DEFAULT_BRAND_PROFILE_EDITOR_LABELS, DEFAULT_BUILDER_CANVAS_LABELS, DEFAULT_COLOR_PICKER_LABELS, DEFAULT_DATE_RANGE_PICKER_LABELS, DEFAULT_DIFF_VIEWER_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_PAGINATION_LABELS, DEFAULT_RELATIONSHIP_GRAPH_LABELS, DEFAULT_RULE_BUILDER_LABELS, DEFAULT_SAVE_STATUS_LABELS, DEFAULT_SCHEDULING_CALENDAR_LABELS, DateRangePicker, type DateRangePickerLabels, type DateRangePickerProps, type DateRangeValue, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListItem, type DescriptionListProps, DetailLayout, type DetailLayoutProps, DetailPage, type DetailPageLinkProps, type DetailPageMetric, type DetailPageProps, type DetailPageTab, type DiffEntry, type DiffKind, type DiffResolution, type DiffSummary, DiffViewer, type DiffViewerLabels, type DiffViewerProps, Drawer, type DrawerProps, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, EventRow, type EventRowProps, ExpandToggle, type ExpandToggleProps, FeaturedRundown, FeaturedRundownItem, type FeaturedRundownItemProps, type FeaturedRundownProps, FeaturedStage, type FeaturedStageProps, Field, type FieldProps, type FilterKind, type FilterOp, type FilterOption, FilterPopover, type FilterPopoverProps, FilteredEmptyState, type FlatNode, Flow, FlowNode, type FlowNodeProps, type FlowNodeState, type FlowProps, type FlowVariant, ForbiddenState, Highlighted, type HighlightedProps, type HsvColor, Inbox, InboxDetail, type InboxDetailProps, InboxItem, type InboxItemProps, InboxList, type InboxListProps, type InboxProps, Input, InputGroup, type InputGroupProps, type InputProps, type JsonPrimitive, type JsonValue, Kanban, KanbanCard, type KanbanCardProps, KanbanColumn, type KanbanColumnProps, type KanbanMoveDirection, type KanbanProps, Label, type LabelProps, type LayeredColumn, type LayeredEdgeClassification, type LayeredEdgeKind, type LayeredItem, type LayeredLayout, type LayeredLayoutOptions, type LayeredNavigationKey, LicensePositionBar, type LicensePositionBarProps, List, ListItem, type ListItemProps, type ListProps, LoadingState, type LoadingStateProps, Mark, type MarkProps, type MatchBulkResult, MatchReview, type MatchReviewAction, type MatchReviewCandidate, type MatchReviewField, type MatchReviewLabels, type MatchReviewProps, Meter, type MeterProps, type MeterTone, MetricInput, type MetricInputProps, Modal, type ModalProps, type NavFavouriteItem, NavFavourites, type NavFavouritesLabels, type NavFavouritesProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, NewsLead, type NewsLeadProps, NotFoundState, Note, type NoteProps, type NoteTone, NoticeQueue, type NoticeQueueProps, PageHeader, type PageHeaderProps, PageIntro, type PageIntroProps, Pagination, type PaginationLabels, type PaginationProps, Peek, type PeekProps, type PillTone, type PillTreatment, Pipeline, type PipelineProps, PipelineStage, type PipelineStageProps, type PipelineStageState, Placement, Popover, type PopoverProps, type PositionedRelationshipNode, type Primitive, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Prose, type ProseProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RelatedLinkItem, RelatedLinks, type RelatedLinksProps, RelationshipGraph, type RelationshipGraphArrow, type RelationshipGraphCluster, type RelationshipGraphEdge, type RelationshipGraphLabels, type RelationshipGraphLegendItem, type RelationshipGraphNode, type RelationshipGraphProps, RelativeTime, type RelativeTimeFormatContext, type RelativeTimeProps, type RelativeTimeUnit, type RelativeTimeValue, ResourceGrid, type ResourceGridProps, type RgbColor, type RoutedEdge, type Row, RowAction, type RowActionProps, RowActions, type RowActionsProps, type RuleAction, type RuleActionDefinition, RuleBuilder, type RuleBuilderLabels, type RuleBuilderProps, type RuleCondition, type RuleDefinition, type RuleFieldDefinition, type RuleGroup, type RuleOperatorDefinition, type RuleValidationIssue, type RuleValueEditorProps, SaveStatus, type SaveStatusLabels, type SaveStatusProps, type SaveStatusState, type SavedViewItem, SavedViewMenu, type SavedViewMenuProps, SchedulingCalendar, type SchedulingCalendarEntry, type SchedulingCalendarLabels, type SchedulingCalendarOverlay, type SchedulingCalendarProps, type SchedulingCalendarView, type SchedulingEntryState, type SchedulingOverlayKind, SectionHead, type SectionHeadProps, type Segment, Segmented, SegmentedOption, type SegmentedOptionProps, type SegmentedProps, Select, type SelectAllState, type SelectProps, type ShellNav, Sidebar, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonProps, type SortDir, type SortDirection, type SortKey, Spinner, type SpinnerProps, StarButton, type StarButtonProps, Stat, StatLine, type StatLineItem, type StatLineProps, type StatProps, type StatTrend, type StateVariant, StatusPill, type StatusPillProps, StatusRow, type StatusRowProps, SubNavItem, type SubNavItemProps, Switch, type SwitchProps, Tab, TabPanel, type TabPanelProps, type TabProps, Table, type TableDensity, type TableProps, TableWrap, type TableWrapProps, Tabs, type TabsProps, Td, type TdProps, Textarea, type TextareaProps, Th, type ThProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, Toast, type ToastProps, type ToastTone, Toaster, type ToasterProps, ToggleRow, type ToggleRowProps, Tooltip, type TooltipProps, Tr, type TrProps, Tree, type TreeLike, type TreeNavAction, type TreeNodeData, type TreeNodeProps, type TreeProps, type UseAnchoredPositionOptions, type UseTableOptions, type UseTableResult, type UseVirtualRowsOptions, type UseVirtualRowsResult, UserChip, type UserChipProps, ViewMenu, type ViewMenuColumn, type ViewMenuProps, type ViewState, type VirtualWindow, type ZonedDateSpan, addCalendarDays, addCalendarMonths, appendRuleNode, applyBrandProfile, applyFilters, boundRelationshipGraph, buildMonthGrid, buildThreeWayDiff, clampMetricValue, clampWidth, classifyLayeredEdges, clusterIdFor, contrastRatio, cx, enumerateDateSpan, filterComboboxOptions, findRuleNodeDepth, flattenTree, hexToRgb, highlightSegments, hsvToHex, hsvToRgb, isDateInRange, isDateUnavailable, isRuleGroup, layeredNeighbor, layoutLayeredGraph, layoutRelationshipGraph, mapRuleGroup, matchFilter, meetsContrast, mergePinned, moveRuleNode, multiSort, nextSortDir, normalizeHex, parseDateValue, parseMetricValue, parseView, relationshipNeighbors, relativeTimeValue, removeRuleNode, reorder, restoreBrandProfile, rgbToHex, rgbToHsv, ruleDepth, searchRows, selectAllState, selectRangeDate, serializeView, shouldVirtualize, startOfMonth, stepMetricValue, summarizeDiff, summarizeRule, toDateKey, toggleId, togglePage, toggleSort, traverseRelationshipNode, treeNav, useAnchoredPosition, useDialog, useTable, useVirtualRows, validateRuleDefinition, virtualWindow, wrapEdgeLabel, zonedDateKey, zonedDateSpan };
|