@tesouro/embedded-components-react 0.2.254 → 0.2.256
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/dist/core.js +1 -1
- package/dist/index.css +15 -0
- package/dist/index.js +2 -2
- package/dist/lib/BillPayWidget.d.ts +151 -151
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/InsightsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +119 -121
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +75 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +166 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +99 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +85 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +112 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +51 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +235 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +106 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +35 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +36 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +74 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +15 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +83 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +205 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +89 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +131 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +45 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +149 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +73 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +145 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +93 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +88 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +62 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +13 -62
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +66 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +11 -109
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +113 -21
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useSubEntityForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +232 -220
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +171 -138
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/client/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/core/bodySerializer.gen.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +404 -293
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +6 -3
- 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/monite-wrapper/feature/dist/lib/MoniteWrapper.js +75 -45
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useProductForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index3.js → lib/amountOutputToMajorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index14.js → lib/apiErrors.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index2.js → lib/coerceAmountValueToMinorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index4.js → lib/formatMoneyExact.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index5.js → lib/formatPhoneDisplay.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index6.js → lib/getInitials.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index7.js → lib/normalizeAmountOutputCurrencyCode.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index8.js → lib/parseAmountOutputMajorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index9.js → lib/parseDecimalAmountToMinorUnits.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index10.js → lib/sumAmountOutputsMajorUnits.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index11.js → lib/usStates.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index13.js → lib/widgetDomEvents.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index12.js → lib/widgetTokenManager.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +3593 -3582
- package/package.json +1 -1
|
@@ -1,3 +1,83 @@
|
|
|
1
|
-
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "
|
|
3
|
-
import "react
|
|
1
|
+
import { Input as e, Label as t, Select as n, SelectContent as r, SelectItem as i, SelectTrigger as a, SelectValue as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_FORM_FIELDS_LABELS_EN as s } from "./index12.js";
|
|
3
|
+
import { useId as c } from "react";
|
|
4
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js
|
|
6
|
+
var d = "__tesouro_no_payment_terms__";
|
|
7
|
+
function f({ values: f, errors: p, onChange: m, paymentTermOptions: h = [], testId: g, labels: _ }) {
|
|
8
|
+
let v = {
|
|
9
|
+
...s,
|
|
10
|
+
..._
|
|
11
|
+
}, y = c(), b = (n, r, i) => {
|
|
12
|
+
let a = `${y}-${n}`, o = `${a}-error`, s = p?.[n];
|
|
13
|
+
return /* @__PURE__ */ u("div", {
|
|
14
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ l(t, {
|
|
17
|
+
htmlFor: a,
|
|
18
|
+
children: r
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ l(e, {
|
|
21
|
+
id: a,
|
|
22
|
+
type: i,
|
|
23
|
+
value: f[n],
|
|
24
|
+
"aria-invalid": s ? !0 : void 0,
|
|
25
|
+
"aria-describedby": s ? o : void 0,
|
|
26
|
+
onChange: (e) => m({ [n]: e.target.value })
|
|
27
|
+
}),
|
|
28
|
+
s ? /* @__PURE__ */ l("p", {
|
|
29
|
+
id: o,
|
|
30
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
31
|
+
children: s
|
|
32
|
+
}) : null
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
}, x = `${y}-paymentTerms`, S = `${x}-error`, C = p?.paymentTerms;
|
|
36
|
+
return /* @__PURE__ */ u("div", {
|
|
37
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
38
|
+
"data-testid": g,
|
|
39
|
+
children: [
|
|
40
|
+
b("invoiceNumber", v.invoiceNumber),
|
|
41
|
+
/* @__PURE__ */ u("div", {
|
|
42
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
43
|
+
children: [b("invoiceDate", v.invoiceDate, "date"), b("dueDate", v.dueDate, "date")]
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ u("div", {
|
|
46
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
47
|
+
children: [/* @__PURE__ */ u("div", {
|
|
48
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ l(t, {
|
|
51
|
+
htmlFor: x,
|
|
52
|
+
children: v.paymentTerms
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ u(n, {
|
|
55
|
+
value: f.paymentTerms || d,
|
|
56
|
+
onValueChange: (e) => m({ paymentTerms: e === d ? "" : e }),
|
|
57
|
+
children: [/* @__PURE__ */ l(a, {
|
|
58
|
+
id: x,
|
|
59
|
+
className: "ttw:w-full",
|
|
60
|
+
"aria-invalid": C ? !0 : void 0,
|
|
61
|
+
"aria-describedby": C ? S : void 0,
|
|
62
|
+
children: /* @__PURE__ */ l(o, { placeholder: v.paymentTermsPlaceholder })
|
|
63
|
+
}), /* @__PURE__ */ u(r, { children: [/* @__PURE__ */ l(i, {
|
|
64
|
+
value: d,
|
|
65
|
+
children: v.paymentTermsNone
|
|
66
|
+
}), h.map((e) => /* @__PURE__ */ l(i, {
|
|
67
|
+
value: e.value,
|
|
68
|
+
children: e.label
|
|
69
|
+
}, e.value))] })]
|
|
70
|
+
}),
|
|
71
|
+
C ? /* @__PURE__ */ l("p", {
|
|
72
|
+
id: S,
|
|
73
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
74
|
+
children: C
|
|
75
|
+
}) : null
|
|
76
|
+
]
|
|
77
|
+
}), b("poNumber", v.poNumber)]
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { f as BillFormFields, f as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js
|
|
2
|
+
var e = {
|
|
3
|
+
heading: "Line items",
|
|
4
|
+
helpText: "Enter a single amount for this payment, or split it into line items to assign a GL code to each one.",
|
|
5
|
+
description: "Description",
|
|
6
|
+
descriptionPlaceholder: "e.g., Office supplies",
|
|
7
|
+
glCode: "GL code (optional)",
|
|
8
|
+
glCodePlaceholder: "Select",
|
|
9
|
+
quantity: "Quantity",
|
|
10
|
+
price: "Price",
|
|
11
|
+
amount: "Amount",
|
|
12
|
+
addLineItem: "+ Add line item",
|
|
13
|
+
increaseQuantity: (e) => `Increase quantity — line item ${e}`,
|
|
14
|
+
decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
|
|
15
|
+
removeLineItem: (e) => `Remove line item ${e}`
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { e as LINE_ITEMS_SECTION_LABELS_EN };
|
|
@@ -1,4 +1,205 @@
|
|
|
1
|
-
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "
|
|
3
|
-
import "react
|
|
4
|
-
import "
|
|
1
|
+
import { Button as e, Input as t, Label as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s, Typography as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { LINE_ITEMS_SECTION_LABELS_EN as l } from "./index15.js";
|
|
3
|
+
import { useId as u } from "react";
|
|
4
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
5
|
+
import { Minus as p, Plus as m, Trash2 as h } from "lucide-react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js
|
|
7
|
+
function g({ items: g, glCodeOptions: _, totalAmountLabel: v, onAddLineItem: y, errors: b, disabled: x, testId: S, labels: C }) {
|
|
8
|
+
let w = {
|
|
9
|
+
...l,
|
|
10
|
+
...C
|
|
11
|
+
}, T = u(), E = g.length > 1;
|
|
12
|
+
return /* @__PURE__ */ f("section", {
|
|
13
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
14
|
+
"data-testid": S,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ d(c, {
|
|
17
|
+
component: "h2",
|
|
18
|
+
variant: "h6",
|
|
19
|
+
className: "ttw:font-semibold",
|
|
20
|
+
children: w.heading
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ d("p", {
|
|
23
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
24
|
+
children: w.helpText
|
|
25
|
+
}),
|
|
26
|
+
g.map((c, l) => {
|
|
27
|
+
let u = `${T}-${c.id}`, g = b?.[c.id], v = (e) => `${u}-${e}-error`, y = (e) => g?.[e], S = (e) => {
|
|
28
|
+
let t = y(e);
|
|
29
|
+
return t ? /* @__PURE__ */ d("p", {
|
|
30
|
+
id: v(e),
|
|
31
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
32
|
+
children: t
|
|
33
|
+
}) : null;
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ d("div", {
|
|
36
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
|
|
37
|
+
children: /* @__PURE__ */ f("div", {
|
|
38
|
+
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
39
|
+
children: [
|
|
40
|
+
E ? /* @__PURE__ */ f("span", {
|
|
41
|
+
className: "ttw:pt-7 ttw:text-sm ttw:text-muted-foreground",
|
|
42
|
+
children: [l + 1, "."]
|
|
43
|
+
}) : null,
|
|
44
|
+
/* @__PURE__ */ f("div", {
|
|
45
|
+
className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:gap-3",
|
|
46
|
+
children: [/* @__PURE__ */ f("div", {
|
|
47
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ d(n, {
|
|
50
|
+
htmlFor: `${u}-description`,
|
|
51
|
+
children: w.description
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ d(t, {
|
|
54
|
+
id: `${u}-description`,
|
|
55
|
+
placeholder: w.descriptionPlaceholder,
|
|
56
|
+
value: c.description,
|
|
57
|
+
disabled: x,
|
|
58
|
+
"aria-invalid": y("description") ? !0 : void 0,
|
|
59
|
+
"aria-describedby": y("description") ? v("description") : void 0,
|
|
60
|
+
onChange: (e) => c.onChange({ description: e.target.value })
|
|
61
|
+
}),
|
|
62
|
+
S("description")
|
|
63
|
+
]
|
|
64
|
+
}), /* @__PURE__ */ f("div", {
|
|
65
|
+
className: "ttw:grid ttw:grid-cols-4 ttw:gap-3",
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ f("div", {
|
|
68
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ d(n, {
|
|
71
|
+
htmlFor: `${u}-gl-code`,
|
|
72
|
+
children: w.glCode
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ f(r, {
|
|
75
|
+
value: c.glCode,
|
|
76
|
+
disabled: x,
|
|
77
|
+
onValueChange: (e) => c.onChange({ glCode: e }),
|
|
78
|
+
children: [/* @__PURE__ */ d(o, {
|
|
79
|
+
id: `${u}-gl-code`,
|
|
80
|
+
"aria-invalid": y("glCode") ? !0 : void 0,
|
|
81
|
+
"aria-describedby": y("glCode") ? v("glCode") : void 0,
|
|
82
|
+
children: /* @__PURE__ */ d(s, { placeholder: w.glCodePlaceholder })
|
|
83
|
+
}), /* @__PURE__ */ d(i, { children: _.map((e) => /* @__PURE__ */ d(a, {
|
|
84
|
+
value: e.value,
|
|
85
|
+
children: e.label
|
|
86
|
+
}, e.value)) })]
|
|
87
|
+
}),
|
|
88
|
+
S("glCode")
|
|
89
|
+
]
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ f("div", {
|
|
92
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ d(n, {
|
|
95
|
+
htmlFor: `${u}-quantity`,
|
|
96
|
+
children: w.quantity
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ f("div", {
|
|
99
|
+
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ d(e, {
|
|
102
|
+
type: "button",
|
|
103
|
+
variant: "outline",
|
|
104
|
+
size: "icon",
|
|
105
|
+
disabled: x,
|
|
106
|
+
"aria-label": w.decreaseQuantity(l + 1),
|
|
107
|
+
onClick: () => c.onQuantityStep(-1),
|
|
108
|
+
children: /* @__PURE__ */ d(p, { className: "ttw:size-3.5" })
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ d(t, {
|
|
111
|
+
id: `${u}-quantity`,
|
|
112
|
+
inputMode: "decimal",
|
|
113
|
+
className: "ttw:text-center",
|
|
114
|
+
value: c.quantity,
|
|
115
|
+
disabled: x,
|
|
116
|
+
"aria-invalid": y("quantity") ? !0 : void 0,
|
|
117
|
+
"aria-describedby": y("quantity") ? v("quantity") : void 0,
|
|
118
|
+
onChange: (e) => c.onChange({ quantity: e.target.value })
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ d(e, {
|
|
121
|
+
type: "button",
|
|
122
|
+
variant: "outline",
|
|
123
|
+
size: "icon",
|
|
124
|
+
disabled: x,
|
|
125
|
+
"aria-label": w.increaseQuantity(l + 1),
|
|
126
|
+
onClick: () => c.onQuantityStep(1),
|
|
127
|
+
children: /* @__PURE__ */ d(m, { className: "ttw:size-3.5" })
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
}),
|
|
131
|
+
S("quantity")
|
|
132
|
+
]
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ f("div", {
|
|
135
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ d(n, {
|
|
138
|
+
htmlFor: `${u}-price`,
|
|
139
|
+
children: w.price
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ d(t, {
|
|
142
|
+
id: `${u}-price`,
|
|
143
|
+
inputMode: "decimal",
|
|
144
|
+
value: c.price,
|
|
145
|
+
disabled: x,
|
|
146
|
+
"aria-invalid": y("price") ? !0 : void 0,
|
|
147
|
+
"aria-describedby": y("price") ? v("price") : void 0,
|
|
148
|
+
onChange: (e) => c.onChange({ price: e.target.value })
|
|
149
|
+
}),
|
|
150
|
+
S("price")
|
|
151
|
+
]
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ f("div", {
|
|
154
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ d(n, {
|
|
157
|
+
htmlFor: `${u}-amount`,
|
|
158
|
+
children: w.amount
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ d(t, {
|
|
161
|
+
id: `${u}-amount`,
|
|
162
|
+
inputMode: "decimal",
|
|
163
|
+
value: c.amount,
|
|
164
|
+
disabled: x,
|
|
165
|
+
"aria-invalid": y("amount") ? !0 : void 0,
|
|
166
|
+
"aria-describedby": y("amount") ? v("amount") : void 0,
|
|
167
|
+
onChange: (e) => c.onChange({ amount: e.target.value })
|
|
168
|
+
}),
|
|
169
|
+
S("amount")
|
|
170
|
+
]
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
})]
|
|
174
|
+
}),
|
|
175
|
+
E ? /* @__PURE__ */ d(e, {
|
|
176
|
+
type: "button",
|
|
177
|
+
variant: "ghost",
|
|
178
|
+
size: "icon",
|
|
179
|
+
disabled: x,
|
|
180
|
+
"aria-label": w.removeLineItem(l + 1),
|
|
181
|
+
onClick: c.onRemove,
|
|
182
|
+
children: /* @__PURE__ */ d(h, { className: "ttw:size-4" })
|
|
183
|
+
}) : null
|
|
184
|
+
]
|
|
185
|
+
})
|
|
186
|
+
}, c.id);
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ f("div", {
|
|
189
|
+
className: "ttw:flex ttw:items-center ttw:justify-between",
|
|
190
|
+
children: [/* @__PURE__ */ d(e, {
|
|
191
|
+
type: "button",
|
|
192
|
+
variant: "link",
|
|
193
|
+
disabled: x,
|
|
194
|
+
onClick: y,
|
|
195
|
+
children: w.addLineItem
|
|
196
|
+
}), /* @__PURE__ */ d("span", {
|
|
197
|
+
className: "ttw:text-sm ttw:text-foreground",
|
|
198
|
+
children: v
|
|
199
|
+
})]
|
|
200
|
+
})
|
|
201
|
+
]
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
//#endregion
|
|
205
|
+
export { g as LineItemsSection, g as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js
|
|
2
|
+
var e = {
|
|
3
|
+
payToHeading: "Pay to",
|
|
4
|
+
editAction: "Edit",
|
|
5
|
+
clearAction: "Clear",
|
|
6
|
+
revealField: (e) => `Show ${e.toLowerCase()}`,
|
|
7
|
+
hideField: (e) => `Hide ${e.toLowerCase()}`
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as VENDOR_SUMMARY_CARD_LABELS_EN };
|
|
@@ -1,4 +1,89 @@
|
|
|
1
|
-
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "
|
|
3
|
-
import "react
|
|
4
|
-
import "
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as t } from "./index18.js";
|
|
3
|
+
import { useState as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Eye as a, EyeOff as o } from "lucide-react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js
|
|
7
|
+
function s({ field: e, labels: t }) {
|
|
8
|
+
let [s, c] = n(!1), l = !!e.maskedValue, u = l && !s ? e.maskedValue : e.value;
|
|
9
|
+
return /* @__PURE__ */ i("div", {
|
|
10
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ r("span", {
|
|
13
|
+
className: "ttw:w-44 ttw:shrink-0 ttw:text-muted-foreground",
|
|
14
|
+
children: e.label
|
|
15
|
+
}),
|
|
16
|
+
/* @__PURE__ */ r("span", {
|
|
17
|
+
className: "ttw:text-foreground",
|
|
18
|
+
children: u
|
|
19
|
+
}),
|
|
20
|
+
l ? /* @__PURE__ */ r("button", {
|
|
21
|
+
type: "button",
|
|
22
|
+
onClick: () => c((e) => !e),
|
|
23
|
+
"aria-label": s ? t.hideField(e.label) : t.revealField(e.label),
|
|
24
|
+
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
25
|
+
children: r(s ? o : a, { className: "ttw:size-4" })
|
|
26
|
+
}) : null
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function c({ summary: n, onEdit: a, onClear: o, testId: c, labels: l }) {
|
|
31
|
+
let u = {
|
|
32
|
+
...t,
|
|
33
|
+
...l
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ i("div", {
|
|
36
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
|
|
37
|
+
"data-testid": c,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ i("div", {
|
|
40
|
+
className: "ttw:flex ttw:items-start ttw:justify-between",
|
|
41
|
+
children: [/* @__PURE__ */ i("div", {
|
|
42
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ r("span", {
|
|
45
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
46
|
+
children: u.payToHeading
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ r("span", {
|
|
49
|
+
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
50
|
+
children: n.name
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ r("span", {
|
|
53
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
54
|
+
children: n.email
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
}), /* @__PURE__ */ i("div", {
|
|
58
|
+
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
59
|
+
children: [a ? /* @__PURE__ */ r(e, {
|
|
60
|
+
type: "button",
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
size: "sm",
|
|
63
|
+
onClick: a,
|
|
64
|
+
children: u.editAction
|
|
65
|
+
}) : null, o ? /* @__PURE__ */ r(e, {
|
|
66
|
+
type: "button",
|
|
67
|
+
variant: "ghost",
|
|
68
|
+
size: "sm",
|
|
69
|
+
onClick: o,
|
|
70
|
+
children: u.clearAction
|
|
71
|
+
}) : null]
|
|
72
|
+
})]
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ r("p", {
|
|
75
|
+
className: "ttw:mt-3 ttw:text-xs ttw:text-muted-foreground",
|
|
76
|
+
children: n.methodLabel
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ r("div", {
|
|
79
|
+
className: "ttw:mt-2 ttw:flex ttw:flex-col ttw:gap-1",
|
|
80
|
+
children: n.fields.map((e) => /* @__PURE__ */ r(s, {
|
|
81
|
+
field: e,
|
|
82
|
+
labels: u
|
|
83
|
+
}, `${e.label}:${e.value}:${e.maskedValue ?? ""}`))
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { c as VendorSummaryCard, c as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js
|
|
2
|
+
var e = {
|
|
3
|
+
fieldLabel: "Vendor",
|
|
4
|
+
placeholder: "Search",
|
|
5
|
+
loading: "Searching vendors...",
|
|
6
|
+
emptyResults: "No vendors found",
|
|
7
|
+
addVendorAction: "Add vendor"
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as VENDOR_SEARCH_COMBOBOX_LABELS_EN };
|
|
@@ -1,4 +1,131 @@
|
|
|
1
|
-
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "
|
|
3
|
-
import "react
|
|
4
|
-
import "
|
|
1
|
+
import { Input as e, Skeleton as t, cn as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as r } from "./index21.js";
|
|
3
|
+
import { useId as i, useState as a } from "react";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
import { Plus as c, Search as l } from "lucide-react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js
|
|
7
|
+
var u = 5, d = "ttw:min-h-44";
|
|
8
|
+
function f({ query: f, onQueryChange: p, results: m, isLoading: h, onAddVendor: g, testId: _, labels: v }) {
|
|
9
|
+
let y = {
|
|
10
|
+
...r,
|
|
11
|
+
...v
|
|
12
|
+
}, b = i(), x = i(), [S, C] = a(!1), [w, T] = a(-1), E = h ? 0 : m.length + 1, D = S && w >= 0 ? `${x}-option-${w}` : void 0, O = (e) => {
|
|
13
|
+
C(!1), T(-1), e();
|
|
14
|
+
}, k = () => {
|
|
15
|
+
C(!1), T(-1), g();
|
|
16
|
+
}, A = () => {
|
|
17
|
+
C(!1), T(-1);
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ s("div", {
|
|
20
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
21
|
+
"data-testid": _,
|
|
22
|
+
children: [/* @__PURE__ */ o("label", {
|
|
23
|
+
htmlFor: b,
|
|
24
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
25
|
+
children: y.fieldLabel
|
|
26
|
+
}), /* @__PURE__ */ s("div", {
|
|
27
|
+
className: "ttw:relative",
|
|
28
|
+
children: [/* @__PURE__ */ s("div", {
|
|
29
|
+
className: "ttw:flex ttw:h-10 ttw:items-center ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3",
|
|
30
|
+
children: [/* @__PURE__ */ o(l, {
|
|
31
|
+
"aria-hidden": !0,
|
|
32
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50"
|
|
33
|
+
}), /* @__PURE__ */ o(e, {
|
|
34
|
+
id: b,
|
|
35
|
+
value: f,
|
|
36
|
+
onChange: (e) => {
|
|
37
|
+
C(!0), T(-1), p(e.target.value);
|
|
38
|
+
},
|
|
39
|
+
onFocus: () => C(!0),
|
|
40
|
+
onBlur: A,
|
|
41
|
+
onKeyDown: (e) => {
|
|
42
|
+
if (e.key === "Escape") {
|
|
43
|
+
A();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (E) {
|
|
47
|
+
if (e.key === "ArrowDown") {
|
|
48
|
+
e.preventDefault(), C(!0), T((e) => e >= E - 1 ? 0 : e + 1);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (e.key === "ArrowUp") {
|
|
52
|
+
e.preventDefault(), C(!0), T((e) => e <= 0 ? E - 1 : e - 1);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
e.key === "Enter" && S && w >= 0 && (e.preventDefault(), w < m.length ? O(m[w].onSelect) : k());
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
placeholder: y.placeholder,
|
|
59
|
+
role: "combobox",
|
|
60
|
+
"aria-autocomplete": "list",
|
|
61
|
+
"aria-expanded": S,
|
|
62
|
+
"aria-controls": S ? x : void 0,
|
|
63
|
+
"aria-activedescendant": D,
|
|
64
|
+
className: "ttw:h-auto ttw:border-0 ttw:p-0 ttw:shadow-none ttw:ring-0 ttw:focus-visible:ring-0"
|
|
65
|
+
})]
|
|
66
|
+
}), S ? /* @__PURE__ */ s("div", {
|
|
67
|
+
id: x,
|
|
68
|
+
role: "listbox",
|
|
69
|
+
className: "ttw:absolute ttw:top-full ttw:left-0 ttw:z-10 ttw:mt-1 ttw:max-h-72 ttw:w-full ttw:overflow-y-auto ttw:rounded-md ttw:border ttw:border-border ttw:bg-popover ttw:p-1 ttw:shadow-md",
|
|
70
|
+
children: [
|
|
71
|
+
h ? /* @__PURE__ */ s("div", {
|
|
72
|
+
className: n("ttw:flex ttw:flex-col ttw:gap-2 ttw:p-2", d),
|
|
73
|
+
"aria-busy": "true",
|
|
74
|
+
children: [/* @__PURE__ */ o("span", {
|
|
75
|
+
className: "ttw:sr-only",
|
|
76
|
+
children: y.loading
|
|
77
|
+
}), Array.from({ length: u }).map((e, n) => /* @__PURE__ */ s("div", {
|
|
78
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-2 ttw:py-1.5",
|
|
79
|
+
children: [/* @__PURE__ */ o(t, {
|
|
80
|
+
height: 14,
|
|
81
|
+
width: "55%"
|
|
82
|
+
}), /* @__PURE__ */ o(t, {
|
|
83
|
+
height: 14,
|
|
84
|
+
width: "30%"
|
|
85
|
+
})]
|
|
86
|
+
}, n))]
|
|
87
|
+
}) : m.length === 0 && f ? /* @__PURE__ */ o("div", {
|
|
88
|
+
className: n("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", d),
|
|
89
|
+
children: y.emptyResults
|
|
90
|
+
}) : m.length > 0 ? /* @__PURE__ */ o("div", {
|
|
91
|
+
role: "group",
|
|
92
|
+
children: m.map((e, t) => /* @__PURE__ */ s("button", {
|
|
93
|
+
id: `${x}-option-${t}`,
|
|
94
|
+
type: "button",
|
|
95
|
+
role: "option",
|
|
96
|
+
"aria-selected": w === t,
|
|
97
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
98
|
+
onMouseEnter: () => T(t),
|
|
99
|
+
onClick: () => O(e.onSelect),
|
|
100
|
+
className: n("ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-4 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-left ttw:text-sm ttw:outline-hidden", w === t ? "ttw:bg-accent ttw:text-accent-foreground" : "ttw:text-popover-foreground"),
|
|
101
|
+
children: [/* @__PURE__ */ o("span", {
|
|
102
|
+
className: "ttw:text-foreground",
|
|
103
|
+
children: e.name
|
|
104
|
+
}), /* @__PURE__ */ o("span", {
|
|
105
|
+
className: "ttw:text-muted-foreground",
|
|
106
|
+
children: e.email
|
|
107
|
+
})]
|
|
108
|
+
}, `${e.name}:${e.email}:${t}`))
|
|
109
|
+
}) : null,
|
|
110
|
+
h || m.length > 0 || f ? /* @__PURE__ */ o("div", { className: "ttw:-mx-1 ttw:my-1 ttw:h-px ttw:bg-border" }) : null,
|
|
111
|
+
/* @__PURE__ */ o("div", {
|
|
112
|
+
role: "group",
|
|
113
|
+
children: /* @__PURE__ */ s("button", {
|
|
114
|
+
id: `${x}-option-${m.length}`,
|
|
115
|
+
type: "button",
|
|
116
|
+
role: "option",
|
|
117
|
+
"aria-selected": w === m.length,
|
|
118
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
119
|
+
onMouseEnter: () => T(m.length),
|
|
120
|
+
onClick: k,
|
|
121
|
+
className: n("ttw:flex ttw:w-full ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-left ttw:text-sm ttw:text-primary ttw:outline-hidden", w === m.length ? "ttw:bg-accent" : "ttw:bg-transparent"),
|
|
122
|
+
children: [/* @__PURE__ */ o(c, { className: "ttw:size-4 ttw:text-primary" }), y.addVendorAction]
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
}) : null]
|
|
127
|
+
})]
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
export { f as VendorSearchCombobox, f as default };
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index18.js";
|
|
1
2
|
import "./index20.js";
|
|
3
|
+
import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t } from "./index21.js";
|
|
2
4
|
import "./index23.js";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js
|
|
6
|
+
var n = {
|
|
7
|
+
heading: "Who are you paying?",
|
|
8
|
+
summaryCard: e,
|
|
9
|
+
search: t
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as VENDOR_SECTION_LABELS_EN };
|
|
@@ -1,8 +1,48 @@
|
|
|
1
|
-
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
1
|
+
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { InlineErrorAlert as t } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
2
3
|
import "../../../shared/ui/dist/index.js";
|
|
3
|
-
import "./index19.js";
|
|
4
|
+
import { VendorSummaryCard as n } from "./index19.js";
|
|
4
5
|
import "./index20.js";
|
|
5
|
-
import "./index22.js";
|
|
6
|
+
import { VendorSearchCombobox as r } from "./index22.js";
|
|
6
7
|
import "./index23.js";
|
|
7
|
-
import "./index24.js";
|
|
8
|
-
import "react/jsx-runtime";
|
|
8
|
+
import { VENDOR_SECTION_LABELS_EN as i } from "./index24.js";
|
|
9
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js
|
|
11
|
+
function s(s) {
|
|
12
|
+
let { onEdit: c, onClear: l, error: u, testId: d, labels: f } = s, p = {
|
|
13
|
+
...i,
|
|
14
|
+
...f,
|
|
15
|
+
summaryCard: {
|
|
16
|
+
...i.summaryCard,
|
|
17
|
+
...f?.summaryCard
|
|
18
|
+
},
|
|
19
|
+
search: {
|
|
20
|
+
...i.search,
|
|
21
|
+
...f?.search
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ o("section", {
|
|
25
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
26
|
+
"data-testid": d,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ a(e, {
|
|
29
|
+
component: "h2",
|
|
30
|
+
variant: "h6",
|
|
31
|
+
className: "ttw:font-semibold",
|
|
32
|
+
children: p.heading
|
|
33
|
+
}),
|
|
34
|
+
u ? /* @__PURE__ */ a(t, { children: u }) : null,
|
|
35
|
+
s.mode === "resolved" ? /* @__PURE__ */ a(n, {
|
|
36
|
+
summary: s.summary,
|
|
37
|
+
onEdit: c,
|
|
38
|
+
onClear: l,
|
|
39
|
+
labels: p.summaryCard
|
|
40
|
+
}) : s.mode === "selecting" ? /* @__PURE__ */ a(r, {
|
|
41
|
+
...s.search,
|
|
42
|
+
labels: p.search
|
|
43
|
+
}) : s.newVendorForm
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { s as VendorSection, s as default };
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
+
import { BILL_FORM_FIELDS_LABELS_EN as e } from "./index12.js";
|
|
1
2
|
import "./index14.js";
|
|
3
|
+
import { LINE_ITEMS_SECTION_LABELS_EN as t } from "./index15.js";
|
|
2
4
|
import "./index17.js";
|
|
3
|
-
import "./index24.js";
|
|
5
|
+
import { VENDOR_SECTION_LABELS_EN as n } from "./index24.js";
|
|
4
6
|
import "./index26.js";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js
|
|
8
|
+
var r = {
|
|
9
|
+
closeButton: "Close",
|
|
10
|
+
menuTrigger: "More actions",
|
|
11
|
+
cancelButton: "Cancel",
|
|
12
|
+
saveDraftButton: "Save as draft",
|
|
13
|
+
finalizeButton: "Finalize",
|
|
14
|
+
hiddenDescription: "Enter the details of the bill you want to pay.",
|
|
15
|
+
vendorSection: n,
|
|
16
|
+
detailsFields: e,
|
|
17
|
+
lineItems: t
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as BILL_CREATE_SCREEN_LABELS_EN };
|