@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.
Files changed (185) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -13
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -32
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +136 -16
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -121
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -13
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +119 -46
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -3
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -7
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +207 -5
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
  176. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +1 -1
  177. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
  178. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
  179. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  180. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +11 -0
  181. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  182. package/package.json +33 -1
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
  184. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
  185. 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
- 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
- }
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 { E as LineItemsSection, E as default };
23
+ export { e as LINE_ITEMS_SECTION_LABELS_EN };