@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
@@ -1,205 +1,2 @@
1
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as e } from "../../../shared/document-status/ui/dist/index6.js";
2
- import "../../../shared/document-status/ui/dist/index.js";
3
- import { RECEIVABLE_BILLING_SECTION_LABELS_EN as t } from "./index11.js";
4
- import { RECEIVABLE_CUSTOMER_SECTION_LABELS_EN as n } from "./index12.js";
5
- import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as r, RECEIVABLE_RECURRENCE_SECTION_LABELS_EN as i } from "./index13.js";
6
- // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js
7
- var a = { all: "All invoices" }, o = {
8
- createInvoiceButton: "Create Invoice",
9
- settingsButton: "Invoice settings",
10
- statusCardsAll: a.all,
11
- columnDueDate: "Due date",
12
- columnStatus: "Status",
13
- columnNumber: "Number",
14
- columnCustomer: "Customer",
15
- columnIssueDate: "Issue date",
16
- columnAmount: "Amount",
17
- openRow: (e) => `View invoice — ${e}`,
18
- sortByDueDate: "Sort by due date",
19
- sortByStatus: "Sort by status",
20
- sortByNumber: "Sort by number",
21
- sortByIssueDate: "Sort by issue date",
22
- sortByAmount: "Sort by amount",
23
- emptyTitle: "No Invoices",
24
- emptyDescription: "You don’t have any invoices yet.",
25
- filterEmptyTitle: "No Invoices Found",
26
- errorTitle: "Failed to load Invoices",
27
- errorDescription: "There was an error loading invoices.",
28
- errorRetry: "Reload",
29
- accessRestrictedTitle: "Access Restricted",
30
- accessRestrictedDescription: "You don’t have permissions to view this page. Contact your system administrator for details.",
31
- statusBadge: e
32
- }, s = {
33
- unsavedTitle: "Save this invoice as a draft?",
34
- unsavedDescription: "This invoice has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
35
- unsavedDiscardButton: "Discard changes",
36
- unsavedSaveDraftButton: "Save as draft",
37
- unsavedCloseButton: "Close"
38
- }, c = {
39
- ...t,
40
- ...n,
41
- ...i,
42
- ...r,
43
- ...s,
44
- createTitle: "Create invoice",
45
- createDescription: "Create and issue an invoice to your customers",
46
- editTitle: "Edit invoice",
47
- editDescription: "Invoice details",
48
- closeButton: "Close",
49
- dueDateLabel: "Due date",
50
- lineItemsHeading: "Products and services",
51
- lineItemsDescription: "Add the products and services on this invoice. You'll have the option to save new items to your inventory.",
52
- productLabel: "Item name",
53
- quantityLabel: "Quantity",
54
- unitLabel: "Units",
55
- unitPlaceholder: "Select",
56
- unitNone: "None",
57
- manageUnitsOption: "Manage units of measure",
58
- priceLabel: "Price",
59
- taxableLabel: "Taxable",
60
- taxRateLabel: "Tax rate",
61
- taxRatePlaceholder: "e.g. 6.25",
62
- taxRateSuffix: "%",
63
- discountLabel: "Discount",
64
- discountPercentageOption: "%",
65
- discountAmountOptionAriaLabel: "Flat discount",
66
- discountPercentageOptionAriaLabel: "Percentage discount",
67
- subtotalLabel: "Subtotal",
68
- discountTotalLabel: "Discount",
69
- nonTaxableSubtotalLabel: "Non-taxable subtotal",
70
- taxableSubtotalLabel: "Taxable subtotal",
71
- taxTotalLabel: "Tax",
72
- totalLabel: "Total",
73
- decreaseQuantityButton: "Decrease quantity",
74
- increaseQuantityButton: "Increase quantity",
75
- addLineItemButton: "Add item",
76
- removeLineItemButton: "Remove line item",
77
- cancelButton: "Cancel",
78
- notesHeading: "Notes",
79
- notesDescription: "Provide additional information for your customer.",
80
- optionalSuffix: "(optional)",
81
- openingNoteLabel: "Opening note to the customer",
82
- openingNotePlaceholder: "e.g., As discussed on our call, please find the attached invoice.",
83
- openingNoteDescription: "Appears above your line items. Use it to reference a discussion, agreement, or project.",
84
- closingNoteLabel: "Closing note to the customer",
85
- closingNotePlaceholder: "e.g., Thank you for your business!",
86
- closingNoteDescription: "Appears below your line items. Commonly used for thank you messages or payment instructions.",
87
- bankAccountHeading: "Payment instructions",
88
- bankAccountDescription: "Tells the customer how they can pay you. We'll include the selected info on the invoice",
89
- bankAccountLabel: "Bank account",
90
- bankAccountHint: "Display your bank account number and routing number",
91
- bankAccountSelectorLabel: "Bank account selector",
92
- bankAccountPlaceholder: "Select bank account",
93
- bankAccountAddOption: "Add a new account",
94
- bankAccountFormHeading: "Add a bank account",
95
- bankAccountRoutingNumberLabel: "Routing number",
96
- bankAccountRoutingNumberPlaceholder: "e.g. 123456789",
97
- bankAccountAccountNumberLabel: "Account number",
98
- bankAccountAccountNumberPlaceholder: "e.g. 123456789",
99
- bankAccountHolderNameLabel: "Account holder name",
100
- bankAccountHolderNamePlaceholder: "e.g. James Smith",
101
- bankAccountNicknameLabel: "Account nickname",
102
- bankAccountNicknamePlaceholder: "e.g. Empire Bank Checking",
103
- bankAccountCancelButton: "Cancel",
104
- bankAccountSaveButton: "Save account",
105
- bankAccountRestrictedTitle: "There are no bank accounts on file for this account",
106
- bankAccountRestrictedDescription: "A bank account is required in order to issue invoices. Contact your company admin to set one up.",
107
- attachmentsHeading: "Attachments",
108
- attachmentsDescription: "Associate additional documents with this invoice for your own reference or to share with the customer. e.g. contracts, photos, terms and conditions, etc.",
109
- attachmentsDropPrompt: "Drop your files here, or",
110
- attachmentsBrowseLink: "browse to upload",
111
- attachmentsFormatsHint: "PDF, DOC, JPG, PNG (max. 3MB)",
112
- remindersToggleLabel: "Payment reminders",
113
- remindersDescription: "Send reminders when an invoice is approaching its due date or past due.",
114
- remindersLibraryNote: "New reminders will be saved to your organization's library and can be managed via Invoice settings",
115
- reminderNumberOfDays: "Number of days",
116
- reminderBefore: "BEFORE",
117
- reminderAfter: "AFTER",
118
- reminderDueDate: "due date",
119
- reminderNone: "No reminder",
120
- reminderBeforeDueInputLabel: "Days before due date",
121
- reminderPlaceholder: "e.g., 3",
122
- reminderAddTermButton: "Add",
123
- reminderClearButton: "Clear",
124
- reminderSaveButton: "Save"
125
- }, l = {
126
- hiddenDescription: "Invoice details",
127
- loadingTitle: "Loading invoice details",
128
- moreActionsLabel: "More actions",
129
- viewPdfButton: "View PDF",
130
- closeButton: "Close",
131
- invoiceDateCaption: "Invoice date",
132
- paymentHistoryHeading: "Payment history",
133
- paymentHistoryEmpty: "You've received no payments yet.",
134
- paymentHistoryTotalLabel: "Total received",
135
- paymentHistoryLoading: "Loading payment history",
136
- customerDetailsHeading: "Customer details",
137
- recurringAmountCaption: "Recurring amount",
138
- startsOnCaption: "Starts on",
139
- endsOnCaption: "Ends on",
140
- recurringSeriesRowLabel: "Recurring series",
141
- scheduleIssueDateColumn: "Issue date",
142
- scheduleAmountColumn: "Amount",
143
- scheduleStatusColumn: "Status",
144
- scheduleNumberColumn: "Number",
145
- scheduleEmpty: "No invoices are scheduled.",
146
- auditHistoryHeading: "Audit history",
147
- auditHistoryEmpty: "No history yet.",
148
- auditHistoryLoading: "Loading history",
149
- auditHistoryError: "The audit history could not be loaded.",
150
- auditHistoryNamesError: "Some names could not be loaded.",
151
- billingHeading: "Billing details",
152
- lineItemsHeading: "Line items",
153
- notesHeading: "Notes",
154
- notesOpeningLabel: "Opening note to customer",
155
- notesClosingLabel: "Closing note to customer",
156
- attachmentsHeading: "Attachments",
157
- attachmentsEmpty: "No attached files",
158
- attachmentsFileColumn: "File",
159
- attachmentsEmailedColumn: "Emailed",
160
- lineItemMultiplier: "x",
161
- lineItemEaLabel: "ea",
162
- noLineItems: "No line items.",
163
- editButton: "Edit",
164
- issueButton: "Issue",
165
- issueAndSendButton: "Issue and send",
166
- recordPaymentButton: "Record payment",
167
- sendButton: "Resend",
168
- acceptButton: "Accept",
169
- declineButton: "Decline",
170
- markPaidButton: "Mark as paid",
171
- markUncollectibleButton: "Mark as uncollectible",
172
- cancelButton: "Cancel invoice",
173
- cloneButton: "Duplicate",
174
- deleteButton: "Delete",
175
- pauseRecurrenceButton: "Pause series",
176
- resumeRecurrenceButton: "Resume series",
177
- cancelRecurrenceButton: "Cancel series",
178
- recurringBadge: "Recurring"
179
- }, u = {
180
- title: "Record payment",
181
- amountLabel: "Amount",
182
- amountPlaceholder: "0",
183
- fullAmountDuePrefix: "Enter full amount due of",
184
- dateLabel: "Date",
185
- datePlaceholder: "Pick a date",
186
- timeLabel: "Time",
187
- timeZoneSuffix: "UTC",
188
- cancelButton: "Cancel",
189
- saveButton: "Save",
190
- reviewTitle: "Manual payment record",
191
- receivedLabel: "Received",
192
- referenceLabel: "Reference",
193
- createdByLabel: "Created by",
194
- reviewWarning: "Please, check the details of your payment record. You won't be able to change or delete it after.",
195
- editRecordButton: "Edit record",
196
- confirmButton: "Confirm",
197
- close: "Close"
198
- }, d = {
199
- cancelButton: "Cancel",
200
- confirmButton: "Confirm",
201
- commentLabel: "Comment (optional)",
202
- commentPlaceholder: "Add a comment",
203
- close: "Close"
204
- };
205
- export { o as RECEIVABLES_SCREEN_LABELS_EN, d as RECEIVABLE_ACTION_DIALOG_LABELS_EN, l as RECEIVABLE_DETAILS_PANEL_LABELS_EN, c as RECEIVABLE_FORM_DIALOG_LABELS_EN, u as RECEIVABLE_PAYMENT_DIALOG_LABELS_EN, a as RECEIVABLE_STATUS_CARDS_LABELS_EN, s as UNSAVED_INVOICE_DIALOG_LABELS_EN };
1
+ import "./index10.js";
2
+ import "./index13.js";
@@ -1,53 +1,12 @@
1
- import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_ACTION_DIALOG_LABELS_EN as l } from "./index14.js";
3
- import { useId as u } from "react";
4
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
1
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js
6
- function p({ open: p, onOpenChange: m, title: h, description: g, confirmLabel: _, cancelLabel: v, cancelVariant: y = "ghost", destructive: b, inProgress: x, comment: S, onCommentChange: C, onConfirm: w, onCancel: T, labels: E }) {
7
- let D = {
8
- ...l,
9
- ...E
10
- }, O = u();
11
- return /* @__PURE__ */ d(t, {
12
- open: p,
13
- onOpenChange: m,
14
- children: /* @__PURE__ */ f(n, {
15
- closeDisabled: x,
16
- labels: { close: D.close },
17
- className: "ttw:flex ttw:flex-col ttw:gap-6",
18
- children: [
19
- /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(o, { children: h }), /* @__PURE__ */ d(r, {
20
- className: "ttw:whitespace-pre-line",
21
- children: Array.isArray(g) ? g.map((e) => /* @__PURE__ */ d("span", {
22
- className: "ttw:block",
23
- children: e
24
- }, e)) : g
25
- })] }),
26
- S !== void 0 && /* @__PURE__ */ f("div", {
27
- className: "ttw:flex ttw:flex-col ttw:gap-2",
28
- children: [/* @__PURE__ */ d(s, {
29
- htmlFor: O,
30
- children: D.commentLabel
31
- }), /* @__PURE__ */ d(c, {
32
- id: O,
33
- rows: 3,
34
- placeholder: D.commentPlaceholder,
35
- value: S,
36
- onChange: (e) => C?.(e.target.value)
37
- })]
38
- }),
39
- /* @__PURE__ */ f(i, { children: [/* @__PURE__ */ d(e, {
40
- variant: y,
41
- onClick: T,
42
- children: v ?? D.cancelButton
43
- }), /* @__PURE__ */ d(e, {
44
- variant: b ? "destructive" : "default",
45
- loading: x,
46
- onClick: w,
47
- children: _ ?? D.confirmButton
48
- })] })
49
- ]
50
- })
51
- });
52
- }
53
- export { p as ReceivableActionDialog, p as default };
2
+ var e = {
3
+ billingHeading: "Billing details",
4
+ billingDescription: "What are the billing terms?",
5
+ paymentTermsLabel: "Payment terms",
6
+ paymentTermsPlaceholder: "Select payment terms",
7
+ paymentTermsReceiptDue: "Due on receipt",
8
+ paymentTermsCustomDate: "Custom date",
9
+ purchaseOrderLabel: "PO Number",
10
+ purchaseOrderOptional: "(optional)"
11
+ };
12
+ export { e as RECEIVABLE_BILLING_SECTION_LABELS_EN };
@@ -1,211 +1,12 @@
1
- import { Alert as e, AlertDescription as t, AlertTitle as n, Badge as r, Button as i, Field as a, FieldContent as o, FieldError as s, FieldLabel as c, Input as l, Select as u, SelectContent as d, SelectItem as f, SelectSeparator as p, SelectTrigger as m, SelectValue as h, Skeleton as g, Typography as _ } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_FORM_DIALOG_LABELS_EN as v } from "./index14.js";
3
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
4
- import { PlusIcon as S, TriangleAlertIcon as C } from "lucide-react";
5
1
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js
6
- var w = "__add_new__";
7
- function T({ id: e, label: t, optionalSuffix: n, placeholder: r, value: i, error: u, disabled: d, onChange: f }) {
8
- return /* @__PURE__ */ b(a, { children: /* @__PURE__ */ x(o, { children: [
9
- /* @__PURE__ */ x(c, {
10
- htmlFor: e,
11
- className: "ttw:gap-1",
12
- children: [t, n && /* @__PURE__ */ b(_, {
13
- variant: "body2",
14
- component: "span",
15
- color: "muted",
16
- className: "ttw:leading-snug",
17
- children: n
18
- })]
19
- }),
20
- /* @__PURE__ */ b(l, {
21
- id: e,
22
- placeholder: r,
23
- value: i,
24
- disabled: d,
25
- "aria-invalid": !!u,
26
- onChange: (e) => f(e.target.value),
27
- onKeyDown: (e) => {
28
- e.key === "Enter" && e.preventDefault();
29
- }
30
- }),
31
- /* @__PURE__ */ b(s, { errors: u ? [{ message: u }] : [] })
32
- ] }) });
33
- }
34
- function E({ idPrefix: e, values: t, errors: n, canCancel: r, isSaving: a, labels: o, onChange: s, onSave: c, onCancel: l }) {
35
- return /* @__PURE__ */ x("div", {
36
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-xl ttw:border ttw:border-border ttw:p-3",
37
- children: [
38
- /* @__PURE__ */ b(_, {
39
- variant: "body2",
40
- children: o.bankAccountFormHeading
41
- }),
42
- /* @__PURE__ */ x("div", {
43
- className: "ttw:flex ttw:gap-4",
44
- children: [/* @__PURE__ */ b(T, {
45
- id: `${e}-routing-number`,
46
- label: o.bankAccountRoutingNumberLabel,
47
- placeholder: o.bankAccountRoutingNumberPlaceholder,
48
- value: t.routingNumber,
49
- error: n.routingNumber,
50
- disabled: a,
51
- onChange: (e) => s({ routingNumber: e })
52
- }), /* @__PURE__ */ b(T, {
53
- id: `${e}-account-number`,
54
- label: o.bankAccountAccountNumberLabel,
55
- placeholder: o.bankAccountAccountNumberPlaceholder,
56
- value: t.accountNumber,
57
- error: n.accountNumber,
58
- disabled: a,
59
- onChange: (e) => s({ accountNumber: e })
60
- })]
61
- }),
62
- /* @__PURE__ */ x("div", {
63
- className: "ttw:flex ttw:gap-4",
64
- children: [/* @__PURE__ */ b(T, {
65
- id: `${e}-account-holder-name`,
66
- label: o.bankAccountHolderNameLabel,
67
- placeholder: o.bankAccountHolderNamePlaceholder,
68
- value: t.accountHolderName,
69
- error: n.accountHolderName,
70
- disabled: a,
71
- onChange: (e) => s({ accountHolderName: e })
72
- }), /* @__PURE__ */ b(T, {
73
- id: `${e}-account-nickname`,
74
- label: o.bankAccountNicknameLabel,
75
- optionalSuffix: o.optionalSuffix,
76
- placeholder: o.bankAccountNicknamePlaceholder,
77
- value: t.displayName,
78
- error: n.displayName,
79
- disabled: a,
80
- onChange: (e) => s({ displayName: e })
81
- })]
82
- }),
83
- /* @__PURE__ */ x("div", {
84
- className: "ttw:flex ttw:gap-4",
85
- children: [r && /* @__PURE__ */ b(i, {
86
- type: "button",
87
- variant: "outline",
88
- className: "ttw:border-border",
89
- disabled: a,
90
- onClick: l,
91
- children: o.bankAccountCancelButton
92
- }), /* @__PURE__ */ b(i, {
93
- type: "button",
94
- disabled: a,
95
- onClick: c,
96
- children: o.bankAccountSaveButton
97
- })]
98
- })
99
- ]
100
- });
101
- }
102
- function D({ idPrefix: i, view: a, error: o, disabled: c, onAccountSelect: l, onAddAccountClick: T, onFormChange: D, onFormSave: O, onFormCancel: k, labels: A }) {
103
- let j = {
104
- ...v,
105
- ...A
106
- }, M = `${i}-bank-account`;
107
- return /* @__PURE__ */ x("div", {
108
- className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
109
- children: [
110
- /* @__PURE__ */ x("div", {
111
- className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
112
- children: [/* @__PURE__ */ b(_, {
113
- variant: "h4",
114
- children: j.bankAccountHeading
115
- }), /* @__PURE__ */ b(_, {
116
- variant: "body2",
117
- color: "muted",
118
- className: "ttw:font-medium",
119
- children: j.bankAccountDescription
120
- })]
121
- }),
122
- (a.kind === "loading" || a.kind === "picker") && /* @__PURE__ */ x("div", {
123
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-xl ttw:border ttw:border-border ttw:p-3",
124
- children: [
125
- /* @__PURE__ */ x("div", {
126
- className: "ttw:flex ttw:flex-col ttw:gap-1",
127
- children: [/* @__PURE__ */ b(_, {
128
- variant: "body2",
129
- children: j.bankAccountLabel
130
- }), /* @__PURE__ */ b(_, {
131
- variant: "caption",
132
- color: "muted",
133
- children: j.bankAccountHint
134
- })]
135
- }),
136
- a.kind === "loading" ? /* @__PURE__ */ b(g, { className: "ttw:h-9 ttw:w-full ttw:rounded-md" }) : /* @__PURE__ */ x(u, {
137
- disabled: c,
138
- value: a.selected?.value ?? "",
139
- onValueChange: (e) => {
140
- e === w ? T() : l(e);
141
- },
142
- children: [/* @__PURE__ */ b(m, {
143
- id: M,
144
- className: "ttw:w-full",
145
- "aria-label": j.bankAccountSelectorLabel,
146
- "aria-invalid": !!o,
147
- children: /* @__PURE__ */ b(h, {
148
- placeholder: j.bankAccountPlaceholder,
149
- children: a.selected && /* @__PURE__ */ x("span", {
150
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
151
- children: [/* @__PURE__ */ b("span", {
152
- className: "ttw:truncate",
153
- children: a.selected.label
154
- }), a.selected.sourceLabel && /* @__PURE__ */ b(r, {
155
- variant: "secondary",
156
- className: "ttw:shrink-0",
157
- children: a.selected.sourceLabel
158
- })]
159
- })
160
- })
161
- }), /* @__PURE__ */ x(d, { children: [a.options.map((e) => /* @__PURE__ */ b(f, {
162
- value: e.value,
163
- children: /* @__PURE__ */ x("span", {
164
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
165
- children: [/* @__PURE__ */ b("span", {
166
- className: "ttw:truncate",
167
- children: e.label
168
- }), e.sourceLabel && /* @__PURE__ */ b("span", {
169
- className: "ttw:shrink-0 ttw:text-muted-foreground",
170
- children: e.sourceLabel
171
- })]
172
- })
173
- }, e.value)), a.canAddAccount && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(p, {}), /* @__PURE__ */ x(f, {
174
- value: w,
175
- className: "ttw:font-semibold ttw:text-primary ttw:hover:text-primary ttw:focus:text-primary",
176
- children: [/* @__PURE__ */ b(S, { className: "ttw:text-primary" }), j.bankAccountAddOption]
177
- })] })] })]
178
- }),
179
- /* @__PURE__ */ b(s, { errors: o ? [{ message: o }] : [] })
180
- ]
181
- }),
182
- a.kind === "form" && /* @__PURE__ */ x("div", {
183
- className: "ttw:flex ttw:flex-col ttw:gap-2",
184
- "data-invalid": o ? !0 : void 0,
185
- children: [/* @__PURE__ */ b(E, {
186
- idPrefix: i,
187
- values: a.values,
188
- errors: a.errors,
189
- canCancel: a.canCancel,
190
- isSaving: a.isSaving,
191
- labels: j,
192
- onChange: D,
193
- onSave: O,
194
- onCancel: k
195
- }), /* @__PURE__ */ b(s, { errors: o ? [{ message: o }] : [] })]
196
- }),
197
- a.kind === "restricted" && /* @__PURE__ */ x(e, {
198
- className: "ttw:border-transparent ttw:bg-yellow-50 ttw:text-yellow-900 ttw:dark:bg-yellow-950 ttw:dark:text-yellow-100",
199
- children: [
200
- /* @__PURE__ */ b(C, {}),
201
- /* @__PURE__ */ b(n, { children: j.bankAccountRestrictedTitle }),
202
- /* @__PURE__ */ b(t, {
203
- className: "ttw:text-current",
204
- children: j.bankAccountRestrictedDescription
205
- })
206
- ]
207
- })
208
- ]
209
- });
210
- }
211
- export { D as ReceivableBankAccountSection };
2
+ var e = {
3
+ customerHeading: "Customer details",
4
+ customerDescription: "Who are you billing?",
5
+ customerNameLabel: "Name",
6
+ customerListToggleButton: "Show customers",
7
+ customerEmailLabel: "Email",
8
+ addCustomerDetailsButton: "Add more details including address, phone, etc.",
9
+ viewCustomerDetailsButton: "View details",
10
+ clearCustomerButton: "Clear"
11
+ };
12
+ export { e as RECEIVABLE_CUSTOMER_SECTION_LABELS_EN };