@tesouro/embedded-components-react 0.4.14 → 0.4.16

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.
Files changed (125) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -4
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +47 -21
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +20 -77
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +75 -24
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +36 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +64 -48
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +10 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +141 -118
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +93 -93
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +83 -67
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +235 -218
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +5 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +9 -6
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +17 -17
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -39
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -10
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +8 -50
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +52 -2
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -0
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +26 -49
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +19 -306
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +154 -2
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +2 -9
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +60 -45
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +251 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -18
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +7 -48
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +49 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -23
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +15 -337
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +50 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -16
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +21 -118
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +340 -2
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +2 -12
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +10 -97
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +99 -2
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -12
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +11 -57
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +58 -1
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +1 -54
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +52 -10
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +10 -179
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +181 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -4
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -39
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +41 -2
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -7
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +5 -90
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +92 -2
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -4
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -14
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +16 -2
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +1 -87
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +83 -291
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +292 -9
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +13 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +1 -8
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +6 -37
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +39 -2
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -39
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +36 -9
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -199
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +201 -3
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +3 -17
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +15 -345
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +345 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +6 -4
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +6 -91
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +93 -0
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -127
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +124 -25
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +26 -87
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +89 -2
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -7
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -28
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +30 -2
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -7
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +5 -32
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +34 -2
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -12
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +10 -104
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +105 -1
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +2 -17
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +15 -123
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +125 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -18
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +14 -6
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +7 -167
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +170 -2
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -14
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +11 -105
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +108 -2
  107. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index3.js +15 -3
  108. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +63 -65
  109. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +4 -2
  110. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +6 -5
  111. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +1 -1
  112. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +8 -8
  113. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +4 -4
  114. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
  115. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +19 -19
  116. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +39 -33
  117. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +15 -15
  118. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +9 -9
  119. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +7 -7
  120. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +37 -37
  121. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +15 -15
  122. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js +7 -7
  123. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  124. package/package.json +1 -1
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +0 -2
@@ -1,2 +1,340 @@
1
- import "./index37.js";
2
- import "./index38.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, 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
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js
7
+ function E({ items: E, glCodeOptions: D, glCodeDisabled: O, glCodeUnavailableMessage: k, discount: A, onDiscountChange: j, tax: M, onTaxChange: N, total: P, onTotalChange: F, onAddLineItem: I, errors: L, totalsErrors: R, disabled: z, testId: B, labels: V }) {
8
+ let H = {
9
+ ..._,
10
+ ...V
11
+ }, U = v(), W = E.length > 1, G = k ? `${U}-gl-code-unavailable` : void 0, K = (e) => `${U}-${e}-error`, q = (e) => {
12
+ let t = R?.[e];
13
+ return t ? /* @__PURE__ */ y("p", {
14
+ id: K(e),
15
+ className: "ttw:text-sm ttw:text-destructive ttw:text-right",
16
+ children: t
17
+ }) : null;
18
+ };
19
+ return /* @__PURE__ */ b("section", {
20
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
21
+ "data-testid": B,
22
+ children: [
23
+ /* @__PURE__ */ y(h, {
24
+ component: "h2",
25
+ variant: "h6",
26
+ className: "ttw:font-semibold",
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
+ }
339
+ //#endregion
340
+ export { E as LineItemsSection, E as default };
@@ -1,12 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js
2
- var e = {
3
- fieldLabel: "Select or add vendor",
4
- triggerPlaceholder: "Select vendor",
5
- placeholder: "Search",
6
- searchHint: "Type a vendor name to search",
7
- loading: "Searching vendors...",
8
- emptyResults: "No vendors found",
9
- addVendorAction: "Add vendor"
10
- };
11
- //#endregion
12
- export { e as VENDOR_SEARCH_COMBOBOX_LABELS_EN };
1
+ import "./index38.js";
2
+ import "./index39.js";
@@ -1,99 +1,12 @@
1
- import { Command as e, CommandGroup as t, CommandInput as n, CommandItem as r, CommandList as i, CommandSeparator as a, Label as o, Popover as s, PopoverContent as c, PopoverTrigger as l, Skeleton as u, cn as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as f } from "./index40.js";
3
- import { useId as p, useState as m } from "react";
4
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
5
- import { ChevronDown as _, Plus as v } from "lucide-react";
6
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js
7
- var y = 5, b = "ttw:min-h-44";
8
- function x({ query: x, onQueryChange: S, results: C, isLoading: w, onAddVendor: T, testId: E, labels: D }) {
9
- let O = {
10
- ...f,
11
- ...D
12
- }, k = p(), [A, j] = m(!1);
13
- return /* @__PURE__ */ g("div", {
14
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
15
- "data-testid": E,
16
- children: [/* @__PURE__ */ h(o, {
17
- htmlFor: k,
18
- children: O.fieldLabel
19
- }), /* @__PURE__ */ g(s, {
20
- open: A,
21
- onOpenChange: j,
22
- children: [/* @__PURE__ */ h(l, {
23
- asChild: !0,
24
- children: /* @__PURE__ */ g("button", {
25
- type: "button",
26
- id: k,
27
- role: "combobox",
28
- "aria-expanded": A,
29
- className: "ttw:flex ttw:h-10 ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:text-left ttw:text-sm ttw:shadow-xs ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50",
30
- children: [/* @__PURE__ */ h("span", {
31
- className: "ttw:min-w-0 ttw:flex-1 ttw:truncate ttw:text-muted-foreground",
32
- children: O.triggerPlaceholder
33
- }), /* @__PURE__ */ h(_, {
34
- "aria-hidden": !0,
35
- className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50"
36
- })]
37
- })
38
- }), /* @__PURE__ */ h(c, {
39
- align: "start",
40
- className: "ttw:w-[var(--radix-popover-trigger-width)] ttw:p-0",
41
- children: /* @__PURE__ */ g(e, {
42
- shouldFilter: !1,
43
- children: [/* @__PURE__ */ h(n, {
44
- value: x,
45
- onValueChange: S,
46
- placeholder: O.placeholder,
47
- "aria-label": O.placeholder
48
- }), /* @__PURE__ */ g(i, {
49
- className: d("ttw:max-h-72", b),
50
- children: [
51
- w ? /* @__PURE__ */ g("div", {
52
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-2",
53
- "aria-busy": "true",
54
- children: [/* @__PURE__ */ h("span", {
55
- className: "ttw:sr-only",
56
- children: O.loading
57
- }), Array.from({ length: y }).map((e, t) => /* @__PURE__ */ g("div", {
58
- className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-2 ttw:py-1.5",
59
- children: [/* @__PURE__ */ h(u, {
60
- height: 14,
61
- width: "55%"
62
- }), /* @__PURE__ */ h(u, {
63
- height: 14,
64
- width: "30%"
65
- })]
66
- }, t))]
67
- }) : x ? C.length === 0 ? /* @__PURE__ */ h("div", {
68
- className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", b),
69
- children: O.emptyResults
70
- }) : /* @__PURE__ */ h(t, { children: C.map((e, t) => /* @__PURE__ */ g(r, {
71
- value: `${e.name} ${e.email} ${t}`,
72
- onSelect: () => e.onSelect(),
73
- children: [/* @__PURE__ */ h("span", {
74
- className: "ttw:text-foreground",
75
- children: e.name
76
- }), /* @__PURE__ */ h("span", {
77
- className: "ttw:ml-auto ttw:text-muted-foreground",
78
- children: e.email
79
- })]
80
- }, `${e.name}:${e.email}:${t}`)) }) : /* @__PURE__ */ h("div", {
81
- className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm ttw:text-muted-foreground", b),
82
- children: O.searchHint
83
- }),
84
- /* @__PURE__ */ h(a, {}),
85
- /* @__PURE__ */ g(r, {
86
- value: "__add_vendor__",
87
- onSelect: T,
88
- className: "ttw:sticky ttw:bottom-0 ttw:bg-popover ttw:text-primary",
89
- children: [/* @__PURE__ */ h(v, { className: "ttw:size-4 ttw:text-primary" }), O.addVendorAction]
90
- })
91
- ]
92
- })]
93
- })
94
- })]
95
- })]
96
- });
97
- }
2
+ var e = {
3
+ fieldLabel: "Select or add vendor",
4
+ triggerPlaceholder: "Select vendor",
5
+ placeholder: "Search",
6
+ searchHint: "Type a vendor name to search",
7
+ loading: "Searching vendors...",
8
+ emptyResults: "No vendors found",
9
+ addVendorAction: "Add vendor"
10
+ };
98
11
  //#endregion
99
- export { x as VendorSearchCombobox, x as default };
12
+ export { e as VENDOR_SEARCH_COMBOBOX_LABELS_EN };
@@ -1,2 +1,99 @@
1
- import "./index40.js";
2
- import "./index41.js";
1
+ import { Command as e, CommandGroup as t, CommandInput as n, CommandItem as r, CommandList as i, CommandSeparator as a, Label as o, Popover as s, PopoverContent as c, PopoverTrigger as l, Skeleton as u, cn as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as f } from "./index41.js";
3
+ import { useId as p, useState as m } from "react";
4
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
5
+ import { ChevronDown as _, Plus as v } from "lucide-react";
6
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js
7
+ var y = 5, b = "ttw:min-h-44";
8
+ function x({ query: x, onQueryChange: S, results: C, isLoading: w, onAddVendor: T, testId: E, labels: D }) {
9
+ let O = {
10
+ ...f,
11
+ ...D
12
+ }, k = p(), [A, j] = m(!1);
13
+ return /* @__PURE__ */ g("div", {
14
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
15
+ "data-testid": E,
16
+ children: [/* @__PURE__ */ h(o, {
17
+ htmlFor: k,
18
+ children: O.fieldLabel
19
+ }), /* @__PURE__ */ g(s, {
20
+ open: A,
21
+ onOpenChange: j,
22
+ children: [/* @__PURE__ */ h(l, {
23
+ asChild: !0,
24
+ children: /* @__PURE__ */ g("button", {
25
+ type: "button",
26
+ id: k,
27
+ role: "combobox",
28
+ "aria-expanded": A,
29
+ className: "ttw:flex ttw:h-10 ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:text-left ttw:text-sm ttw:shadow-xs ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50",
30
+ children: [/* @__PURE__ */ h("span", {
31
+ className: "ttw:min-w-0 ttw:flex-1 ttw:truncate ttw:text-muted-foreground",
32
+ children: O.triggerPlaceholder
33
+ }), /* @__PURE__ */ h(_, {
34
+ "aria-hidden": !0,
35
+ className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50"
36
+ })]
37
+ })
38
+ }), /* @__PURE__ */ h(c, {
39
+ align: "start",
40
+ className: "ttw:w-[var(--radix-popover-trigger-width)] ttw:p-0",
41
+ children: /* @__PURE__ */ g(e, {
42
+ shouldFilter: !1,
43
+ children: [/* @__PURE__ */ h(n, {
44
+ value: x,
45
+ onValueChange: S,
46
+ placeholder: O.placeholder,
47
+ "aria-label": O.placeholder
48
+ }), /* @__PURE__ */ g(i, {
49
+ className: d("ttw:max-h-72", b),
50
+ children: [
51
+ w ? /* @__PURE__ */ g("div", {
52
+ className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-2",
53
+ "aria-busy": "true",
54
+ children: [/* @__PURE__ */ h("span", {
55
+ className: "ttw:sr-only",
56
+ children: O.loading
57
+ }), Array.from({ length: y }).map((e, t) => /* @__PURE__ */ g("div", {
58
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-2 ttw:py-1.5",
59
+ children: [/* @__PURE__ */ h(u, {
60
+ height: 14,
61
+ width: "55%"
62
+ }), /* @__PURE__ */ h(u, {
63
+ height: 14,
64
+ width: "30%"
65
+ })]
66
+ }, t))]
67
+ }) : x ? C.length === 0 ? /* @__PURE__ */ h("div", {
68
+ className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", b),
69
+ children: O.emptyResults
70
+ }) : /* @__PURE__ */ h(t, { children: C.map((e, t) => /* @__PURE__ */ g(r, {
71
+ value: `${e.name} ${e.email} ${t}`,
72
+ onSelect: () => e.onSelect(),
73
+ children: [/* @__PURE__ */ h("span", {
74
+ className: "ttw:text-foreground",
75
+ children: e.name
76
+ }), /* @__PURE__ */ h("span", {
77
+ className: "ttw:ml-auto ttw:text-muted-foreground",
78
+ children: e.email
79
+ })]
80
+ }, `${e.name}:${e.email}:${t}`)) }) : /* @__PURE__ */ h("div", {
81
+ className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm ttw:text-muted-foreground", b),
82
+ children: O.searchHint
83
+ }),
84
+ /* @__PURE__ */ h(a, {}),
85
+ /* @__PURE__ */ g(r, {
86
+ value: "__add_vendor__",
87
+ onSelect: T,
88
+ className: "ttw:sticky ttw:bottom-0 ttw:bg-popover ttw:text-primary",
89
+ children: [/* @__PURE__ */ h(v, { className: "ttw:size-4 ttw:text-primary" }), O.addVendorAction]
90
+ })
91
+ ]
92
+ })]
93
+ })
94
+ })]
95
+ })]
96
+ });
97
+ }
98
+ //#endregion
99
+ export { x as VendorSearchCombobox, x as default };
@@ -1,13 +1,2 @@
1
- import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index37.js";
2
- import "./index39.js";
3
- import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t } from "./index40.js";
1
+ import "./index41.js";
4
2
  import "./index42.js";
5
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js
6
- var n = {
7
- heading: "Who are you paying?",
8
- summaryCard: e,
9
- search: t,
10
- noVendorPlaceholder: "No vendor selected"
11
- };
12
- //#endregion
13
- export { n as VENDOR_SECTION_LABELS_EN };
@@ -1,59 +1,13 @@
1
- import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { VendorSummaryCard as t } from "./index38.js";
3
- import "./index39.js";
4
- import { VendorSearchCombobox as n } from "./index41.js";
5
- import "./index42.js";
6
- import { VENDOR_SECTION_LABELS_EN as r } from "./index43.js";
7
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
1
+ import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index26.js";
2
+ import "./index28.js";
3
+ import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t } from "./index41.js";
4
+ import "./index43.js";
8
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
9
- function o(o) {
10
- let { onEdit: s, onClear: c, error: l, testId: u, labels: d, disabled: f } = o, p = {
11
- ...r,
12
- ...d,
13
- summaryCard: {
14
- ...r.summaryCard,
15
- ...d?.summaryCard,
16
- ach: {
17
- ...r.summaryCard.ach,
18
- ...d?.summaryCard?.ach
19
- }
20
- },
21
- search: {
22
- ...r.search,
23
- ...d?.search
24
- }
25
- };
26
- return /* @__PURE__ */ a("section", {
27
- className: "ttw:flex ttw:flex-col ttw:gap-3",
28
- "data-invalid": l ? !0 : void 0,
29
- "data-testid": u,
30
- children: [
31
- /* @__PURE__ */ i(e, {
32
- component: "h2",
33
- variant: "h6",
34
- className: "ttw:font-semibold",
35
- children: p.heading
36
- }),
37
- o.mode === "resolved" ? /* @__PURE__ */ i(t, {
38
- summary: o.summary,
39
- onEdit: s,
40
- onClear: c,
41
- paymentInstructions: f ? void 0 : o.paymentInstructions,
42
- labels: p.summaryCard
43
- }) : f ? /* @__PURE__ */ i(e, {
44
- variant: "body2",
45
- className: "ttw:text-muted-foreground",
46
- children: p.noVendorPlaceholder
47
- }) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
48
- ...o.search,
49
- labels: p.search
50
- }) : o.newVendorForm,
51
- l ? /* @__PURE__ */ i("p", {
52
- className: "ttw:text-sm ttw:text-destructive",
53
- children: l
54
- }) : null
55
- ]
56
- });
57
- }
6
+ var n = {
7
+ heading: "Who are you paying?",
8
+ summaryCard: e,
9
+ search: t,
10
+ noVendorPlaceholder: "No vendor selected"
11
+ };
58
12
  //#endregion
59
- export { o as VendorSection, o as default };
13
+ export { n as VENDOR_SECTION_LABELS_EN };