@tesouro/embedded-components-react 0.11.206 → 0.11.211

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 (89) hide show
  1. package/dist/index.css +13 -126
  2. package/dist/index.d.ts +6 -5
  3. package/dist/lib/ReceivablesWidget.d.ts +6 -5
  4. package/dist/lib/WidgetSuite.d.ts +6 -5
  5. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +16 -18
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +186 -239
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +59 -52
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +5 -4
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentRecord.js +5 -5
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +19 -23
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusColors.js +34 -0
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +2 -6
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +5 -1
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +16 -16
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +1 -2
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +2 -0
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -27
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +18 -120
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +89 -84
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +91 -36
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +41 -2
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +2 -12
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +9 -9
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +9 -25
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +26 -208
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +209 -52
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +50 -208
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +186 -138
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +157 -12
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +10 -19
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +23 -2
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +2 -116
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +117 -3
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +3 -198
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +198 -2
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +2 -54
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +14 -19
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +22 -8
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +40 -77
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +17 -37
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +61 -38
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +27 -27
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -15
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +14 -6
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +19 -35
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +31 -14
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +67 -24
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +391 -84
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +2 -494
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +47 -2
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +62 -38
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +433 -61
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +176 -428
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +20 -224
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +6 -21
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +264 -0
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +2 -264
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +131 -2
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +22 -126
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +235 -23
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +3 -239
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +247 -3
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +26 -244
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +183 -26
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +21 -194
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +143 -21
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +2 -143
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +47 -2
  77. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +47 -48
  78. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +127 -144
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +0 -3
  80. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index16.js +107 -111
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index5.js +1 -1
  82. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +2 -2
  83. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +2 -31
  84. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  85. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/helpers.js +1 -1
  86. package/dist/packages/shared-ui-shadcn/dist/index.js +1554 -1544
  87. package/package.json +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +0 -7
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +0 -47
@@ -1,28 +1,12 @@
1
1
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js
2
2
  var e = {
3
- recurrenceRepeatLabel: "Repeat this invoice",
4
- recurrenceMonthDayLead: "on the",
5
- recurrenceWeekdayLead: "on",
6
- recurrenceStartOnLabel: "Start on",
7
- recurrenceEndChoiceLead: "and end",
8
- recurrenceEndCountLead: "and end after",
9
- recurrenceDatePlaceholder: "Mon DD, YYYY",
10
- recurrenceCreationModeQuestion: "When an invoice in the series is created, what should happen?",
11
- recurrenceCreationModeHint: "(You can change this at any time)",
12
- recurrenceSetUpEmail: "Set up the email"
13
- }, t = {
14
- recurrenceEmailTitle: "Email sent with each invoice",
15
- recurrenceEmailDescription: "The same recipients, subject, and message are used for every invoice in the series.",
16
- recurrenceEmailTo: "To",
17
- recurrenceEmailCc: "Cc",
18
- recurrenceEmailBcc: "Bcc",
19
- recurrenceEmailSubject: "Subject",
20
- recurrenceEmailMessage: "Message",
21
- recurrenceEmailRecipientPlaceholder: "name@example.com",
22
- recurrenceEmailMessagePlaceholder: "e.g., Thank you for your business",
23
- recurrenceEmailFootnote: "Each invoice is finalized and emailed automatically on its schedule.",
24
- recurrenceEmailCancel: "Cancel",
25
- recurrenceEmailSave: "Save",
26
- recurrenceEmailClose: "Close"
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"
27
11
  };
