@tesouro/embedded-components-react 0.5.235 → 0.5.236
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.
- package/README.md +3 -0
- package/dist/index.d.ts +110 -1
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +110 -1
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +210 -208
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +98 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +159 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +53 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +99 -132
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +40 -341
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index37.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index38.js +92 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index39.js +146 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index40.js +354 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +9 -214
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +27 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +233 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +214 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +153 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +16 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +90 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +20 -69
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +51 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +70 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +17 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +12 -83
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +9 -121
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +28 -401
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +80 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +383 -473
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +2 -106
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +48 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +72 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +498 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +106 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +141 -93
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +4 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +90 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +24 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +231 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -353
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +3 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +121 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +100 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +38 -233
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +0 -100
|
@@ -1,235 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Dialog as e, DialogContent as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_ACTIONS_MODAL_LABELS_EN as n } from "./index6.js";
|
|
3
|
+
import { ReceivableActionsModalIssueStep as r } from "./index7.js";
|
|
4
|
+
import { ReceivableActionsModalProductsStep as i } from "./index8.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
6
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
columnActions: "Actions",
|
|
37
|
-
openRow: (e) => `View document — ${e}`,
|
|
38
|
-
sortByDocument: "Sort by document",
|
|
39
|
-
sortByCustomer: "Sort by customer",
|
|
40
|
-
sortByStatus: "Sort by status",
|
|
41
|
-
sortByIssueDate: "Sort by issue date",
|
|
42
|
-
sortByDueDate: "Sort by due date",
|
|
43
|
-
sortByTotal: "Sort by total",
|
|
44
|
-
actionEdit: "Edit",
|
|
45
|
-
actionIssue: "Issue",
|
|
46
|
-
actionSend: "Send",
|
|
47
|
-
actionRecordPayment: "Record payment",
|
|
48
|
-
actionMarkPaid: "Mark as paid",
|
|
49
|
-
actionMarkUncollectible: "Mark uncollectible",
|
|
50
|
-
actionAccept: "Accept",
|
|
51
|
-
actionDecline: "Decline",
|
|
52
|
-
actionCancel: "Cancel",
|
|
53
|
-
actionClone: "Clone",
|
|
54
|
-
actionDelete: "Delete",
|
|
55
|
-
emptyTitle: "No receivables yet",
|
|
56
|
-
emptyDescription: "Create your first invoice or quote.",
|
|
57
|
-
emptyAction: "Create receivable",
|
|
58
|
-
filterEmptyTitle: "No receivables found",
|
|
59
|
-
filterEmptyDescription: "Try adjusting your search or filters.",
|
|
60
|
-
errorTitle: "Failed to load receivables",
|
|
61
|
-
errorDescription: "Something went wrong while fetching receivables. Please try again.",
|
|
62
|
-
errorRetry: "Try again",
|
|
63
|
-
statusBadge: r
|
|
64
|
-
}, o = {
|
|
65
|
-
...e,
|
|
66
|
-
...n,
|
|
67
|
-
...t,
|
|
68
|
-
createTitle: "Create receivable",
|
|
69
|
-
editTitle: "Edit receivable",
|
|
70
|
-
hiddenDescription: "Create an invoice or quote",
|
|
71
|
-
documentTypeLabel: "Document type",
|
|
72
|
-
typeInvoice: "Invoice",
|
|
73
|
-
typeQuote: "Quote",
|
|
74
|
-
customerLabel: "Customer",
|
|
75
|
-
customerHint: "Create a customer first if the list is empty.",
|
|
76
|
-
currencyLabel: "Currency",
|
|
77
|
-
issueDateLabel: "Issue date",
|
|
78
|
-
dueDateLabel: "Due date",
|
|
79
|
-
lineItemsHeading: "Products and services",
|
|
80
|
-
lineItemsDescription: "Add the products and services on this invoice. You'll have the option to save new items to your inventory.",
|
|
81
|
-
productLabel: "Item name",
|
|
82
|
-
quantityLabel: "Quantity",
|
|
83
|
-
unitLabel: "Units",
|
|
84
|
-
unitPlaceholder: "Select",
|
|
85
|
-
unitNone: "None",
|
|
86
|
-
manageUnitsOption: "Manage measure units",
|
|
87
|
-
priceLabel: "Price",
|
|
88
|
-
taxableLabel: "Taxable",
|
|
89
|
-
taxRateLabel: "Tax rate",
|
|
90
|
-
taxRatePlaceholder: "e.g. 6.25",
|
|
91
|
-
taxRateSuffix: "%",
|
|
92
|
-
discountLabel: "Discount",
|
|
93
|
-
discountPercentageOption: "%",
|
|
94
|
-
discountAmountOptionAriaLabel: "Flat discount",
|
|
95
|
-
discountPercentageOptionAriaLabel: "Percentage discount",
|
|
96
|
-
subtotalLabel: "Subtotal",
|
|
97
|
-
discountTotalLabel: "Discount",
|
|
98
|
-
nonTaxableSubtotalLabel: "Non-taxable subtotal",
|
|
99
|
-
taxableSubtotalLabel: "Taxable subtotal",
|
|
100
|
-
taxTotalLabel: "Tax",
|
|
101
|
-
totalLabel: "Total",
|
|
102
|
-
decreaseQuantityButton: "Decrease quantity",
|
|
103
|
-
increaseQuantityButton: "Increase quantity",
|
|
104
|
-
addLineItemButton: "Add item",
|
|
105
|
-
removeLineItemButton: "Remove line item",
|
|
106
|
-
cancelButton: "Cancel",
|
|
107
|
-
notesHeading: "Notes",
|
|
108
|
-
notesDescription: "Provide additional information for your customer.",
|
|
109
|
-
optionalSuffix: "(optional)",
|
|
110
|
-
openingNoteLabel: "Opening note to the customer",
|
|
111
|
-
openingNotePlaceholder: "e.g., As discussed on our call, please find the attached invoice.",
|
|
112
|
-
openingNoteDescription: "Appears above your line items. Use it to reference a discussion, agreement, or project.",
|
|
113
|
-
closingNoteLabel: "Closing note to the customer",
|
|
114
|
-
closingNotePlaceholder: "e.g., Thank you for your business!",
|
|
115
|
-
closingNoteDescription: "Appears below your line items. Commonly used for thank you messages or payment instructions.",
|
|
116
|
-
bankAccountHeading: "Payment instructions",
|
|
117
|
-
bankAccountDescription: "Tells the customer how they can pay you. We'll include the selected info on the invoice",
|
|
118
|
-
bankAccountLabel: "Bank account",
|
|
119
|
-
bankAccountHint: "Display your bank account number and routing number",
|
|
120
|
-
bankAccountSelectorLabel: "Bank account selector",
|
|
121
|
-
bankAccountPlaceholder: "Select bank account",
|
|
122
|
-
bankAccountAddOption: "Add a new account",
|
|
123
|
-
bankAccountFormHeading: "Add a bank account",
|
|
124
|
-
bankAccountRoutingNumberLabel: "Routing number",
|
|
125
|
-
bankAccountRoutingNumberPlaceholder: "e.g. 123456789",
|
|
126
|
-
bankAccountAccountNumberLabel: "Account number",
|
|
127
|
-
bankAccountAccountNumberPlaceholder: "e.g. 123456789",
|
|
128
|
-
bankAccountHolderNameLabel: "Account holder name",
|
|
129
|
-
bankAccountHolderNamePlaceholder: "e.g. James Smith",
|
|
130
|
-
bankAccountNicknameLabel: "Account nickname",
|
|
131
|
-
bankAccountNicknamePlaceholder: "e.g. Empire Bank Checking",
|
|
132
|
-
bankAccountCancelButton: "Cancel",
|
|
133
|
-
bankAccountSaveButton: "Save account",
|
|
134
|
-
bankAccountRestrictedTitle: "There are no bank accounts on file for this account",
|
|
135
|
-
bankAccountRestrictedDescription: "A bank account is required in order to issue invoices. Contact your company admin to set one up.",
|
|
136
|
-
attachmentsHeading: "Attachments",
|
|
137
|
-
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.",
|
|
138
|
-
attachmentsDropPrompt: "Drop your files here, or",
|
|
139
|
-
attachmentsBrowseLink: "browse to upload",
|
|
140
|
-
attachmentsFormatsHint: "PDF, DOC, JPG, PNG (max. 3MB)",
|
|
141
|
-
remindersToggleLabel: "Payment reminders",
|
|
142
|
-
remindersDescription: "Send reminders when an invoice is approaching its due date or past due.",
|
|
143
|
-
remindersLibraryNote: "New reminders will be saved to your organization's library and can be managed via Invoice settings",
|
|
144
|
-
reminderNumberOfDays: "Number of days",
|
|
145
|
-
reminderBefore: "BEFORE",
|
|
146
|
-
reminderAfter: "AFTER",
|
|
147
|
-
reminderDueDate: "due date",
|
|
148
|
-
reminderNone: "No reminder",
|
|
149
|
-
reminderBeforeDueInputLabel: "Days before due date",
|
|
150
|
-
reminderPlaceholder: "e.g., 3",
|
|
151
|
-
reminderAddTermButton: "Add",
|
|
152
|
-
reminderClearButton: "Clear",
|
|
153
|
-
reminderSaveButton: "Save"
|
|
154
|
-
}, s = {
|
|
155
|
-
hiddenDescription: "Invoice details",
|
|
156
|
-
loadingTitle: "Loading...",
|
|
157
|
-
errorTitle: "Invoice not found",
|
|
158
|
-
errorDescription: "We could not load this invoice. Please try again.",
|
|
159
|
-
moreActionsLabel: "More actions",
|
|
160
|
-
viewPdfButton: "View PDF",
|
|
161
|
-
closeButton: "Close",
|
|
162
|
-
invoiceDateCaption: "Invoice date",
|
|
163
|
-
paymentHistoryHeading: "Payment history",
|
|
164
|
-
paymentHistoryEmpty: "You've received no payments yet.",
|
|
165
|
-
paymentHistoryTotalLabel: "Total received",
|
|
166
|
-
paymentHistoryLoading: "Loading payment history",
|
|
167
|
-
customerDetailsHeading: "Customer details",
|
|
168
|
-
recurringAmountCaption: "Recurring amount",
|
|
169
|
-
startsOnCaption: "Starts on",
|
|
170
|
-
endsOnCaption: "Ends on",
|
|
171
|
-
recurringSeriesRowLabel: "Recurring series",
|
|
172
|
-
scheduleIssueDateColumn: "Issue date",
|
|
173
|
-
scheduleAmountColumn: "Amount",
|
|
174
|
-
scheduleStatusColumn: "Status",
|
|
175
|
-
scheduleNumberColumn: "Number",
|
|
176
|
-
scheduleEmpty: "No invoices are scheduled.",
|
|
177
|
-
auditHistoryHeading: "Audit history",
|
|
178
|
-
auditHistoryEmpty: "No history yet.",
|
|
179
|
-
auditHistoryLoading: "Loading history",
|
|
180
|
-
auditHistoryError: "The audit history could not be loaded.",
|
|
181
|
-
auditHistoryNamesError: "Some names could not be loaded.",
|
|
182
|
-
billingHeading: "Billing details",
|
|
183
|
-
lineItemsHeading: "Line items",
|
|
184
|
-
notesHeading: "Notes",
|
|
185
|
-
notesOpeningLabel: "Opening note to customer",
|
|
186
|
-
notesClosingLabel: "Closing note to customer",
|
|
187
|
-
attachmentsHeading: "Attachments",
|
|
188
|
-
attachmentsEmpty: "No attached files",
|
|
189
|
-
attachmentsFileColumn: "File",
|
|
190
|
-
attachmentsEmailedColumn: "Emailed",
|
|
191
|
-
lineItemMultiplier: "x",
|
|
192
|
-
lineItemEaLabel: "ea",
|
|
193
|
-
noLineItems: "No line items.",
|
|
194
|
-
editButton: "Edit",
|
|
195
|
-
issueButton: "Issue",
|
|
196
|
-
recordPaymentButton: "Record payment",
|
|
197
|
-
sendButton: "Resend",
|
|
198
|
-
acceptButton: "Accept",
|
|
199
|
-
declineButton: "Decline",
|
|
200
|
-
markPaidButton: "Mark as paid",
|
|
201
|
-
markUncollectibleButton: "Mark as uncollectible",
|
|
202
|
-
cancelButton: "Cancel invoice",
|
|
203
|
-
cloneButton: "Duplicate",
|
|
204
|
-
deleteButton: "Delete",
|
|
205
|
-
pauseRecurrenceButton: "Pause series",
|
|
206
|
-
resumeRecurrenceButton: "Resume series",
|
|
207
|
-
cancelRecurrenceButton: "Cancel series",
|
|
208
|
-
recurringBadge: "Recurring"
|
|
209
|
-
}, c = {
|
|
210
|
-
title: "Send receivable",
|
|
211
|
-
description: "Send this document to the customer by email.",
|
|
212
|
-
toLabel: "To",
|
|
213
|
-
ccLabel: "CC",
|
|
214
|
-
bccLabel: "BCC",
|
|
215
|
-
subjectLabel: "Subject",
|
|
216
|
-
bodyLabel: "Message",
|
|
217
|
-
cancelButton: "Cancel",
|
|
218
|
-
sendButton: "Send"
|
|
219
|
-
}, l = {
|
|
220
|
-
title: "Record payment",
|
|
221
|
-
description: "Record a full or partial invoice payment.",
|
|
222
|
-
modeLabel: "Payment type",
|
|
223
|
-
fullPayment: "Full payment",
|
|
224
|
-
partialPayment: "Partial payment",
|
|
225
|
-
amountPaidLabel: "Amount paid",
|
|
226
|
-
paidAtLabel: "Paid at",
|
|
227
|
-
commentLabel: "Comment",
|
|
228
|
-
cancelButton: "Cancel",
|
|
229
|
-
submitButton: "Record payment"
|
|
230
|
-
}, u = {
|
|
231
|
-
cancelButton: "Cancel",
|
|
232
|
-
confirmButton: "Confirm"
|
|
233
|
-
};
|
|
7
|
+
function s({ idPrefix: s, open: c, view: l, onSkip: u, onSubjectChange: d, onMessageChange: f, onSend: p, onToggleItem: m, onToggleAll: h, onAllSelectedChange: g, onSaveItems: _, labels: v }) {
|
|
8
|
+
let y = {
|
|
9
|
+
...n,
|
|
10
|
+
...v
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ a(e, {
|
|
13
|
+
open: c && !!l,
|
|
14
|
+
onOpenChange: (e) => {
|
|
15
|
+
e || u();
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ o(t, {
|
|
18
|
+
className: "ttw:gap-0 ttw:p-0 ttw:max-w-178 ttw:sm:max-w-178",
|
|
19
|
+
children: [l?.step === "issue" && /* @__PURE__ */ a(r, {
|
|
20
|
+
idPrefix: s,
|
|
21
|
+
view: l,
|
|
22
|
+
onSubjectChange: d,
|
|
23
|
+
onMessageChange: f,
|
|
24
|
+
onSkip: u,
|
|
25
|
+
onSend: p,
|
|
26
|
+
labels: y
|
|
27
|
+
}), l?.step === "products" && /* @__PURE__ */ a(i, {
|
|
28
|
+
view: l,
|
|
29
|
+
onToggleItem: m,
|
|
30
|
+
onToggleAll: h,
|
|
31
|
+
onAllSelectedChange: g,
|
|
32
|
+
onSkip: u,
|
|
33
|
+
onSave: _,
|
|
34
|
+
labels: y
|
|
35
|
+
})]
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
234
39
|
//#endregion
|
|
235
|
-
export {
|
|
40
|
+
export { s as ReceivableActionsModal };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.236", n = "e7d53b04c08b3368cfb75b582c3579f10705e1a4", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, Field as s, FieldContent as c, FieldLabel as l, Input as u, InputTags as d, Textarea as f, Typography as p } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as m } from "./index8.js";
|
|
3
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js
|
|
5
|
-
function _({ idPrefix: _, view: v, onOpenChange: y, onChange: b, onSave: x, labels: S }) {
|
|
6
|
-
let C = {
|
|
7
|
-
...m,
|
|
8
|
-
...S
|
|
9
|
-
}, w = {
|
|
10
|
-
to: `${_}-recipients-to`,
|
|
11
|
-
cc: `${_}-recipients-cc`,
|
|
12
|
-
bcc: `${_}-recipients-bcc`,
|
|
13
|
-
subject: `${_}-subject`,
|
|
14
|
-
message: `${_}-message`
|
|
15
|
-
};
|
|
16
|
-
return /* @__PURE__ */ h(t, {
|
|
17
|
-
open: v.open,
|
|
18
|
-
onOpenChange: y,
|
|
19
|
-
children: /* @__PURE__ */ g(n, {
|
|
20
|
-
className: "ttw:sm:max-w-lg",
|
|
21
|
-
children: [/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h(o, { children: C.recurrenceEmailTitle }), /* @__PURE__ */ h(r, { children: C.recurrenceEmailDescription })] }), v.ready && /* @__PURE__ */ g("form", {
|
|
22
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
23
|
-
onSubmit: (e) => {
|
|
24
|
-
e.preventDefault(), e.stopPropagation(), v.saveDisabled || x();
|
|
25
|
-
},
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
28
|
-
htmlFor: w.to,
|
|
29
|
-
children: C.recurrenceEmailTo
|
|
30
|
-
}), /* @__PURE__ */ h(d, {
|
|
31
|
-
id: w.to,
|
|
32
|
-
value: v.to,
|
|
33
|
-
onChange: (e) => b("to", e),
|
|
34
|
-
inputValue: v.toInput,
|
|
35
|
-
onInputValueChange: (e) => b("toInput", e),
|
|
36
|
-
removeTagLabel: v.removeRecipientLabel,
|
|
37
|
-
placeholder: v.showToPlaceholder ? C.recurrenceEmailRecipientPlaceholder : void 0
|
|
38
|
-
})] }) }),
|
|
39
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
40
|
-
htmlFor: w.cc,
|
|
41
|
-
children: C.recurrenceEmailCc
|
|
42
|
-
}), /* @__PURE__ */ h(d, {
|
|
43
|
-
id: w.cc,
|
|
44
|
-
value: v.cc,
|
|
45
|
-
onChange: (e) => b("cc", e),
|
|
46
|
-
inputValue: v.ccInput,
|
|
47
|
-
onInputValueChange: (e) => b("ccInput", e),
|
|
48
|
-
removeTagLabel: v.removeRecipientLabel
|
|
49
|
-
})] }) }),
|
|
50
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
51
|
-
htmlFor: w.bcc,
|
|
52
|
-
children: C.recurrenceEmailBcc
|
|
53
|
-
}), /* @__PURE__ */ h(d, {
|
|
54
|
-
id: w.bcc,
|
|
55
|
-
value: v.bcc,
|
|
56
|
-
onChange: (e) => b("bcc", e),
|
|
57
|
-
inputValue: v.bccInput,
|
|
58
|
-
onInputValueChange: (e) => b("bccInput", e),
|
|
59
|
-
removeTagLabel: v.removeRecipientLabel
|
|
60
|
-
})] }) }),
|
|
61
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
62
|
-
htmlFor: w.subject,
|
|
63
|
-
children: C.recurrenceEmailSubject
|
|
64
|
-
}), /* @__PURE__ */ h(u, {
|
|
65
|
-
id: w.subject,
|
|
66
|
-
value: v.subject,
|
|
67
|
-
onChange: (e) => b("subject", e.target.value)
|
|
68
|
-
})] }) }),
|
|
69
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
70
|
-
htmlFor: w.message,
|
|
71
|
-
children: C.recurrenceEmailMessage
|
|
72
|
-
}), /* @__PURE__ */ h(f, {
|
|
73
|
-
id: w.message,
|
|
74
|
-
rows: 5,
|
|
75
|
-
placeholder: C.recurrenceEmailMessagePlaceholder,
|
|
76
|
-
value: v.message,
|
|
77
|
-
onChange: (e) => b("message", e.target.value)
|
|
78
|
-
})] }) }),
|
|
79
|
-
/* @__PURE__ */ h(p, {
|
|
80
|
-
variant: "caption",
|
|
81
|
-
color: "muted",
|
|
82
|
-
children: C.recurrenceEmailFootnote
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ g(i, { children: [/* @__PURE__ */ h(e, {
|
|
85
|
-
type: "button",
|
|
86
|
-
variant: "outline",
|
|
87
|
-
onClick: () => y(!1),
|
|
88
|
-
children: C.recurrenceEmailCancel
|
|
89
|
-
}), /* @__PURE__ */ h(e, {
|
|
90
|
-
type: "submit",
|
|
91
|
-
disabled: v.saveDisabled,
|
|
92
|
-
children: C.recurrenceEmailSave
|
|
93
|
-
})] })
|
|
94
|
-
]
|
|
95
|
-
})]
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
export { _ as ReceivableRecurrenceEmailDialog, _ as default };
|