@tesouro/embedded-components-react 0.11.120 → 0.11.123

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 (119) hide show
  1. package/README.md +6 -3
  2. package/dist/index.css +32 -161
  3. package/dist/index.d.ts +40 -8
  4. package/dist/index.js +29 -28
  5. package/dist/lib/ExpenseManagementWidget.d.ts +11 -2
  6. package/dist/lib/ReceivablesWidget.d.ts +29 -6
  7. package/dist/lib/ReceivablesWidget.js +3 -1
  8. package/dist/lib/WidgetSuite.d.ts +38 -6
  9. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +343 -264
  10. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/labels.js +14 -0
  11. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/permissions.js +6 -3
  12. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/useExpenseTabBadgeCounts.js +34 -19
  13. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/useExpensesTransactions.js +100 -98
  14. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsActionsFeature.js +27 -24
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -0
  16. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/expenseStatus.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +43 -44
  18. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index4.js +79 -40
  19. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +10 -0
  20. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index3.js +47 -46
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index4.js +78 -84
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +165 -158
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index6.js +38 -100
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index7.js +77 -54
  25. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +213 -229
  26. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +6 -8
  27. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +66 -73
  28. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +13 -13
  29. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +123 -80
  30. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/labels.js +1 -0
  31. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +83 -74
  32. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/DeleteReceiptDialog.js +22 -30
  33. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +176 -259
  34. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/labels.js +4 -2
  35. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/BulkProgress.js +1 -0
  36. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +112 -121
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/labels.js +1 -0
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -1
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +342 -295
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +26 -0
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +30 -26
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +18 -2
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +121 -11
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +100 -11
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +39 -27
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +2 -205
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +11 -52
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +11 -210
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +27 -159
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +203 -14
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +51 -22
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +210 -2
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +154 -111
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +15 -3
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +21 -195
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +3 -2
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +116 -53
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +3 -22
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +197 -8
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -78
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +53 -39
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +20 -17
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +8 -41
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +73 -25
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +36 -17
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +17 -9
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +39 -34
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +29 -14
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +18 -24
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -85
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +33 -490
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +15 -2
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +22 -42
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +82 -65
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +475 -426
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -226
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +46 -21
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +69 -5
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +445 -0
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +208 -246
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +22 -2
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +5 -129
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +247 -222
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +1 -2
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +125 -242
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +23 -56
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +229 -209
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +3 -47
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +248 -0
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +60 -0
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -17
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +194 -0
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +47 -0
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +53 -117
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +9 -99
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +3 -40
  106. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +41 -32
  107. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/ui/dist/index3.js +43 -53
  108. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  109. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +3 -1
  110. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyAddress/CopyAddress.js +55 -0
  111. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +84 -0
  112. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +126 -73
  113. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +14 -1
  114. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index3.js +9 -8
  115. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index4.js +75 -128
  116. package/dist/packages/shared-ui-shadcn/dist/index.js +1399 -1302
  117. package/package.json +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +0 -9
  119. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +0 -27
package/README.md CHANGED
@@ -731,10 +731,13 @@ Lists, creates, edits and acts on an organization's invoices, including sending
731
731
  | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads at the first choice, or `10` when the list is empty. |
732
732
  | `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create succeeds. Not called for a duplicate. |
733
733
  | `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
