@tesouro/embedded-components-react 0.4.21 → 0.4.23
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.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +136 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +207 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -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/shared/util/dist/lib/formatRejectionDate.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
|
@@ -1,340 +1,23 @@
|
|
|
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, Tooltip as d, TooltipContent as f, TooltipProvider as p, TooltipTrigger as m, Typography as h, cn as g } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { LINE_ITEMS_SECTION_LABELS_EN as _ } from "./index38.js";
|
|
3
|
-
import { useId as v } from "react";
|
|
4
|
-
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
5
|
-
import { CircleAlert as x, Minus as S, Plus as C, Trash2 as w, X as T } from "lucide-react";
|
|
6
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
children: H.heading
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ y("p", {
|
|
30
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
31
|
-
children: H.helpText
|
|
32
|
-
}),
|
|
33
|
-
k ? /* @__PURE__ */ y("span", {
|
|
34
|
-
id: G,
|
|
35
|
-
className: "ttw:sr-only",
|
|
36
|
-
children: k
|
|
37
|
-
}) : null,
|
|
38
|
-
E.map((h, _) => {
|
|
39
|
-
let v = `${U}-${h.id}`, E = L?.[h.id], A = (e) => `${v}-${e}-error`, j = (e) => E?.[e], M = (e) => {
|
|
40
|
-
let t = j(e);
|
|
41
|
-
return t ? /* @__PURE__ */ y("p", {
|
|
42
|
-
id: A(e),
|
|
43
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
44
|
-
children: t
|
|
45
|
-
}) : null;
|
|
46
|
-
};
|
|
47
|
-
return /* @__PURE__ */ y("div", {
|
|
48
|
-
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
|
|
49
|
-
children: /* @__PURE__ */ b("div", {
|
|
50
|
-
className: "ttw:@container/line-item ttw:flex ttw:flex-col ttw:gap-3",
|
|
51
|
-
children: [
|
|
52
|
-
/* @__PURE__ */ b("div", {
|
|
53
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
54
|
-
children: [/* @__PURE__ */ b("div", {
|
|
55
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
56
|
-
children: [W ? /* @__PURE__ */ b("span", {
|
|
57
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
58
|
-
children: [_ + 1, "."]
|
|
59
|
-
}) : null, /* @__PURE__ */ y(a, {
|
|
60
|
-
htmlFor: `${v}-description`,
|
|
61
|
-
children: H.description
|
|
62
|
-
})]
|
|
63
|
-
}), W ? /* @__PURE__ */ y(e, {
|
|
64
|
-
type: "button",
|
|
65
|
-
variant: "ghost",
|
|
66
|
-
size: "icon",
|
|
67
|
-
disabled: z,
|
|
68
|
-
"aria-label": H.removeLineItem(_ + 1),
|
|
69
|
-
onClick: h.onRemove,
|
|
70
|
-
children: /* @__PURE__ */ y(w, { className: "ttw:size-4" })
|
|
71
|
-
}) : null]
|
|
72
|
-
}),
|
|
73
|
-
/* @__PURE__ */ b("div", {
|
|
74
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
75
|
-
children: [/* @__PURE__ */ y(t, {
|
|
76
|
-
id: `${v}-description`,
|
|
77
|
-
placeholder: H.descriptionPlaceholder,
|
|
78
|
-
value: h.description,
|
|
79
|
-
disabled: z,
|
|
80
|
-
"aria-invalid": j("description") ? !0 : void 0,
|
|
81
|
-
"aria-describedby": j("description") ? A("description") : void 0,
|
|
82
|
-
onChange: (e) => h.onChange({ description: e.target.value })
|
|
83
|
-
}), M("description")]
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ b("div", {
|
|
86
|
-
className: "ttw:grid ttw:grid-cols-3 ttw:@lg/line-item:grid-cols-6 ttw:gap-3",
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ b("div", {
|
|
89
|
-
className: "ttw:col-span-3 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ b("div", {
|
|
92
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
93
|
-
children: [/* @__PURE__ */ y(a, {
|
|
94
|
-
htmlFor: `${v}-gl-code`,
|
|
95
|
-
children: H.glCode
|
|
96
|
-
}), k ? /* @__PURE__ */ y(p, { children: /* @__PURE__ */ b(d, { children: [/* @__PURE__ */ y(m, {
|
|
97
|
-
type: "button",
|
|
98
|
-
className: "ttw:inline-flex ttw:shrink-0 ttw:cursor-help ttw:text-muted-foreground",
|
|
99
|
-
"aria-label": k,
|
|
100
|
-
children: /* @__PURE__ */ y(x, { className: "ttw:size-3.5" })
|
|
101
|
-
}), /* @__PURE__ */ y(f, { children: k })] }) }) : null]
|
|
102
|
-
}),
|
|
103
|
-
/* @__PURE__ */ b("div", {
|
|
104
|
-
className: "ttw:relative",
|
|
105
|
-
children: [/* @__PURE__ */ b(o, {
|
|
106
|
-
value: h.glCode,
|
|
107
|
-
disabled: z || O,
|
|
108
|
-
onValueChange: (e) => h.onChange({ glCode: e }),
|
|
109
|
-
children: [/* @__PURE__ */ y(l, {
|
|
110
|
-
id: `${v}-gl-code`,
|
|
111
|
-
className: g("ttw:w-full", h.glCode && "ttw:[&>svg:last-child]:hidden!"),
|
|
112
|
-
"aria-invalid": j("glCode") ? !0 : void 0,
|
|
113
|
-
"aria-describedby": [j("glCode") ? A("glCode") : null, G].filter(Boolean).join(" ") || void 0,
|
|
114
|
-
children: /* @__PURE__ */ y(u, { placeholder: H.glCodePlaceholder })
|
|
115
|
-
}), /* @__PURE__ */ y(s, { children: D.map((e) => /* @__PURE__ */ y(c, {
|
|
116
|
-
value: e.value,
|
|
117
|
-
children: e.label
|
|
118
|
-
}, e.value)) })]
|
|
119
|
-
}), h.glCode && !(z || O) ? /* @__PURE__ */ y(e, {
|
|
120
|
-
type: "button",
|
|
121
|
-
variant: "ghost",
|
|
122
|
-
size: "icon-sm",
|
|
123
|
-
"aria-label": H.glCodeClear,
|
|
124
|
-
className: "ttw:absolute ttw:top-1/2 ttw:right-1 ttw:-translate-y-1/2",
|
|
125
|
-
onPointerDown: (e) => {
|
|
126
|
-
e.preventDefault(), e.stopPropagation();
|
|
127
|
-
},
|
|
128
|
-
onClick: (e) => {
|
|
129
|
-
e.preventDefault(), e.stopPropagation(), h.onChange({ glCode: "" });
|
|
130
|
-
},
|
|
131
|
-
children: /* @__PURE__ */ y(T, {
|
|
132
|
-
className: "ttw:size-4",
|
|
133
|
-
"aria-hidden": !0
|
|
134
|
-
})
|
|
135
|
-
}) : null]
|
|
136
|
-
}),
|
|
137
|
-
M("glCode")
|
|
138
|
-
]
|
|
139
|
-
}),
|
|
140
|
-
/* @__PURE__ */ b("div", {
|
|
141
|
-
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
142
|
-
children: [
|
|
143
|
-
/* @__PURE__ */ y(a, {
|
|
144
|
-
htmlFor: `${v}-quantity`,
|
|
145
|
-
children: H.quantity
|
|
146
|
-
}),
|
|
147
|
-
/* @__PURE__ */ b(n, {
|
|
148
|
-
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",
|
|
149
|
-
children: [
|
|
150
|
-
/* @__PURE__ */ y(e, {
|
|
151
|
-
type: "button",
|
|
152
|
-
variant: "ghost",
|
|
153
|
-
size: "icon",
|
|
154
|
-
className: "ttw:h-full ttw:shrink-0 ttw:rounded-r-none",
|
|
155
|
-
disabled: z,
|
|
156
|
-
"aria-label": H.decreaseQuantity(_ + 1),
|
|
157
|
-
onClick: () => h.onQuantityStep(-1),
|
|
158
|
-
children: /* @__PURE__ */ y(S, { className: "ttw:size-3.5" })
|
|
159
|
-
}),
|
|
160
|
-
/* @__PURE__ */ y(i, {
|
|
161
|
-
id: `${v}-quantity`,
|
|
162
|
-
inputMode: "decimal",
|
|
163
|
-
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",
|
|
164
|
-
value: h.quantity,
|
|
165
|
-
disabled: z,
|
|
166
|
-
"aria-invalid": j("quantity") ? !0 : void 0,
|
|
167
|
-
"aria-describedby": j("quantity") ? A("quantity") : void 0,
|
|
168
|
-
onChange: (e) => h.onChange({ quantity: e.target.value })
|
|
169
|
-
}),
|
|
170
|
-
/* @__PURE__ */ y(e, {
|
|
171
|
-
type: "button",
|
|
172
|
-
variant: "ghost",
|
|
173
|
-
size: "icon",
|
|
174
|
-
className: "ttw:h-full ttw:shrink-0 ttw:rounded-l-none",
|
|
175
|
-
disabled: z,
|
|
176
|
-
"aria-label": H.increaseQuantity(_ + 1),
|
|
177
|
-
onClick: () => h.onQuantityStep(1),
|
|
178
|
-
children: /* @__PURE__ */ y(C, { className: "ttw:size-3.5" })
|
|
179
|
-
})
|
|
180
|
-
]
|
|
181
|
-
}),
|
|
182
|
-
M("quantity")
|
|
183
|
-
]
|
|
184
|
-
}),
|
|
185
|
-
/* @__PURE__ */ b("div", {
|
|
186
|
-
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
187
|
-
children: [
|
|
188
|
-
/* @__PURE__ */ y(a, {
|
|
189
|
-
htmlFor: `${v}-price`,
|
|
190
|
-
children: H.price
|
|
191
|
-
}),
|
|
192
|
-
/* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(r, {
|
|
193
|
-
align: "inline-start",
|
|
194
|
-
"aria-hidden": !0,
|
|
195
|
-
children: H.currencySymbol
|
|
196
|
-
}), /* @__PURE__ */ y(i, {
|
|
197
|
-
id: `${v}-price`,
|
|
198
|
-
"data-has-start-addon": !0,
|
|
199
|
-
inputMode: "decimal",
|
|
200
|
-
className: "ttw:text-right ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
201
|
-
value: h.price,
|
|
202
|
-
disabled: z,
|
|
203
|
-
"aria-invalid": j("price") ? !0 : void 0,
|
|
204
|
-
"aria-describedby": j("price") ? A("price") : void 0,
|
|
205
|
-
onChange: (e) => h.onChange({ price: e.target.value })
|
|
206
|
-
})] }),
|
|
207
|
-
M("price")
|
|
208
|
-
]
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ b("div", {
|
|
211
|
-
className: "ttw:col-span-1 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
212
|
-
children: [
|
|
213
|
-
/* @__PURE__ */ y(a, {
|
|
214
|
-
htmlFor: `${v}-amount`,
|
|
215
|
-
children: H.amount
|
|
216
|
-
}),
|
|
217
|
-
/* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(r, {
|
|
218
|
-
align: "inline-start",
|
|
219
|
-
"aria-hidden": !0,
|
|
220
|
-
children: H.currencySymbol
|
|
221
|
-
}), /* @__PURE__ */ y(i, {
|
|
222
|
-
id: `${v}-amount`,
|
|
223
|
-
"data-has-start-addon": !0,
|
|
224
|
-
inputMode: "decimal",
|
|
225
|
-
className: "ttw:text-right ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
226
|
-
value: h.amount,
|
|
227
|
-
disabled: z,
|
|
228
|
-
"aria-invalid": j("amount") ? !0 : void 0,
|
|
229
|
-
"aria-describedby": j("amount") ? A("amount") : void 0,
|
|
230
|
-
onChange: (e) => h.onChange({ amount: e.target.value })
|
|
231
|
-
})] }),
|
|
232
|
-
M("amount")
|
|
233
|
-
]
|
|
234
|
-
})
|
|
235
|
-
]
|
|
236
|
-
})
|
|
237
|
-
]
|
|
238
|
-
})
|
|
239
|
-
}, h.id);
|
|
240
|
-
}),
|
|
241
|
-
/* @__PURE__ */ y(e, {
|
|
242
|
-
type: "button",
|
|
243
|
-
variant: "link",
|
|
244
|
-
disabled: z,
|
|
245
|
-
className: "ttw:self-start",
|
|
246
|
-
onClick: I,
|
|
247
|
-
children: H.addLineItem
|
|
248
|
-
}),
|
|
249
|
-
/* @__PURE__ */ b("div", {
|
|
250
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3",
|
|
251
|
-
children: [
|
|
252
|
-
/* @__PURE__ */ b("div", {
|
|
253
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
|
|
254
|
-
children: [/* @__PURE__ */ y(a, {
|
|
255
|
-
htmlFor: `${U}-discount`,
|
|
256
|
-
children: H.discount
|
|
257
|
-
}), /* @__PURE__ */ b("div", {
|
|
258
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
259
|
-
children: [/* @__PURE__ */ b(n, {
|
|
260
|
-
className: "ttw:w-36",
|
|
261
|
-
children: [/* @__PURE__ */ y(r, {
|
|
262
|
-
align: "inline-start",
|
|
263
|
-
"aria-hidden": !0,
|
|
264
|
-
children: H.currencySymbol
|
|
265
|
-
}), /* @__PURE__ */ y(i, {
|
|
266
|
-
id: `${U}-discount`,
|
|
267
|
-
"data-has-start-addon": !0,
|
|
268
|
-
inputMode: "decimal",
|
|
269
|
-
className: "ttw:text-right ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
270
|
-
value: A,
|
|
271
|
-
disabled: z,
|
|
272
|
-
"aria-invalid": R?.discount ? !0 : void 0,
|
|
273
|
-
"aria-describedby": R?.discount ? K("discount") : void 0,
|
|
274
|
-
onChange: (e) => j(e.target.value)
|
|
275
|
-
})]
|
|
276
|
-
}), q("discount")]
|
|
277
|
-
})]
|
|
278
|
-
}),
|
|
279
|
-
/* @__PURE__ */ b("div", {
|
|
280
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
|
|
281
|
-
children: [/* @__PURE__ */ y(a, {
|
|
282
|
-
htmlFor: `${U}-tax`,
|
|
283
|
-
children: H.tax
|
|
284
|
-
}), /* @__PURE__ */ b("div", {
|
|
285
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
286
|
-
children: [/* @__PURE__ */ b(n, {
|
|
287
|
-
className: "ttw:w-36",
|
|
288
|
-
children: [/* @__PURE__ */ y(r, {
|
|
289
|
-
align: "inline-start",
|
|
290
|
-
"aria-hidden": !0,
|
|
291
|
-
children: H.currencySymbol
|
|
292
|
-
}), /* @__PURE__ */ y(i, {
|
|
293
|
-
id: `${U}-tax`,
|
|
294
|
-
"data-has-start-addon": !0,
|
|
295
|
-
inputMode: "decimal",
|
|
296
|
-
className: "ttw:text-right ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
297
|
-
value: M,
|
|
298
|
-
disabled: z,
|
|
299
|
-
"aria-invalid": R?.tax ? !0 : void 0,
|
|
300
|
-
"aria-describedby": R?.tax ? K("tax") : void 0,
|
|
301
|
-
onChange: (e) => N(e.target.value)
|
|
302
|
-
})]
|
|
303
|
-
}), q("tax")]
|
|
304
|
-
})]
|
|
305
|
-
}),
|
|
306
|
-
/* @__PURE__ */ b("div", {
|
|
307
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
|
|
308
|
-
children: [/* @__PURE__ */ y(a, {
|
|
309
|
-
htmlFor: `${U}-total`,
|
|
310
|
-
className: "ttw:font-semibold",
|
|
311
|
-
children: H.totalAmount
|
|
312
|
-
}), /* @__PURE__ */ b("div", {
|
|
313
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
314
|
-
children: [/* @__PURE__ */ b(n, {
|
|
315
|
-
className: "ttw:w-36",
|
|
316
|
-
children: [/* @__PURE__ */ y(r, {
|
|
317
|
-
align: "inline-start",
|
|
318
|
-
"aria-hidden": !0,
|
|
319
|
-
children: H.currencySymbol
|
|
320
|
-
}), /* @__PURE__ */ y(i, {
|
|
321
|
-
id: `${U}-total`,
|
|
322
|
-
"data-has-start-addon": !0,
|
|
323
|
-
inputMode: "decimal",
|
|
324
|
-
className: "ttw:text-right ttw:font-semibold ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20",
|
|
325
|
-
value: P,
|
|
326
|
-
disabled: z,
|
|
327
|
-
"aria-invalid": R?.total ? !0 : void 0,
|
|
328
|
-
"aria-describedby": R?.total ? K("total") : void 0,
|
|
329
|
-
onChange: (e) => F(e.target.value)
|
|
330
|
-
})]
|
|
331
|
-
}), q("total")]
|
|
332
|
-
})]
|
|
333
|
-
})
|
|
334
|
-
]
|
|
335
|
-
})
|
|
336
|
-
]
|
|
337
|
-
});
|
|
338
|
-
}
|
|
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
|
+
glCodeClear: "Clear GL code",
|
|
10
|
+
quantity: "Quantity",
|
|
11
|
+
price: "Price",
|
|
12
|
+
amount: "Amount",
|
|
13
|
+
currencySymbol: "$",
|
|
14
|
+
discount: "Discounts",
|
|
15
|
+
tax: "Tax",
|
|
16
|
+
totalAmount: "Total amount",
|
|
17
|
+
addLineItem: "+ Add line item",
|
|
18
|
+
increaseQuantity: (e) => `Increase quantity — line item ${e}`,
|
|
19
|
+
decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
|
|
20
|
+
removeLineItem: (e) => `Remove line item ${e}`
|
|
21
|
+
};
|
|
339
22
|
//#endregion
|
|
340
|
-
export {
|
|
23
|
+
export { e as LINE_ITEMS_SECTION_LABELS_EN };
|