@tensor_1/react 2.55.3 → 2.57.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 (66) hide show
  1. package/README.md +68 -0
  2. package/component-inventory.json +64 -0
  3. package/dist/{ChartCore-BKK2HEfi.d.cts → ChartCore-CY5a4teJ.d.cts} +18 -2
  4. package/dist/GlanceCharts-Cb39RqDC.d.cts +88 -0
  5. package/dist/chart-analytic-guide.d.ts +1 -0
  6. package/dist/chart-analytic-guide.js +6 -1
  7. package/dist/chart-analytic.cjs +11 -1
  8. package/dist/chart-analytic.d.cts +2 -2
  9. package/dist/chart-glance.d.ts +65 -0
  10. package/dist/chart-glance.js +162 -0
  11. package/dist/chart-preset.cjs +337 -5
  12. package/dist/chart-preset.d.cts +9 -3
  13. package/dist/chart-preset.d.ts +8 -1
  14. package/dist/chart-preset.js +16 -1
  15. package/dist/chart-theme.d.ts +18 -2
  16. package/dist/chart-theme.js +6 -1
  17. package/dist/chart.cjs +337 -5
  18. package/dist/chart.d.cts +9 -3
  19. package/dist/chart.d.ts +3 -1
  20. package/dist/chart.js +9 -2
  21. package/dist/components/Arrive.d.ts +49 -0
  22. package/dist/components/Arrive.js +93 -0
  23. package/dist/components/Attachment.js +2 -2
  24. package/dist/components/Chart.d.ts +8 -1
  25. package/dist/components/Chart.js +16 -1
  26. package/dist/components/ChartCard.d.ts +34 -0
  27. package/dist/components/ChartCard.js +36 -0
  28. package/dist/components/ChartPanels.js +5 -0
  29. package/dist/components/Count.d.ts +10 -4
  30. package/dist/components/Count.js +35 -3
  31. package/dist/components/FileDrop.d.ts +51 -0
  32. package/dist/components/FileDrop.js +183 -0
  33. package/dist/components/FileGlyph.d.ts +9 -0
  34. package/dist/components/{FileIcon.js → FileGlyph.js} +2 -2
  35. package/dist/components/FileKindIcon.d.ts +36 -0
  36. package/dist/components/FileKindIcon.js +48 -0
  37. package/dist/components/FileRow.d.ts +102 -0
  38. package/dist/components/FileRow.js +164 -0
  39. package/dist/components/FileUpload.js +2 -2
  40. package/dist/components/GlanceCharts.d.ts +37 -0
  41. package/dist/components/GlanceCharts.js +128 -0
  42. package/dist/components/GlanceMarks.d.ts +63 -0
  43. package/dist/components/GlanceMarks.js +59 -0
  44. package/dist/components/Heartbeat.d.ts +5 -5
  45. package/dist/components/Meter.d.ts +12 -2
  46. package/dist/components/Meter.js +23 -13
  47. package/dist/components/StatusDot.d.ts +27 -0
  48. package/dist/components/StatusDot.js +16 -0
  49. package/dist/file-model.d.ts +41 -3
  50. package/dist/file-model.js +65 -1
  51. package/dist/icons/Icon.d.ts +5 -5
  52. package/dist/icons/components.d.ts +3 -1
  53. package/dist/icons/components.js +4 -0
  54. package/dist/icons/glyphs.d.ts +5 -1
  55. package/dist/icons/glyphs.js +6 -0
  56. package/dist/icons.cjs +10 -0
  57. package/dist/icons.d.cts +7 -25
  58. package/dist/icons.d.ts +1 -1
  59. package/dist/index.cjs +2807 -2099
  60. package/dist/index.d.cts +399 -15
  61. package/dist/index.d.ts +9 -1
  62. package/dist/index.js +41 -1
  63. package/dist/labels-context.d.ts +9 -1
  64. package/dist/types-B593xJNf.d.cts +26 -0
  65. package/package.json +1 -1
  66. package/dist/components/FileIcon.d.ts +0 -9
