@tesouro/embedded-components-react 0.2.333 → 0.2.337
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/index.css +22 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +43 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +26 -149
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +159 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +102 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +11 -212
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +226 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +27 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +75 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +133 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +3 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +20 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +57 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +3 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +105 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +100 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +171 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +34 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +38 -269
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +272 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +7 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +20 -284
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +286 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +13 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +120 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +8 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +11 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +57 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +51 -136
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +141 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +5 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -61
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +63 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +72 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +251 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +9 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +43 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +278 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +91 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +101 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +28 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +106 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1378 -1371
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +0 -34
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./index25.js";
|
|
1
|
+
import { Input as e, Label as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index25.js";
|
|
3
|
+
import { useId as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js
|
|
6
|
+
function o({ values: o, errors: s, onChange: c, disabled: l, testId: u, labels: d }) {
|
|
7
|
+
let f = {
|
|
8
|
+
...n,
|
|
9
|
+
...d
|
|
10
|
+
}, p = r(), m = (n, r, u) => {
|
|
11
|
+
let d = `${p}-${n}`, f = `${d}-error`, m = s?.[n];
|
|
12
|
+
return /* @__PURE__ */ a("div", {
|
|
13
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ i(t, {
|
|
16
|
+
htmlFor: d,
|
|
17
|
+
children: r
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ i(e, {
|
|
20
|
+
id: d,
|
|
21
|
+
type: u,
|
|
22
|
+
value: o[n],
|
|
23
|
+
disabled: l,
|
|
24
|
+
"aria-invalid": m ? !0 : void 0,
|
|
25
|
+
"aria-describedby": m ? f : void 0,
|
|
26
|
+
onChange: (e) => c({ [n]: e.target.value })
|
|
27
|
+
}),
|
|
28
|
+
m ? /* @__PURE__ */ i("p", {
|
|
29
|
+
id: f,
|
|
30
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
31
|
+
children: m
|
|
32
|
+
}) : null
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ a("div", {
|
|
37
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
38
|
+
"data-testid": u,
|
|
39
|
+
children: [/* @__PURE__ */ a("div", {
|
|
40
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
41
|
+
children: [m("invoiceDate", f.invoiceDate, "date"), m("dueDate", f.dueDate, "date")]
|
|
42
|
+
}), /* @__PURE__ */ a("div", {
|
|
43
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
44
|
+
children: [m("invoiceNumber", f.invoiceNumber), m("poNumber", f.poNumber)]
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { o as BillFormFields, o as default };
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
currencySymbol: "$",
|
|
13
|
-
discount: "Discounts",
|
|
14
|
-
tax: "Tax",
|
|
15
|
-
totalAmount: "Total amount",
|
|
16
|
-
addLineItem: "+ Add line item",
|
|
17
|
-
increaseQuantity: (e) => `Increase quantity — line item ${e}`,
|
|
18
|
-
decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
|
|
19
|
-
removeLineItem: (e) => `Remove line item ${e}`
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { e as LINE_ITEMS_SECTION_LABELS_EN };
|
|
1
|
+
import "./index25.js";
|
|
2
|
+
import "./index26.js";
|
|
@@ -1,286 +1,22 @@
|
|
|
1
|
-
import { Button as e, Input as t, InputGroup as n, InputGroupAddon as r, InputGroupInput as i, Label as a, Select as o, SelectContent as s, SelectItem as c, SelectTrigger as l, SelectValue as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { LINE_ITEMS_SECTION_LABELS_EN as f } from "./index27.js";
|
|
3
|
-
import { useId as p } from "react";
|
|
4
|
-
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
-
import { Minus as g, Plus as _, Trash2 as v } from "lucide-react";
|
|
6
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
y.map((d, f) => {
|
|
27
|
-
let p = `${N}-${d.id}`, y = O?.[d.id], x = (e) => `${p}-${e}-error`, S = (e) => y?.[e], C = (e) => {
|
|
28
|
-
let t = S(e);
|
|
29
|
-
return t ? /* @__PURE__ */ m("p", {
|
|
30
|
-
id: x(e),
|
|
31
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
32
|
-
children: t
|
|
33
|
-
}) : null;
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ m("div", {
|
|
36
|
-
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
|
|
37
|
-
children: /* @__PURE__ */ h("div", {
|
|
38
|
-
className: "ttw:@container/line-item ttw:flex ttw:flex-col ttw:gap-3",
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ h("div", {
|
|
41
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
42
|
-
children: [/* @__PURE__ */ h("div", {
|
|
43
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
44
|
-
children: [P ? /* @__PURE__ */ h("span", {
|
|
45
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
46
|
-
children: [f + 1, "."]
|
|
47
|
-
}) : null, /* @__PURE__ */ m(a, {
|
|
48
|
-
htmlFor: `${p}-description`,
|
|
49
|
-
children: M.description
|
|
50
|
-
})]
|
|
51
|
-
}), P ? /* @__PURE__ */ m(e, {
|
|
52
|
-
type: "button",
|
|
53
|
-
variant: "ghost",
|
|
54
|
-
size: "icon",
|
|
55
|
-
disabled: k,
|
|
56
|
-
"aria-label": M.removeLineItem(f + 1),
|
|
57
|
-
onClick: d.onRemove,
|
|
58
|
-
children: /* @__PURE__ */ m(v, { className: "ttw:size-4" })
|
|
59
|
-
}) : null]
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ h("div", {
|
|
62
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
63
|
-
children: [/* @__PURE__ */ m(t, {
|
|
64
|
-
id: `${p}-description`,
|
|
65
|
-
placeholder: M.descriptionPlaceholder,
|
|
66
|
-
value: d.description,
|
|
67
|
-
disabled: k,
|
|
68
|
-
"aria-invalid": S("description") ? !0 : void 0,
|
|
69
|
-
"aria-describedby": S("description") ? x("description") : void 0,
|
|
70
|
-
onChange: (e) => d.onChange({ description: e.target.value })
|
|
71
|
-
}), C("description")]
|
|
72
|
-
}),
|
|
73
|
-
/* @__PURE__ */ h("div", {
|
|
74
|
-
className: "ttw:grid ttw:grid-cols-3 ttw:@lg/line-item:grid-cols-6 ttw:gap-3",
|
|
75
|
-
children: [
|
|
76
|
-
/* @__PURE__ */ h("div", {
|
|
77
|
-
className: "ttw:col-span-3 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ m(a, {
|
|
80
|
-
htmlFor: `${p}-gl-code`,
|
|
81
|
-
children: M.glCode
|
|
82
|
-
}),
|
|
83
|
-
/* @__PURE__ */ h(o, {
|
|
84
|
-
value: d.glCode,
|
|
85
|
-
disabled: k,
|
|
86
|
-
onValueChange: (e) => d.onChange({ glCode: e }),
|
|
87
|
-
children: [/* @__PURE__ */ m(l, {
|
|
88
|
-
id: `${p}-gl-code`,
|
|
89
|
-
className: "ttw:w-full",
|
|
90
|
-
"aria-invalid": S("glCode") ? !0 : void 0,
|
|
91
|
-
"aria-describedby": S("glCode") ? x("glCode") : void 0,
|
|
92
|
-
children: /* @__PURE__ */ m(u, { placeholder: M.glCodePlaceholder })
|
|
93
|
-
}), /* @__PURE__ */ m(s, { children: b.map((e) => /* @__PURE__ */ m(c, {
|
|
94
|
-
value: e.value,
|
|
95
|
-
children: e.label
|
|
96
|
-
}, e.value)) })]
|
|
97
|
-
}),
|
|
98
|
-
C("glCode")
|
|
99
|
-
]
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */ h("div", {
|
|
102
|
-
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
103
|
-
children: [
|
|
104
|
-
/* @__PURE__ */ m(a, {
|
|
105
|
-
htmlFor: `${p}-quantity`,
|
|
106
|
-
children: M.quantity
|
|
107
|
-
}),
|
|
108
|
-
/* @__PURE__ */ h(n, {
|
|
109
|
-
className: "ttw:h-9 ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:has-[:focus-visible]:border-ring ttw:has-[:focus-visible]:ring-[3px] ttw:has-[:focus-visible]:ring-ring/50 ttw:has-[[aria-invalid=true]]:border-destructive ttw:has-[[aria-invalid=true]]:ring-destructive/20",
|
|
110
|
-
children: [
|
|
111
|
-
/* @__PURE__ */ m(e, {
|
|
112
|
-
type: "button",
|
|
113
|
-
variant: "ghost",
|
|
114
|
-
size: "icon",
|
|
115
|
-
className: "ttw:h-full ttw:shrink-0 ttw:rounded-r-none",
|
|
116
|
-
disabled: k,
|
|
117
|
-
"aria-label": M.decreaseQuantity(f + 1),
|
|
118
|
-
onClick: () => d.onQuantityStep(-1),
|
|
119
|
-
children: /* @__PURE__ */ m(g, { className: "ttw:size-3.5" })
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ m(i, {
|
|
122
|
-
id: `${p}-quantity`,
|
|
123
|
-
inputMode: "decimal",
|
|
124
|
-
className: "ttw:min-w-0 ttw:flex-1 ttw:rounded-none ttw:border-0 ttw:text-center ttw:shadow-none ttw:focus-visible:ring-0",
|
|
125
|
-
value: d.quantity,
|
|
126
|
-
disabled: k,
|
|
127
|
-
"aria-invalid": S("quantity") ? !0 : void 0,
|
|
128
|
-
"aria-describedby": S("quantity") ? x("quantity") : void 0,
|
|
129
|
-
onChange: (e) => d.onChange({ quantity: e.target.value })
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ m(e, {
|
|
132
|
-
type: "button",
|
|
133
|
-
variant: "ghost",
|
|
134
|
-
size: "icon",
|
|
135
|
-
className: "ttw:h-full ttw:shrink-0 ttw:rounded-l-none",
|
|
136
|
-
disabled: k,
|
|
137
|
-
"aria-label": M.increaseQuantity(f + 1),
|
|
138
|
-
onClick: () => d.onQuantityStep(1),
|
|
139
|
-
children: /* @__PURE__ */ m(_, { className: "ttw:size-3.5" })
|
|
140
|
-
})
|
|
141
|
-
]
|
|
142
|
-
}),
|
|
143
|
-
C("quantity")
|
|
144
|
-
]
|
|
145
|
-
}),
|
|
146
|
-
/* @__PURE__ */ h("div", {
|
|
147
|
-
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
148
|
-
children: [
|
|
149
|
-
/* @__PURE__ */ m(a, {
|
|
150
|
-
htmlFor: `${p}-price`,
|
|
151
|
-
children: M.price
|
|
152
|
-
}),
|
|
153
|
-
/* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(r, {
|
|
154
|
-
align: "inline-start",
|
|
155
|
-
"aria-hidden": !0,
|
|
156
|
-
children: M.currencySymbol
|
|
157
|
-
}), /* @__PURE__ */ m(i, {
|
|
158
|
-
id: `${p}-price`,
|
|
159
|
-
"data-has-start-addon": !0,
|
|
160
|
-
inputMode: "decimal",
|
|
161
|
-
className: "ttw:text-right ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
162
|
-
value: d.price,
|
|
163
|
-
disabled: k,
|
|
164
|
-
"aria-invalid": S("price") ? !0 : void 0,
|
|
165
|
-
"aria-describedby": S("price") ? x("price") : void 0,
|
|
166
|
-
onChange: (e) => d.onChange({ price: e.target.value })
|
|
167
|
-
})] }),
|
|
168
|
-
C("price")
|
|
169
|
-
]
|
|
170
|
-
}),
|
|
171
|
-
/* @__PURE__ */ h("div", {
|
|
172
|
-
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
173
|
-
children: [
|
|
174
|
-
/* @__PURE__ */ m(a, {
|
|
175
|
-
htmlFor: `${p}-amount`,
|
|
176
|
-
children: M.amount
|
|
177
|
-
}),
|
|
178
|
-
/* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(r, {
|
|
179
|
-
align: "inline-start",
|
|
180
|
-
"aria-hidden": !0,
|
|
181
|
-
children: M.currencySymbol
|
|
182
|
-
}), /* @__PURE__ */ m(i, {
|
|
183
|
-
id: `${p}-amount`,
|
|
184
|
-
"data-has-start-addon": !0,
|
|
185
|
-
inputMode: "decimal",
|
|
186
|
-
className: "ttw:text-right ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
187
|
-
value: d.amount,
|
|
188
|
-
disabled: k,
|
|
189
|
-
"aria-invalid": S("amount") ? !0 : void 0,
|
|
190
|
-
"aria-describedby": S("amount") ? x("amount") : void 0,
|
|
191
|
-
onChange: (e) => d.onChange({ amount: e.target.value })
|
|
192
|
-
})] }),
|
|
193
|
-
C("amount")
|
|
194
|
-
]
|
|
195
|
-
})
|
|
196
|
-
]
|
|
197
|
-
})
|
|
198
|
-
]
|
|
199
|
-
})
|
|
200
|
-
}, d.id);
|
|
201
|
-
}),
|
|
202
|
-
/* @__PURE__ */ m(e, {
|
|
203
|
-
type: "button",
|
|
204
|
-
variant: "link",
|
|
205
|
-
disabled: k,
|
|
206
|
-
className: "ttw:self-start",
|
|
207
|
-
onClick: D,
|
|
208
|
-
children: M.addLineItem
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ h("div", {
|
|
211
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3",
|
|
212
|
-
children: [
|
|
213
|
-
/* @__PURE__ */ h("div", {
|
|
214
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
215
|
-
children: [/* @__PURE__ */ m(a, {
|
|
216
|
-
htmlFor: `${N}-discount`,
|
|
217
|
-
children: M.discount
|
|
218
|
-
}), /* @__PURE__ */ h(n, {
|
|
219
|
-
className: "ttw:w-36",
|
|
220
|
-
children: [/* @__PURE__ */ m(r, {
|
|
221
|
-
align: "inline-start",
|
|
222
|
-
"aria-hidden": !0,
|
|
223
|
-
children: M.currencySymbol
|
|
224
|
-
}), /* @__PURE__ */ m(i, {
|
|
225
|
-
id: `${N}-discount`,
|
|
226
|
-
"data-has-start-addon": !0,
|
|
227
|
-
inputMode: "decimal",
|
|
228
|
-
className: "ttw:text-right",
|
|
229
|
-
value: x,
|
|
230
|
-
disabled: k,
|
|
231
|
-
onChange: (e) => S(e.target.value)
|
|
232
|
-
})]
|
|
233
|
-
})]
|
|
234
|
-
}),
|
|
235
|
-
/* @__PURE__ */ h("div", {
|
|
236
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
237
|
-
children: [/* @__PURE__ */ m(a, {
|
|
238
|
-
htmlFor: `${N}-tax`,
|
|
239
|
-
children: M.tax
|
|
240
|
-
}), /* @__PURE__ */ h(n, {
|
|
241
|
-
className: "ttw:w-36",
|
|
242
|
-
children: [/* @__PURE__ */ m(r, {
|
|
243
|
-
align: "inline-start",
|
|
244
|
-
"aria-hidden": !0,
|
|
245
|
-
children: M.currencySymbol
|
|
246
|
-
}), /* @__PURE__ */ m(i, {
|
|
247
|
-
id: `${N}-tax`,
|
|
248
|
-
"data-has-start-addon": !0,
|
|
249
|
-
inputMode: "decimal",
|
|
250
|
-
className: "ttw:text-right",
|
|
251
|
-
value: C,
|
|
252
|
-
disabled: k,
|
|
253
|
-
onChange: (e) => w(e.target.value)
|
|
254
|
-
})]
|
|
255
|
-
})]
|
|
256
|
-
}),
|
|
257
|
-
/* @__PURE__ */ h("div", {
|
|
258
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
259
|
-
children: [/* @__PURE__ */ m(a, {
|
|
260
|
-
htmlFor: `${N}-total`,
|
|
261
|
-
className: "ttw:font-semibold",
|
|
262
|
-
children: M.totalAmount
|
|
263
|
-
}), /* @__PURE__ */ h(n, {
|
|
264
|
-
className: "ttw:w-36",
|
|
265
|
-
children: [/* @__PURE__ */ m(r, {
|
|
266
|
-
align: "inline-start",
|
|
267
|
-
"aria-hidden": !0,
|
|
268
|
-
children: M.currencySymbol
|
|
269
|
-
}), /* @__PURE__ */ m(i, {
|
|
270
|
-
id: `${N}-total`,
|
|
271
|
-
"data-has-start-addon": !0,
|
|
272
|
-
inputMode: "decimal",
|
|
273
|
-
className: "ttw:text-right ttw:font-semibold",
|
|
274
|
-
value: T,
|
|
275
|
-
disabled: k,
|
|
276
|
-
onChange: (e) => E(e.target.value)
|
|
277
|
-
})]
|
|
278
|
-
})]
|
|
279
|
-
})
|
|
280
|
-
]
|
|
281
|
-
})
|
|
282
|
-
]
|
|
283
|
-
});
|
|
284
|
-
}
|
|
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
|
+
currencySymbol: "$",
|
|
13
|
+
discount: "Discounts",
|
|
14
|
+
tax: "Tax",
|
|
15
|
+
totalAmount: "Total amount",
|
|
16
|
+
addLineItem: "+ Add line item",
|
|
17
|
+
increaseQuantity: (e) => `Increase quantity — line item ${e}`,
|
|
18
|
+
decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
|
|
19
|
+
removeLineItem: (e) => `Remove line item ${e}`
|
|
20
|
+
};
|
|
285
21
|
//#endregion
|
|
286
|
-
export {
|
|
22
|
+
export { e as LINE_ITEMS_SECTION_LABELS_EN };
|
|
@@ -1,2 +1,286 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./index28.js";
|
|
1
|
+
import { Button as e, Input as t, InputGroup as n, InputGroupAddon as r, InputGroupInput as i, Label as a, Select as o, SelectContent as s, SelectItem as c, SelectTrigger as l, SelectValue as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { LINE_ITEMS_SECTION_LABELS_EN as f } from "./index28.js";
|
|
3
|
+
import { useId as p } from "react";
|
|
4
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
+
import { Minus as g, Plus as _, Trash2 as v } from "lucide-react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js
|
|
7
|
+
function y({ items: y, glCodeOptions: b, discount: x, onDiscountChange: S, tax: C, onTaxChange: w, total: T, onTotalChange: E, onAddLineItem: D, errors: O, disabled: k, testId: A, labels: j }) {
|
|
8
|
+
let M = {
|
|
9
|
+
...f,
|
|
10
|
+
...j
|
|
11
|
+
}, N = p(), P = y.length > 1;
|
|
12
|
+
return /* @__PURE__ */ h("section", {
|
|
13
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
14
|
+
"data-testid": A,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ m(d, {
|
|
17
|
+
component: "h2",
|
|
18
|
+
variant: "h6",
|
|
19
|
+
className: "ttw:font-semibold",
|
|
20
|
+
children: M.heading
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ m("p", {
|
|
23
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
24
|
+
children: M.helpText
|
|
25
|
+
}),
|
|
26
|
+
y.map((d, f) => {
|
|
27
|
+
let p = `${N}-${d.id}`, y = O?.[d.id], x = (e) => `${p}-${e}-error`, S = (e) => y?.[e], C = (e) => {
|
|
28
|
+
let t = S(e);
|
|
29
|
+
return t ? /* @__PURE__ */ m("p", {
|
|
30
|
+
id: x(e),
|
|
31
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
32
|
+
children: t
|
|
33
|
+
}) : null;
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ m("div", {
|
|
36
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
|
|
37
|
+
children: /* @__PURE__ */ h("div", {
|
|
38
|
+
className: "ttw:@container/line-item ttw:flex ttw:flex-col ttw:gap-3",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ h("div", {
|
|
41
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
42
|
+
children: [/* @__PURE__ */ h("div", {
|
|
43
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
44
|
+
children: [P ? /* @__PURE__ */ h("span", {
|
|
45
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
46
|
+
children: [f + 1, "."]
|
|
47
|
+
}) : null, /* @__PURE__ */ m(a, {
|
|
48
|
+
htmlFor: `${p}-description`,
|
|
49
|
+
children: M.description
|
|
50
|
+
})]
|
|
51
|
+
}), P ? /* @__PURE__ */ m(e, {
|
|
52
|
+
type: "button",
|
|
53
|
+
variant: "ghost",
|
|
54
|
+
size: "icon",
|
|
55
|
+
disabled: k,
|
|
56
|
+
"aria-label": M.removeLineItem(f + 1),
|
|
57
|
+
onClick: d.onRemove,
|
|
58
|
+
children: /* @__PURE__ */ m(v, { className: "ttw:size-4" })
|
|
59
|
+
}) : null]
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ h("div", {
|
|
62
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
63
|
+
children: [/* @__PURE__ */ m(t, {
|
|
64
|
+
id: `${p}-description`,
|
|
65
|
+
placeholder: M.descriptionPlaceholder,
|
|
66
|
+
value: d.description,
|
|
67
|
+
disabled: k,
|
|
68
|
+
"aria-invalid": S("description") ? !0 : void 0,
|
|
69
|
+
"aria-describedby": S("description") ? x("description") : void 0,
|
|
70
|
+
onChange: (e) => d.onChange({ description: e.target.value })
|
|
71
|
+
}), C("description")]
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ h("div", {
|
|
74
|
+
className: "ttw:grid ttw:grid-cols-3 ttw:@lg/line-item:grid-cols-6 ttw:gap-3",
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ h("div", {
|
|
77
|
+
className: "ttw:col-span-3 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ m(a, {
|
|
80
|
+
htmlFor: `${p}-gl-code`,
|
|
81
|
+
children: M.glCode
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ h(o, {
|
|
84
|
+
value: d.glCode,
|
|
85
|
+
disabled: k,
|
|
86
|
+
onValueChange: (e) => d.onChange({ glCode: e }),
|
|
87
|
+
children: [/* @__PURE__ */ m(l, {
|
|
88
|
+
id: `${p}-gl-code`,
|
|
89
|
+
className: "ttw:w-full",
|
|
90
|
+
"aria-invalid": S("glCode") ? !0 : void 0,
|
|
91
|
+
"aria-describedby": S("glCode") ? x("glCode") : void 0,
|
|
92
|
+
children: /* @__PURE__ */ m(u, { placeholder: M.glCodePlaceholder })
|
|
93
|
+
}), /* @__PURE__ */ m(s, { children: b.map((e) => /* @__PURE__ */ m(c, {
|
|
94
|
+
value: e.value,
|
|
95
|
+
children: e.label
|
|
96
|
+
}, e.value)) })]
|
|
97
|
+
}),
|
|
98
|
+
C("glCode")
|
|
99
|
+
]
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ h("div", {
|
|
102
|
+
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ m(a, {
|
|
105
|
+
htmlFor: `${p}-quantity`,
|
|
106
|
+
children: M.quantity
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ h(n, {
|
|
109
|
+
className: "ttw:h-9 ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:has-[:focus-visible]:border-ring ttw:has-[:focus-visible]:ring-[3px] ttw:has-[:focus-visible]:ring-ring/50 ttw:has-[[aria-invalid=true]]:border-destructive ttw:has-[[aria-invalid=true]]:ring-destructive/20",
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ m(e, {
|
|
112
|
+
type: "button",
|
|
113
|
+
variant: "ghost",
|
|
114
|
+
size: "icon",
|
|
115
|
+
className: "ttw:h-full ttw:shrink-0 ttw:rounded-r-none",
|
|
116
|
+
disabled: k,
|
|
117
|
+
"aria-label": M.decreaseQuantity(f + 1),
|
|
118
|
+
onClick: () => d.onQuantityStep(-1),
|
|
119
|
+
children: /* @__PURE__ */ m(g, { className: "ttw:size-3.5" })
|
|
120
|
+
}),
|
|
121
|
+
/* @__PURE__ */ m(i, {
|
|
122
|
+
id: `${p}-quantity`,
|
|
123
|
+
inputMode: "decimal",
|
|
124
|
+
className: "ttw:min-w-0 ttw:flex-1 ttw:rounded-none ttw:border-0 ttw:text-center ttw:shadow-none ttw:focus-visible:ring-0",
|
|
125
|
+
value: d.quantity,
|
|
126
|
+
disabled: k,
|
|
127
|
+
"aria-invalid": S("quantity") ? !0 : void 0,
|
|
128
|
+
"aria-describedby": S("quantity") ? x("quantity") : void 0,
|
|
129
|
+
onChange: (e) => d.onChange({ quantity: e.target.value })
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ m(e, {
|
|
132
|
+
type: "button",
|
|
133
|
+
variant: "ghost",
|
|
134
|
+
size: "icon",
|
|
135
|
+
className: "ttw:h-full ttw:shrink-0 ttw:rounded-l-none",
|
|
136
|
+
disabled: k,
|
|
137
|
+
"aria-label": M.increaseQuantity(f + 1),
|
|
138
|
+
onClick: () => d.onQuantityStep(1),
|
|
139
|
+
children: /* @__PURE__ */ m(_, { className: "ttw:size-3.5" })
|
|
140
|
+
})
|
|
141
|
+
]
|
|
142
|
+
}),
|
|
143
|
+
C("quantity")
|
|
144
|
+
]
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ h("div", {
|
|
147
|
+
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ m(a, {
|
|
150
|
+
htmlFor: `${p}-price`,
|
|
151
|
+
children: M.price
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(r, {
|
|
154
|
+
align: "inline-start",
|
|
155
|
+
"aria-hidden": !0,
|
|
156
|
+
children: M.currencySymbol
|
|
157
|
+
}), /* @__PURE__ */ m(i, {
|
|
158
|
+
id: `${p}-price`,
|
|
159
|
+
"data-has-start-addon": !0,
|
|
160
|
+
inputMode: "decimal",
|
|
161
|
+
className: "ttw:text-right ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
162
|
+
value: d.price,
|
|
163
|
+
disabled: k,
|
|
164
|
+
"aria-invalid": S("price") ? !0 : void 0,
|
|
165
|
+
"aria-describedby": S("price") ? x("price") : void 0,
|
|
166
|
+
onChange: (e) => d.onChange({ price: e.target.value })
|
|
167
|
+
})] }),
|
|
168
|
+
C("price")
|
|
169
|
+
]
|
|
170
|
+
}),
|
|
171
|
+
/* @__PURE__ */ h("div", {
|
|
172
|
+
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
173
|
+
children: [
|
|
174
|
+
/* @__PURE__ */ m(a, {
|
|
175
|
+
htmlFor: `${p}-amount`,
|
|
176
|
+
children: M.amount
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(r, {
|
|
179
|
+
align: "inline-start",
|
|
180
|
+
"aria-hidden": !0,
|
|
181
|
+
children: M.currencySymbol
|
|
182
|
+
}), /* @__PURE__ */ m(i, {
|
|
183
|
+
id: `${p}-amount`,
|
|
184
|
+
"data-has-start-addon": !0,
|
|
185
|
+
inputMode: "decimal",
|
|
186
|
+
className: "ttw:text-right ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
187
|
+
value: d.amount,
|
|
188
|
+
disabled: k,
|
|
189
|
+
"aria-invalid": S("amount") ? !0 : void 0,
|
|
190
|
+
"aria-describedby": S("amount") ? x("amount") : void 0,
|
|
191
|
+
onChange: (e) => d.onChange({ amount: e.target.value })
|
|
192
|
+
})] }),
|
|
193
|
+
C("amount")
|
|
194
|
+
]
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
})
|
|
200
|
+
}, d.id);
|
|
201
|
+
}),
|
|
202
|
+
/* @__PURE__ */ m(e, {
|
|
203
|
+
type: "button",
|
|
204
|
+
variant: "link",
|
|
205
|
+
disabled: k,
|
|
206
|
+
className: "ttw:self-start",
|
|
207
|
+
onClick: D,
|
|
208
|
+
children: M.addLineItem
|
|
209
|
+
}),
|
|
210
|
+
/* @__PURE__ */ h("div", {
|
|
211
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3",
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ h("div", {
|
|
214
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
215
|
+
children: [/* @__PURE__ */ m(a, {
|
|
216
|
+
htmlFor: `${N}-discount`,
|
|
217
|
+
children: M.discount
|
|
218
|
+
}), /* @__PURE__ */ h(n, {
|
|
219
|
+
className: "ttw:w-36",
|
|
220
|
+
children: [/* @__PURE__ */ m(r, {
|
|
221
|
+
align: "inline-start",
|
|
222
|
+
"aria-hidden": !0,
|
|
223
|
+
children: M.currencySymbol
|
|
224
|
+
}), /* @__PURE__ */ m(i, {
|
|
225
|
+
id: `${N}-discount`,
|
|
226
|
+
"data-has-start-addon": !0,
|
|
227
|
+
inputMode: "decimal",
|
|
228
|
+
className: "ttw:text-right",
|
|
229
|
+
value: x,
|
|
230
|
+
disabled: k,
|
|
231
|
+
onChange: (e) => S(e.target.value)
|
|
232
|
+
})]
|
|
233
|
+
})]
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ h("div", {
|
|
236
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
237
|
+
children: [/* @__PURE__ */ m(a, {
|
|
238
|
+
htmlFor: `${N}-tax`,
|
|
239
|
+
children: M.tax
|
|
240
|
+
}), /* @__PURE__ */ h(n, {
|
|
241
|
+
className: "ttw:w-36",
|
|
242
|
+
children: [/* @__PURE__ */ m(r, {
|
|
243
|
+
align: "inline-start",
|
|
244
|
+
"aria-hidden": !0,
|
|
245
|
+
children: M.currencySymbol
|
|
246
|
+
}), /* @__PURE__ */ m(i, {
|
|
247
|
+
id: `${N}-tax`,
|
|
248
|
+
"data-has-start-addon": !0,
|
|
249
|
+
inputMode: "decimal",
|
|
250
|
+
className: "ttw:text-right",
|
|
251
|
+
value: C,
|
|
252
|
+
disabled: k,
|
|
253
|
+
onChange: (e) => w(e.target.value)
|
|
254
|
+
})]
|
|
255
|
+
})]
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ h("div", {
|
|
258
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
259
|
+
children: [/* @__PURE__ */ m(a, {
|
|
260
|
+
htmlFor: `${N}-total`,
|
|
261
|
+
className: "ttw:font-semibold",
|
|
262
|
+
children: M.totalAmount
|
|
263
|
+
}), /* @__PURE__ */ h(n, {
|
|
264
|
+
className: "ttw:w-36",
|
|
265
|
+
children: [/* @__PURE__ */ m(r, {
|
|
266
|
+
align: "inline-start",
|
|
267
|
+
"aria-hidden": !0,
|
|
268
|
+
children: M.currencySymbol
|
|
269
|
+
}), /* @__PURE__ */ m(i, {
|
|
270
|
+
id: `${N}-total`,
|
|
271
|
+
"data-has-start-addon": !0,
|
|
272
|
+
inputMode: "decimal",
|
|
273
|
+
className: "ttw:text-right ttw:font-semibold",
|
|
274
|
+
value: T,
|
|
275
|
+
disabled: k,
|
|
276
|
+
onChange: (e) => E(e.target.value)
|
|
277
|
+
})]
|
|
278
|
+
})]
|
|
279
|
+
})
|
|
280
|
+
]
|
|
281
|
+
})
|
|
282
|
+
]
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
286
|
+
export { y as LineItemsSection, y as default };
|