734
- | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button in the header, for users holding `organization_settings:write:org`, and calls this when it is clicked. |
735
- | `headerStart` | `ReactNode` | `undefined` | Rendered at the start of the header row. The widget renders no heading of its own, so pass your page title here. |
734
+ | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button on the tab row, for users holding `organization_settings:write:org`, and calls this when it is clicked. |
735
+ | `headerStart` | `ReactNode` | `undefined` | Rendered above the tab row. The widget renders no heading of its own, so pass your page title here. |
736
+ | `selectedTab` | `InvoicingTabId` | `undefined` | The active tab: `'invoices'`, `'recurring'`, `'customers'` or `'products'`. Omit to let the widget track it, starting on Invoices. |
737
+ | `onTabChange` | `(tab: InvoicingTabId) => void` | `undefined` | Called when the user picks a tab, so you can keep it in the URL. |
736
738
  | `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
737
- | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Header, table, empty, error and status badge copy. |
739
+ | `tabLabels` | `Partial<InvoicingTabLabels>` | English labels | Tab names, the invoice settings button and Create recurring invoice. |
740
+ | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Create invoice, table, empty, error and status badge copy. |
738
741
  | `filterBarLabels` | `InvoicesFilterBarLabelOverrides` | English labels | Invoice filter bar copy: field names, search, amount bounds, the customer panel and Clear all. |
739
742
  | `filterLabels` | `InvoicesFilterLabelOverrides` | English labels | Invoice filter copy built from state: date presets, status descriptions and chip wording. |
740
743
  | `formLabels` | `Partial<ReceivableFormDialogLabels>` | English labels | Create/edit form copy, including the unsaved-changes prompt; the save and issue buttons are in `messageLabels`. |
package/dist/index.css CHANGED
@@ -39,8 +39,6 @@
39
39
  --ttw-color-cyan-100: oklch(95.6% 0.045 203.388);
40
40
  --ttw-color-cyan-200: oklch(91.7% 0.08 205.041);
41
41
  --ttw-color-cyan-700: oklch(52% 0.105 223.128);
42
- --ttw-color-sky-100: oklch(95.1% 0.026 236.824);
43
- --ttw-color-sky-700: oklch(50% 0.134 242.749);
44
42
  --ttw-color-blue-50: oklch(97% 0.014 254.604);
45
43
  --ttw-color-blue-100: oklch(93.2% 0.032 255.585);
46
44
  --ttw-color-blue-200: oklch(88.2% 0.059 254.128);
@@ -51,22 +49,13 @@
51
49
  --ttw-color-blue-900: oklch(37.9% 0.146 265.522);
52
50
  --ttw-color-indigo-100: oklch(93% 0.034 272.788);
53
51
  --ttw-color-indigo-500: oklch(58.5% 0.233 277.117);
54
- --ttw-color-indigo-600: oklch(51.1% 0.262 276.966);
55
52
  --ttw-color-indigo-700: oklch(45.7% 0.24 277.023);
56
53
  --ttw-color-violet-50: oklch(96.9% 0.016 293.756);
57
54
  --ttw-color-violet-100: oklch(94.3% 0.029 294.588);
58
55
  --ttw-color-violet-200: oklch(89.4% 0.057 293.283);
59
56
  --ttw-color-violet-700: oklch(49.1% 0.27 292.581);
60
- --ttw-color-purple-50: oklch(97.7% 0.014 308.299);
61
57
  --ttw-color-purple-100: oklch(94.6% 0.033 307.174);
62
58
  --ttw-color-purple-700: oklch(49.6% 0.265 301.924);
63
- --ttw-color-pink-50: oklch(97.1% 0.014 343.198);
64
- --ttw-color-pink-100: oklch(94.8% 0.028 342.258);
65
- --ttw-color-pink-200: oklch(89.9% 0.061 343.231);
66
- --ttw-color-pink-700: oklch(52.5% 0.223 3.958);
67
- --ttw-color-zinc-100: oklch(96.7% 0.001 286.375);
68
- --ttw-color-zinc-500: oklch(55.2% 0.016 285.938);
69
- --ttw-color-zinc-700: oklch(37% 0.013 285.805);
70
59
  --ttw-color-zinc-900: oklch(21% 0.006 285.885);
71
60
  --ttw-color-stone-200: oklch(92.3% 0.003 48.717);
72
61
  --ttw-color-black: #000;
@@ -298,9 +287,6 @@
298
287
  .ttw\:z-20 {
299
288
  z-index: 20;
300
289
  }
301
- .ttw\:z-40 {
302
- z-index: 40;
303
- }
304
290
  .ttw\:z-50 {
305
291
  z-index: 50;
306
292
  }
@@ -313,6 +299,9 @@
313
299
  .ttw\:col-span-1 {
314
300
  grid-column: span 1 / span 1;
315
301
  }
302
+ .ttw\:col-start-1 {
303
+ grid-column-start: 1;
304
+ }
316
305
  .ttw\:col-start-2 {
317
306
  grid-column-start: 2;
318
307
  }
@@ -400,9 +389,6 @@
400
389
  .ttw\:mr-2 {
401
390
  margin-right: calc(var(--ttw-spacing) * 2);
402
391
  }
403
- .ttw\:mr-3 {
404
- margin-right: calc(var(--ttw-spacing) * 3);
405
- }
406
392
  .ttw\:mr-\[0\.3rem\] {
407
393
  margin-right: 0.3rem;
408
394
  }
@@ -427,9 +413,6 @@
427
413
  .ttw\:mb-4 {
428
414
  margin-bottom: calc(var(--ttw-spacing) * 4);
429
415
  }
430
- .ttw\:mb-5 {
431
- margin-bottom: calc(var(--ttw-spacing) * 5);
432
- }
433
416
  .ttw\:mb-6 {
434
417
  margin-bottom: calc(var(--ttw-spacing) * 6);
435
418
  }
@@ -538,10 +521,6 @@
538
521
  width: calc(var(--ttw-spacing) * 4);
539
522
  height: calc(var(--ttw-spacing) * 4);
540
523
  }
541
- .ttw\:size-4\.5 {
542
- width: calc(var(--ttw-spacing) * 4.5);
543
- height: calc(var(--ttw-spacing) * 4.5);
544
- }
545
524
  .ttw\:size-5 {
546
525
  width: calc(var(--ttw-spacing) * 5);
547
526
  height: calc(var(--ttw-spacing) * 5);
@@ -574,10 +553,6 @@
574
553
  width: calc(var(--ttw-spacing) * 11);
575
554
  height: calc(var(--ttw-spacing) * 11);
576
555
  }
577
- .ttw\:size-15 {
578
- width: calc(var(--ttw-spacing) * 15);
579
- height: calc(var(--ttw-spacing) * 15);
580
- }
581
556
  .ttw\:size-16 {
582
557
  width: calc(var(--ttw-spacing) * 16);
583
558
  height: calc(var(--ttw-spacing) * 16);
@@ -632,9 +607,6 @@
632
607
  .ttw\:h-4 {
633
608
  height: calc(var(--ttw-spacing) * 4);
634
609
  }
635
- .ttw\:h-4\.5 {
636
- height: calc(var(--ttw-spacing) * 4.5);
637
- }
638
610
  .ttw\:h-5 {
639
611
  height: calc(var(--ttw-spacing) * 5);
640
612
  }
@@ -854,6 +826,9 @@
854
826
  .ttw\:min-h-80 {
855
827
  min-height: calc(var(--ttw-spacing) * 80);
856
828
  }
829
+ .ttw\:min-h-96 {
830
+ min-height: calc(var(--ttw-spacing) * 96);
831
+ }
857
832
  .ttw\:min-h-\[4\.4375rem\] {
858
833
  min-height: 4.4375rem;
859
834
  }
@@ -932,15 +907,9 @@
932
907
  .ttw\:w-10 {
933
908
  width: calc(var(--ttw-spacing) * 10);
934
909
  }
935
- .ttw\:w-11 {
936
- width: calc(var(--ttw-spacing) * 11);
937
- }
938
910
  .ttw\:w-12 {
939
911
  width: calc(var(--ttw-spacing) * 12);
940
912
  }
941
- .ttw\:w-14 {
942
- width: calc(var(--ttw-spacing) * 14);
943
- }
944
913
  .ttw\:w-15 {
945
914
  width: calc(var(--ttw-spacing) * 15);
946
915
  }
@@ -1028,9 +997,6 @@
1028
997
  .ttw\:w-112 {
1029
998
  width: calc(var(--ttw-spacing) * 112);
1030
999
  }
1031
- .ttw\:w-140 {
1032
- width: calc(var(--ttw-spacing) * 140);
1033
- }
1034
1000
  .ttw\:w-150 {
1035
1001
  width: calc(var(--ttw-spacing) * 150);
1036
1002
  }
@@ -1058,9 +1024,6 @@
1058
1024
  .ttw\:w-\[90\%\] {
1059
1025
  width: 90%;
1060
1026
  }
1061
- .ttw\:w-\[95\%\] {
1062
- width: 95%;
1063
- }
1064
1027
  .ttw\:w-\[140px\] {
1065
1028
  width: 140px;
1066
1029
  }
@@ -1280,9 +1243,6 @@
1280
1243
  .ttw\:min-w-1 {
1281
1244
  min-width: var(--ttw-spacing);
1282
1245
  }
1283
- .ttw\:min-w-4\.5 {
1284
- min-width: calc(var(--ttw-spacing) * 4.5);
1285
- }
1286
1246
  .ttw\:min-w-5 {
1287
1247
  min-width: calc(var(--ttw-spacing) * 5);
1288
1248
  }
@@ -1295,6 +1255,9 @@
1295
1255
  .ttw\:min-w-16 {
1296
1256
  min-width: calc(var(--ttw-spacing) * 16);
1297
1257
  }
1258
+ .ttw\:min-w-20 {
1259
+ min-width: calc(var(--ttw-spacing) * 20);
1260
+ }
1298
1261
  .ttw\:min-w-20\.5 {
1299
1262
  min-width: calc(var(--ttw-spacing) * 20.5);
1300
1263
  }
@@ -1367,9 +1330,6 @@
1367
1330
  .ttw\:flex-1 {
1368
1331
  flex: 1;
1369
1332
  }
1370
- .ttw\:flex-1\/2 {
1371
- flex: calc(1/2 * 100%);
1372
- }
1373
1333
  .ttw\:flex-shrink-0 {
1374
1334
  flex-shrink: 0;
1375
1335
  }
@@ -1563,6 +1523,12 @@
1563
1523
  .ttw\:grid-cols-\[3rem_minmax\(0\,1fr\)_auto\] {
1564
1524
  grid-template-columns: 3rem minmax(0,1fr) auto;
1565
1525
  }
1526
+ .ttw\:grid-cols-\[minmax\(0\,1fr\)\] {
1527
+ grid-template-columns: minmax(0,1fr);
1528
+ }
1529
+ .ttw\:grid-cols-\[minmax\(0\,28rem\)_1fr\] {
1530
+ grid-template-columns: minmax(0,28rem) 1fr;
1531
+ }
1566
1532
  .ttw\:grid-rows-\[auto_1fr_auto\] {
1567
1533
  grid-template-rows: auto 1fr auto;
1568
1534
  }
@@ -1768,9 +1734,6 @@
1768
1734
  :where(.ttw\:divide-border > :not(:last-child)) {
1769
1735
  border-color: var(--ttw-border);
1770
1736
  }
1771
- .ttw\:self-center {
1772
- align-self: center;
1773
- }
1774
1737
  .ttw\:self-end {
1775
1738
  align-self: flex-end;
1776
1739
  }
@@ -1815,9 +1778,6 @@
1815
1778
  .ttw\:rounded-\[4px\] {
1816
1779
  border-radius: 4px;
1817
1780
  }
1818
- .ttw\:rounded-\[14px\] {
1819
- border-radius: 14px;
1820
- }
1821
1781
  .ttw\:rounded-\[calc\(var\(--radius\)-5px\)\] {
1822
1782
  border-radius: calc(var(--radius) - 5px);
1823
1783
  }
@@ -1851,8 +1811,8 @@
1851
1811
  border-top-left-radius: 0;
1852
1812
  border-bottom-left-radius: 0;
1853
1813
  }
1854
- .ttw\:rounded-tl-\[14px\] {
1855
- border-top-left-radius: 14px;
1814
+ .ttw\:rounded-tl-lg {
1815
+ border-top-left-radius: var(--ttw-radius);
1856
1816
  }
1857
1817
  .ttw\:rounded-tl-sm {
1858
1818
  border-top-left-radius: calc(var(--ttw-radius) - 4px);
@@ -1869,14 +1829,14 @@
1869
1829
  border-top-right-radius: 0;
1870
1830
  border-bottom-right-radius: 0;
1871
1831
  }
1872
- .ttw\:rounded-tr-\[14px\] {
1873
- border-top-right-radius: 14px;
1832
+ .ttw\:rounded-tr-lg {
1833
+ border-top-right-radius: var(--ttw-radius);
1874
1834
  }
1875
- .ttw\:rounded-br-\[14px\] {
1876
- border-bottom-right-radius: 14px;
1835
+ .ttw\:rounded-br-lg {
1836
+ border-bottom-right-radius: var(--ttw-radius);
1877
1837
  }
1878
- .ttw\:rounded-bl-\[14px\] {
1879
- border-bottom-left-radius: 14px;
1838
+ .ttw\:rounded-bl-lg {
1839
+ border-bottom-left-radius: var(--ttw-radius);
1880
1840
  }
1881
1841
  .ttw\:border {
1882
1842
  border-style: var(--tw-border-style);
@@ -2031,12 +1991,6 @@
2031
1991
  border-color: color-mix(in oklab, var(--ttw-muted-foreground) 40%, transparent);
2032
1992
  }
2033
1993
  }
2034
- .ttw\:border-pink-100 {
2035
- border-color: var(--ttw-color-pink-100);
2036
- }
2037
- .ttw\:border-pink-200 {
2038
- border-color: var(--ttw-color-pink-200);
2039
- }
2040
1994
  .ttw\:border-primary {
2041
1995
  border-color: var(--ttw-primary);
2042
1996
  }
@@ -2046,18 +2000,12 @@
2046
2000
  border-color: color-mix(in oklab, var(--ttw-primary) 30%, transparent);
2047
2001
  }
2048
2002
  }
2049
- .ttw\:border-purple-100 {
2050
- border-color: var(--ttw-color-purple-100);
2051
- }
2052
2003
  .ttw\:border-red-200 {
2053
2004
  border-color: var(--ttw-color-red-200);
2054
2005
  }
2055
2006
  .ttw\:border-sidebar-border {
2056
2007
  border-color: var(--ttw-sidebar-border, var(--ttw-border));
2057
2008
  }
2058
- .ttw\:border-sky-100 {
2059
- border-color: var(--ttw-color-sky-100);
2060
- }
2061
2009
  .ttw\:border-success\/40 {
2062
2010
  border-color: var(--ttw-success);
2063
2011
  @supports (color: color-mix(in lab, red, red)) {
@@ -2082,9 +2030,6 @@
2082
2030
  .ttw\:border-white {
2083
2031
  border-color: var(--ttw-color-white);
2084
2032
  }
2085
- .ttw\:border-zinc-100 {
2086
- border-color: var(--ttw-color-zinc-100);
2087
- }
2088
2033
  .ttw\:border-t-transparent {
2089
2034
  border-top-color: transparent;
2090
2035
  }
@@ -2118,6 +2063,12 @@
2118
2063
  background-color: color-mix(in oklab, var(--ttw-background) 85%, transparent);
2119
2064
  }
2120
2065
  }
2066
+ .ttw\:bg-background\/90 {
2067
+ background-color: var(--ttw-background);
2068
+ @supports (color: color-mix(in lab, red, red)) {
2069
+ background-color: color-mix(in oklab, var(--ttw-background) 90%, transparent);
2070
+ }
2071
+ }
2121
2072
  .ttw\:bg-black {
2122
2073
  background-color: var(--ttw-color-black);
2123
2074
  }
@@ -2535,18 +2486,6 @@
2535
2486
  .ttw\:bg-emerald-100 {
2536
2487
  background-color: var(--ttw-color-emerald-100);
2537
2488
  }
2538
- .ttw\:bg-emerald-600 {
2539
- background-color: var(--ttw-color-emerald-600);
2540
- }
2541
- .ttw\:bg-emerald-700 {
2542
- background-color: var(--ttw-color-emerald-700);
2543
- }
2544
- .ttw\:bg-emerald-700\/25 {
2545
- background-color: var(--ttw-color-emerald-700);
2546
- @supports (color: color-mix(in lab, red, red)) {
2547
- background-color: color-mix(in oklab, var(--ttw-color-emerald-700) 25%, transparent);
2548
- }
2549
- }
2550
2489
  .ttw\:bg-foreground {
2551
2490
  background-color: var(--ttw-foreground);
2552
2491
  }
@@ -2838,12 +2777,6 @@
2838
2777
  .ttw\:bg-overlay {
2839
2778
  background-color: var(--ttw-overlay);
2840
2779
  }
2841
- .ttw\:bg-pink-50 {
2842
- background-color: var(--ttw-color-pink-50);
2843
- }
2844
- .ttw\:bg-pink-100 {
2845
- background-color: var(--ttw-color-pink-100);
2846
- }
2847
2780
  .ttw\:bg-popover {
2848
2781
  background-color: var(--ttw-popover);
2849
2782
  }
@@ -2886,9 +2819,6 @@
2886
2819
  .ttw\:bg-sidebar-border {
2887
2820
  background-color: var(--ttw-sidebar-border, var(--ttw-border));
2888
2821
  }
2889
- .ttw\:bg-sky-100 {
2890
- background-color: var(--ttw-color-sky-100);
2891
- }
2892
2822
  .ttw\:bg-stone-200 {
2893
2823
  background-color: var(--ttw-color-stone-200);
2894
2824
  }
@@ -3525,9 +3455,6 @@
3525
3455
  .ttw\:bg-yellow-700 {
3526
3456
  background-color: var(--ttw-color-yellow-700);
3527
3457
  }
3528
- .ttw\:bg-zinc-100 {
3529
- background-color: var(--ttw-color-zinc-100);
3530
- }
3531
3458
  .ttw\:bg-zinc-900 {
3532
3459
  background-color: var(--ttw-color-zinc-900);
3533
3460
  }
@@ -3761,9 +3688,6 @@
3761
3688
  .ttw\:py-14 {
3762
3689
  padding-block: calc(var(--ttw-spacing) * 14);
3763
3690
  }
3764
- .ttw\:py-20 {
3765
- padding-block: calc(var(--ttw-spacing) * 20);
3766
- }
3767
3691
  .ttw\:py-\[0\.2775rem\] {
3768
3692
  padding-block: 0.2775rem;
3769
3693
  }
@@ -3797,9 +3721,6 @@
3797
3721
  .ttw\:pt-8 {
3798
3722
  padding-top: calc(var(--ttw-spacing) * 8);
3799
3723
  }
3800
- .ttw\:pt-12 {
3801
- padding-top: calc(var(--ttw-spacing) * 12);
3802
- }
3803
3724
  .ttw\:pt-16 {
3804
3725
  padding-top: calc(var(--ttw-spacing) * 16);
3805
3726
  }
@@ -4265,9 +4186,6 @@
4265
4186
  .ttw\:text-green-900 {
4266
4187
  color: var(--ttw-color-green-900);
4267
4188
  }
4268
- .ttw\:text-indigo-600 {
4269
- color: var(--ttw-color-indigo-600);
4270
- }
4271
4189
  .ttw\:text-indigo-700 {
4272
4190
  color: var(--ttw-color-indigo-700);
4273
4191
  }
@@ -4310,9 +4228,6 @@
4310
4228
  .ttw\:text-orange-700 {
4311
4229
  color: var(--ttw-color-orange-700);
4312
4230
  }
4313
- .ttw\:text-pink-700 {
4314
- color: var(--ttw-color-pink-700);
4315
- }
4316
4231
  .ttw\:text-popover-foreground {
4317
4232
  color: var(--ttw-popover-foreground);
4318
4233
  }
@@ -4352,9 +4267,6 @@
4352
4267
  ) 70%, transparent);
4353
4268
  }
4354
4269
  }
4355
- .ttw\:text-sky-700 {
4356
- color: var(--ttw-color-sky-700);
4357
- }
4358
4270
  .ttw\:text-success {
4359
4271
  color: var(--ttw-success);
4360
4272
  }
@@ -4478,12 +4390,6 @@
4478
4390
  .ttw\:text-yellow-900 {
4479
4391
  color: var(--ttw-color-yellow-900);
4480
4392
  }
4481
- .ttw\:text-zinc-500 {
4482
- color: var(--ttw-color-zinc-500);
4483
- }
4484
- .ttw\:text-zinc-700 {
4485
- color: var(--ttw-color-zinc-700);
4486
- }
4487
4393
  .ttw\:capitalize {
4488
4394
  text-transform: capitalize;
4489
4395
  }
@@ -4516,9 +4422,6 @@
4516
4422
  -webkit-font-smoothing: antialiased;
4517
4423
  -moz-osx-font-smoothing: grayscale;
4518
4424
  }
4519
- .ttw\:accent-primary {
4520
- accent-color: var(--ttw-primary);
4521
- }
4522
4425
  .ttw\:opacity-0 {
4523
4426
  opacity: 0%;
4524
4427
  }
@@ -4538,10 +4441,6 @@
4538
4441
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
4539
4442
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4540
4443
  }
4541
- .ttw\:shadow-\[0_0_40px_8px\] {
4542
- --tw-shadow: 0 0 40px 8px var(--tw-shadow-color, currentcolor);
4543
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4544
- }
4545
4444
  .ttw\:shadow-lg {
4546
4445
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
4547
4446
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -4558,10 +4457,6 @@
4558
4457
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
4559
4458
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4560
4459
  }
4561
- .ttw\:shadow-xl {
4562
- --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
4563
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4564
- }
4565
4460
  .ttw\:shadow-xs {
4566
4461
  --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
4567
4462
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -4582,12 +4477,6 @@
4582
4477
  --tw-inset-ring-shadow: inset 0 0 0 1px var(--tw-inset-ring-color, currentcolor);
4583
4478
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4584
4479
  }
4585
- .ttw\:shadow-emerald-700\/25 {
4586
- --tw-shadow-color: var(--ttw-color-emerald-700);
4587
- @supports (color: color-mix(in lab, red, red)) {
4588
- --tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--ttw-color-emerald-700) 25%, transparent) var(--tw-shadow-alpha), transparent);
4589
- }
4590
- }
4591
4480
  .ttw\:ring-background {
4592
4481
  --tw-ring-color: var(--ttw-background);
4593
4482
  }
@@ -5209,9 +5098,6 @@
5209
5098
  .ttw\:hover\:bg-emerald-50:hover {
5210
5099
  background-color: var(--ttw-color-emerald-50);
5211
5100
  }
5212
- .ttw\:hover\:bg-emerald-700:hover {
5213
- background-color: var(--ttw-color-emerald-700);
5214
- }
5215
5101
  .ttw\:hover\:bg-green-100:hover {
5216
5102
  background-color: var(--ttw-color-green-100);
5217
5103
  }
@@ -5242,9 +5128,6 @@
5242
5128
  background-color: color-mix(in oklab, var(--ttw-muted) 60%, transparent);
5243
5129
  }
5244
5130
  }
5245
- .ttw\:hover\:bg-pink-100:hover {
5246
- background-color: var(--ttw-color-pink-100);
5247
- }
5248
5131
  .ttw\:hover\:bg-primary:hover {
5249
5132
  background-color: var(--ttw-primary);
5250
5133
  }
@@ -5264,12 +5147,6 @@
5264
5147
  background-color: color-mix(in oklab, var(--ttw-primary) 90%, transparent);
5265
5148
  }
5266
5149
  }
5267
- .ttw\:hover\:bg-purple-50:hover {
5268
- background-color: var(--ttw-color-purple-50);
5269
- }
5270
- .ttw\:hover\:bg-purple-100:hover {
5271
- background-color: var(--ttw-color-purple-100);
5272
- }
5273
5150
  .ttw\:hover\:bg-red-50:hover {
5274
5151
  background-color: var(--ttw-color-red-50);
5275
5152
  }
@@ -5287,9 +5164,6 @@
5287
5164
  .ttw\:hover\:bg-sidebar-accent:hover {
5288
5165
  background-color: var(--ttw-sidebar-accent, var(--ttw-accent));
5289
5166
  }
5290
- .ttw\:hover\:bg-sky-100:hover {
5291
- background-color: var(--ttw-color-sky-100);
5292
- }
5293
5167
  .ttw\:hover\:bg-transparent:hover {
5294
5168
  background-color: transparent;
5295
5169
  }
@@ -5304,9 +5178,6 @@
5304
5178
  background-color: color-mix(in oklab, var(--ttw-color-white) 10%, transparent);
5305
5179
  }
5306
5180
  }
5307
- .ttw\:hover\:bg-zinc-100:hover {
5308
- background-color: var(--ttw-color-zinc-100);
5309
- }
5310
5181
  .ttw\:hover\:text-accent-foreground:hover {
5311
5182
  color: var(--ttw-accent-foreground);
5312
5183
  }
@@ -5481,9 +5352,6 @@
5481
5352
  .ttw\:disabled\:pointer-events-none:disabled {
5482
5353
  pointer-events: none;
5483
5354
  }
5484
- .ttw\:disabled\:cursor-default:disabled {
5485
- cursor: default;
5486
- }
5487
5355
  .ttw\:disabled\:cursor-not-allowed:disabled {
5488
5356
  cursor: not-allowed;
5489
5357
  }
@@ -6137,6 +6005,9 @@
6137
6005
  .ttw\:sm\:flex {
6138
6006
  display: flex;
6139
6007
  }
6008
+ .ttw\:sm\:w-auto {
6009
+ width: auto;
6010
+ }
6140
6011
  .ttw\:sm\:max-w-2xl {
6141
6012
  max-width: var(--ttw-container-2xl);
6142
6013
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo, CSSProperties, ReactElement } from 'react';
2
+ import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo, CSSProperties, Ref, ReactElement } from 'react';
3
3
  import { RowData } from '@tanstack/react-table';
4
4
  import { FallbackProps } from 'react-error-boundary';
5
5
  import { PartialDeep } from 'type-fest';
@@ -3558,6 +3558,7 @@ interface ActionItemsListLabels {
3558
3558
  }
3559
3559
 
3560
3560
  interface ExpensesTransactionsTableLabels {
3561
+ loading: string;
3561
3562
  dateColumn: string;
3562
3563
  statusColumn: string;
3563
3564
  merchantColumn: string;
@@ -3663,6 +3664,7 @@ interface TransactionDetailsActionsLabels {
3663
3664
  rejectionReasonLabel: string;
3664
3665
  noReceiptReasonLabel: string;
3665
3666
  requiredMarker: string;
3667
+ reasonRequired: string;
3666
3668
  /** e.g. "Review 2/7" above the bulk progress bar. */
3667
3669
  bulkProgress: (currentItem: number, totalItems: number) => string;
3668
3670
  bulkProgressAriaLabel: string;
@@ -3671,6 +3673,7 @@ interface TransactionDetailsActionsLabels {
3671
3673
 
3672
3674
  interface TransactionDetailsLabels {
3673
3675
  screenReaderTitle: string;
3676
+ loading: string;
3674
3677
  screenReaderDescription: string;
3675
3678
  contentTitle: string;
3676
3679
  closeDialog: string;
@@ -3688,6 +3691,7 @@ interface TransactionDetailsLabels {
3688
3691
  uploadingReceiptBody: string;
3689
3692
  readingReceipt: string;
3690
3693
  loadFailed: string;
3694
+ tryAgain: string;
3691
3695
  }
3692
3696
 
3693
3697
  /**
@@ -3719,10 +3723,15 @@ interface UploadReceiptWidgetProps {
3719
3723
  /**
3720
3724
  * Awaited after every file in the batch has uploaded. Resolve once the backend
3721
3725
  * has finished OCR and auto-matching so the widget can report the outcome in
3722
- * its batch toast. Omit it and the widget stops at "Uploaded N attachments".
3726
+ * the upload tray. Omit it and the widget stops at "Uploaded N attachments".
3723
3727
  */
3724
3728
  onAwaitMatching?: (uploadedCount: number) => Promise<ReceiptMatchSummary>;
3725
3729
  isUploading?: boolean;
3730
+ /** Lets the host start an upload without the popover, e.g. for a drop on its list. */
3731
+ ref?: Ref<UploadReceiptHandle>;
3732
+ }
3733
+ interface UploadReceiptHandle {
3734
+ upload: (files: File[]) => void;
3726
3735
  }
3727
3736
 
3728
3737
  interface ExpenseManagementWidgetOwnProps {
@@ -4270,6 +4279,11 @@ interface InvoicesFilterBarLabels {
4270
4279
  }
4271
4280
  type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
4272
4281
 
4282
+ interface InvoicingTabsLabels {
4283
+ /** The settings button's accessible name and tooltip. */
4284
+ settingsButton: string;
4285
+ }
4286
+
4273
4287
  interface ReceivableActionsModalLabels {
4274
4288
  issueDescription: string;
4275
4289
  toLabel: string;
@@ -4364,8 +4378,6 @@ interface ReceivableStatusBadgeLabels {
4364
4378
 
4365
4379
  interface ReceivablesScreenLabels {
4366
4380
  createInvoiceButton: string;
4367
- /** The settings button's accessible name and tooltip. */
4368
- settingsButton: string;
4369
4381
  statusCardsAll: string;
4370
4382
  columnDueDate: string;
4371
4383
  columnStatus: string;
@@ -4987,19 +4999,39 @@ interface ReceivableMessageLabels {
4987
4999
  previewLogoAltNoName: string;
4988
5000
  }
4989
5001
 
5002
+ declare const InvoicingTab: {
5003
+ readonly Invoices: "invoices";
5004
+ readonly Recurring: "recurring";
5005
+ readonly Customers: "customers";
5006
+ readonly Products: "products";
5007
+ };
5008
+ type InvoicingTabId = (typeof InvoicingTab)[keyof typeof InvoicingTab];
5009
+ interface InvoicingTabLabels extends InvoicingTabsLabels {
5010
+ invoicesTab: string;
5011
+ recurringTab: string;
5012
+ customersTab: string;
5013
+ productsTab: string;
5014
+ createRecurringInvoiceButton: string;
5015
+ }
5016
+
4990
5017
  interface ReceivablesWidgetOwnProps {
4991
5018
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
4992
5019
  embeddedBankName?: string;
4993
- /** Rendered at the start of the header row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
5020
+ /** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
4994
5021
  headerStart?: ReactNode;
5022
+ /** The active tab. Omit to let the widget track it, starting on Invoices. */
5023
+ selectedTab?: InvoicingTabId;
5024
+ /** Called when the user picks a tab, so the host can keep it in the URL. */
5025
+ onTabChange?: (tab: InvoicingTabId) => void;
4995
5026
  initialView?: 'create';
4996
5027
  /** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
4997
5028
  initialCounterpartId?: string;
4998
5029
  pageSizeOptions?: number[];
4999
5030
  onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
5000
5031
  onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
5001
- /** Shows an invoice settings button in the header for users holding `organization_settings:write:org`. */
5032
+ /** Shows an invoice settings button on the tab row for users holding `organization_settings:write:org`. */
5002
5033
  onTemplateSettingsClick?: () => void;
5034
+ tabLabels?: Partial<InvoicingTabLabels>;
5003
5035
  screenLabels?: ReceivablesScreenLabelOverrides;
5004
5036
  filterBarLabels?: InvoicesFilterBarLabelOverrides;
5005
5037
  filterLabels?: InvoicesFilterLabelOverrides;
@@ -6701,5 +6733,5 @@ interface CheckAmountAndDetailScreenProps {
6701
6733
 
6702
6734
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
6703
6735
 
6704
- export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
6705
- export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
6736
+ export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, InvoicingTab, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
6737
+ export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };