@tensor_1/react 2.19.2 → 2.21.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.
Files changed (70) hide show
  1. package/README.md +14 -0
  2. package/dist/{ChartCore-Do6gRBN3.d.cts → ChartCore-DzWe10bN.d.cts} +16 -1
  3. package/dist/chart-preset.cjs +25 -13
  4. package/dist/chart-preset.d.cts +2 -2
  5. package/dist/chart-preset.d.ts +1 -1
  6. package/dist/chart-preset.js +2 -1
  7. package/dist/chart.cjs +25 -13
  8. package/dist/chart.d.cts +2 -2
  9. package/dist/chart.d.ts +1 -1
  10. package/dist/chart.js +2 -1
  11. package/dist/components/AppShell.d.ts +5 -1
  12. package/dist/components/AppShell.js +4 -2
  13. package/dist/components/Avatar.d.ts +3 -1
  14. package/dist/components/Avatar.js +2 -2
  15. package/dist/components/BrandProfiles.d.ts +29 -2
  16. package/dist/components/BrandProfiles.js +45 -20
  17. package/dist/components/BuilderCanvas.d.ts +27 -2
  18. package/dist/components/BuilderCanvas.js +45 -22
  19. package/dist/components/Chart.d.ts +1 -1
  20. package/dist/components/Chart.js +2 -1
  21. package/dist/components/ChartCore.d.ts +17 -2
  22. package/dist/components/ChartCore.js +24 -13
  23. package/dist/components/ColorPicker.d.ts +24 -2
  24. package/dist/components/ColorPicker.js +38 -20
  25. package/dist/components/CommandPalette.d.ts +3 -1
  26. package/dist/components/CommandPalette.js +2 -2
  27. package/dist/components/CopyButton.d.ts +25 -0
  28. package/dist/components/CopyButton.js +52 -0
  29. package/dist/components/DateRangePicker.d.ts +21 -2
  30. package/dist/components/DateRangePicker.js +26 -6
  31. package/dist/components/DetailPage.d.ts +22 -3
  32. package/dist/components/DetailPage.js +33 -3
  33. package/dist/components/DiffViewer.d.ts +34 -3
  34. package/dist/components/DiffViewer.js +60 -40
  35. package/dist/components/Drawer.d.ts +3 -1
  36. package/dist/components/Drawer.js +2 -2
  37. package/dist/components/Inbox.d.ts +3 -1
  38. package/dist/components/Inbox.js +2 -2
  39. package/dist/components/MatchReview.d.ts +49 -2
  40. package/dist/components/MatchReview.js +72 -30
  41. package/dist/components/Meter.d.ts +3 -1
  42. package/dist/components/Meter.js +3 -2
  43. package/dist/components/Pagination.d.ts +10 -2
  44. package/dist/components/Pagination.js +11 -4
  45. package/dist/components/Peek.d.ts +7 -1
  46. package/dist/components/Peek.js +4 -4
  47. package/dist/components/RelationshipGraph.js +6 -2
  48. package/dist/components/RuleBuilder.d.ts +42 -2
  49. package/dist/components/RuleBuilder.js +71 -37
  50. package/dist/components/SchedulingCalendar.d.ts +25 -2
  51. package/dist/components/SchedulingCalendar.js +38 -15
  52. package/dist/components/Stat.d.ts +24 -3
  53. package/dist/components/Stat.js +51 -10
  54. package/dist/components/Table.d.ts +11 -3
  55. package/dist/components/Table.js +5 -8
  56. package/dist/components/Tabs.d.ts +14 -1
  57. package/dist/components/Tabs.js +88 -19
  58. package/dist/components/Toast.d.ts +6 -2
  59. package/dist/components/Toast.js +4 -4
  60. package/dist/components/Tree.d.ts +9 -1
  61. package/dist/components/Tree.js +55 -8
  62. package/dist/copy-model.d.ts +12 -0
  63. package/dist/copy-model.js +12 -0
  64. package/dist/fill-label.d.ts +7 -0
  65. package/dist/fill-label.js +9 -0
  66. package/dist/index.cjs +1480 -1004
  67. package/dist/index.d.cts +387 -30
  68. package/dist/index.d.ts +11 -10
  69. package/dist/index.js +20 -9
  70. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export { Card, CardLink, CardLinkProps, CardProps } from './components/Card.js';