28
- export { t as RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN, e as RECEIVABLE_RECURRENCE_SECTION_LABELS_EN };
12
+ export { e as RECEIVABLE_CUSTOMER_SECTION_LABELS_EN };
@@ -1,210 +1,28 @@
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 "./index15.js";
4
- import { RECEIVABLE_CUSTOMER_SECTION_LABELS_EN as n } from "./index16.js";
5
- import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as r, RECEIVABLE_RECURRENCE_SECTION_LABELS_EN as i } from "./index17.js";
6
1
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js
7
- var a = {
8
- group: "Invoice summary",
9
- loading: "Loading invoice summary"
10
- }, o = {
11
- createInvoiceButton: "Create invoice",
12
- statusCardsGroup: a.group,
13
- statusCardsLoading: a.loading,
14
- columnDueDate: "Due date",
15
- columnStatus: "Status",
16
- columnNumber: "Invoice number",
17
- columnCustomer: "Customer",
18
- columnIssueDate: "Invoice date",
19
- columnBalanceDue: "Balance due",
20
- columnAmount: "Amount",
21
- openRow: (e) => `View invoice — ${e}`,
22
- sortByDueDate: "Sort by due date",
23
- sortByStatus: "Sort by status",
24
- sortByNumber: "Sort by invoice number",
25
- sortByIssueDate: "Sort by invoice date",
26
- sortByAmount: "Sort by amount",
27
- emptyTitle: "No Invoices",
28
- emptyDescription: "You don’t have any invoices yet.",
29
- filterEmptyTitle: "No Invoices Found",
30
- errorTitle: "Failed to load Invoices",
31
- errorDescription: "There was an error loading invoices.",
32
- errorRetry: "Reload",
33
- accessRestrictedTitle: "Access Restricted",
34
- accessRestrictedDescription: "You don’t have permissions to view this page. Contact your system administrator for details.",
35
- statusBadge: e
36
- }, s = {
37
- unsavedTitle: "Save this invoice as a draft?",
38
- unsavedDescription: "This invoice has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
39
- unsavedDiscardButton: "Discard changes",
40
- unsavedSaveDraftButton: "Save as draft",
41
- unsavedCloseButton: "Close"
42
- }, c = {
43
- ...t,
44
- ...n,
45
- ...i,
46
- ...r,
47
- ...s,
48
- createTitle: "Create invoice",
49
- createRecurringTitle: "Create recurring invoice",
50
- createDescription: "Create and issue an invoice to your customers",
51
- editTitle: "Edit invoice",
52
- editDescription: "Invoice details",
53
- closeButton: "Close",
54
- dueDateLabel: "Due date",
55
- lineItemsHeading: "Products and services",
56
- lineItemsDescription: "Add the products and services on this invoice. You'll have the option to save new items to your inventory.",
57
- productLabel: "Item name",
58
- quantityLabel: "Quantity",
59
- unitLabel: "Units",
60
- unitPlaceholder: "Select",
61
- unitNone: "None",
62
- manageUnitsOption: "Manage units of measure",
63
- priceLabel: "Price",
64
- taxableLabel: "Taxable",
65
- taxRateLabel: "Tax rate",
66
- taxRatePlaceholder: "e.g. 6.25",
67
- taxRateSuffix: "%",
68
- discountLabel: "Discount",
69
- discountPercentageOption: "%",
70
- discountAmountOptionAriaLabel: "Flat discount",
71
- discountPercentageOptionAriaLabel: "Percentage discount",
72
- subtotalLabel: "Subtotal",
73
- discountTotalLabel: "Discount",
74
- nonTaxableSubtotalLabel: "Non-taxable subtotal",
75
- taxableSubtotalLabel: "Taxable subtotal",
76
- taxTotalLabel: "Tax",
77
- totalLabel: "Total",
78
- decreaseQuantityButton: "Decrease quantity",
79
- increaseQuantityButton: "Increase quantity",
80
- addLineItemButton: "Add item",
81
- removeLineItemButton: "Remove line item",
82
- cancelButton: "Cancel",
83
- notesHeading: "Notes",
84
- notesDescription: "Provide additional information for your customer.",
85
- optionalSuffix: "(optional)",
86
- openingNoteLabel: "Opening note to the customer",
87
- openingNotePlaceholder: "e.g., As discussed on our call, please find the attached invoice.",
88
- openingNoteDescription: "Appears above your line items. Use it to reference a discussion, agreement, or project.",
89
- closingNoteLabel: "Closing note to the customer",
90
- closingNotePlaceholder: "e.g., Thank you for your business!",
91
- closingNoteDescription: "Appears below your line items. Commonly used for thank you messages or payment instructions.",
92
- bankAccountHeading: "Payment instructions",
93
- bankAccountDescription: "Tells the customer how they can pay you. We'll include the selected info on the invoice",
94
- bankAccountLabel: "Bank account",
95
- bankAccountHint: "Display your bank account number and routing number",
96
- bankAccountSelectorLabel: "Bank account selector",
97
- bankAccountPlaceholder: "Select bank account",
98
- bankAccountAddOption: "Add a new account",
99
- bankAccountFormHeading: "Add a bank account",
100
- bankAccountRoutingNumberLabel: "Routing number",
101
- bankAccountRoutingNumberPlaceholder: "e.g. 123456789",
102
- bankAccountAccountNumberLabel: "Account number",
103
- bankAccountAccountNumberPlaceholder: "e.g. 123456789",
104
- bankAccountHolderNameLabel: "Account holder name",
105
- bankAccountHolderNamePlaceholder: "e.g. James Smith",
106
- bankAccountNicknameLabel: "Account nickname",
107
- bankAccountNicknamePlaceholder: "e.g. Empire Bank Checking",
108
- bankAccountCancelButton: "Cancel",
109
- bankAccountSaveButton: "Save account",
110
- bankAccountRestrictedTitle: "There are no bank accounts on file for this account",
111
- bankAccountRestrictedDescription: "A bank account is required in order to issue invoices. Contact your company admin to set one up.",
112
- attachmentsHeading: "Attachments",
113
- 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.",
114
- attachmentsDropPrompt: "Drop your files here, or",
115
- attachmentsBrowseLink: "browse to upload",
116
- attachmentsFormatsHint: "PDF, DOC, JPG, PNG (max. 3MB)",
117
- remindersToggleLabel: "Payment reminders",
118
- remindersDescription: "Send reminders when an invoice is approaching its due date or past due.",
119
- remindersLibraryNote: "New reminders will be saved to your organization's library and can be managed via Invoice settings",
120
- reminderNumberOfDays: "Number of days",
121
- reminderBefore: "BEFORE",
122
- reminderAfter: "AFTER",
123
- reminderDueDate: "due date",
124
- reminderNone: "No reminder",
125
- reminderBeforeDueInputLabel: "Days before due date",
126
- reminderPlaceholder: "e.g., 3",
127
- reminderAddTermButton: "Add",
128
- reminderClearButton: "Clear",
129
- reminderSaveButton: "Save"
130
- }, l = {
131
- hiddenDescription: "Invoice details",
132
- loadingTitle: "Loading invoice details",
133
- moreActionsLabel: "More actions",
134
- viewPdfButton: "View PDF",
135
- closeButton: "Close",
136
- invoiceDateCaption: "Invoice date",
137
- paymentHistoryHeading: "Payment history",
138
- paymentHistoryEmpty: "You've received no payments yet.",
139
- paymentHistoryTotalLabel: "Total received",
140
- paymentHistoryLoading: "Loading payment history",
141
- customerDetailsHeading: "Customer details",
142
- recurringAmountCaption: "Recurring amount",
143
- startsOnCaption: "Starts on",
144
- endsOnCaption: "Ends on",
145
- recurringSeriesRowLabel: "Recurring series",
146
- scheduleIssueDateColumn: "Issue date",
147
- scheduleAmountColumn: "Amount",
148
- scheduleStatusColumn: "Status",
149
- scheduleNumberColumn: "Number",
150
- scheduleEmpty: "No invoices are scheduled.",
151
- auditHistoryHeading: "Audit history",
152
- auditHistoryEmpty: "No history yet.",
153
- auditHistoryLoading: "Loading history",
154
- auditHistoryError: "The audit history could not be loaded.",
155
- auditHistoryNamesError: "Some names could not be loaded.",
156
- billingHeading: "Billing details",
157
- lineItemsHeading: "Line items",
158
- notesHeading: "Notes",
159
- notesOpeningLabel: "Opening note to customer",
160
- notesClosingLabel: "Closing note to customer",
161
- attachmentsHeading: "Attachments",
162
- attachmentsEmpty: "No attached files",
163
- attachmentsFileColumn: "File",
164
- attachmentsEmailedColumn: "Emailed",
165
- lineItemMultiplier: "x",
166
- lineItemEaLabel: "ea",
167
- noLineItems: "No line items.",
168
- editButton: "Edit",
169
- issueButton: "Issue",
170
- issueAndSendButton: "Issue and send",
171
- recordPaymentButton: "Record payment",
172
- sendButton: "Resend",
173
- acceptButton: "Accept",
174
- declineButton: "Decline",
175
- markPaidButton: "Mark as paid",
176
- markUncollectibleButton: "Mark as uncollectible",
177
- cancelButton: "Cancel invoice",
178
- cloneButton: "Duplicate",
179
- deleteButton: "Delete",
180
- pauseRecurrenceButton: "Pause series",
181
- resumeRecurrenceButton: "Resume series",
182
- cancelRecurrenceButton: "Cancel series",
183
- recurringBadge: "Recurring"
184
- }, u = {
185
- title: "Record payment",
186
- amountLabel: "Amount",
187
- amountPlaceholder: "0",
188
- fullAmountDuePrefix: "Enter full amount due of",
189
- dateLabel: "Date",
190
- datePlaceholder: "Pick a date",
191
- timeLabel: "Time",
192
- timeZoneSuffix: "UTC",
193
- cancelButton: "Cancel",
194
- saveButton: "Save",
195
- reviewTitle: "Manual payment record",
196
- receivedLabel: "Received",
197
- referenceLabel: "Reference",
198
- createdByLabel: "Created by",
199
- reviewWarning: "Please, check the details of your payment record. You won't be able to change or delete it after.",
200
- editRecordButton: "Edit record",
201
- confirmButton: "Confirm",
202
- close: "Close"
203
- }, d = {
204
- cancelButton: "Cancel",
205
- confirmButton: "Confirm",
206
- commentLabel: "Comment (optional)",
207
- commentPlaceholder: "Add a comment",
208
- close: "Close"
2
+ var e = {
3
+ recurrenceRepeatLabel: "Repeat this invoice",
4
+ recurrenceMonthDayLead: "on the",
5
+ recurrenceWeekdayLead: "on",
6
+ recurrenceStartOnLabel: "Start on",
7
+ recurrenceEndChoiceLead: "and end",
8
+ recurrenceEndCountLead: "and end after",
9
+ recurrenceDatePlaceholder: "Mon DD, YYYY",
10
+ recurrenceCreationModeQuestion: "When an invoice in the series is created, what should happen?",
11
+ recurrenceCreationModeHint: "(You can change this at any time)",
12
+ recurrenceSetUpEmail: "Set up the email"
13
+ }, t = {
14
+ recurrenceEmailTitle: "Email sent with each invoice",
15
+ recurrenceEmailDescription: "The same recipients, subject, and message are used for every invoice in the series.",
16
+ recurrenceEmailTo: "To",
17
+ recurrenceEmailCc: "Cc",
18
+ recurrenceEmailBcc: "Bcc",
19
+ recurrenceEmailSubject: "Subject",
20
+ recurrenceEmailMessage: "Message",
21
+ recurrenceEmailRecipientPlaceholder: "name@example.com",
22
+ recurrenceEmailMessagePlaceholder: "e.g., Thank you for your business",
23
+ recurrenceEmailFootnote: "Each invoice is finalized and emailed automatically on its schedule.",
24
+ recurrenceEmailCancel: "Cancel",
25
+ recurrenceEmailSave: "Save",
26
+ recurrenceEmailClose: "Close"
209
27
  };
210
- 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 };
28
+ export { t as RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN, e as RECEIVABLE_RECURRENCE_SECTION_LABELS_EN };
@@ -1,53 +1,210 @@
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 "./index18.js";
3
- import { useId as u } from "react";
4
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
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 "./index16.js";
4
+ import { RECEIVABLE_CUSTOMER_SECTION_LABELS_EN as n } from "./index17.js";
5
+ import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as r, RECEIVABLE_RECURRENCE_SECTION_LABELS_EN as i } from "./index18.js";
5
6
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.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 };
7
+ var a = {
8
+ group: "Invoice summary",
9
+ loading: "Loading invoice summary"
10
+ }, o = {
11
+ createInvoiceButton: "Create invoice",
12
+ statusCardsGroup: a.group,
13
+ statusCardsLoading: a.loading,
14
+ columnDueDate: "Due date",
15
+ columnStatus: "Status",
16
+ columnNumber: "Invoice number",
17
+ columnCustomer: "Customer",
18
+ columnIssueDate: "Invoice date",
19
+ columnBalanceDue: "Balance due",
20
+ columnAmount: "Amount",
21
+ openRow: (e) => `View invoice — ${e}`,
22
+ sortByDueDate: "Sort by due date",
23
+ sortByStatus: "Sort by status",
24
+ sortByNumber: "Sort by invoice number",
25
+ sortByIssueDate: "Sort by invoice date",
26
+ sortByAmount: "Sort by amount",
27
+ emptyTitle: "No Invoices",
28
+ emptyDescription: "You don’t have any invoices yet.",
29
+ filterEmptyTitle: "No Invoices Found",
30
+ errorTitle: "Failed to load Invoices",
31
+ errorDescription: "There was an error loading invoices.",
32
+ errorRetry: "Reload",
33
+ accessRestrictedTitle: "Access Restricted",
34
+ accessRestrictedDescription: "You don’t have permissions to view this page. Contact your system administrator for details.",
35
+ statusBadge: e
36
+ }, s = {
37
+ unsavedTitle: "Save this invoice as a draft?",
38
+ unsavedDescription: "This invoice has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
39
+ unsavedDiscardButton: "Discard changes",
40
+ unsavedSaveDraftButton: "Save as draft",
41
+ unsavedCloseButton: "Close"
42
+ }, c = {
43
+ ...t,
44
+ ...n,
45
+ ...i,
46
+ ...r,
47
+ ...s,
48
+ createTitle: "Create invoice",
49
+ createRecurringTitle: "Create recurring invoice",
50
+ createDescription: "Create and issue an invoice to your customers",
51
+ editTitle: "Edit invoice",
52
+ editDescription: "Invoice details",
53
+ closeButton: "Close",
54
+ dueDateLabel: "Due date",
55
+ lineItemsHeading: "Products and services",
56
+ lineItemsDescription: "Add the products and services on this invoice. You'll have the option to save new items to your inventory.",
57
+ productLabel: "Item name",
58
+ quantityLabel: "Quantity",
59
+ unitLabel: "Units",
60
+ unitPlaceholder: "Select",
61
+ unitNone: "None",
62
+ manageUnitsOption: "Manage units of measure",
63
+ priceLabel: "Price",
64
+ taxableLabel: "Taxable",
65
+ taxRateLabel: "Tax rate",
66
+ taxRatePlaceholder: "e.g. 6.25",
67
+ taxRateSuffix: "%",
68
+ discountLabel: "Discount",
69
+ discountPercentageOption: "%",
70
+ discountAmountOptionAriaLabel: "Flat discount",
71
+ discountPercentageOptionAriaLabel: "Percentage discount",
72
+ subtotalLabel: "Subtotal",
73
+ discountTotalLabel: "Discount",
74
+ nonTaxableSubtotalLabel: "Non-taxable subtotal",
75
+ taxableSubtotalLabel: "Taxable subtotal",
76
+ taxTotalLabel: "Tax",
77
+ totalLabel: "Total",
78
+ decreaseQuantityButton: "Decrease quantity",
79
+ increaseQuantityButton: "Increase quantity",
80
+ addLineItemButton: "Add item",
81
+ removeLineItemButton: "Remove line item",
82
+ cancelButton: "Cancel",
83
+ notesHeading: "Notes",
84
+ notesDescription: "Provide additional information for your customer.",
85
+ optionalSuffix: "(optional)",
86
+ openingNoteLabel: "Opening note to the customer",
87
+ openingNotePlaceholder: "e.g., As discussed on our call, please find the attached invoice.",
88
+ openingNoteDescription: "Appears above your line items. Use it to reference a discussion, agreement, or project.",
89
+ closingNoteLabel: "Closing note to the customer",
90
+ closingNotePlaceholder: "e.g., Thank you for your business!",
91
+ closingNoteDescription: "Appears below your line items. Commonly used for thank you messages or payment instructions.",
92
+ bankAccountHeading: "Payment instructions",
93
+ bankAccountDescription: "Tells the customer how they can pay you. We'll include the selected info on the invoice",
94
+ bankAccountLabel: "Bank account",
95
+ bankAccountHint: "Display your bank account number and routing number",
96
+ bankAccountSelectorLabel: "Bank account selector",
97
+ bankAccountPlaceholder: "Select bank account",
98
+ bankAccountAddOption: "Add a new account",
99
+ bankAccountFormHeading: "Add a bank account",
100
+ bankAccountRoutingNumberLabel: "Routing number",
101
+ bankAccountRoutingNumberPlaceholder: "e.g. 123456789",
102
+ bankAccountAccountNumberLabel: "Account number",
103
+ bankAccountAccountNumberPlaceholder: "e.g. 123456789",
104
+ bankAccountHolderNameLabel: "Account holder name",
105
+ bankAccountHolderNamePlaceholder: "e.g. James Smith",
106
+ bankAccountNicknameLabel: "Account nickname",
107
+ bankAccountNicknamePlaceholder: "e.g. Empire Bank Checking",
108
+ bankAccountCancelButton: "Cancel",
109
+ bankAccountSaveButton: "Save account",
110
+ bankAccountRestrictedTitle: "There are no bank accounts on file for this account",
111
+ bankAccountRestrictedDescription: "A bank account is required in order to issue invoices. Contact your company admin to set one up.",
112
+ attachmentsHeading: "Attachments",
113
+ 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.",
114
+ attachmentsDropPrompt: "Drop your files here, or",
115
+ attachmentsBrowseLink: "browse to upload",
116
+ attachmentsFormatsHint: "PDF, DOC, JPG, PNG (max. 3MB)",
117
+ remindersToggleLabel: "Payment reminders",
118
+ remindersDescription: "Send reminders when an invoice is approaching its due date or past due.",
119
+ remindersLibraryNote: "New reminders will be saved to your organization's library and can be managed via Invoice settings",
120
+ reminderNumberOfDays: "Number of days",
121
+ reminderBefore: "BEFORE",
122
+ reminderAfter: "AFTER",
123
+ reminderDueDate: "due date",
124
+ reminderNone: "No reminder",
125
+ reminderBeforeDueInputLabel: "Days before due date",
126
+ reminderPlaceholder: "e.g., 3",
127
+ reminderAddTermButton: "Add",
128
+ reminderClearButton: "Clear",
129
+ reminderSaveButton: "Save"
130
+ }, l = {
131
+ loadingTitle: "Loading invoice details",
132
+ moreActionsLabel: "More actions",
133
+ viewPdfButton: "View PDF",
134
+ closeButton: "Close",
135
+ invoiceDateCaption: "Invoice date",
136
+ paymentHistoryHeading: "Payment history",
137
+ paymentHistoryEmpty: "You've received no payments yet.",
138
+ paymentHistoryTotalLabel: "Total received",
139
+ paymentHistoryLoading: "Loading payment history",
140
+ customerDetailsHeading: "Customer details",
141
+ recurringAmountCaption: "Recurring amount",
142
+ startsOnCaption: "Starts on",
143
+ endsOnCaption: "Ends on",
144
+ recurringSeriesRowLabel: "Recurring series",
145
+ scheduleIssueDateColumn: "Issue date",
146
+ scheduleAmountColumn: "Amount",
147
+ scheduleStatusColumn: "Status",
148
+ scheduleNumberColumn: "Number",
149
+ scheduleEmpty: "No invoices are scheduled.",
150
+ auditHistoryHeading: "Audit history",
151
+ auditHistoryEmpty: "No history yet.",
152
+ auditHistoryLoading: "Loading history",
153
+ auditHistoryError: "The audit history could not be loaded.",
154
+ auditHistoryNamesError: "Some names could not be loaded.",
155
+ billingHeading: "Billing details",
156
+ lineItemsHeading: "Line items",
157
+ notesHeading: "Notes",
158
+ notesOpeningLabel: "Opening note to customer",
159
+ notesClosingLabel: "Closing note to customer",
160
+ attachmentsHeading: "Attachments",
161
+ attachmentsEmpty: "No attached files",
162
+ attachmentsFileColumn: "File",
163
+ attachmentsEmailedColumn: "Emailed",
164
+ lineItemMultiplier: "x",
165
+ lineItemEaLabel: "ea",
166
+ noLineItems: "No line items.",
167
+ editButton: "Edit",
168
+ issueButton: "Issue",
169
+ issueAndSendButton: "Issue and send",
170
+ recordPaymentButton: "Record payment",
171
+ sendButton: "Resend",
172
+ acceptButton: "Accept",
173
+ declineButton: "Decline",
174
+ markPaidButton: "Mark as paid",
175
+ markUncollectibleButton: "Mark as uncollectible",
176
+ cancelButton: "Cancel invoice",
177
+ cloneButton: "Duplicate",
178
+ deleteButton: "Delete",
179
+ pauseRecurrenceButton: "Pause series",
180
+ resumeRecurrenceButton: "Resume series",
181
+ cancelRecurrenceButton: "Cancel series",
182
+ recurringBadge: "Recurring"
183
+ }, u = {
184
+ title: "Record payment",
185
+ amountLabel: "Amount",
186
+ amountPlaceholder: "0",
187
+ fullAmountDuePrefix: "Enter full amount due of",
188
+ dateLabel: "Date",
189
+ datePlaceholder: "Pick a date",
190
+ timeLabel: "Time",
191
+ timeZoneSuffix: "UTC",
192
+ cancelButton: "Cancel",
193
+ saveButton: "Save",
194
+ reviewTitle: "Record this payment?",
195
+ fromLabel: "From",
196
+ receivedLabel: "Received",
197
+ referenceLabel: "Reference",
198
+ createdByLabel: "Created by",
199
+ reviewWarning: "Check the details. You can't change or delete a payment record once it's saved.",
200
+ editRecordButton: "Back",
201
+ confirmButton: "Record payment",
202
+ close: "Close"
203
+ }, d = {
204
+ cancelButton: "Cancel",
205
+ confirmButton: "Confirm",
206
+ commentLabel: "Comment (optional)",
207
+ commentPlaceholder: "Add a comment",
208
+ close: "Close"
209
+ };
210
+ 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 };