@tensor_1/react 2.64.0 → 2.65.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/index.d.cts CHANGED
@@ -4877,9 +4877,18 @@ interface StatusPillProps extends HTMLAttributes<HTMLSpanElement> {
4877
4877
  size?: PillSize;
4878
4878
  /** Draws the tone's dot before the label. Always on for the `dot` and `outline` treatments. */
4879
4879
  dot?: boolean;
4880
+ /**
4881
+ * What the pill means, shown in a kit `Tooltip` on hover and on keyboard focus (HAR-3109), e.g. why
4882
+ * a sentiment reads "Frustriert". The pill becomes a focus stop with the kit focus ring, but no
4883
+ * button: it does nothing when pressed. Screen readers hear the label, then the description once.
4884
+ * Non-interactive content only; for a link or a button inside, use `InfoTip` or `Popover`.
4885
+ */
4886
+ description?: ReactNode;
4887
+ /** Where the description opens. Default `'top'`. */
4888
+ descriptionPlacement?: Placement;
4880
4889
  children?: ReactNode;
4881
4890
  }
4882
- declare function StatusPill({ tone, treatment, size, dot, children, className, ...props }: StatusPillProps): react.JSX.Element;
4891
+ declare function StatusPill({ tone, treatment, size, dot, description, descriptionPlacement, children, className, ...props }: StatusPillProps): react.JSX.Element;
4883
4892
 
4884
4893
  /** One entry of an access or change history. The consumer supplies it free of personal health data. */
