@tesouro/embedded-components-react 0.11.219 → 0.11.221
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 +11 -7
- package/dist/experimental/QuickViewWidget.d.ts +25 -13
- package/dist/experimental/index.d.ts +25 -13
- package/dist/index.css +394 -30
- package/dist/index.d.ts +24 -7
- package/dist/lib/AcceptDisclosuresWidget.d.ts +6 -2
- package/dist/lib/BankAccountsWidget.d.ts +4 -0
- package/dist/lib/BillPayWidget.d.ts +4 -3
- package/dist/lib/ExpenseManagementWidget.d.ts +7 -0
- package/dist/lib/ReceivablesWidget.d.ts +3 -2
- package/dist/lib/WidgetSuite.d.ts +13 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/resolveAcceptDisclosuresContent.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +27 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +61 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +28 -30
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +47 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +105 -97
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +66 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +73 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +42 -35
- package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/feature/dist/lib/BillsQuickViewWidget/BillsQuickViewWidgetFeature.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +119 -119
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index9.js +86 -77
- package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/FdicLogo.js +76 -72
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +49 -43
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +1 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +141 -124
- package/package.json +1 -1
|
@@ -3,40 +3,40 @@ import { InvoicesFilterField as e } from "./index3.js";
|
|
|
3
3
|
import { InvoicesFilterBar as t } from "./index4.js";
|
|
4
4
|
import "./index5.js";
|
|
5
5
|
import { INVOICING_TABS_LABELS_EN as n } from "./index6.js";
|
|
6
|
-
import {
|
|
6
|
+
import { InvoicingHeader as r, InvoicingTabs as i } from "./index7.js";
|
|
7
7
|
import "./index8.js";
|
|
8
8
|
import "./index9.js";
|
|
9
9
|
import "./index10.js";
|
|
10
|
-
import { ReceivableActionsModal as
|
|
10
|
+
import { ReceivableActionsModal as a } from "./index14.js";
|
|
11
11
|
import "./index15.js";
|
|
12
12
|
import "./index16.js";
|
|
13
13
|
import "./index17.js";
|
|
14
14
|
import "./index18.js";
|
|
15
15
|
import "./index19.js";
|
|
16
|
-
import { ReceivableActionDialog as
|
|
17
|
-
import { ReceivableBankAccountSection as
|
|
18
|
-
import { ReceivableAttachmentsSection as
|
|
19
|
-
import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as
|
|
20
|
-
import { ReceivableBillingSection as
|
|
16
|
+
import { ReceivableActionDialog as o } from "./index20.js";
|
|
17
|
+
import { ReceivableBankAccountSection as s } from "./index21.js";
|
|
18
|
+
import { ReceivableAttachmentsSection as c } from "./index22.js";
|
|
19
|
+
import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as l, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as u } from "./index25.js";
|
|
20
|
+
import { ReceivableBillingSection as d } from "./index26.js";
|
|
21
21
|
import "./index27.js";
|
|
22
|
-
import { ReceivableCustomerSection as
|
|
22
|
+
import { ReceivableCustomerSection as f } from "./index28.js";
|
|
23
23
|
import "./index29.js";
|
|
24
24
|
import "./index30.js";
|
|
25
|
-
import { RECEIVABLE_DETAILS_SECTION as
|
|
26
|
-
import { ReceivableDetailsPanel as
|
|
25
|
+
import { RECEIVABLE_DETAILS_SECTION as p } from "./index34.js";
|
|
26
|
+
import { ReceivableDetailsPanel as m } from "./index42.js";
|
|
27
27
|
import "./index43.js";
|
|
28
|
-
import { ReceivableFormDialog as
|
|
29
|
-
import { ReceivablePaymentDialog as
|
|
28
|
+
import { ReceivableFormDialog as h } from "./index46.js";
|
|
29
|
+
import { ReceivablePaymentDialog as g } from "./index47.js";
|
|
30
30
|
import "./index48.js";
|
|
31
|
-
import { ReceivablePreview as
|
|
31
|
+
import { ReceivablePreview as _ } from "./index51.js";
|
|
32
32
|
import "./index52.js";
|
|
33
|
-
import { ReceivableRecurrenceEmailDialog as
|
|
34
|
-
import { ReceivableRecurrenceSection as
|
|
33
|
+
import { ReceivableRecurrenceEmailDialog as v } from "./index53.js";
|
|
34
|
+
import { ReceivableRecurrenceSection as y } from "./index55.js";
|
|
35
35
|
import "./index56.js";
|
|
36
|
-
import { ReceivableRemindersSection as
|
|
37
|
-
import { ReceivablesScreen as
|
|
38
|
-
import { RECURRING_SERIES_SCREEN_LABELS_EN as
|
|
39
|
-
import { RecurringSeriesScreen as
|
|
36
|
+
import { ReceivableRemindersSection as b } from "./index57.js";
|
|
37
|
+
import { ReceivablesScreen as x } from "./index59.js";
|
|
38
|
+
import { RECURRING_SERIES_SCREEN_LABELS_EN as S } from "./index60.js";
|
|
39
|
+
import { RecurringSeriesScreen as C } from "./index61.js";
|
|
40
40
|
import "./index62.js";
|
|
41
|
-
import { UnsavedInvoiceDialog as
|
|
42
|
-
export { n as INVOICING_TABS_LABELS_EN, t as InvoicesFilterBar, e as InvoicesFilterField, r as InvoicingTabs,
|
|
41
|
+
import { UnsavedInvoiceDialog as w } from "./index63.js";
|
|
42
|
+
export { n as INVOICING_TABS_LABELS_EN, t as InvoicesFilterBar, e as InvoicesFilterField, r as InvoicingHeader, i as InvoicingTabs, p as RECEIVABLE_DETAILS_SECTION, l as RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE, u as RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE, S as RECURRING_SERIES_SCREEN_LABELS_EN, o as ReceivableActionDialog, a as ReceivableActionsModal, c as ReceivableAttachmentsSection, s as ReceivableBankAccountSection, d as ReceivableBillingSection, f as ReceivableCustomerSection, m as ReceivableDetailsPanel, h as ReceivableFormDialog, g as ReceivablePaymentDialog, _ as ReceivablePreview, v as ReceivableRecurrenceEmailDialog, y as ReceivableRecurrenceSection, b as ReceivableRemindersSection, x as ReceivablesScreen, C as RecurringSeriesScreen, w as UnsavedInvoiceDialog };
|
|
@@ -7,7 +7,7 @@ function b({ idPrefix: b, card: x, picker: S, create: C, disabled: w, inputRef:
|
|
|
7
7
|
let z = {
|
|
8
8
|
...f,
|
|
9
9
|
...R
|
|
10
|
-
}, B = `${b}-customer-name`, V = `${b}-customer-name-description`, H = `${b}-customer-name-error`, U = `${b}-customer-card-error`, W = `${b}-customer-email`, G = `${b}-customer-email-error`, K = S.open ? S.options.find((e) => e.value === S.highlightedValue) : void 0;
|
|
10
|
+
}, B = `${b}-customer-name`, V = `${b}-customer-name-description`, H = `${b}-customer-name-error`, U = `${b}-customer-card-error`, W = `${b}-customer-email`, G = `${b}-customer-email-error`, K = S.open ? S.options.find((e) => e.value === S.highlightedValue) : void 0, q = S.open && !w, J = q && S.options.length > 0, Y = q ? S.options.length ? S.moreText : S.emptyText : void 0;
|
|
11
11
|
return /* @__PURE__ */ h("div", {
|
|
12
12
|
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
|
|
13
13
|
children: [/* @__PURE__ */ h("div", {
|
|
@@ -81,57 +81,64 @@ function b({ idPrefix: b, card: x, picker: S, create: C, disabled: w, inputRef:
|
|
|
81
81
|
}),
|
|
82
82
|
/* @__PURE__ */ h("div", {
|
|
83
83
|
className: "ttw:relative ttw:w-full",
|
|
84
|
-
children: [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
S.isLoading ? /* @__PURE__ */ m(_, { className: "ttw:pointer-events-none ttw:ml-3 ttw:size-4 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ m(y, { className: "ttw:pointer-events-none ttw:ml-3 ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground" }),
|
|
88
|
-
/* @__PURE__ */ m("input", {
|
|
89
|
-
id: B,
|
|
90
|
-
ref: T,
|
|
91
|
-
role: "combobox",
|
|
92
|
-
"aria-autocomplete": "list",
|
|
93
|
-
"aria-expanded": S.open,
|
|
94
|
-
"aria-controls": S.listId,
|
|
95
|
-
"aria-activedescendant": K?.id,
|
|
96
|
-
"aria-invalid": !!S.error || void 0,
|
|
97
|
-
"aria-describedby": S.error ? `${V} ${H}` : V,
|
|
98
|
-
autoComplete: "off",
|
|
99
|
-
disabled: w,
|
|
100
|
-
placeholder: S.placeholder,
|
|
101
|
-
className: "ttw:h-full ttw:min-w-0 ttw:flex-1 ttw:bg-transparent ttw:pr-2 ttw:pl-2 ttw:text-base ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:md:text-sm",
|
|
102
|
-
value: S.inputValue,
|
|
103
|
-
onFocus: D,
|
|
104
|
-
onClick: D,
|
|
105
|
-
onBlur: O,
|
|
106
|
-
onChange: (e) => E(e.target.value),
|
|
107
|
-
onKeyDown: (e) => {
|
|
108
|
-
e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), A(e.key === "ArrowDown" ? "next" : "previous")) : e.key === "Enter" ? (e.preventDefault(), A("enter")) : e.key === "Tab" && S.open ? A("tab") : e.key === "Escape" && S.open && (e.stopPropagation(), A("escape"));
|
|
109
|
-
}
|
|
110
|
-
}),
|
|
111
|
-
/* @__PURE__ */ m("button", {
|
|
112
|
-
type: "button",
|
|
113
|
-
tabIndex: -1,
|
|
114
|
-
"aria-label": z.customerListToggleButton,
|
|
115
|
-
"aria-controls": S.listId,
|
|
116
|
-
"aria-expanded": S.open,
|
|
117
|
-
disabled: w,
|
|
118
|
-
className: "ttw:mr-[0.3rem] ttw:flex ttw:size-6 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:transition-all ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:disabled:pointer-events-none",
|
|
119
|
-
onMouseDown: (e) => e.preventDefault(),
|
|
120
|
-
onClick: k,
|
|
121
|
-
children: /* @__PURE__ */ m(g, { className: "ttw:pointer-events-none ttw:size-4" })
|
|
122
|
-
})
|
|
123
|
-
]
|
|
124
|
-
}), S.open && !w ? /* @__PURE__ */ m("div", {
|
|
125
|
-
role: "presentation",
|
|
126
|
-
className: d("ttw:absolute ttw:top-full ttw:left-0 ttw:z-50 ttw:mt-1.5 ttw:w-full ttw:overflow-hidden ttw:rounded-md ttw:bg-popover ttw:text-popover-foreground ttw:shadow-md ttw:ring-1 ttw:ring-foreground/10", !S.options.length && "ttw:pointer-events-none"),
|
|
127
|
-
onMouseDown: S.options.length ? (e) => e.preventDefault() : void 0,
|
|
128
|
-
children: /* @__PURE__ */ h("ul", {
|
|
129
|
-
id: S.listId,
|
|
130
|
-
role: "listbox",
|
|
131
|
-
"aria-labelledby": B,
|
|
132
|
-
className: "ttw:max-h-87 ttw:scroll-py-1 ttw:overflow-y-auto ttw:p-1",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ h("div", {
|
|
86
|
+
className: d("ttw:flex ttw:h-9 ttw:w-full ttw:min-w-0 ttw:items-center ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:has-[input:focus-visible]:border-ring ttw:has-[input:focus-visible]:ring-[3px] ttw:has-[input:focus-visible]:ring-ring/50 ttw:has-[[aria-invalid=true]]:border-destructive", w && "ttw:opacity-50"),
|
|
133
87
|
children: [
|
|
134
|
-
S.
|
|
88
|
+
S.isLoading ? /* @__PURE__ */ m(_, { className: "ttw:pointer-events-none ttw:ml-3 ttw:size-4 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ m(y, { className: "ttw:pointer-events-none ttw:ml-3 ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground" }),
|
|
89
|
+
/* @__PURE__ */ m("input", {
|
|
90
|
+
id: B,
|
|
91
|
+
ref: T,
|
|
92
|
+
role: "combobox",
|
|
93
|
+
"aria-autocomplete": "list",
|
|
94
|
+
"aria-expanded": J,
|
|
95
|
+
"aria-controls": J ? S.listId : void 0,
|
|
96
|
+
"aria-activedescendant": K?.id,
|
|
97
|
+
"aria-invalid": !!S.error || void 0,
|
|
98
|
+
"aria-describedby": S.error ? `${V} ${H}` : V,
|
|
99
|
+
autoComplete: "off",
|
|
100
|
+
disabled: w,
|
|
101
|
+
placeholder: S.placeholder,
|
|
102
|
+
className: "ttw:h-full ttw:min-w-0 ttw:flex-1 ttw:bg-transparent ttw:pr-2 ttw:pl-2 ttw:text-base ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:md:text-sm",
|
|
103
|
+
value: S.inputValue,
|
|
104
|
+
onFocus: D,
|
|
105
|
+
onClick: D,
|
|
106
|
+
onBlur: O,
|
|
107
|
+
onChange: (e) => E(e.target.value),
|
|
108
|
+
onKeyDown: (e) => {
|
|
109
|
+
e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), A(e.key === "ArrowDown" ? "next" : "previous")) : e.key === "Enter" ? (e.preventDefault(), A("enter")) : e.key === "Tab" && S.open ? A("tab") : e.key === "Escape" && S.open && (e.stopPropagation(), A("escape"));
|
|
110
|
+
}
|
|
111
|
+
}),
|
|
112
|
+
/* @__PURE__ */ m("button", {
|
|
113
|
+
type: "button",
|
|
114
|
+
tabIndex: -1,
|
|
115
|
+
"aria-label": z.customerListToggleButton,
|
|
116
|
+
"aria-controls": J ? S.listId : void 0,
|
|
117
|
+
"aria-expanded": J,
|
|
118
|
+
disabled: w,
|
|
119
|
+
className: "ttw:mr-[0.3rem] ttw:flex ttw:size-6 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:transition-all ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:disabled:pointer-events-none",
|
|
120
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
121
|
+
onClick: k,
|
|
122
|
+
children: /* @__PURE__ */ m(g, { className: "ttw:pointer-events-none ttw:size-4" })
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ m("div", {
|
|
127
|
+
role: "status",
|
|
128
|
+
className: "ttw:sr-only",
|
|
129
|
+
children: Y
|
|
130
|
+
}),
|
|
131
|
+
q ? /* @__PURE__ */ h("div", {
|
|
132
|
+
role: "presentation",
|
|
133
|
+
className: d("ttw:absolute ttw:top-full ttw:left-0 ttw:z-50 ttw:mt-1.5 ttw:w-full ttw:overflow-hidden ttw:rounded-md ttw:bg-popover ttw:text-popover-foreground ttw:shadow-md ttw:ring-1 ttw:ring-foreground/10", !S.options.length && "ttw:pointer-events-none"),
|
|
134
|
+
onMouseDown: S.options.length ? (e) => e.preventDefault() : void 0,
|
|
135
|
+
children: [/* @__PURE__ */ m("ul", {
|
|
136
|
+
id: S.listId,
|
|
137
|
+
role: "listbox",
|
|
138
|
+
"aria-labelledby": B,
|
|
139
|
+
className: "ttw:max-h-87 ttw:scroll-py-1 ttw:overflow-y-auto ttw:p-1",
|
|
140
|
+
hidden: !S.options.length,
|
|
141
|
+
children: S.options.map((e) => /* @__PURE__ */ h("li", {
|
|
135
142
|
id: e.id,
|
|
136
143
|
role: "option",
|
|
137
144
|
"aria-selected": e === K,
|
|
@@ -145,18 +152,14 @@ function b({ idPrefix: b, card: x, picker: S, create: C, disabled: w, inputRef:
|
|
|
145
152
|
className: "ttw:min-w-0 ttw:truncate ttw:text-muted-foreground",
|
|
146
153
|
children: e.email
|
|
147
154
|
})]
|
|
148
|
-
}, e.value))
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}) : null
|
|
157
|
-
]
|
|
158
|
-
})
|
|
159
|
-
}) : null]
|
|
155
|
+
}, e.value))
|
|
156
|
+
}), Y ? /* @__PURE__ */ m("p", {
|
|
157
|
+
"aria-hidden": !0,
|
|
158
|
+
className: "ttw:m-0 ttw:py-2 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
159
|
+
children: Y
|
|
160
|
+
}) : null]
|
|
161
|
+
}) : null
|
|
162
|
+
]
|
|
160
163
|
}),
|
|
161
164
|
/* @__PURE__ */ m(a, {
|
|
162
165
|
id: V,
|
|
@@ -4,15 +4,9 @@ import { ReceivableFormTotals as te } from "./index44.js";
|
|
|
4
4
|
import { ReceivableNotesSection as T } from "./index45.js";
|
|
5
5
|
import { useId as ne } from "react";
|
|
6
6
|
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
7
|
-
import { CircleAlertIcon as
|
|
7
|
+
import { CircleAlertIcon as re, MinusIcon as O, PlusIcon as k, Trash2Icon as A, XIcon as j } from "lucide-react";
|
|
8
8
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js
|
|
9
|
-
var
|
|
10
|
-
function re({ message: e }) {
|
|
11
|
-
return e ? /* @__PURE__ */ E("p", {
|
|
12
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
13
|
-
children: e
|
|
14
|
-
}) : null;
|
|
15
|
-
}
|
|
9
|
+
var M = "__none__", N = "__manage__", P = "ttw:flex ttw:h-9 ttw:min-w-0 ttw:items-center ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:has-[input:focus-visible]:border-ring ttw:has-[input:focus-visible]:ring-[3px] ttw:has-[input:focus-visible]:ring-ring/50 ttw:has-[[aria-invalid=true]]:border-destructive", F = "ttw:h-full ttw:min-w-0 ttw:flex-1 ttw:bg-transparent ttw:text-right ttw:text-base ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:md:text-sm", I = "ttw:flex ttw:items-center ttw:text-sm ttw:font-medium ttw:text-muted-foreground ttw:select-none", L = "ttw:flex ttw:size-6 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:outline-none ttw:transition-all ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:disabled:pointer-events-none ttw:disabled:opacity-50";
|
|
16
10
|
function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, canRemove: s, unitOptions: c, currencySymbol: l, labels: u, renderProductSelector: d, onChange: f, onCommit: p, onQuantityStep: m, onManageUnits: h, onRemove: x }) {
|
|
17
11
|
let S = `${e}-line-${t.id}`;
|
|
18
12
|
return /* @__PURE__ */ D("li", {
|
|
@@ -27,15 +21,15 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
|
|
|
27
21
|
})
|
|
28
22
|
}),
|
|
29
23
|
/* @__PURE__ */ D("div", {
|
|
30
|
-
className: w(
|
|
24
|
+
className: w(P, "ttw:w-26 ttw:min-w-26 ttw:px-[0.3rem]"),
|
|
31
25
|
children: [
|
|
32
26
|
/* @__PURE__ */ E("button", {
|
|
33
27
|
type: "button",
|
|
34
28
|
"aria-label": u.decreaseQuantityButton,
|
|
35
29
|
disabled: a ? !a.canDecreaseQuantity : !1,
|
|
36
|
-
className:
|
|
30
|
+
className: L,
|
|
37
31
|
onClick: () => m(-1),
|
|
38
|
-
children: /* @__PURE__ */ E(
|
|
32
|
+
children: /* @__PURE__ */ E(O, { className: "ttw:size-3.5" })
|
|
39
33
|
}),
|
|
40
34
|
/* @__PURE__ */ E("input", {
|
|
41
35
|
id: `${S}-quantity`,
|
|
@@ -52,16 +46,16 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
|
|
|
52
46
|
type: "button",
|
|
53
47
|
"aria-label": u.increaseQuantityButton,
|
|
54
48
|
disabled: a ? !a.canIncreaseQuantity : !1,
|
|
55
|
-
className:
|
|
49
|
+
className: L,
|
|
56
50
|
onClick: () => m(1),
|
|
57
|
-
children: /* @__PURE__ */ E(
|
|
51
|
+
children: /* @__PURE__ */ E(k, { className: "ttw:size-3.5" })
|
|
58
52
|
})
|
|
59
53
|
]
|
|
60
54
|
}),
|
|
61
55
|
/* @__PURE__ */ E("div", { children: /* @__PURE__ */ D(g, {
|
|
62
|
-
value: t.unit ||
|
|
56
|
+
value: t.unit || M,
|
|
63
57
|
onValueChange: (e) => {
|
|
64
|
-
e ===
|
|
58
|
+
e === N ? h?.() : f({ unit: e === M ? "" : e });
|
|
65
59
|
},
|
|
66
60
|
children: [/* @__PURE__ */ E(y, {
|
|
67
61
|
id: `${S}-unit`,
|
|
@@ -74,12 +68,12 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
|
|
|
74
68
|
})
|
|
75
69
|
}), /* @__PURE__ */ D(_, { children: [
|
|
76
70
|
h && /* @__PURE__ */ D(v, {
|
|
77
|
-
value:
|
|
71
|
+
value: N,
|
|
78
72
|
className: "ttw:font-semibold ttw:text-primary ttw:hover:text-primary ttw:focus:text-primary",
|
|
79
|
-
children: [/* @__PURE__ */ E(
|
|
73
|
+
children: [/* @__PURE__ */ E(k, { className: "ttw:text-primary" }), u.manageUnitsOption]
|
|
80
74
|
}),
|
|
81
75
|
/* @__PURE__ */ E(v, {
|
|
82
|
-
value:
|
|
76
|
+
value: M,
|
|
83
77
|
children: u.unitNone
|
|
84
78
|
}),
|
|
85
79
|
c.map((e) => /* @__PURE__ */ E(v, {
|
|
@@ -89,9 +83,9 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
|
|
|
89
83
|
] })]
|
|
90
84
|
}) }),
|
|
91
85
|
/* @__PURE__ */ D("div", {
|
|
92
|
-
className: w(
|
|
86
|
+
className: w(P, "ttw:w-full ttw:max-w-41 ttw:min-w-29"),
|
|
93
87
|
children: [/* @__PURE__ */ E("span", {
|
|
94
|
-
className: w(
|
|
88
|
+
className: w(I, "ttw:pl-3"),
|
|
95
89
|
children: l
|
|
96
90
|
}), /* @__PURE__ */ E("input", {
|
|
97
91
|
id: `${S}-price`,
|
|
@@ -99,7 +93,7 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
|
|
|
99
93
|
"aria-invalid": !!i?.price || void 0,
|
|
100
94
|
type: "text",
|
|
101
95
|
inputMode: "decimal",
|
|
102
|
-
className: w(
|
|
96
|
+
className: w(F, "ttw:pr-3 ttw:pl-2"),
|
|
103
97
|
value: t.price,
|
|
104
98
|
onChange: (e) => f({ price: e.target.value }),
|
|
105
99
|
onBlur: () => p("price")
|
|
@@ -121,7 +115,7 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
|
|
|
121
115
|
"aria-label": u.removeLineItemButton,
|
|
122
116
|
className: "ttw:w-10 ttw:rounded-none ttw:border-l ttw:border-border ttw:pl-4 ttw:text-muted-foreground ttw:hover:bg-transparent ttw:hover:text-destructive ttw:has-[>svg]:pr-0",
|
|
123
117
|
onClick: x,
|
|
124
|
-
children: /* @__PURE__ */ E(
|
|
118
|
+
children: /* @__PURE__ */ E(A, {})
|
|
125
119
|
})
|
|
126
120
|
]
|
|
127
121
|
});
|
|
@@ -145,9 +139,9 @@ function ae({ inputId: e, discountType: t, value: n, error: r, currencySymbol: i
|
|
|
145
139
|
className: w(r && "ttw:text-destructive"),
|
|
146
140
|
children: o.discountLabel
|
|
147
141
|
}), /* @__PURE__ */ D("div", {
|
|
148
|
-
className: w(
|
|
142
|
+
className: w(P, "ttw:w-40 ttw:overflow-hidden"),
|
|
149
143
|
children: [/* @__PURE__ */ E("div", {
|
|
150
|
-
className: w(
|
|
144
|
+
className: w(I, "ttw:items-stretch ttw:self-stretch"),
|
|
151
145
|
children: g.map((e) => /* @__PURE__ */ E("button", {
|
|
152
146
|
type: "button",
|
|
153
147
|
"aria-label": e.ariaLabel,
|
|
@@ -161,7 +155,7 @@ function ae({ inputId: e, discountType: t, value: n, error: r, currencySymbol: i
|
|
|
161
155
|
id: e,
|
|
162
156
|
type: "text",
|
|
163
157
|
inputMode: "decimal",
|
|
164
|
-
className: w(
|
|
158
|
+
className: w(F, "ttw:pr-3 ttw:pl-2"),
|
|
165
159
|
"aria-invalid": !!r || void 0,
|
|
166
160
|
"aria-describedby": r ? h : void 0,
|
|
167
161
|
disabled: a,
|
|
@@ -178,10 +172,10 @@ function ae({ inputId: e, discountType: t, value: n, error: r, currencySymbol: i
|
|
|
178
172
|
})]
|
|
179
173
|
});
|
|
180
174
|
}
|
|
181
|
-
function
|
|
175
|
+
function R({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors: y, unitOptions: b, currencySymbol: O, lineItemControls: A, autoFocusLineItemId: M, lineItemsLoading: N, inProgress: L, customerSection: R, renderProductSelector: z, onChange: B, onLineItemChange: V, onLineItemCommit: H, onLineItemQuantityStep: U, onTaxRateCommit: W, onDiscountFocus: G, onDiscountCommit: K, totals: q, onManageUnits: J, onAddLineItem: oe, onRemoveLineItem: se, showDueDateField: ce, billingSection: le, bankAccountSection: ue, attachmentsSection: de, preview: fe, closeDisabled: pe, cancelDisabled: me, draftButtonLabel: Y, draftDisabled: X, draftLoading: he, primaryButtonLabel: ge, primaryDisabled: _e, primaryLoading: ve, scrollContainerRef: ye, onSubmit: be, onDraftClick: Z, onPrimaryClick: xe, labels: Se }) {
|
|
182
176
|
let Q = {
|
|
183
177
|
...ee,
|
|
184
|
-
...
|
|
178
|
+
...Se
|
|
185
179
|
}, $ = ne();
|
|
186
180
|
return /* @__PURE__ */ E(i, {
|
|
187
181
|
open: r,
|
|
@@ -213,21 +207,21 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
213
207
|
variant: "ghost",
|
|
214
208
|
className: "ttw:p-2 ttw:has-[>svg]:px-2",
|
|
215
209
|
"aria-label": Q.closeButton,
|
|
216
|
-
disabled:
|
|
210
|
+
disabled: pe,
|
|
217
211
|
onClick: g,
|
|
218
|
-
children: /* @__PURE__ */ E(
|
|
212
|
+
children: /* @__PURE__ */ E(j, { className: "ttw:size-6.5" })
|
|
219
213
|
})]
|
|
220
214
|
}), /* @__PURE__ */ D("div", {
|
|
221
215
|
className: "ttw:flex ttw:min-h-0 ttw:flex-1",
|
|
222
216
|
children: [/* @__PURE__ */ D("div", {
|
|
223
|
-
ref:
|
|
217
|
+
ref: ye,
|
|
224
218
|
className: "ttw:h-full ttw:min-h-0 ttw:w-1/2 ttw:overflow-auto ttw:px-8 ttw:pt-6",
|
|
225
219
|
children: [/* @__PURE__ */ D("form", {
|
|
226
220
|
id: $,
|
|
227
221
|
noValidate: !0,
|
|
228
222
|
className: "ttw:pb-10",
|
|
229
223
|
onSubmit: (e) => {
|
|
230
|
-
e.preventDefault(), e.stopPropagation(),
|
|
224
|
+
e.preventDefault(), e.stopPropagation(), be();
|
|
231
225
|
},
|
|
232
226
|
children: [/* @__PURE__ */ E("button", {
|
|
233
227
|
type: "submit",
|
|
@@ -239,8 +233,8 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
239
233
|
}), /* @__PURE__ */ D("div", {
|
|
240
234
|
className: "ttw:flex ttw:flex-col ttw:gap-8",
|
|
241
235
|
children: [
|
|
242
|
-
|
|
243
|
-
|
|
236
|
+
R,
|
|
237
|
+
ce && /* @__PURE__ */ E("div", {
|
|
244
238
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
245
239
|
children: /* @__PURE__ */ D("div", {
|
|
246
240
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
@@ -253,13 +247,18 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
253
247
|
id: `${$}-due-date`,
|
|
254
248
|
type: "date",
|
|
255
249
|
value: v.dueDate,
|
|
256
|
-
|
|
250
|
+
"aria-invalid": !!y?.dueDate || void 0,
|
|
251
|
+
"aria-describedby": y?.dueDate ? `${$}-due-date-error` : void 0,
|
|
252
|
+
onChange: (e) => B({ dueDate: e.target.value })
|
|
257
253
|
}),
|
|
258
|
-
/* @__PURE__ */ E(
|
|
254
|
+
y?.dueDate && /* @__PURE__ */ E(f, {
|
|
255
|
+
id: `${$}-due-date-error`,
|
|
256
|
+
children: y.dueDate
|
|
257
|
+
})
|
|
259
258
|
]
|
|
260
259
|
})
|
|
261
260
|
}),
|
|
262
|
-
|
|
261
|
+
le,
|
|
263
262
|
/* @__PURE__ */ D("div", {
|
|
264
263
|
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
|
|
265
264
|
children: [
|
|
@@ -278,7 +277,7 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
278
277
|
y?.lineItemsSummary?.length ? /* @__PURE__ */ D(e, {
|
|
279
278
|
variant: "destructive",
|
|
280
279
|
className: "ttw:flex ttw:mb-2",
|
|
281
|
-
children: [/* @__PURE__ */ E(
|
|
280
|
+
children: [/* @__PURE__ */ E(re, {}), /* @__PURE__ */ E(t, { children: /* @__PURE__ */ E("ul", { children: y.lineItemsSummary.map((e) => /* @__PURE__ */ E("li", { children: e }, e)) }) })]
|
|
282
281
|
}) : null,
|
|
283
282
|
/* @__PURE__ */ D("ul", {
|
|
284
283
|
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
@@ -308,46 +307,46 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
308
307
|
}),
|
|
309
308
|
v.lineItems.length > 1 && /* @__PURE__ */ E("span", { className: "ttw:w-10 ttw:min-w-10" })
|
|
310
309
|
]
|
|
311
|
-
}),
|
|
310
|
+
}), N ? /* @__PURE__ */ E("li", {
|
|
312
311
|
className: "ttw:flex ttw:h-9 ttw:items-center ttw:justify-center",
|
|
313
312
|
children: /* @__PURE__ */ E(S, { className: "ttw:size-5" })
|
|
314
313
|
}) : v.lineItems.map((e) => /* @__PURE__ */ E(ie, {
|
|
315
314
|
formId: $,
|
|
316
315
|
lineItem: e,
|
|
317
316
|
errors: y?.lineItems?.[e.id],
|
|
318
|
-
controls:
|
|
319
|
-
focusOnMount: e.id ===
|
|
317
|
+
controls: A?.[e.id],
|
|
318
|
+
focusOnMount: e.id === M,
|
|
320
319
|
canRemove: v.lineItems.length > 1,
|
|
321
320
|
unitOptions: b,
|
|
322
|
-
currencySymbol:
|
|
321
|
+
currencySymbol: O,
|
|
323
322
|
labels: Q,
|
|
324
|
-
renderProductSelector:
|
|
325
|
-
onChange: (t) =>
|
|
326
|
-
onCommit: (t) =>
|
|
327
|
-
onQuantityStep: (t) =>
|
|
328
|
-
onManageUnits:
|
|
329
|
-
onRemove: () =>
|
|
323
|
+
renderProductSelector: z,
|
|
324
|
+
onChange: (t) => V(e.id, t),
|
|
325
|
+
onCommit: (t) => H(e.id, t),
|
|
326
|
+
onQuantityStep: (t) => U(e.id, t),
|
|
327
|
+
onManageUnits: J,
|
|
328
|
+
onRemove: () => se(e.id)
|
|
330
329
|
}, e.id))]
|
|
331
330
|
}),
|
|
332
331
|
/* @__PURE__ */ D(n, {
|
|
333
332
|
type: "button",
|
|
334
333
|
variant: "ghost",
|
|
335
334
|
className: "ttw:w-fit ttw:text-primary ttw:hover:text-primary",
|
|
336
|
-
onClick:
|
|
337
|
-
children: [/* @__PURE__ */ E(
|
|
335
|
+
onClick: oe,
|
|
336
|
+
children: [/* @__PURE__ */ E(k, { className: "ttw:size-5 ttw:text-primary" }), Q.addLineItemButton]
|
|
338
337
|
}),
|
|
339
338
|
/* @__PURE__ */ E(ae, {
|
|
340
339
|
inputId: `${$}-discount`,
|
|
341
340
|
discountType: v.discountType,
|
|
342
341
|
value: v.discount,
|
|
343
342
|
error: y?.discount,
|
|
344
|
-
currencySymbol:
|
|
345
|
-
disabled:
|
|
343
|
+
currencySymbol: O,
|
|
344
|
+
disabled: L,
|
|
346
345
|
labels: Q,
|
|
347
|
-
onChange: (e) =>
|
|
348
|
-
onTypeChange: (e) =>
|
|
349
|
-
onFocus:
|
|
350
|
-
onBlur:
|
|
346
|
+
onChange: (e) => B({ discount: e }),
|
|
347
|
+
onTypeChange: (e) => B({ discountType: e }),
|
|
348
|
+
onFocus: G,
|
|
349
|
+
onBlur: K
|
|
351
350
|
}),
|
|
352
351
|
/* @__PURE__ */ D(u, {
|
|
353
352
|
className: "ttw:flex-col",
|
|
@@ -358,20 +357,20 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
358
357
|
className: w(y?.taxRate && "ttw:text-destructive"),
|
|
359
358
|
children: Q.taxRateLabel
|
|
360
359
|
}), /* @__PURE__ */ D("div", {
|
|
361
|
-
className: w(
|
|
360
|
+
className: w(P, "ttw:w-40"),
|
|
362
361
|
children: [/* @__PURE__ */ E("input", {
|
|
363
362
|
id: `${$}-tax-rate`,
|
|
364
|
-
className: w(
|
|
363
|
+
className: w(F, "ttw:pl-3"),
|
|
365
364
|
placeholder: Q.taxRatePlaceholder,
|
|
366
365
|
type: "text",
|
|
367
366
|
inputMode: "decimal",
|
|
368
367
|
"aria-invalid": !!y?.taxRate || void 0,
|
|
369
368
|
"aria-describedby": y?.taxRate ? `${$}-tax-rate-error` : void 0,
|
|
370
369
|
value: v.taxRate,
|
|
371
|
-
onChange: (e) =>
|
|
372
|
-
onBlur:
|
|
370
|
+
onChange: (e) => B({ taxRate: e.target.value }),
|
|
371
|
+
onBlur: W
|
|
373
372
|
}), /* @__PURE__ */ E("span", {
|
|
374
|
-
className: w(
|
|
373
|
+
className: w(I, "ttw:pr-3"),
|
|
375
374
|
children: Q.taxRateSuffix
|
|
376
375
|
})]
|
|
377
376
|
})]
|
|
@@ -383,24 +382,24 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
383
382
|
}),
|
|
384
383
|
/* @__PURE__ */ E(x, {}),
|
|
385
384
|
/* @__PURE__ */ E(te, {
|
|
386
|
-
totals:
|
|
385
|
+
totals: q,
|
|
387
386
|
labels: Q
|
|
388
387
|
})
|
|
389
388
|
]
|
|
390
389
|
}),
|
|
391
|
-
|
|
390
|
+
ue,
|
|
392
391
|
/* @__PURE__ */ E(T, {
|
|
393
392
|
idPrefix: $,
|
|
394
393
|
openingNote: v.openingNote,
|
|
395
394
|
closingNote: v.closingNote,
|
|
396
395
|
openingNoteError: y?.openingNote,
|
|
397
396
|
closingNoteError: y?.closingNote,
|
|
398
|
-
disabled:
|
|
399
|
-
onOpeningNoteChange: (e) =>
|
|
400
|
-
onClosingNoteChange: (e) =>
|
|
397
|
+
disabled: L,
|
|
398
|
+
onOpeningNoteChange: (e) => B({ openingNote: e }),
|
|
399
|
+
onClosingNoteChange: (e) => B({ closingNote: e }),
|
|
401
400
|
labels: Q
|
|
402
401
|
}),
|
|
403
|
-
|
|
402
|
+
de
|
|
404
403
|
]
|
|
405
404
|
})]
|
|
406
405
|
}), /* @__PURE__ */ D(s, {
|
|
@@ -409,7 +408,7 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
409
408
|
/* @__PURE__ */ E(n, {
|
|
410
409
|
type: "button",
|
|
411
410
|
variant: "ghost",
|
|
412
|
-
disabled:
|
|
411
|
+
disabled: me,
|
|
413
412
|
onClick: g,
|
|
414
413
|
children: Q.cancelButton
|
|
415
414
|
}),
|
|
@@ -417,7 +416,7 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
417
416
|
type: "submit",
|
|
418
417
|
form: $,
|
|
419
418
|
variant: "secondary",
|
|
420
|
-
loading:
|
|
419
|
+
loading: he,
|
|
421
420
|
disabled: X,
|
|
422
421
|
onClick: Z,
|
|
423
422
|
children: Y
|
|
@@ -425,19 +424,19 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
425
424
|
/* @__PURE__ */ E(n, {
|
|
426
425
|
type: "submit",
|
|
427
426
|
form: $,
|
|
428
|
-
loading:
|
|
429
|
-
disabled:
|
|
430
|
-
onClick:
|
|
431
|
-
children:
|
|
427
|
+
loading: ve,
|
|
428
|
+
disabled: _e,
|
|
429
|
+
onClick: xe,
|
|
430
|
+
children: ge
|
|
432
431
|
})
|
|
433
432
|
]
|
|
434
433
|
})]
|
|
435
434
|
}), /* @__PURE__ */ E("div", {
|
|
436
435
|
className: "ttw:h-full ttw:min-h-0 ttw:w-1/2 ttw:overflow-auto ttw:bg-muted",
|
|
437
|
-
children:
|
|
436
|
+
children: fe
|
|
438
437
|
})]
|
|
439
438
|
})]
|
|
440
439
|
})
|
|
441
440
|
});
|
|
442
441
|
}
|
|
443
|
-
export {
|
|
442
|
+
export { R as ReceivableFormDialog, R as default };
|
|
@@ -17,6 +17,7 @@ var e = {
|
|
|
17
17
|
amountColumn: "Amount",
|
|
18
18
|
noItems: "No items",
|
|
19
19
|
payOnline: "Pay online",
|
|
20
|
-
paymentQrCodeLabel: "Sample payment QR code"
|
|
20
|
+
paymentQrCodeLabel: "Sample payment QR code",
|
|
21
|
+
previewRegionLabel: "Invoice preview"
|
|
21
22
|
};
|
|
22
23
|
export { e as RECEIVABLE_PREVIEW_LABELS_EN };
|
|
@@ -4,7 +4,7 @@ import { PreviewLines as n } from "./index49.js";
|
|
|
4
4
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import { ArrowRightIcon as o } from "lucide-react";
|
|
6
6
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js
|
|
7
|
-
var s = "ttw:text-
|
|
7
|
+
var s = "ttw:text-muted-foreground", c = "ttw:bg-[#f2f2f2]", l = e(c, "ttw:m-0 ttw:rounded ttw:px-[0.554rem] ttw:py-[0.2775rem] ttw:text-[length:inherit] ttw:leading-[1.333] ttw:font-medium"), u = "ttw:border-b ttw:border-[#e6e6e6] ttw:p-[0.554rem] ttw:align-top", d = "ttw:px-[0.554rem] ttw:py-[0.2775rem] ttw:text-left ttw:leading-[1.333] ttw:font-bold";
|
|
8
8
|
function f({ value: t, pendingLabel: n }) {
|
|
9
9
|
return t.kind === "pending" ? /* @__PURE__ */ i("span", {
|
|
10
10
|
className: e(s, "ttw:italic"),
|
|
@@ -47,6 +47,9 @@ function p({ view: p, labels: m }) {
|
|
|
47
47
|
}] : []
|
|
48
48
|
];
|
|
49
49
|
return /* @__PURE__ */ i("div", {
|
|
50
|
+
role: "region",
|
|
51
|
+
"aria-label": h.previewRegionLabel,
|
|
52
|
+
tabIndex: 0,
|
|
50
53
|
className: "ttw:relative ttw:flex ttw:h-full ttw:min-h-0 ttw:w-full ttw:overflow-auto ttw:bg-muted ttw:p-12 ttw:[align-items:safe_center] ttw:[justify-content:safe_center] ttw:[transform:translateZ(0)]",
|
|
51
54
|
children: /* @__PURE__ */ i("div", {
|
|
52
55
|
className: "ttw:aspect-[8.5/11] ttw:min-h-[1056px] ttw:w-full ttw:max-w-[8.5in] ttw:min-w-[816px] ttw:shrink-0 ttw:overflow-hidden ttw:bg-white ttw:shadow-md",
|