22
22
  export { BreadcrumbItem, Breadcrumbs, BreadcrumbsProps } from './components/Breadcrumbs.js';
23
23
  export { PageHeader, PageHeaderProps } from './components/PageHeader.js';
24
24
  export { DetailLayout, DetailLayoutProps } from './components/DetailLayout.js';
25
- export { DetailPage, DetailPageMetric, DetailPageProps, DetailPageTab } from './components/DetailPage.js';
25
+ export { DetailPage, DetailPageLinkProps, DetailPageMetric, DetailPageProps, DetailPageTab } from './components/DetailPage.js';
26
26
  export { RelatedLinkItem, RelatedLinks, RelatedLinksProps } from './components/RelatedLinks.js';
27
27
  export { ToggleRow, ToggleRowProps } from './components/ToggleRow.js';
28
28
  export { CollapsibleSection, CollapsibleSectionProps } from './components/CollapsibleSection.js';
@@ -32,13 +32,14 @@ export { Tab, TabPanel, TabPanelProps, TabProps, Tabs, TabsProps } from './compo
32
32
  export { AppShell, AppShellProps, ShellNav } from './components/AppShell.js';
33
33
  export { NavGroup, NavGroupProps, NavItem, NavItemProps, Sidebar, SidebarProps, SidebarSection, SidebarSectionProps, SubNavItem, SubNavItemProps } from './components/Sidebar.js';
34
34
  export { StarButton, StarButtonProps } from './components/StarButton.js';
35
+ export { CopyButton, CopyButtonProps } from './components/CopyButton.js';
35
36
  export { NavFavouriteItem, NavFavourites, NavFavouritesLabels, NavFavouritesProps } from './components/NavFavourites.js';
36
37
  export { Alert, AlertProps, AlertTone } from './components/Alert.js';
37
38
  export { Spinner, SpinnerProps } from './components/Spinner.js';
38
39
  export { Toast, ToastProps, ToastTone, Toaster, ToasterProps } from './components/Toast.js';
39
40
  export { BulkBar, BulkBarProps, CellStrong, CellSub, ExpandToggle, ExpandToggleProps, Highlighted, HighlightedProps, Mark, MarkProps, RowAction, RowActionProps, RowActions, RowActionsProps, SortDirection, Table, TableDensity, TableProps, TableWrap, TableWrapProps, Td, TdProps, Th, ThProps, Tr, TrProps } from './components/Table.js';
40
41
  export { ColumnFilter, FilterKind, FilterOp, Primitive, Row, Segment, SelectAllState, SortDir, SortKey, ViewState, VirtualWindow, applyFilters, clampWidth, highlightSegments, matchFilter, mergePinned, multiSort, nextSortDir, parseView, reorder, searchRows, selectAllState, serializeView, shouldVirtualize, toggleId, togglePage, toggleSort, virtualWindow } from './table-engine.js';
41
- export { Pagination, PaginationProps } from './components/Pagination.js';
42
+ export { DEFAULT_PAGINATION_LABELS, Pagination, PaginationLabels, PaginationProps } from './components/Pagination.js';
42
43
  export { PillTone, PillTreatment, StatusPill, StatusPillProps } from './components/StatusPill.js';
43
44
  export { Progress, ProgressProps } from './components/Progress.js';
44
45
  export { Meter, MeterProps, MeterTone } from './components/Meter.js';
@@ -67,21 +68,21 @@ export { Tree, TreeNodeData, TreeNodeProps, TreeProps } from './components/Tree.
67
68
  export { FlatNode, TreeLike, TreeNavAction, flattenTree, treeNav } from './tree-model.js';