package/dist/index.js CHANGED
@@ -94,7 +94,21 @@ import { PrintLayout, PrintSignature, PrintPageBreak, DEFAULT_PRINT_LAYOUT_LABEL
94
94
  import { NavFavourites } from "./components/NavFavourites.js";
95
95
  import { FileUpload, DEFAULT_FILE_UPLOAD_LABELS } from "./components/FileUpload.js";
96
96
  import { Attachment, AttachmentList, DEFAULT_ATTACHMENT_LABELS } from "./components/Attachment.js";
97
- import { fileKind, fileMatchesAccept, formatFileSize, partitionFiles } from "./file-model.js";
97
+ import {
98
+ fileKind,
99
+ fileMatchesAccept,
100
+ formatFileSize,
101
+ partitionFiles,
102
+ fileExtension,
103
+ fileTypeLabel,
104
+ FILE_KINDS,
105
+ FILE_KIND_EXTENSIONS,
106
+ DEFAULT_FILE_KIND_LABELS,
107
+ FILE_KIND_LABELS_EN
108
+ } from "./file-model.js";
109
+ import { FileKindIcon, FILE_KIND_GLYPHS } from "./components/FileKindIcon.js";
110
+ import { FileRow, DEFAULT_FILE_ROW_LABELS, FILE_ROW_LABELS_EN } from "./components/FileRow.js";
111
+ import { FileDrop, DEFAULT_FILE_DROP_LABELS, FILE_DROP_LABELS_EN } from "./components/FileDrop.js";
98
112
  import { Alert } from "./components/Alert.js";
99
113
  import { Spinner } from "./components/Spinner.js";
100
114
  import { Heartbeat, LiveIndicator } from "./components/Heartbeat.js";
@@ -118,6 +132,7 @@ import {
118
132
  export * from "./table-engine.js";
119
133
  import { DEFAULT_PAGINATION_LABELS, Pagination } from "./components/Pagination.js";
120
134
  import { StatusPill } from "./components/StatusPill.js";
135
+ import { StatusDot } from "./components/StatusDot.js";
121
136
  import { Progress } from "./components/Progress.js";
122
137
  import { Meter } from "./components/Meter.js";
123
138
  import { Stat, StatRow } from "./components/Stat.js";
@@ -139,6 +154,9 @@ import { SaveStatus, DEFAULT_SAVE_STATUS_LABELS } from "./components/SaveStatus.
139
154
  import { BusyRegion } from "./components/BusyRegion.js";
140
155
  import { ChangeHighlight } from "./components/ChangeHighlight.js";
141
156
  import { Count } from "./components/Count.js";
157
+ import { Arrive, ArriveItem, useArrive } from "./components/Arrive.js";
158
+ import { ChartCard } from "./components/ChartCard.js";
159
+ import { BarList, StatusStrip, Sparkline } from "./components/GlanceMarks.js";
142
160
  import { MotionList } from "./components/MotionList.js";
143
161
  import { DEFAULT_BUTTON_RESULT_LABELS } from "./components/ButtonFeedback.js";
144
162
  import { Composer, ComposerBar } from "./components/Composer.js";
@@ -299,12 +317,15 @@ export {
299
317
  AccountMenu,
300
318
  Alert,
301
319
  AppShell,
320
+ Arrive,
321
+ ArriveItem,
302
322
  AsyncOperationStatus,
303
323
  Attachment,
304
324
  AttachmentList,
305
325
  AuditLog,
306
326
  Avatar,
307
327
  AvatarGroup,
328
+ BarList,
308
329
  BrandProfileEditor,
309
330
  BrandProfiles,
310
331
  Breadcrumbs,
@@ -320,6 +341,7 @@ export {
320
341
  CellStrong,
321
342
  CellSub,
322
343
  ChangeHighlight,
344
+ ChartCard,
323
345
  Checkbox,
324
346
  CheckboxGroup,
325
347
  Chip,
@@ -362,6 +384,9 @@ export {
362
384
  DEFAULT_DISPLAY_PREFERENCES,
363
385
  DEFAULT_DISPLAY_PREFERENCES_LABELS,
364
386
  DEFAULT_ENTITY_PICKER_LABELS,
387
+ DEFAULT_FILE_DROP_LABELS,
388
+ DEFAULT_FILE_KIND_LABELS,
389
+ DEFAULT_FILE_ROW_LABELS,
365
390
  DEFAULT_FILE_UPLOAD_LABELS,
366
391
  DEFAULT_FILTER_EDITOR_LABELS,
367
392
  DEFAULT_FILTER_SUMMARY_LABELS,
@@ -413,10 +438,19 @@ export {
413
438
  ErrorState,
414
439
  EventRow,
415
440
  ExpandToggle,
441
+ FILE_DROP_LABELS_EN,
442
+ FILE_KINDS,
443
+ FILE_KIND_EXTENSIONS,
444
+ FILE_KIND_GLYPHS,
445
+ FILE_KIND_LABELS_EN,
446
+ FILE_ROW_LABELS_EN,
416
447
  FeaturedRundown,
417
448
  FeaturedRundownItem,
418
449
  FeaturedStage,
419
450
  Field,
451
+ FileDrop,
452
+ FileKindIcon,
453
+ FileRow,
420
454
  FileUpload,
421
455
  FilterEditor,
422
456
  FilterPopover,
@@ -522,13 +556,16 @@ export {
522
556
  SidebarSection,
523
557
  Skeleton,
524
558
  SortableList,
559
+ Sparkline,
525
560
  Spinner,
526
561
  StarButton,
527
562
  Stat,
528
563
  StatLine,
529
564
  StatRow,
565
+ StatusDot,
530
566
  StatusPill,
531
567
  StatusRow,
568
+ StatusStrip,
532
569
  Step,
533
570
  Steps,
534
571
  SubNavItem,
@@ -604,8 +641,10 @@ export {
604
641
  encodeQr,
605
642
  enumerateDateKeys,
606
643
  enumerateDateSpan,
644
+ fileExtension,
607
645
  fileKind,
608
646
  fileMatchesAccept,
647
+ fileTypeLabel,
609
648
  filterComboboxItems,
610
649
  filterComboboxOptions,
611
650
  filterCommandItems,
@@ -718,6 +757,7 @@ export {
718
757
  traverseRelationshipNode,
719
758
  treeNav,
720
759
  useAnchoredPosition,
760
+ useArrive,
721
761
  useChangeHighlight,
722
762
  useDeferredReorder,
723
763
  useDelayedPending,
@@ -12,6 +12,9 @@ import { SelectLabels } from './components/Select.js';
12
12
  import { RuleBuilderLabels } from './components/RuleBuilder.js';
13
13
  import { FileUploadLabels } from './components/FileUpload.js';
14
14
  import { AttachmentLabels } from './attachment-labels.js';
15
+ import { FileKindLabels } from './file-model.js';
16
+ import { FileRowLabels } from './components/FileRow.js';
17
+ import { FileDropLabels } from './components/FileDrop.js';
15
18
  import { EntityPickerLabels } from './components/EntityPicker.js';
16
19
  import { TreeLabels } from './components/Tree.js';
17
20
  import { OrgChartLabels } from './components/OrgChart.js';
@@ -47,7 +50,6 @@ import './text-diff-model.js';
47
50
  import './select-model.js';
48
51
  import './json-value.js';
49
52
  import './rule-builder-model.js';
50
- import './file-model.js';
51
53
  import './components/SearchSuggest.js';
52
54
  import './components/Button.js';
53
55
  import './components/Kbd.js';
@@ -177,6 +179,12 @@ interface UixLabels {
177
179
  select?: Partial<SelectLabels>;
178
180
  ruleBuilder?: Partial<RuleBuilderLabels>;
179
181
  fileUpload?: Partial<FileUploadLabels>;
182
+ /** `FileRow` (file kit 2.57): German by default; `FILE_ROW_LABELS_EN` for English. */
183
+ fileRow?: Partial<FileRowLabels>;
184
+ /** `FileDrop` (file kit 2.57): German by default; `FILE_DROP_LABELS_EN` for English. */
185
+ fileDrop?: Partial<FileDropLabels>;
186
+ /** The kind names `FileRow` and `FileDrop` show: German by default; `FILE_KIND_LABELS_EN` for English. */
187
+ fileKinds?: Partial<FileKindLabels>;
180
188
  attachment?: Partial<AttachmentLabels>;
181
189
  /** `TagInput` (HAR-1377): the chips' × names, the announcements and the refusals. */
182
190
  tagInput?: Partial<TagInputLabels>;
@@ -0,0 +1,26 @@
1
+ import { ForwardRefExoticComponent, SVGProps, RefAttributes } from 'react';
2
+
3
+ /** One glyph: SVG child elements as `[tag, attributes]`, drawn in a 24×24 box. */
4
+ type IconNode = ReadonlyArray<readonly [string, Readonly<Record<string, string | number>>]>;
5
+ type IconSize = 'sm' | 'md' | 'lg';
6
+ type IconTone = 'current' | 'muted' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
7
+ interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
8
+ /**
9
+ * `sm` 16 px, `md` 20 px (default), `lg` 24 px — the `--uix-icon-*` tokens — or a CSS length
10
+ * / pixel number. A sizing class from the product (e.g. a Tailwind `size-4`) also wins.
11
+ */
12
+ size?: IconSize | number | string;
13
+ /** Colour from a UIx token. Default `current`: inherits the text colour. */
14
+ tone?: IconTone;
15
+ /**
16
+ * Accessible name. With it the icon is `role="img"`; without it the icon is decorative
17
+ * (`aria-hidden`). An icon-only button names the button instead, so leave this empty there.
18
+ */
19
+ label?: string;
20
+ /** Stroke width in the 24-unit box. Default 2. */
21
+ strokeWidth?: number | string;
22
+ }
23
+ /** An icon component, e.g. `ShieldCheckIcon`. Replaces Lucide's `LucideIcon` type. */
24
+ type UixIcon = ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;
25
+
26
+ export type { IconNode as I, UixIcon as U, IconProps as a, IconSize as b, IconTone as c };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensor_1/react",
3
- "version": "2.55.3",
3
+ "version": "2.57.0",
4
4
  "description": "Thin React wrappers over the UIx v2 CSS component library.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,9 +0,0 @@
1
- import * as react from 'react';
2
-
3
- /** A decorative glyph for a file's kind (Lucide-style strokes). Internal to FileUpload and Attachment. */
4
- declare function FileIcon({ name, type }: {
5
- name: string;
6
- type?: string;
7
- }): react.JSX.Element;
8
-
9
- export { FileIcon };