4885
4894
  interface AuditLogEvent {
@@ -6394,6 +6403,29 @@ interface InsetProps extends HTMLAttributes<HTMLDivElement> {
6394
6403
  */
6395
6404
  declare function Inset({ padding, tone, children, className, ...props }: InsetProps): react.JSX.Element;
6396
6405
 
6406
+ interface LinkTileProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'title'> {
6407
+ /** The tile's title: the link's accessible name. */
6408
+ title: ReactNode;
6409
+ /** A short description at the meta size, announced as the link's description. */
6410
+ description?: ReactNode;
6411
+ /** A 16 px icon before the title, aligned to its first line. Decorative: hidden from screen readers. */
6412
+ icon?: ReactNode;
6413
+ /** At most this many lines of description, then an ellipsis. Default: no limit. */
6414
+ descriptionLines?: number;
6415
+ /** The title's element. Default `h3`, for a grid of tiles under a section heading. */
6416
+ titleAs?: 'h2' | 'h3' | 'h4' | 'span';
6417
+ /** Renders the anchor with your router's link (client navigation, prefetch), as `CardLink` does. */
6418
+ renderLink?: UixRenderLink;
6419
+ }
6420
+ /**
6421
+ * A navigation tile (HAR-3095): a whole-card link to another page, laid out by the kit. It has a
6422
+ * leading icon, the title, a short description and a trailing chevron that says "this opens a
6423
+ * page". Built on `CardLink`'s interactive card (`.uix-card--interactive`), with no inner padding
6424
+ * beyond `.uix-card__body`. One anchor per tile: the title names it, the description describes it,
6425
+ * the icon and the arrow are `aria-hidden`.
6426
+ */
6427
+ declare function LinkTile({ title, description, icon, descriptionLines, titleAs: Title, className, href, renderLink, ...props }: LinkTileProps): react.JSX.Element;
6428
+
6397
6429
  /** Columns at one width. */
6398
6430
  type DashboardGridColumnCount = 1 | 2 | 3 | 4;
6399
6431
  /**
@@ -7591,6 +7623,18 @@ declare const STATUS_ROLES: readonly StatusRole[];
7591
7623
  * `muted`, `sla-ok`, `p4` and `p5` included.
7592
7624
  */
7593
7625
  declare function statusRoleOf(tone: PillTone | null | undefined): StatusRole;
7626
+ /**
7627
+ * A severity's pill tone, on the one severity ramp (HAR-3874, workspace lessons/12):
7628
+ * `critical` is the red tone, `high` is amber (`warning`), and `medium`, `low` and anything
7629
+ * else are `neutral`. Any casing works. Use it instead of a generic status-tone map, which
7630
+ * sends "high" to a red tone, so every High on the screen turns red and spends the red budget
7631
+ * on the commonest value. The `uix-page-rules` gate flags a hand map that does.
7632
+ *
7633
+ * ```tsx
7634
+ * <StatusPill tone={severityTone(finding.severity)} treatment="dot">{label}</StatusPill>
7635
+ * ```
7636
+ */
7637
+ declare function severityTone(severity: string | null | undefined): PillTone;
7594
7638
 
7595
7639
  interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
7596
7640
  /** 0..max. Ignored when `indeterminate`. */
@@ -10421,4 +10465,4 @@ declare function hsvToHex(value: HsvColor): string;
10421
10465
  declare function contrastRatio(background: string, foreground: string): number | undefined;
10422
10466
  declare function meetsContrast(background: string, foreground: string, minimum?: number): boolean;
10423
10467
 
10424
- export { type AccessStateProps, AccountMenu, type AccountMenuLabels, type AccountMenuProps, type AccountMenuUser, Alert, type AlertProps, type AlertTone, AppShell, type AppShellProps, type AppliedBrandProfileSnapshot, Arrive, ArriveItem, type ArriveItemProps, type ArriveProps, type ArriveState, type AsyncOperationState, AsyncOperationStatus, type AsyncOperationStatusProps, Attachment, type AttachmentLabels, AttachmentList, type AttachmentListProps, type AttachmentProps, AuditLog, type AuditLogAction, type AuditLogEvent, type AuditLogFilters, type AuditLogLabels, type AuditLogProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarPresence, type AvatarProps, BarList, type BarListItem, type BarListProps, 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, Bullet, type BulletProps, BusyRegion, type BusyRegionProps, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, type ButtonResult, type ButtonResultLabels, type ButtonSize, type ButtonVariant, type CalendarDay, type CalendarWeekday, Card, CardLink, type CardLinkProps, type CardProps, CellStrong, CellSub, type CellSubProps, ChangeHighlight, type ChangeHighlightOptions, type ChangeHighlightProps, ChartCard, type ChartCardProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CodeDisplay, type CodeDisplayLabels, type CodeDisplayProps, CollapsibleSection, type CollapsibleSectionProps, ColorPicker, type ColorPickerLabels, type ColorPickerProps, type ColumnFilter, Combobox, type ComboboxGroup, type ComboboxOption, type ComboboxProps, CommandGroup, type CommandGroupProps, CommandItem, type CommandItemProps, CommandPalette, type CommandPaletteGroup, type CommandPaletteItem, type CommandPaletteProps, Comment, type CommentProps, Comments, type CommentsProps, Composer, ComposerBar, type ComposerBarProps, type ComposerProps, type ConfirmButtonProps, ConfirmDialog, type ConfirmDialogProps, ContactCard, type ContactCardLabels, type ContactCardProps, type ContactCardState, ContentList, ContentListItem, type ContentListItemProps, type ContentListProps, type ContrastPreference, CopyButton, type CopyButtonProps, Count, type CountProps, DASHBOARD_CANVAS_COLUMNS, DATE_FILTER_OPERATORS, DAY, DEFAULT_ACCOUNT_MENU_LABELS, DEFAULT_ATTACHMENT_LABELS, DEFAULT_AUDIT_LOG_LABELS, DEFAULT_BRAND_PROFILE_EDITOR_LABELS, DEFAULT_BUILDER_CANVAS_LABELS, DEFAULT_BUTTON_RESULT_LABELS, DEFAULT_CODE_DISPLAY_LABELS, DEFAULT_COLOR_PICKER_LABELS, DEFAULT_CONTACT_CARD_LABELS, DEFAULT_DASHBOARD_CANVAS_LABELS, DEFAULT_DATA_WORKSPACE_LABELS, DEFAULT_DATE_PICKER_LABELS, DEFAULT_DATE_RANGE_PICKER_LABELS, DEFAULT_DATE_TIME_PICKER_LABELS, DEFAULT_DIFF_VIEWER_LABELS, DEFAULT_DISPLAY_PREFERENCES, DEFAULT_DISPLAY_PREFERENCES_LABELS, DEFAULT_ENTITY_PICKER_LABELS, DEFAULT_FILE_DROP_LABELS, DEFAULT_FILE_KIND_LABELS, DEFAULT_FILE_ROW_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILTER_EDITOR_LABELS, DEFAULT_FILTER_SUMMARY_LABELS, DEFAULT_INLINE_EDIT_LABELS, DEFAULT_INSIGHT_CARD_LABELS, DEFAULT_KEYBOARD_GRAB_LABELS, DEFAULT_LIGHTBOX_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_ORG_CHART_LABELS, DEFAULT_PAGINATION_LABELS, DEFAULT_PASSWORD_INPUT_LABELS, DEFAULT_PRESENCE_LABELS, DEFAULT_PRINT_LAYOUT_LABELS, DEFAULT_QR_CODE_LABELS, DEFAULT_QR_SCANNER_LABELS, DEFAULT_RELATIONSHIP_GRAPH_LABELS, DEFAULT_RULE_BUILDER_LABELS, DEFAULT_RULE_SUMMARY_WORDS, DEFAULT_RULE_VALIDATION_MESSAGES, DEFAULT_SAVE_STATUS_LABELS, DEFAULT_SCHEDULING_CALENDAR_LABELS, DEFAULT_SCHEDULING_TIMELINE_LABELS, DEFAULT_SORTABLE_LIST_LABELS, DEFAULT_STEP_STATE_LABELS, DEFAULT_TAG_INPUT_LABELS, DEFAULT_TEXT_DIFF_LABELS, DEFAULT_TIME_PICKER_LABELS, DEFAULT_TREE_LABELS, DISPLAY_PREFERENCES_STORAGE_KEY, DISPLAY_PREFERENCE_OPTIONS, DashboardCanvas, type DashboardCanvasChange, type DashboardCanvasDirection, type DashboardCanvasGap, type DashboardCanvasItem, type DashboardCanvasLabels, type DashboardCanvasPlacement, type DashboardCanvasProps, type DashboardCanvasResize, DashboardGrid, type DashboardGridBreakpoint, type DashboardGridColumnCount, type DashboardGridColumns, type DashboardGridGap, DashboardGridItem, type DashboardGridItemProps, type DashboardGridProps, type DashboardGridSpan, DataWorkspace, type DataWorkspaceColumn, type DataWorkspaceGroup, type DataWorkspaceIdColumn, type DataWorkspaceLabels, type DataWorkspacePagination, type DataWorkspaceProps, type DataWorkspaceRowActionsContext, type DataWorkspaceSort, type DataWorkspaceSortState, type DataWorkspaceSortValue, type DataWorkspaceVirtualize, type DateFilterOperator, type DateInputProblem, type DatePart, DatePicker, type DatePickerLabels, type DatePickerProps, DateRangePicker, type DateRangePickerLabels, type DateRangePickerProps, type DateRangeValue, DateTime, DateTimePicker, type DateTimePickerLabels, type DateTimePickerProps, type DateTimePrecision, type DateTimeProps, DateTimeRange, type DateTimeRangeProps, type DaySpanLayout, type DelayedPendingOptions, type DensityPreference, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListItem, type DescriptionListProps, DetailLayout, type DetailLayoutProps, DetailPage, type DetailPageLinkProps, type DetailPageMetric, type DetailPageProps, type DetailPageTab, DialogClose, type DialogCloseEvent, type DialogCloseProps, type DiffEntry, type DiffKind, type DiffResolution, type DiffSide, type DiffSummary, DiffViewer, type DiffViewerLabels, type DiffViewerProps, type DiscardPromptLabels, type DisplayAttributes, type DisplayPreferenceValues, DisplayPreferences, type DisplayPreferencesLabels, type DisplayPreferencesProps, Drawer, type DrawerProps, ENUM_FILTER_OPERATORS, type EdgeLabelBox, EmptyState, type EmptyStateProps, EntityPicker, type EntityPickerLabels, type EntityPickerProps, type EntityPickerSearchError, type EntityPickerSearchResult, type EnumFilterOperator, ErrorState, type ErrorStateProps, EventRow, type EventRowProps, ExpandToggle, type ExpandToggleProps, FILE_DROP_LABELS_EN, FILE_KINDS, FILE_KIND_EXTENSIONS, FILE_KIND_GLYPHS, FILE_KIND_LABELS_EN, FILE_ROW_LABELS_EN, FeaturedRundown, FeaturedRundownItem, type FeaturedRundownItemProps, type FeaturedRundownProps, FeaturedStage, type FeaturedStageProps, Field, type FieldProps, FileDrop, type FileDropLabels, type FileDropProps, type FileKind, FileKindIcon, type FileKindIconProps, type FileKindIconSize, type FileKindLabels, type FileRejection, type FileRejectionReason, FileRow, type FileRowLabels, type FileRowProps, type FileRowState, type FileSizeFormatter, type FileSizeOptions, FileUpload, type FileUploadItem, type FileUploadLabels, type FileUploadProps, type FileUploadStatus, type FilterChoice, FilterEditor, type FilterEditorLabels, type FilterEditorProps, type FilterField, type FilterKind, type FilterOp, type FilterOption, FilterPopover, type FilterPopoverProps, type FilterPreset, type FilterSummaryLabels, type FilterValue, type FilterValueKind, FilteredEmptyState, type FlatNode, Flow, FlowNode, type FlowNodeProps, type FlowNodeState, type FlowProps, type FlowVariant, type FoldedText, ForbiddenState, HOUR, Heartbeat, type HeartbeatProps, type HeartbeatState, Highlighted, type HighlightedProps, type HsvColor, Inbox, InboxDetail, type InboxDetailProps, InboxItem, type InboxItemProps, InboxList, type InboxListProps, type InboxProps, InfoTip, type InfoTipProps, InlineEdit, type InlineEditEditorProps, type InlineEditErrorContext, type InlineEditLabels, type InlineEditProps, type InlineEditState, Input, InputGroup, type InputGroupProps, type InputProps, Inset, type InsetProps, InsightCard, type InsightCardLabels, type InsightCardProps, type InsightComparison, type InsightCoverage, type InsightKpi, type InsightStatus, type InsightStatusTone, type InsightTarget, type JsonPrimitive, type JsonValue, Kanban, KanbanCard, type KanbanCardProps, KanbanColumn, type KanbanColumnProps, KanbanDropLine, type KanbanDropLineProps, type KanbanMoveDirection, type KanbanProps, Kbd, KbdCombo, type KbdComboProps, type KbdPlatform, type KbdProps, type KeyShortcut, type KeyboardGrabDirection, type KeyboardGrabLabels, Label, type LabelObstacle, type LabelProps, type LaneCluster, type LaneInterval, type LanePlacement, type LayeredColumn, type LayeredEdgeClassification, type LayeredEdgeKind, type LayeredItem, type LayeredLayout, type LayeredLayoutOptions, type LayeredNavigationKey, type LayoutLaneOptions, type LayoutMonthSpansOptions, type LegacyFileKind, LicensePositionBar, type LicensePositionBarProps, Lightbox, type LightboxItem, type LightboxLabels, type LightboxOverlayContext, type LightboxProps, List, ListItem, type ListItemProps, type ListProps, ListSummary, type ListSummaryProps, LiveIndicator, type LiveIndicatorProps, LoadingState, type LoadingStateProps, LocaleSwitcher, type LocaleSwitcherLocale, type LocaleSwitcherProps, Mark, type MarkProps, type MatchBulkResult, MatchReview, type MatchReviewAction, type MatchReviewCandidate, type MatchReviewField, type MatchReviewLabels, type MatchReviewProps, type MatrixAxisItem, type MatrixBand, type MatrixCellState, type MatrixChange, MatrixHeatmap, type MatrixHeatmapCell, type MatrixHeatmapLabels, type MatrixHeatmapProps, MatrixInput, type MatrixInputLabels, type MatrixInputProps, type MatrixOption, type MatrixTone, type MatrixValue, Menu, MenuGroup, type MenuGroupProps, MenuItem, type MenuItemAttributes, MenuItemCheckbox, type MenuItemCheckboxProps, type MenuItemProps, MenuItemRadio, type MenuItemRadioProps, type MenuProps, MenuRadioGroup, type MenuRadioGroupProps, MenuSeparator, Meter, type MeterProps, type MeterTone, MetricInput, type MetricInputProps, Modal, type ModalProps, type MonthSpanGroup, type MonthSpanInput, type MonthSpanLayout, MotionList, type MotionListProps, type MotionPreference, type MoveProposal, NUMBER_FILTER_OPERATORS, 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, type NumberFilterOperator, NumberInput, type NumberInputProps, type OptimisticRollback, OrgChart, type OrgChartLabels, type OrgChartNode, type OrgChartProps, OtpInput, type OtpInputProps, OverflowRow, type OverflowRowProps, PENDING_DELAY_MS, PENDING_MIN_VISIBLE_MS, type PackLanesOptions, type PackedLanes, PageHeader, type PageHeaderProps, PageIntro, type PageIntroProps, Pagination, type PaginationLabels, type PaginationProps, PasswordInput, type PasswordInputLabels, type PasswordInputProps, Peek, type PeekProps, type PillSize, type PillTone, type PillTreatment, Pipeline, type PipelineProps, PipelineStage, type PipelineStageProps, type PipelineStageState, type PlacedDaySpan, type PlacedEdgeLabel, type PlacedMonthSpan, type PlacedSpan, Placement, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, type PositionedRelationshipNode, PresenceDot, type PresenceDotProps, type Primitive, PrintLayout, type PrintLayoutLabels, type PrintLayoutProps, PrintPageBreak, type PrintPageSize, PrintSignature, type PrintSignatureProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Prose, type ProseProps, QrCapacityError, QrCode, type QrCodeLabels, type QrCodeProps, type QrEncodeOptions, type QrErrorCorrection, type QrMatrix, QrScanner, type QrScannerDecoder, type QrScannerFrame, type QrScannerLabels, type QrScannerProps, type QrScannerStatus, RESULT_HOLD_MS, Radio, RadioCard, type RadioCardProps, 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, type RelationshipGraphTone, RelativeTime, type RelativeTimeFormatContext, type RelativeTimeProps, type RelativeTimeUnit, type RelativeTimeValue, type ResourceDayItem, type ResourceDaySlot, type ResourceDaySlotOptions, ResourceGrid, type ResourceGridProps, type RgbColor, type RoutedEdge, type Row, RowAction, type RowActionLinkProps, type RowActionProps, RowActions, type RowActionsProps, type RuleAction, type RuleActionDefinition, RuleBuilder, type RuleBuilderLabels, type RuleBuilderProps, type RuleCheck, type RuleCondition, type RuleDefinition, type RuleFieldDefinition, type RuleGroup, type RuleOperatorDefinition, type RuleSummaryWords, type RuleValidationIssue, type RuleValidationOptions, type RuleValueEditorProps, STATUS_ROLES, SaveStatus, type SaveStatusLabels, type SaveStatusProps, type SaveStatusState, type SavedViewItem, SavedViewMenu, type SavedViewMenuProps, type SavedViewSection, type SchedulingAgendaGroup, type SchedulingAvailabilityKind, type SchedulingBand, SchedulingCalendar, type SchedulingCalendarDay, type SchedulingCalendarEntry, type SchedulingCalendarLabels, type SchedulingCalendarOverlay, type SchedulingCalendarProps, type SchedulingCalendarView, type SchedulingDatePart, type SchedulingEntryState, type SchedulingLegendItem, type SchedulingMarker, type SchedulingMarkerEmphasis, type SchedulingOverlayKind, type SchedulingOverlayPattern, type SchedulingResource, type SchedulingResourceSpan, type SchedulingSlotSelection, type SchedulingStatus, SchedulingTimeline, type SchedulingTimelineGroup, type SchedulingTimelineItem, type SchedulingTimelineLabels, type SchedulingTimelineLane, type SchedulingTimelineMarker, type SchedulingTimelineOverlay, type SchedulingTimelineOverlayKind, type SchedulingTimelineProps, SearchBar, type SearchBarLabels, type SearchBarProps, type SearchSegment, SearchSuggest, type SearchSuggestAction, type SearchSuggestOption, type SearchSuggestProps, SectionHead, type SectionHeadProps, type Segment, Segmented, SegmentedOption, type SegmentedOptionProps, type SegmentedProps, Select, type SelectAllState, type SelectGroup, type SelectLabels, type SelectOption, type SelectProps, type ShellNav, Sidebar, type SidebarProps, type SidebarSearch, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonProps, type SortDir, type SortDirection, type SortKey, SortableList, type SortableListItemContext, type SortableListLabels, type SortableListProps, Sparkline, type SparklineProps, Spinner, type SpinnerProps, StarButton, type StarButtonProps, Stat, StatLine, type StatLineItem, type StatLineProps, type StatProps, StatRow, type StatRowProps, type StatTrend, type StateVariant, StatusDot, type StatusDotProps, type StatusDotTone, StatusPill, type StatusPillProps, type StatusRole, StatusRow, type StatusRowProps, StatusStrip, type StatusStripItem, type StatusStripProps, type StatusStripTone, Step, type StepProps, type StepState, type StepStateLabels, Steps, type StepsProps, SubNavItem, type SubNavItemProps, SuccessState, type SuccessStateProps, type SummarizeFilterOptions, Switch, type SwitchProps, type SystemDisplayPreferences, TEXT_FILTER_OPERATORS, TOAST_LEAVE_MS, TOP_LANE_CROSS_MIDNIGHT_MINUTES, Tab, TabPanel, type TabPanelProps, type TabProps, Table, type TableDensity, type TableProps, TableWrap, type TableWrapProps, Tabs, type TabsProps, TagInput, type TagInputLabels, type TagInputProps, Td, type TdProps, TextDiff, type TextDiffGranularity, type TextDiffLabels, type TextDiffLine, type TextDiffOp, type TextDiffOptions, type TextDiffProps, type TextDiffResult, type TextDiffRow, type TextDiffSegment, type TextFilterOperator, type TextScalePreference, Textarea, type TextareaProps, Th, type ThProps, type ThemePreference, ThemeSwitcher, type ThemeSwitcherProps, type TimeGridDayLayout, type TimeGridEntryContext, type TimeGridEntryInput, type TimeGridPart, type TimeGridSegment, type TimeInputProblem, TimePicker, type TimePickerLabels, type TimePickerProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, type TimelineRange, type TimelineScale, type TimelineSpan, type TimelineSubTick, type TimelineTick, Toast, type ToastAction, type ToastApi, type ToastDismissReason, type ToastKind, type ToastOptions, type ToastPromiseMessages, type ToastProps, type ToastRecord, type ToastStore, type ToastTone, Toaster, type ToasterProps, ToggleRow, type ToggleRowProps, Tooltip, type TooltipProps, Tr, type TrProps, Tree, type TreeLabels, type TreeLike, type TreeNavAction, type TreeNodeData, type TreeNodeProps, type TreeProps, type UixDateFormat, type UixLabels, UixLabelsProvider, type UixLabelsProviderProps, type UixLinkProps, type UixRenderLink, type UndoableToastOptions, type UseAnchoredPositionOptions, type UseDeferredReorderResult, type UseDisplayPreferencesOptions, type UseDisplayPreferencesResult, type UseKeyboardGrabOptions, type UseKeyboardGrabResult, type UseOptimisticValueOptions, type UseOptimisticValueResult, type UseTableOptions, type UseTableResult, type UseVirtualRowsOptions, type UseVirtualRowsResult, UserChip, type UserChipProps, ViewMenu, type ViewMenuColumn, type ViewMenuColumnLabels, type ViewMenuProps, type ViewState, type VirtualWindow, type ZonedDateSpan, type ZonedDayBounds, type ZonedDayShift, type ZonedDaySpan, type ZonedHourSlot, accountInitials, addCalendarDays, addCalendarMonths, addZonedDays, announcePolite, appendRuleNode, applyBrandProfile, applyDisplayAttributes, applyFilters, ariaKeyShortcuts, boundRelationshipGraph, buildMonthGrid, buildThreeWayDiff, cachedDateTimeFormat, canvasItemLimits, canvasItemsOverlap, canvasMoveTarget, canvasReadingOrder, canvasResizeTarget, canvasRowCount, clampCanvasItem, clampMetricValue, clampWidth, classifyLayeredEdges, clusterIdFor, codeGroups, compactCanvas, contrastRatio, createToastApi, createToastStore, cx, dashboardGridClassName, dashboardGridItemClassName, dateFilterBounds, dateOrder, datePattern, defaultTimelineStep, diffText, diffTokens, displayPreferencesScript, edgeLabelSize, emptyFilterValue, encodeQr, enumColumnFilter, enumerateDateKeys, enumerateDateSpan, fileExtension, fileKind, fileMatchesAccept, fileTypeLabel, filterComboboxItems, filterComboboxOptions, filterCommandItems, findRuleNodeDepth, flashChanged, flattenTree, foldForSearch, formatCountdown, formatDateKey, formatFileSize, formatTimeKey, groupCommandItems, hexToRgb, highlightSegments, hsvToHex, hsvToRgb, isDateInRange, isDateUnavailable, isFilterEmpty, isOvernightRange, isRuleGroup, isTimeOutOfRange, isUnresolvedChoice, isValidDateKey, isValidTimeKey, itemDaySpan, joinDateTime, layeredNeighbor, layoutDaySpans, layoutLane, layoutLayeredGraph, layoutMonthSpans, layoutRelationshipGraph, layoutResourceColumn, layoutTimeGridDay, mapRuleGroup, matchFilter, matchFilterPreset, meetsContrast, mergePinned, minutesToTime, moveCanvasItem, moveRuleNode, multiSort, nextSortDir, normalizeCanvas, normalizeHex, orgChartInitials, orgChartZoomStep, overflowRowFit, packLanes, parseDateInput, parseDateValue, parseDisplayPreferences, parseMetricValue, parseTimeInput, parseView, partitionFiles, pixelsToMs, placeCanvasItem, placeId, placeSpan, placesInTopLane, prefersReducedMotion, proposeMove, qrDataCapacity, qrPath, qrVersionFor, rankOverflow, readSystemDisplayPreferences, relationshipNeighbors, relativeTimeValue, removeRuleNode, renderPlainLink, reorder, resizeCanvasItem, resolveDisplayAttributes, resolveFilterLabels, resourceDayGaps, resourceDaySlots, restoreBrandProfile, rgbToHex, rgbToHsv, ruleDepth, schedulingGridDays, searchRows, searchSegments, selectAllState, selectRangeDate, separateEdgeLabels, serializeView, setRuleCombinator, settleDrop, shiftSpan, shouldVirtualize, snapToStep, splitDateTime, startOfMonth, statusRoleOf, stepMetricValue, stepTime, summarizeDiff, summarizeFilter, summarizeRule, telHref, textDiffRows, timePartEnds, timeSlots, timeToMinutes, timeZoneName, timelineRepeatedHourOffset, timelineStepDelta, timelineSubTicks, timelineTicks, toDateKey, toast, toggleId, togglePage, toggleSort, tokenizeText, traverseRelationshipNode, treeNav, useAnchoredPosition, useArrive, useChangeHighlight, useDeferredReorder, useDelayedPending, useDialog, useDisplayPreferences, useKeyboardGrab, useOptimisticValue, useReducedMotion, useSlidingIndicator, useTable, useUixLabels, useVirtualRows, uses12Hour, validateRuleDefinition, virtualWindow, wrapEdgeLabel, zonedDateKey, zonedDateSpan, zonedDayBounds, zonedDaySpan, zonedHourSlots, zonedTimeOfDay };
10468
+ export { type AccessStateProps, AccountMenu, type AccountMenuLabels, type AccountMenuProps, type AccountMenuUser, Alert, type AlertProps, type AlertTone, AppShell, type AppShellProps, type AppliedBrandProfileSnapshot, Arrive, ArriveItem, type ArriveItemProps, type ArriveProps, type ArriveState, type AsyncOperationState, AsyncOperationStatus, type AsyncOperationStatusProps, Attachment, type AttachmentLabels, AttachmentList, type AttachmentListProps, type AttachmentProps, AuditLog, type AuditLogAction, type AuditLogEvent, type AuditLogFilters, type AuditLogLabels, type AuditLogProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarPresence, type AvatarProps, BarList, type BarListItem, type BarListProps, 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, Bullet, type BulletProps, BusyRegion, type BusyRegionProps, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, type ButtonResult, type ButtonResultLabels, type ButtonSize, type ButtonVariant, type CalendarDay, type CalendarWeekday, Card, CardLink, type CardLinkProps, type CardProps, CellStrong, CellSub, type CellSubProps, ChangeHighlight, type ChangeHighlightOptions, type ChangeHighlightProps, ChartCard, type ChartCardProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CodeDisplay, type CodeDisplayLabels, type CodeDisplayProps, CollapsibleSection, type CollapsibleSectionProps, ColorPicker, type ColorPickerLabels, type ColorPickerProps, type ColumnFilter, Combobox, type ComboboxGroup, type ComboboxOption, type ComboboxProps, CommandGroup, type CommandGroupProps, CommandItem, type CommandItemProps, CommandPalette, type CommandPaletteGroup, type CommandPaletteItem, type CommandPaletteProps, Comment, type CommentProps, Comments, type CommentsProps, Composer, ComposerBar, type ComposerBarProps, type ComposerProps, type ConfirmButtonProps, ConfirmDialog, type ConfirmDialogProps, ContactCard, type ContactCardLabels, type ContactCardProps, type ContactCardState, ContentList, ContentListItem, type ContentListItemProps, type ContentListProps, type ContrastPreference, CopyButton, type CopyButtonProps, Count, type CountProps, DASHBOARD_CANVAS_COLUMNS, DATE_FILTER_OPERATORS, DAY, DEFAULT_ACCOUNT_MENU_LABELS, DEFAULT_ATTACHMENT_LABELS, DEFAULT_AUDIT_LOG_LABELS, DEFAULT_BRAND_PROFILE_EDITOR_LABELS, DEFAULT_BUILDER_CANVAS_LABELS, DEFAULT_BUTTON_RESULT_LABELS, DEFAULT_CODE_DISPLAY_LABELS, DEFAULT_COLOR_PICKER_LABELS, DEFAULT_CONTACT_CARD_LABELS, DEFAULT_DASHBOARD_CANVAS_LABELS, DEFAULT_DATA_WORKSPACE_LABELS, DEFAULT_DATE_PICKER_LABELS, DEFAULT_DATE_RANGE_PICKER_LABELS, DEFAULT_DATE_TIME_PICKER_LABELS, DEFAULT_DIFF_VIEWER_LABELS, DEFAULT_DISPLAY_PREFERENCES, DEFAULT_DISPLAY_PREFERENCES_LABELS, DEFAULT_ENTITY_PICKER_LABELS, DEFAULT_FILE_DROP_LABELS, DEFAULT_FILE_KIND_LABELS, DEFAULT_FILE_ROW_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILTER_EDITOR_LABELS, DEFAULT_FILTER_SUMMARY_LABELS, DEFAULT_INLINE_EDIT_LABELS, DEFAULT_INSIGHT_CARD_LABELS, DEFAULT_KEYBOARD_GRAB_LABELS, DEFAULT_LIGHTBOX_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_ORG_CHART_LABELS, DEFAULT_PAGINATION_LABELS, DEFAULT_PASSWORD_INPUT_LABELS, DEFAULT_PRESENCE_LABELS, DEFAULT_PRINT_LAYOUT_LABELS, DEFAULT_QR_CODE_LABELS, DEFAULT_QR_SCANNER_LABELS, DEFAULT_RELATIONSHIP_GRAPH_LABELS, DEFAULT_RULE_BUILDER_LABELS, DEFAULT_RULE_SUMMARY_WORDS, DEFAULT_RULE_VALIDATION_MESSAGES, DEFAULT_SAVE_STATUS_LABELS, DEFAULT_SCHEDULING_CALENDAR_LABELS, DEFAULT_SCHEDULING_TIMELINE_LABELS, DEFAULT_SORTABLE_LIST_LABELS, DEFAULT_STEP_STATE_LABELS, DEFAULT_TAG_INPUT_LABELS, DEFAULT_TEXT_DIFF_LABELS, DEFAULT_TIME_PICKER_LABELS, DEFAULT_TREE_LABELS, DISPLAY_PREFERENCES_STORAGE_KEY, DISPLAY_PREFERENCE_OPTIONS, DashboardCanvas, type DashboardCanvasChange, type DashboardCanvasDirection, type DashboardCanvasGap, type DashboardCanvasItem, type DashboardCanvasLabels, type DashboardCanvasPlacement, type DashboardCanvasProps, type DashboardCanvasResize, DashboardGrid, type DashboardGridBreakpoint, type DashboardGridColumnCount, type DashboardGridColumns, type DashboardGridGap, DashboardGridItem, type DashboardGridItemProps, type DashboardGridProps, type DashboardGridSpan, DataWorkspace, type DataWorkspaceColumn, type DataWorkspaceGroup, type DataWorkspaceIdColumn, type DataWorkspaceLabels, type DataWorkspacePagination, type DataWorkspaceProps, type DataWorkspaceRowActionsContext, type DataWorkspaceSort, type DataWorkspaceSortState, type DataWorkspaceSortValue, type DataWorkspaceVirtualize, type DateFilterOperator, type DateInputProblem, type DatePart, DatePicker, type DatePickerLabels, type DatePickerProps, DateRangePicker, type DateRangePickerLabels, type DateRangePickerProps, type DateRangeValue, DateTime, DateTimePicker, type DateTimePickerLabels, type DateTimePickerProps, type DateTimePrecision, type DateTimeProps, DateTimeRange, type DateTimeRangeProps, type DaySpanLayout, type DelayedPendingOptions, type DensityPreference, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListItem, type DescriptionListProps, DetailLayout, type DetailLayoutProps, DetailPage, type DetailPageLinkProps, type DetailPageMetric, type DetailPageProps, type DetailPageTab, DialogClose, type DialogCloseEvent, type DialogCloseProps, type DiffEntry, type DiffKind, type DiffResolution, type DiffSide, type DiffSummary, DiffViewer, type DiffViewerLabels, type DiffViewerProps, type DiscardPromptLabels, type DisplayAttributes, type DisplayPreferenceValues, DisplayPreferences, type DisplayPreferencesLabels, type DisplayPreferencesProps, Drawer, type DrawerProps, ENUM_FILTER_OPERATORS, type EdgeLabelBox, EmptyState, type EmptyStateProps, EntityPicker, type EntityPickerLabels, type EntityPickerProps, type EntityPickerSearchError, type EntityPickerSearchResult, type EnumFilterOperator, ErrorState, type ErrorStateProps, EventRow, type EventRowProps, ExpandToggle, type ExpandToggleProps, FILE_DROP_LABELS_EN, FILE_KINDS, FILE_KIND_EXTENSIONS, FILE_KIND_GLYPHS, FILE_KIND_LABELS_EN, FILE_ROW_LABELS_EN, FeaturedRundown, FeaturedRundownItem, type FeaturedRundownItemProps, type FeaturedRundownProps, FeaturedStage, type FeaturedStageProps, Field, type FieldProps, FileDrop, type FileDropLabels, type FileDropProps, type FileKind, FileKindIcon, type FileKindIconProps, type FileKindIconSize, type FileKindLabels, type FileRejection, type FileRejectionReason, FileRow, type FileRowLabels, type FileRowProps, type FileRowState, type FileSizeFormatter, type FileSizeOptions, FileUpload, type FileUploadItem, type FileUploadLabels, type FileUploadProps, type FileUploadStatus, type FilterChoice, FilterEditor, type FilterEditorLabels, type FilterEditorProps, type FilterField, type FilterKind, type FilterOp, type FilterOption, FilterPopover, type FilterPopoverProps, type FilterPreset, type FilterSummaryLabels, type FilterValue, type FilterValueKind, FilteredEmptyState, type FlatNode, Flow, FlowNode, type FlowNodeProps, type FlowNodeState, type FlowProps, type FlowVariant, type FoldedText, ForbiddenState, HOUR, Heartbeat, type HeartbeatProps, type HeartbeatState, Highlighted, type HighlightedProps, type HsvColor, Inbox, InboxDetail, type InboxDetailProps, InboxItem, type InboxItemProps, InboxList, type InboxListProps, type InboxProps, InfoTip, type InfoTipProps, InlineEdit, type InlineEditEditorProps, type InlineEditErrorContext, type InlineEditLabels, type InlineEditProps, type InlineEditState, Input, InputGroup, type InputGroupProps, type InputProps, Inset, type InsetProps, InsightCard, type InsightCardLabels, type InsightCardProps, type InsightComparison, type InsightCoverage, type InsightKpi, type InsightStatus, type InsightStatusTone, type InsightTarget, type JsonPrimitive, type JsonValue, Kanban, KanbanCard, type KanbanCardProps, KanbanColumn, type KanbanColumnProps, KanbanDropLine, type KanbanDropLineProps, type KanbanMoveDirection, type KanbanProps, Kbd, KbdCombo, type KbdComboProps, type KbdPlatform, type KbdProps, type KeyShortcut, type KeyboardGrabDirection, type KeyboardGrabLabels, Label, type LabelObstacle, type LabelProps, type LaneCluster, type LaneInterval, type LanePlacement, type LayeredColumn, type LayeredEdgeClassification, type LayeredEdgeKind, type LayeredItem, type LayeredLayout, type LayeredLayoutOptions, type LayeredNavigationKey, type LayoutLaneOptions, type LayoutMonthSpansOptions, type LegacyFileKind, LicensePositionBar, type LicensePositionBarProps, Lightbox, type LightboxItem, type LightboxLabels, type LightboxOverlayContext, type LightboxProps, LinkTile, type LinkTileProps, List, ListItem, type ListItemProps, type ListProps, ListSummary, type ListSummaryProps, LiveIndicator, type LiveIndicatorProps, LoadingState, type LoadingStateProps, LocaleSwitcher, type LocaleSwitcherLocale, type LocaleSwitcherProps, Mark, type MarkProps, type MatchBulkResult, MatchReview, type MatchReviewAction, type MatchReviewCandidate, type MatchReviewField, type MatchReviewLabels, type MatchReviewProps, type MatrixAxisItem, type MatrixBand, type MatrixCellState, type MatrixChange, MatrixHeatmap, type MatrixHeatmapCell, type MatrixHeatmapLabels, type MatrixHeatmapProps, MatrixInput, type MatrixInputLabels, type MatrixInputProps, type MatrixOption, type MatrixTone, type MatrixValue, Menu, MenuGroup, type MenuGroupProps, MenuItem, type MenuItemAttributes, MenuItemCheckbox, type MenuItemCheckboxProps, type MenuItemProps, MenuItemRadio, type MenuItemRadioProps, type MenuProps, MenuRadioGroup, type MenuRadioGroupProps, MenuSeparator, Meter, type MeterProps, type MeterTone, MetricInput, type MetricInputProps, Modal, type ModalProps, type MonthSpanGroup, type MonthSpanInput, type MonthSpanLayout, MotionList, type MotionListProps, type MotionPreference, type MoveProposal, NUMBER_FILTER_OPERATORS, 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, type NumberFilterOperator, NumberInput, type NumberInputProps, type OptimisticRollback, OrgChart, type OrgChartLabels, type OrgChartNode, type OrgChartProps, OtpInput, type OtpInputProps, OverflowRow, type OverflowRowProps, PENDING_DELAY_MS, PENDING_MIN_VISIBLE_MS, type PackLanesOptions, type PackedLanes, PageHeader, type PageHeaderProps, PageIntro, type PageIntroProps, Pagination, type PaginationLabels, type PaginationProps, PasswordInput, type PasswordInputLabels, type PasswordInputProps, Peek, type PeekProps, type PillSize, type PillTone, type PillTreatment, Pipeline, type PipelineProps, PipelineStage, type PipelineStageProps, type PipelineStageState, type PlacedDaySpan, type PlacedEdgeLabel, type PlacedMonthSpan, type PlacedSpan, Placement, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, type PositionedRelationshipNode, PresenceDot, type PresenceDotProps, type Primitive, PrintLayout, type PrintLayoutLabels, type PrintLayoutProps, PrintPageBreak, type PrintPageSize, PrintSignature, type PrintSignatureProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Prose, type ProseProps, QrCapacityError, QrCode, type QrCodeLabels, type QrCodeProps, type QrEncodeOptions, type QrErrorCorrection, type QrMatrix, QrScanner, type QrScannerDecoder, type QrScannerFrame, type QrScannerLabels, type QrScannerProps, type QrScannerStatus, RESULT_HOLD_MS, Radio, RadioCard, type RadioCardProps, 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, type RelationshipGraphTone, RelativeTime, type RelativeTimeFormatContext, type RelativeTimeProps, type RelativeTimeUnit, type RelativeTimeValue, type ResourceDayItem, type ResourceDaySlot, type ResourceDaySlotOptions, ResourceGrid, type ResourceGridProps, type RgbColor, type RoutedEdge, type Row, RowAction, type RowActionLinkProps, type RowActionProps, RowActions, type RowActionsProps, type RuleAction, type RuleActionDefinition, RuleBuilder, type RuleBuilderLabels, type RuleBuilderProps, type RuleCheck, type RuleCondition, type RuleDefinition, type RuleFieldDefinition, type RuleGroup, type RuleOperatorDefinition, type RuleSummaryWords, type RuleValidationIssue, type RuleValidationOptions, type RuleValueEditorProps, STATUS_ROLES, SaveStatus, type SaveStatusLabels, type SaveStatusProps, type SaveStatusState, type SavedViewItem, SavedViewMenu, type SavedViewMenuProps, type SavedViewSection, type SchedulingAgendaGroup, type SchedulingAvailabilityKind, type SchedulingBand, SchedulingCalendar, type SchedulingCalendarDay, type SchedulingCalendarEntry, type SchedulingCalendarLabels, type SchedulingCalendarOverlay, type SchedulingCalendarProps, type SchedulingCalendarView, type SchedulingDatePart, type SchedulingEntryState, type SchedulingLegendItem, type SchedulingMarker, type SchedulingMarkerEmphasis, type SchedulingOverlayKind, type SchedulingOverlayPattern, type SchedulingResource, type SchedulingResourceSpan, type SchedulingSlotSelection, type SchedulingStatus, SchedulingTimeline, type SchedulingTimelineGroup, type SchedulingTimelineItem, type SchedulingTimelineLabels, type SchedulingTimelineLane, type SchedulingTimelineMarker, type SchedulingTimelineOverlay, type SchedulingTimelineOverlayKind, type SchedulingTimelineProps, SearchBar, type SearchBarLabels, type SearchBarProps, type SearchSegment, SearchSuggest, type SearchSuggestAction, type SearchSuggestOption, type SearchSuggestProps, SectionHead, type SectionHeadProps, type Segment, Segmented, SegmentedOption, type SegmentedOptionProps, type SegmentedProps, Select, type SelectAllState, type SelectGroup, type SelectLabels, type SelectOption, type SelectProps, type ShellNav, Sidebar, type SidebarProps, type SidebarSearch, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonProps, type SortDir, type SortDirection, type SortKey, SortableList, type SortableListItemContext, type SortableListLabels, type SortableListProps, Sparkline, type SparklineProps, Spinner, type SpinnerProps, StarButton, type StarButtonProps, Stat, StatLine, type StatLineItem, type StatLineProps, type StatProps, StatRow, type StatRowProps, type StatTrend, type StateVariant, StatusDot, type StatusDotProps, type StatusDotTone, StatusPill, type StatusPillProps, type StatusRole, StatusRow, type StatusRowProps, StatusStrip, type StatusStripItem, type StatusStripProps, type StatusStripTone, Step, type StepProps, type StepState, type StepStateLabels, Steps, type StepsProps, SubNavItem, type SubNavItemProps, SuccessState, type SuccessStateProps, type SummarizeFilterOptions, Switch, type SwitchProps, type SystemDisplayPreferences, TEXT_FILTER_OPERATORS, TOAST_LEAVE_MS, TOP_LANE_CROSS_MIDNIGHT_MINUTES, Tab, TabPanel, type TabPanelProps, type TabProps, Table, type TableDensity, type TableProps, TableWrap, type TableWrapProps, Tabs, type TabsProps, TagInput, type TagInputLabels, type TagInputProps, Td, type TdProps, TextDiff, type TextDiffGranularity, type TextDiffLabels, type TextDiffLine, type TextDiffOp, type TextDiffOptions, type TextDiffProps, type TextDiffResult, type TextDiffRow, type TextDiffSegment, type TextFilterOperator, type TextScalePreference, Textarea, type TextareaProps, Th, type ThProps, type ThemePreference, ThemeSwitcher, type ThemeSwitcherProps, type TimeGridDayLayout, type TimeGridEntryContext, type TimeGridEntryInput, type TimeGridPart, type TimeGridSegment, type TimeInputProblem, TimePicker, type TimePickerLabels, type TimePickerProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, type TimelineRange, type TimelineScale, type TimelineSpan, type TimelineSubTick, type TimelineTick, Toast, type ToastAction, type ToastApi, type ToastDismissReason, type ToastKind, type ToastOptions, type ToastPromiseMessages, type ToastProps, type ToastRecord, type ToastStore, type ToastTone, Toaster, type ToasterProps, ToggleRow, type ToggleRowProps, Tooltip, type TooltipProps, Tr, type TrProps, Tree, type TreeLabels, type TreeLike, type TreeNavAction, type TreeNodeData, type TreeNodeProps, type TreeProps, type UixDateFormat, type UixLabels, UixLabelsProvider, type UixLabelsProviderProps, type UixLinkProps, type UixRenderLink, type UndoableToastOptions, type UseAnchoredPositionOptions, type UseDeferredReorderResult, type UseDisplayPreferencesOptions, type UseDisplayPreferencesResult, type UseKeyboardGrabOptions, type UseKeyboardGrabResult, type UseOptimisticValueOptions, type UseOptimisticValueResult, type UseTableOptions, type UseTableResult, type UseVirtualRowsOptions, type UseVirtualRowsResult, UserChip, type UserChipProps, ViewMenu, type ViewMenuColumn, type ViewMenuColumnLabels, type ViewMenuProps, type ViewState, type VirtualWindow, type ZonedDateSpan, type ZonedDayBounds, type ZonedDayShift, type ZonedDaySpan, type ZonedHourSlot, accountInitials, addCalendarDays, addCalendarMonths, addZonedDays, announcePolite, appendRuleNode, applyBrandProfile, applyDisplayAttributes, applyFilters, ariaKeyShortcuts, boundRelationshipGraph, buildMonthGrid, buildThreeWayDiff, cachedDateTimeFormat, canvasItemLimits, canvasItemsOverlap, canvasMoveTarget, canvasReadingOrder, canvasResizeTarget, canvasRowCount, clampCanvasItem, clampMetricValue, clampWidth, classifyLayeredEdges, clusterIdFor, codeGroups, compactCanvas, contrastRatio, createToastApi, createToastStore, cx, dashboardGridClassName, dashboardGridItemClassName, dateFilterBounds, dateOrder, datePattern, defaultTimelineStep, diffText, diffTokens, displayPreferencesScript, edgeLabelSize, emptyFilterValue, encodeQr, enumColumnFilter, enumerateDateKeys, enumerateDateSpan, fileExtension, fileKind, fileMatchesAccept, fileTypeLabel, filterComboboxItems, filterComboboxOptions, filterCommandItems, findRuleNodeDepth, flashChanged, flattenTree, foldForSearch, formatCountdown, formatDateKey, formatFileSize, formatTimeKey, groupCommandItems, hexToRgb, highlightSegments, hsvToHex, hsvToRgb, isDateInRange, isDateUnavailable, isFilterEmpty, isOvernightRange, isRuleGroup, isTimeOutOfRange, isUnresolvedChoice, isValidDateKey, isValidTimeKey, itemDaySpan, joinDateTime, layeredNeighbor, layoutDaySpans, layoutLane, layoutLayeredGraph, layoutMonthSpans, layoutRelationshipGraph, layoutResourceColumn, layoutTimeGridDay, mapRuleGroup, matchFilter, matchFilterPreset, meetsContrast, mergePinned, minutesToTime, moveCanvasItem, moveRuleNode, multiSort, nextSortDir, normalizeCanvas, normalizeHex, orgChartInitials, orgChartZoomStep, overflowRowFit, packLanes, parseDateInput, parseDateValue, parseDisplayPreferences, parseMetricValue, parseTimeInput, parseView, partitionFiles, pixelsToMs, placeCanvasItem, placeId, placeSpan, placesInTopLane, prefersReducedMotion, proposeMove, qrDataCapacity, qrPath, qrVersionFor, rankOverflow, readSystemDisplayPreferences, relationshipNeighbors, relativeTimeValue, removeRuleNode, renderPlainLink, reorder, resizeCanvasItem, resolveDisplayAttributes, resolveFilterLabels, resourceDayGaps, resourceDaySlots, restoreBrandProfile, rgbToHex, rgbToHsv, ruleDepth, schedulingGridDays, searchRows, searchSegments, selectAllState, selectRangeDate, separateEdgeLabels, serializeView, setRuleCombinator, settleDrop, severityTone, shiftSpan, shouldVirtualize, snapToStep, splitDateTime, startOfMonth, statusRoleOf, stepMetricValue, stepTime, summarizeDiff, summarizeFilter, summarizeRule, telHref, textDiffRows, timePartEnds, timeSlots, timeToMinutes, timeZoneName, timelineRepeatedHourOffset, timelineStepDelta, timelineSubTicks, timelineTicks, toDateKey, toast, toggleId, togglePage, toggleSort, tokenizeText, traverseRelationshipNode, treeNav, useAnchoredPosition, useArrive, useChangeHighlight, useDeferredReorder, useDelayedPending, useDialog, useDisplayPreferences, useKeyboardGrab, useOptimisticValue, useReducedMotion, useSlidingIndicator, useTable, useUixLabels, useVirtualRows, uses12Hour, validateRuleDefinition, virtualWindow, wrapEdgeLabel, zonedDateKey, zonedDateSpan, zonedDayBounds, zonedDaySpan, zonedHourSlots, zonedTimeOfDay };
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export { DialogClose, DialogCloseEvent, DialogCloseProps, DiscardPromptLabels }
45
45
  export { Peek, PeekProps } from './components/Peek.js';
46
46
  export { DEFAULT_LIGHTBOX_LABELS, Lightbox, LightboxItem, LightboxLabels, LightboxOverlayContext, LightboxProps } from './components/Lightbox.js';
47
47
  export { Card, CardLink, CardLinkProps, CardProps, Inset, InsetProps } from './components/Card.js';
48
+ export { LinkTile, LinkTileProps } from './components/LinkTile.js';
48
49
  export { DashboardGrid, DashboardGridBreakpoint, DashboardGridColumnCount, DashboardGridColumns, DashboardGridGap, DashboardGridItem, DashboardGridItemProps, DashboardGridProps, DashboardGridSpan, dashboardGridClassName, dashboardGridItemClassName } from './components/DashboardGrid.js';
49
50
  export { DEFAULT_DASHBOARD_CANVAS_LABELS, DashboardCanvas, DashboardCanvasChange, DashboardCanvasGap, DashboardCanvasLabels, DashboardCanvasProps } from './components/DashboardCanvas.js';
50
51
  export { DASHBOARD_CANVAS_COLUMNS, DashboardCanvasDirection, DashboardCanvasItem, DashboardCanvasPlacement, DashboardCanvasResize, canvasItemLimits, canvasItemsOverlap, canvasMoveTarget, canvasReadingOrder, canvasResizeTarget, canvasRowCount, clampCanvasItem, compactCanvas, moveCanvasItem, normalizeCanvas, placeCanvasItem, resizeCanvasItem } from './dashboard-canvas-model.js';
@@ -87,7 +88,7 @@ export { ColumnFilter, FilterKind, FilterOp, Primitive, Row, Segment, SelectAllS
87
88
  export { DEFAULT_PAGINATION_LABELS, Pagination, PaginationLabels, PaginationProps } from './components/Pagination.js';
88
89
  export { PillSize, PillTone, PillTreatment, StatusPill, StatusPillProps } from './components/StatusPill.js';
89
90
  export { StatusDot, StatusDotProps, StatusDotTone } from './components/StatusDot.js';
90
- export { STATUS_ROLES, StatusRole, statusRoleOf } from './usage-roles.js';
91
+ export { STATUS_ROLES, StatusRole, severityTone, statusRoleOf } from './usage-roles.js';
91
92
  export { Progress, ProgressProps } from './components/Progress.js';
92
93
  export { Meter, MeterProps, MeterTone } from './components/Meter.js';
93
94
  export { Stat, StatProps, StatRow, StatRowProps, StatTrend } from './components/Stat.js';
package/dist/index.js CHANGED
@@ -54,6 +54,7 @@ import { DialogClose } from "./components/DiscardPrompt.js";
54
54
  import { Peek } from "./components/Peek.js";
55
55
  import { Lightbox, DEFAULT_LIGHTBOX_LABELS } from "./components/Lightbox.js";
56
56
  import { Card, CardLink, Inset } from "./components/Card.js";
57
+ import { LinkTile } from "./components/LinkTile.js";
57
58
  import { DashboardGrid, DashboardGridItem, dashboardGridClassName, dashboardGridItemClassName } from "./components/DashboardGrid.js";
58
59
  import { DashboardCanvas, DEFAULT_DASHBOARD_CANVAS_LABELS } from "./components/DashboardCanvas.js";
59
60
  import {
@@ -135,7 +136,7 @@ export * from "./table-engine.js";
135
136
  import { DEFAULT_PAGINATION_LABELS, Pagination } from "./components/Pagination.js";
136
137
  import { StatusPill } from "./components/StatusPill.js";
137
138
  import { StatusDot } from "./components/StatusDot.js";
138
- import { STATUS_ROLES, statusRoleOf } from "./usage-roles.js";
139
+ import { STATUS_ROLES, severityTone, statusRoleOf } from "./usage-roles.js";
139
140
  import { Progress } from "./components/Progress.js";
140
141
  import { Meter } from "./components/Meter.js";
141
142
  import { Stat, StatRow } from "./components/Stat.js";
@@ -487,6 +488,7 @@ export {
487
488
  Label,
488
489
  LicensePositionBar,
489
490
  Lightbox,
491
+ LinkTile,
490
492
  List,
491
493
  ListItem,
492
494
  ListSummary,
@@ -743,6 +745,7 @@ export {
743
745
  separateEdgeLabels,
744
746
  setRuleCombinator,
745
747
  settleDrop,
748
+ severityTone,
746
749
  shiftSpan,
747
750
  snapToStep,
748
751
  splitDateTime,
@@ -1,5 +1,6 @@
1
1
  import { PillTone } from './components/StatusPill.js';
2
2
  import 'react';
3
+ import './overlay-position.js';
3
4
 
4
5
  /**
5
6
  * The five status roles by meaning (HAR-2816, Foundations › Usage roles).
@@ -24,5 +25,17 @@ declare const STATUS_ROLES: readonly StatusRole[];
24
25
  * `muted`, `sla-ok`, `p4` and `p5` included.
25
26
  */
26
27
  declare function statusRoleOf(tone: PillTone | null | undefined): StatusRole;
28
+ /**
29
+ * A severity's pill tone, on the one severity ramp (HAR-3874, workspace lessons/12):
30
+ * `critical` is the red tone, `high` is amber (`warning`), and `medium`, `low` and anything
31
+ * else are `neutral`. Any casing works. Use it instead of a generic status-tone map, which
32
+ * sends "high" to a red tone, so every High on the screen turns red and spends the red budget
33
+ * on the commonest value. The `uix-page-rules` gate flags a hand map that does.
34
+ *
35
+ * ```tsx
36
+ * <StatusPill tone={severityTone(finding.severity)} treatment="dot">{label}</StatusPill>
37
+ * ```
38
+ */
39
+ declare function severityTone(severity: string | null | undefined): PillTone;
27
40
 
28
- export { STATUS_ROLES, type StatusRole, statusRoleOf };
41
+ export { STATUS_ROLES, type StatusRole, severityTone, statusRoleOf };
@@ -22,7 +22,18 @@ function statusRoleOf(tone) {
22
22
  return "neutral";
23
23
  }
24
24
  }
25
+ function severityTone(severity) {
26
+ switch (severity?.trim().toLowerCase()) {
27
+ case "critical":
28
+ return "critical";
29
+ case "high":
30
+ return "warning";
31
+ default:
32
+ return "neutral";
33
+ }
34
+ }
25
35
  export {
26
36
  STATUS_ROLES,
37
+ severityTone,
27
38
  statusRoleOf
28
39
  };
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@tensor_1/react",
3
- "version": "2.64.0",
3
+ "version": "2.65.0",
4
4
  "description": "Thin React wrappers over the UIx v2 CSS component library.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
7
7
  "sideEffects": false,
8
+ "bin": {
9
+ "uix-page-rules": "./page-rules/cli.mjs"
10
+ },
8
11
  "repository": {
9
12
  "type": "git",
10
13
  "url": "git+https://github.com/COx-ORG-H/UIx.git",
@@ -13,7 +16,9 @@
13
16
  "files": [
14
17
  "dist",
15
18
  "component-inventory.json",
16
- "THIRD_PARTY_NOTICES.md"
19
+ "THIRD_PARTY_NOTICES.md",
20
+ "page-rules",
21
+ "!page-rules/*.test.mjs"
17
22
  ],
18
23
  "publishConfig": {
19
24
  "access": "public"
@@ -59,7 +64,8 @@
59
64
  "types": "./dist/icons.d.ts",
60
65
  "import": "./dist/icons.js",
61
66
  "require": "./dist/icons.cjs"
62
- }
67
+ },
68
+ "./page-rules": "./page-rules/index.mjs"
63
69
  },
64
70
  "scripts": {
65
71
  "build": "node scripts/clean-dist.mjs && tsup && node scripts/check-dist.mjs",
@@ -0,0 +1,74 @@
1
+ # UIx page rules
2
+
3
+ `uix-page-rules` checks how a product's pages use UIx. UIx's own tests hold the kit-level rules (control edges at 3:1, the 24 px hit area, the calm palette, the motion tokens), so every product gets those by installing the kit. A page can still misuse the kit, and these rules catch that. They come from the TENSOR UI council climbs (HAR-2954) and the page audit (HAR-3101), and workspace `Docs/lessons/12` and `13` explain each one.
4
+
5
+ The tool ships inside `@tensor_1/react`, so a product already has it and the rules match the kit version it renders. It has no dependencies and reads files only.
6
+
7
+ ## Rules
8
+
9
+ | Rule | What it stops | Inline ignore |
10
+ |---|---|---|
11
+ | `severity-through-status-tone` | A severity coloured through a generic tone helper (`statusTone('severity', …)`), or a hand map that sends "high" to a red tone. Use `severityTone()`. | yes |
12
+ | `label-break-anywhere` | `break-all`, `overflow-wrap: anywhere`, `wrap-anywhere`, `wordBreak: 'break-all'`, `overflowWrap: 'anywhere'`. Code in `font-mono`, `<code>` or `<pre>` is exempt. | yes |
13
+ | `heading-said-twice` | The `PageHeader` title said again as a heading, `title` or table `caption`. | yes |
14
+ | `row-menu-unnamed` | A row's ⋯ menu (`Menu`, `ActionMenu`) whose `label` and trigger `aria-label` do not name the row. | yes |
15
+ | `list-joined-in-cell` | A row's list joined with `", "` in a table cell. Use `ListSummary` or `OverflowRow`. | yes |
16
+ | `no-raw-button` | A raw `<button>`. The one allowed case is an invisible submitter (`type="submit" hidden aria-hidden`). | no |
17
+ | `no-raw-table` | A raw `<table>`. Use `DataWorkspace`, or `Table` in `TableWrap` for a matrix. | no |
18
+ | `no-raw-form-control` | A raw `<input>`, `<select>` or `<textarea>`. `<input type="hidden">` is allowed. | no |
19
+ | `no-arbitrary-font-size` | A literal font size, such as `text-[13px]` or `fontSize: 12`. Use the `--uix-text-*` tokens. | no |
20
+
21
+ `.css` files are checked against `label-break-anywhere` only. `.ts`, `.js` and `.mjs` files are checked against that rule and the severity rule. `.tsx` and `.jsx` files are checked against every rule. These are not read: tests and stories (`*.test.*`, `*.spec.*`, `*.stories.*`), `.d.ts` files, and anything under `__tests__`, `__mocks__` or `__fixtures__`.
22
+
23
+ Comments are never findings. That covers a trailing `// …`, a `{/* … */}` in JSX and a CSS block comment. The severity rules also match code that a formatter wrapped over several lines. Regex literals and URLs in JSX text are skipped whole, so neither can hide a tag.
24
+
25
+ One known limit: two apostrophes on one line of raw JSX text read as a string, and a tag between them is not seen. Products that translate every string have no raw JSX text.
26
+
27
+ The kit-control rules (`no-raw-*`, `no-arbitrary-font-size`) accept no inline ignore. If the kit cannot serve a case, build the missing piece in UIx first (workspace ADR-0038). For a structural exception, such as a printed document, add an `exempt` entry with its reason.
28
+
29
+ One rule is held back: `no-hand-built-pill` (`rounded-full` plus horizontal padding). It misses a class split by a template interpolation (HAR-3817), so it waits for that fix.
30
+
31
+ ## Adopting it in a product
32
+
33
+ 1. Pin `@tensor_1/react` at a version that ships the tool: 2.65.0 or later.
34
+ 2. Add `uix-page-rules.config.json` at the product root:
35
+
36
+ ```json
37
+ {
38
+ "roots": ["src"],
39
+ "baseline": "uix-page-rules-baseline.json"
40
+ }
41
+ ```
42
+
43
+ Optional keys:
44
+
45
+ - `skip`: files or directories not to scan, each with its reason. A prefix matches on a path-segment boundary, so `src/legacy` never covers `src/legacy-new/`.
46
+ - `exempt`: `{ "<rule>": { "<file>": "<reason>" } }`.
47
+ - `genericToneHelpers`: default `["statusTone"]`.
48
+ - `pageTitleComponents`: default `["PageHeader"]`.
49
+ - `rowMenuComponents`: default `["Menu", "ActionMenu"]`.
50
+
51
+ An unknown key is an error, so a typo can't switch a rule off.
52
+ 3. Seed the baseline once, on purpose, and commit it: `npx uix-page-rules baseline --seed`.
53
+ 4. Add a script, `"lint:uix-page-rules": "uix-page-rules"`, and run it as a required CI step.
54
+
55
+ ## What fails
56
+
57
+ `uix-page-rules` (same as `uix-page-rules check`) exits:
58
+
59
+ - **0** when nothing is new;
60
+ - **1** on any of these:
61
+ - a finding the baseline does not grandfather, in a new file or as one more in a grandfathered file;
62
+ - a baseline entry the tree no longer reaches (`stale-baseline`);
63
+ - a `skip` prefix or an `exempt` entry that matches nothing (`stale-exemption`);
64
+ - **2** when the run cannot judge the tree:
65
+ - the config is missing or invalid;
66
+ - the baseline is unreadable;
67
+ - the roots hold no source files;
68
+ - anything else goes wrong, such as an unreadable directory.
69
+
70
+ `baseline` writes nothing while the config has a stale `skip` or `exempt` entry. `--seed` can replace an unreadable baseline.
71
+
72
+ The baseline counts findings per rule, per file, and it only shrinks. After you fix a finding, run `npx uix-page-rules baseline` and commit the smaller file. That command refuses to write a baseline that grows. `--seed` writes it anyway, for the first baseline or a reviewed re-seed after files move. The PR diff then shows the growth.
73
+
74
+ `uix-page-rules rules` lists every rule and its fix, and `--json` prints the result for other tools. `import { scanSource, run } from '@tensor_1/react/page-rules'` gives the same functions to a product's own lint runner.
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ // `uix-page-rules` — the UIx page rules as a product gate (HAR-3874). See README.md.
3
+ import { run } from './index.mjs';
4
+
5
+ process.exitCode = run(process.argv.slice(2));
@@ -0,0 +1,158 @@
1
+ // UIx page rules (HAR-3874): `import { run, scanSource } from '@tensor_1/react/page-rules'`.
2
+ // The CLI is `uix-page-rules` (./cli.mjs); README.md has the product setup.
3
+
4
+ import { writeFileSync } from 'node:fs';
5
+ import { join, resolve } from 'node:path';
6
+ import { COUNTED_RULES, RULES } from './rules.mjs';
7
+ import {
8
+ baselineDocument,
9
+ CONFIG_FILE,
10
+ ConfigError,
11
+ evaluate,
12
+ growth,
13
+ loadBaseline,
14
+ loadConfig,
15
+ scanProject,
16
+ } from './scan.mjs';
17
+
18
+ export * from './rules.mjs';
19
+ export * from './scan.mjs';
20
+
21
+ const USAGE = `Usage: uix-page-rules [check | baseline [--seed] | rules] [--config <file>] [--root <dir>] [--json]
22
+
23
+ check (default) fail on any finding the baseline does not grandfather, and on
24
+ baseline or config entries the tree no longer needs
25
+ baseline rewrite the baseline from the tree; refuses to grow it (--seed writes it
26
+ anyway: the first baseline, or a reviewed re-seed after moving files)
27
+ rules list the rules and how to fix each
28
+
29
+ Exit codes: 0 clean, 1 violations or a refused baseline, 2 usage or config error.`;
30
+
31
+ function parseArgs(argv) {
32
+ const args = { command: 'check', config: CONFIG_FILE, root: '.', json: false, seed: false };
33
+ const rest = [...argv];
34
+ if (rest[0] && !rest[0].startsWith('-')) args.command = rest.shift();
35
+ while (rest.length) {
36
+ const a = rest.shift();
37
+ if (a === '--json') args.json = true;
38
+ else if (a === '--seed') args.seed = true;
39
+ else if (a === '--config' && rest.length) args.config = rest.shift();
40
+ else if (a === '--root' && rest.length) args.root = rest.shift();
41
+ else if (a === '--help' || a === '-h') args.command = 'help';
42
+ else throw new ConfigError(`unknown argument "${a}"`);
43
+ }
44
+ if (!['check', 'baseline', 'rules', 'help'].includes(args.command)) throw new ConfigError(`unknown command "${args.command}"`);
45
+ if (args.seed && args.command !== 'baseline') throw new ConfigError('--seed only applies to `baseline`');
46
+ return args;
47
+ }
48
+
49
+ const grandfathered = (counts, baseline) => {
50
+ let n = 0;
51
+ for (const rule of COUNTED_RULES) {
52
+ for (const [file, have] of Object.entries(counts[rule] ?? {})) n += Math.min(have, baseline.rules[rule]?.[file] ?? 0);
53
+ }
54
+ return n;
55
+ };
56
+
57
+ function report(violations, out) {
58
+ for (const v of violations) {
59
+ out(` ${v.file}:${v.line} ${v.rule} ${v.msg}`);
60
+ if (v.text) out(` ${v.text}`);
61
+ }
62
+ const rules = [...new Set(violations.map((v) => v.rule))];
63
+ out('');
64
+ out('How to fix:');
65
+ for (const rule of rules) out(` ${rule}: ${RULES[rule].fix} (workspace ${RULES[rule].lesson})`);
66
+ const ignorable = rules.filter((r) => RULES[r]?.ignorable);
67
+ if (ignorable.length) {
68
+ out(` A real exception to ${ignorable.join(', ')} takes an inline \`// uix-page-rules-ignore <rule>: <reason>\` on the line or the line above. The kit-control rules take none: a case the kit cannot serve is built in UIx first.`);
69
+ }
70
+ }
71
+
72
+ /**
73
+ * Run the CLI. Returns the exit code; writes through `io`.
74
+ * @param {string[]} argv
75
+ * @param {{ cwd?: string, stdout?: (s: string) => void, stderr?: (s: string) => void }} [io]
76
+ */
77
+ export function run(argv, io = {}) {
78
+ const out = io.stdout ?? ((s) => process.stdout.write(`${s}\n`));
79
+ const err = io.stderr ?? ((s) => process.stderr.write(`${s}\n`));
80
+ let args;
81
+ try {
82
+ args = parseArgs(argv);
83
+ } catch (error) {
84
+ err(`uix-page-rules: ${error.message}\n\n${USAGE}`);
85
+ return 2;
86
+ }
87
+ if (args.command === 'help') {
88
+ out(USAGE);
89
+ return 0;
90
+ }
91
+ if (args.command === 'rules') {
92
+ for (const rule of COUNTED_RULES) out(`${rule}${RULES[rule].ignorable ? '' : ' (no inline ignore)'}\n ${RULES[rule].fix}\n workspace ${RULES[rule].lesson}`);
93
+ out('\nHeld back: no-hand-built-pill (a class split by a template interpolation escapes it, HAR-3817).');
94
+ return 0;
95
+ }
96
+
97
+ const root = resolve(io.cwd ?? process.cwd(), args.root);
98
+ try {
99
+ const config = loadConfig(root, args.config);
100
+ // A reseed may replace an unreadable baseline; every other command needs it intact.
101
+ const seeding = args.command === 'baseline' && args.seed;
102
+ let baseline;
103
+ try {
104
+ baseline = loadBaseline(root, config);
105
+ } catch (error) {
106
+ if (!(seeding && error instanceof ConfigError)) throw error;
107
+ baseline = { exists: false, rules: {} };
108
+ }
109
+ const scan = scanProject(root, config);
110
+ if (scan.filesScanned === 0) {
111
+ err(`uix-page-rules: no source files under ${config.roots.join(', ')}; a gate that reads nothing proves nothing.`);
112
+ return 2;
113
+ }
114
+
115
+ if (args.command === 'baseline') {
116
+ if (scan.problems.length) {
117
+ err('uix-page-rules: fix the config first; the baseline was not written:');
118
+ report(scan.problems, err);
119
+ return 1;
120
+ }
121
+ const grown = baseline.exists ? growth(scan.counts, baseline) : [];
122
+ if (!args.seed && !baseline.exists && scan.findings.length) {
123
+ err(`uix-page-rules: ${config.baseline} does not exist. Seed it on purpose: uix-page-rules baseline --seed`);
124
+ return 1;
125
+ }
126
+ if (!args.seed && grown.length) {
127
+ err(`uix-page-rules: refusing to grow ${config.baseline}: ${grown.length} file(s) gained findings. Fix them instead:\n ${grown.join('\n ')}`);
128
+ return 1;
129
+ }
130
+ const doc = baselineDocument(scan.counts);
131
+ writeFileSync(join(root, config.baseline), `${JSON.stringify(doc, null, 2)}\n`);
132
+ out(`uix-page-rules: wrote ${config.baseline} (${doc.total} grandfathered finding(s) in ${scan.filesScanned} scanned files)`);
133
+ return 0;
134
+ }
135
+
136
+ const violations = evaluate(scan, baseline);
137
+ const kept = grandfathered(scan.counts, baseline);
138
+ if (args.json) {
139
+ out(JSON.stringify({ ok: violations.length === 0, filesScanned: scan.filesScanned, grandfathered: kept, violations }, null, 2));
140
+ return violations.length ? 1 : 0;
141
+ }
142
+ if (!violations.length) {
143
+ out(`✓ uix-page-rules: no new violations (${scan.filesScanned} file(s) scanned, ${kept} finding(s) grandfathered in ${config.baseline})`);
144
+ return 0;
145
+ }
146
+ err(`✗ uix-page-rules: ${violations.length} violation(s) (${scan.filesScanned} file(s) scanned, ${kept} finding(s) grandfathered in ${config.baseline})`);
147
+ report(violations, err);
148
+ return 1;
149
+ } catch (error) {
150
+ if (error instanceof ConfigError) {
151
+ err(`uix-page-rules: ${error.message}`);
152
+ return 2;
153
+ }
154
+ // An unreadable directory or any other surprise is a broken run, never a verdict.
155
+ err(`uix-page-rules: internal error, nothing was checked: ${error?.stack ?? error}`);
156
+ return 2;
157
+ }
158
+ }