68
69
  export { ContentList, ContentListItem, ContentListItemProps, ContentListProps, EventRow, EventRowProps, FeaturedRundown, FeaturedRundownItem, FeaturedRundownItemProps, FeaturedRundownProps, FeaturedStage, FeaturedStageProps, NewsLead, NewsLeadProps, NoticeQueue, NoticeQueueProps, PageIntro, PageIntroProps, ResourceGrid, ResourceGridProps, SectionHead, SectionHeadProps, StatLine, StatLineItem, StatLineProps, StatusRow, StatusRowProps } from './components/EditorialHome.js';
69
70
  export { JsonPrimitive, JsonValue } from './json-value.js';
70
- export { RuleActionDefinition, RuleBuilder, RuleBuilderProps, RuleFieldDefinition, RuleOperatorDefinition, RuleValueEditorProps } from './components/RuleBuilder.js';
71
+ export { DEFAULT_RULE_BUILDER_LABELS, RuleActionDefinition, RuleBuilder, RuleBuilderLabels, RuleBuilderProps, RuleFieldDefinition, RuleOperatorDefinition, RuleValueEditorProps } from './components/RuleBuilder.js';
71
72
  export { RuleAction, RuleCondition, RuleDefinition, RuleGroup, RuleValidationIssue, appendRuleNode, findRuleNodeDepth, isRuleGroup, mapRuleGroup, moveRuleNode, removeRuleNode, ruleDepth, summarizeRule, validateRuleDefinition } from './rule-builder-model.js';
72
- export { BuilderCanvas, BuilderCanvasItem, BuilderCanvasProps, BuilderPaletteItem } from './components/BuilderCanvas.js';
73
- export { SchedulingCalendar, SchedulingCalendarEntry, SchedulingCalendarOverlay, SchedulingCalendarProps, SchedulingCalendarView, SchedulingEntryState, SchedulingOverlayKind } from './components/SchedulingCalendar.js';
74
- export { DateRangePicker, DateRangePickerProps } from './components/DateRangePicker.js';
73
+ export { BuilderCanvas, BuilderCanvasItem, BuilderCanvasLabels, BuilderCanvasProps, BuilderPaletteItem, DEFAULT_BUILDER_CANVAS_LABELS } from './components/BuilderCanvas.js';
74
+ export { DEFAULT_SCHEDULING_CALENDAR_LABELS, SchedulingCalendar, SchedulingCalendarEntry, SchedulingCalendarLabels, SchedulingCalendarOverlay, SchedulingCalendarProps, SchedulingCalendarView, SchedulingEntryState, SchedulingOverlayKind } from './components/SchedulingCalendar.js';
75
+ export { DEFAULT_DATE_RANGE_PICKER_LABELS, DateRangePicker, DateRangePickerLabels, DateRangePickerProps } from './components/DateRangePicker.js';
75
76
  export { CalendarDay, DateRangeValue, ZonedDateSpan, addCalendarDays, addCalendarMonths, buildMonthGrid, enumerateDateSpan, isDateInRange, isDateUnavailable, selectRangeDate, startOfMonth, toDateKey, zonedDateKey, zonedDateSpan } from './calendar-model.js';
76
77
  export { DEFAULT_RELATIONSHIP_GRAPH_LABELS, RelationshipGraph, RelationshipGraphLabels, RelationshipGraphLegendItem, RelationshipGraphProps } from './components/RelationshipGraph.js';
77
78
  export { BoundedRelationshipGraph, LayeredColumn, LayeredEdgeClassification, LayeredEdgeKind, LayeredItem, LayeredLayout, LayeredLayoutOptions, LayeredNavigationKey, PositionedRelationshipNode, RelationshipGraphArrow, RelationshipGraphCluster, RelationshipGraphEdge, RelationshipGraphNode, RoutedEdge, boundRelationshipGraph, classifyLayeredEdges, clusterIdFor, layeredNeighbor, layoutLayeredGraph, layoutRelationshipGraph, relationshipNeighbors, traverseRelationshipNode, wrapEdgeLabel } from './relationship-graph-model.js';
78
- export { MatchBulkResult, MatchReview, MatchReviewAction, MatchReviewCandidate, MatchReviewField, MatchReviewProps } from './components/MatchReview.js';
79
+ export { DEFAULT_MATCH_REVIEW_LABELS, MatchBulkResult, MatchReview, MatchReviewAction, MatchReviewCandidate, MatchReviewField, MatchReviewLabels, MatchReviewProps } from './components/MatchReview.js';
79
80
  export { MetricInput, MetricInputProps } from './components/MetricInput.js';
80
81
  export { clampMetricValue, parseMetricValue, stepMetricValue } from './metric-model.js';
81
82
  export { LicensePositionBar, LicensePositionBarProps } from './components/LicensePositionBar.js';
82
- export { AppliedBrandProfileSnapshot, BrandProfile, BrandProfileEditor, BrandProfileEditorProps, BrandProfileLogo, BrandProfileTypography, BrandProfiles, applyBrandProfile, restoreBrandProfile } from './components/BrandProfiles.js';
83
- export { DiffViewer, DiffViewerProps } from './components/DiffViewer.js';
83
+ export { AppliedBrandProfileSnapshot, BrandProfile, BrandProfileEditor, BrandProfileEditorLabels, BrandProfileEditorProps, BrandProfileLogo, BrandProfileTypography, BrandProfiles, DEFAULT_BRAND_PROFILE_EDITOR_LABELS, applyBrandProfile, restoreBrandProfile } from './components/BrandProfiles.js';
84
+ export { DEFAULT_DIFF_VIEWER_LABELS, DiffViewer, DiffViewerLabels, DiffViewerProps } from './components/DiffViewer.js';
84
85
  export { DiffEntry, DiffKind, DiffResolution, DiffSummary, buildThreeWayDiff, summarizeDiff } from './diff-model.js';
85
- export { ColorPicker, ColorPickerProps } from './components/ColorPicker.js';
86
+ export { ColorPicker, ColorPickerLabels, ColorPickerProps, DEFAULT_COLOR_PICKER_LABELS } from './components/ColorPicker.js';
86
87
  export { HsvColor, RgbColor, contrastRatio, hexToRgb, hsvToHex, hsvToRgb, meetsContrast, normalizeHex, rgbToHex, rgbToHsv } from './color-model.js';
87
88
  import 'react';
package/dist/index.js CHANGED
@@ -32,6 +32,7 @@ import { Tabs, Tab, TabPanel } from "./components/Tabs.js";
32
32
  import { AppShell } from "./components/AppShell.js";
33
33
  import { Sidebar, SidebarSection, NavItem, NavGroup, SubNavItem } from "./components/Sidebar.js";
34
34
  import { StarButton } from "./components/StarButton.js";
35
+ import { CopyButton } from "./components/CopyButton.js";
35
36
  import { NavFavourites } from "./components/NavFavourites.js";
36
37
  import { Alert } from "./components/Alert.js";
37
38
  import { Spinner } from "./components/Spinner.js";
@@ -52,7 +53,7 @@ import {
52
53
  Highlighted
53
54
  } from "./components/Table.js";
54
55
  export * from "./table-engine.js";
55
- import { Pagination } from "./components/Pagination.js";
56
+ import { DEFAULT_PAGINATION_LABELS, Pagination } from "./components/Pagination.js";
56
57
  import { StatusPill } from "./components/StatusPill.js";
57
58
  import { Progress } from "./components/Progress.js";
58
59
  import { Meter } from "./components/Meter.js";
@@ -94,7 +95,7 @@ import {
94
95
  EventRow,
95
96
  StatusRow
96
97
  } from "./components/EditorialHome.js";
97
- import { RuleBuilder } from "./components/RuleBuilder.js";
98
+ import { DEFAULT_RULE_BUILDER_LABELS, RuleBuilder } from "./components/RuleBuilder.js";
98
99
  import {
99
100
  appendRuleNode,
100
101
  findRuleNodeDepth,
@@ -106,9 +107,9 @@ import {
106
107
  summarizeRule,
107
108
  validateRuleDefinition
108
109
  } from "./rule-builder-model.js";
109
- import { BuilderCanvas } from "./components/BuilderCanvas.js";
110
- import { SchedulingCalendar } from "./components/SchedulingCalendar.js";
111
- import { DateRangePicker } from "./components/DateRangePicker.js";
110
+ import { BuilderCanvas, DEFAULT_BUILDER_CANVAS_LABELS } from "./components/BuilderCanvas.js";
111
+ import { DEFAULT_SCHEDULING_CALENDAR_LABELS, SchedulingCalendar } from "./components/SchedulingCalendar.js";
112
+ import { DateRangePicker, DEFAULT_DATE_RANGE_PICKER_LABELS } from "./components/DateRangePicker.js";
112
113
  import {
113
114
  addCalendarDays,
114
115
  addCalendarMonths,
@@ -124,14 +125,14 @@ import {
124
125
  } from "./calendar-model.js";
125
126
  import { RelationshipGraph, DEFAULT_RELATIONSHIP_GRAPH_LABELS } from "./components/RelationshipGraph.js";
126
127
  import { boundRelationshipGraph, layoutRelationshipGraph, relationshipNeighbors, traverseRelationshipNode, classifyLayeredEdges, clusterIdFor, layeredNeighbor, layoutLayeredGraph, wrapEdgeLabel } from "./relationship-graph-model.js";
127
- import { MatchReview } from "./components/MatchReview.js";
128
+ import { DEFAULT_MATCH_REVIEW_LABELS, MatchReview } from "./components/MatchReview.js";
128
129
  import { MetricInput } from "./components/MetricInput.js";
129
130
  import { clampMetricValue, parseMetricValue, stepMetricValue } from "./metric-model.js";
130
131
  import { LicensePositionBar } from "./components/LicensePositionBar.js";
131
- import { BrandProfiles, BrandProfileEditor, applyBrandProfile, restoreBrandProfile } from "./components/BrandProfiles.js";
132
- import { DiffViewer } from "./components/DiffViewer.js";
132
+ import { BrandProfiles, BrandProfileEditor, DEFAULT_BRAND_PROFILE_EDITOR_LABELS, applyBrandProfile, restoreBrandProfile } from "./components/BrandProfiles.js";
133
+ import { DEFAULT_DIFF_VIEWER_LABELS, DiffViewer } from "./components/DiffViewer.js";
133
134
  import { buildThreeWayDiff, summarizeDiff } from "./diff-model.js";
134
- import { ColorPicker } from "./components/ColorPicker.js";
135
+ import { ColorPicker, DEFAULT_COLOR_PICKER_LABELS } from "./components/ColorPicker.js";
135
136
  import { contrastRatio, hexToRgb, hsvToHex, hsvToRgb, meetsContrast, normalizeHex, rgbToHex, rgbToHsv } from "./color-model.js";
136
137
  export {
137
138
  Alert,
@@ -164,8 +165,18 @@ export {
164
165
  ConfirmDialog,
165
166
  ContentList,
166
167
  ContentListItem,
168
+ CopyButton,
169
+ DEFAULT_BRAND_PROFILE_EDITOR_LABELS,
170
+ DEFAULT_BUILDER_CANVAS_LABELS,
171
+ DEFAULT_COLOR_PICKER_LABELS,
172
+ DEFAULT_DATE_RANGE_PICKER_LABELS,
173
+ DEFAULT_DIFF_VIEWER_LABELS,
174
+ DEFAULT_MATCH_REVIEW_LABELS,
175
+ DEFAULT_PAGINATION_LABELS,
167
176
  DEFAULT_RELATIONSHIP_GRAPH_LABELS,
177
+ DEFAULT_RULE_BUILDER_LABELS,
168
178
  DEFAULT_SAVE_STATUS_LABELS,
179
+ DEFAULT_SCHEDULING_CALENDAR_LABELS,
169
180
  DateRangePicker,
170
181
  DescriptionItem,
171
182
  DescriptionList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensor_1/react",
3
- "version": "2.19.2",
3
+ "version": "2.21.0",
4
4
  "description": "Thin React wrappers over the UIx v2 CSS component library.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",