@tesouro/embedded-components-react 0.4.12 → 0.4.13

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 (104) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +127 -122
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +4 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +42 -41
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +12 -62
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +12 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -12
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -12
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -16
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +30 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -4
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +46 -26
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +296 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -50
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +7 -300
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +49 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +2 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +14 -45
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +50 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -23
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +21 -338
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +340 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -16
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +13 -117
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +120 -2
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -12
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +10 -97
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +99 -2
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +1 -12
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +11 -57
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +58 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -54
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +52 -10
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +10 -157
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +181 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -4
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -39
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +41 -2
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -7
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +5 -90
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +92 -2
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -4
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -14
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +16 -2
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +1 -85
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +83 -284
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +283 -9
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +13 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -8
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +6 -37
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -2
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -39
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +36 -9
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -199
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +201 -3
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +3 -17
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +15 -345
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +345 -8
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +6 -4
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -91
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +93 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -127
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +125 -26
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +26 -87
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +89 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -7
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +5 -28
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -2
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -7
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -32
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +34 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -12
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -104
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +105 -1
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -17
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +15 -123
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +125 -2
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +2 -18
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +14 -6
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +7 -167
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +170 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -14
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +11 -105
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +108 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -10
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +8 -50
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +52 -2
  102. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  103. package/package.json +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +0 -2
@@ -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 "./index37.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/index38.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 "./index37.js";
2
- import "./index38.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 "./index38.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/index39.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 "./index34.js";
2
- import "./index36.js";
3
- import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t } from "./index37.js";
1
+ import "./index38.js";
4
2
  import "./index39.js";
5
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.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 "./index35.js";
3
- import "./index36.js";
4
- import { VendorSearchCombobox as n } from "./index38.js";
5
- import "./index39.js";
6
- import { VENDOR_SECTION_LABELS_EN as r } from "./index40.js";
7
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
1
+ import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index35.js";
2
+ import "./index37.js";
3
+ import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t } from "./index38.js";
4
+ import "./index40.js";
8
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.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 };
@@ -1,2 +1,59 @@
1
+ import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { VendorSummaryCard as t } from "./index36.js";
3
+ import "./index37.js";
4
+ import { VendorSearchCombobox as n } from "./index39.js";
1
5
  import "./index40.js";
2
- import "./index41.js";
6
+ import { VENDOR_SECTION_LABELS_EN as r } from "./index41.js";
7
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
8
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.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
+ }
58
+ //#endregion
59
+ export { o as VendorSection, o as default };
@@ -1,55 +1,2 @@
1
- import { BILL_DETAIL_BODY_LABELS_EN as e, mergeBillDetailBodyLabels as t } from "./index25.js";
2
- import "./index27.js";
3
- import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index28.js";
4
- import "./index30.js";
5
- import { LINE_ITEMS_SECTION_LABELS_EN as r } from "./index31.js";
6
- import "./index33.js";
7
- import { VENDOR_SECTION_LABELS_EN as i } from "./index40.js";
1
+ import "./index41.js";
8
2
  import "./index42.js";
9
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js
10
- var a = {
11
- closeButton: "Close",
12
- collapseButton: "Exit full screen",
13
- menuTrigger: "More actions",
14
- cancelButton: "Cancel",
15
- saveDraftButton: "Save and close",
16
- finalizeButton: "Finalize",
17
- hiddenDescription: "Enter the details of the bill you want to pay.",
18
- vendorSection: i,
19
- detailsFields: n,
20
- lineItems: r,
21
- detailBody: e
22
- };
23
- function o(e) {
24
- return {
25
- ...a,
26
- ...e,
27
- vendorSection: {
28
- ...a.vendorSection,
29
- ...e?.vendorSection,
30
- summaryCard: {
31
- ...a.vendorSection.summaryCard,
32
- ...e?.vendorSection?.summaryCard,
33
- ach: {
34
- ...a.vendorSection.summaryCard.ach,
35
- ...e?.vendorSection?.summaryCard?.ach
36
- }
37
- },
38
- search: {
39
- ...a.vendorSection.search,
40
- ...e?.vendorSection?.search
41
- }
42
- },
43
- detailsFields: {
44
- ...a.detailsFields,
45
- ...e?.detailsFields
46
- },
47
- lineItems: {
48
- ...a.lineItems,
49
- ...e?.lineItems
50
- },
51
- detailBody: t(e?.detailBody)
52
- };
53
- }
54
- //#endregion
55
- export { a as BILL_CREATE_SCREEN_LABELS_EN, o as mergeBillCreateScreenLabels };
@@ -1,13 +1,55 @@
1
- import { useEffect as e, useRef as t } from "react";
1
+ import { BILL_DETAIL_BODY_LABELS_EN as e, mergeBillDetailBodyLabels as t } from "./index23.js";
2
+ import "./index25.js";
3
+ import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index26.js";
4
+ import "./index28.js";
5
+ import { LINE_ITEMS_SECTION_LABELS_EN as r } from "./index32.js";
6
+ import "./index34.js";
7
+ import { VENDOR_SECTION_LABELS_EN as i } from "./index41.js";
8
+ import "./index43.js";
2
9
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
3
- function n(n) {
4
- let r = t(null), i = t(n);
5
- return e(() => {
6
- if (n === i.current) return;
7
- i.current = n;
8
- let e = r.current?.querySelector("[aria-invalid=\"true\"], [data-invalid=\"true\"]");
9
- e?.scrollIntoView({ block: "center" }), e?.focus({ preventScroll: !0 });
10
- }, [n]), r;
10
+ var a = {
11
+ closeButton: "Close",
12
+ collapseButton: "Exit full screen",
13
+ menuTrigger: "More actions",
14
+ cancelButton: "Cancel",
15
+ saveDraftButton: "Save and close",
16
+ finalizeButton: "Finalize",
17
+ hiddenDescription: "Enter the details of the bill you want to pay.",
18
+ vendorSection: i,
19
+ detailsFields: n,
20
+ lineItems: r,
21
+ detailBody: e
22
+ };
23
+ function o(e) {
24
+ return {
25
+ ...a,
26
+ ...e,
27
+ vendorSection: {
28
+ ...a.vendorSection,
29
+ ...e?.vendorSection,
30
+ summaryCard: {
31
+ ...a.vendorSection.summaryCard,
32
+ ...e?.vendorSection?.summaryCard,
33
+ ach: {
34
+ ...a.vendorSection.summaryCard.ach,
35
+ ...e?.vendorSection?.summaryCard?.ach
36
+ }
37
+ },
38
+ search: {
39
+ ...a.vendorSection.search,
40
+ ...e?.vendorSection?.search
41
+ }
42
+ },
43
+ detailsFields: {
44
+ ...a.detailsFields,
45
+ ...e?.detailsFields
46
+ },
47
+ lineItems: {
48
+ ...a.lineItems,
49
+ ...e?.lineItems
50
+ },
51
+ detailBody: t(e?.detailBody)
52
+ };
11
53
  }
12
54
  //#endregion
13
- export { n as useFocusFirstInvalidField };
55
+ export { a as BILL_CREATE_SCREEN_LABELS_EN, o as mergeBillCreateScreenLabels };
@@ -1,160 +1,13 @@
1
- import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a, DropdownMenu as o, DropdownMenuContent as s, DropdownMenuItem as c, DropdownMenuTrigger as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { InlineErrorAlert as u } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { BillDetailBody as d } from "./index26.js";
5
- import "./index27.js";
6
- import { BillFormFields as f } from "./index29.js";
7
- import "./index30.js";
8
- import { LineItemsSection as p } from "./index32.js";
9
- import "./index33.js";
10
- import { VendorSection as m } from "./index41.js";
11
- import "./index42.js";
12
- import { mergeBillCreateScreenLabels as h } from "./index43.js";
13
- import { useFocusFirstInvalidField as g } from "./index44.js";
14
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
15
- import { Minimize2 as b, MoreVertical as x, X as S } from "lucide-react";
1
+ import { useEffect as e, useRef as t } from "react";
16
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js
17
- function C({ open: C, onOpenChange: w, title: T, subtitle: E, notice: D, vendor: O, values: k, errors: A, onChange: j, lineItems: M, documentPanel: N, menuItems: P, readOnly: F, detail: I, isLineItemsLoading: L, isSaving: R, isSavingDraft: z, isFinalizing: B, showFinalize: V = !0, onCancel: H, onCollapse: U, onSaveDraft: W, onFinalize: G, scrollToErrorToken: K, testId: q, labels: J }) {
18
- let Y = h(J), X = !!(F && I), Z = g(K);
19
- return /* @__PURE__ */ v(t, {
20
- open: C,
21
- onOpenChange: w,
22
- children: /* @__PURE__ */ y(n, {
23
- showCloseButton: !1,
24
- className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
25
- "data-testid": q,
26
- children: [
27
- /* @__PURE__ */ y(i, {
28
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
29
- children: [/* @__PURE__ */ y("div", {
30
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
31
- children: [
32
- /* @__PURE__ */ v(a, {
33
- className: "ttw:text-xl ttw:font-semibold",
34
- children: T
35
- }),
36
- E ? /* @__PURE__ */ v("p", {
37
- className: "ttw:text-sm ttw:text-muted-foreground",
38
- children: E
39
- }) : null,
40
- /* @__PURE__ */ v(r, {
41
- className: "ttw:sr-only",
42
- children: Y.hiddenDescription
43
- })
44
- ]
45
- }), /* @__PURE__ */ y("div", {
46
- className: "ttw:flex ttw:items-center ttw:gap-1",
47
- children: [
48
- U ? /* @__PURE__ */ v(e, {
49
- type: "button",
50
- variant: "ghost",
51
- size: "icon",
52
- "aria-label": Y.collapseButton,
53
- disabled: R,
54
- onClick: U,
55
- children: /* @__PURE__ */ v(b, { className: "ttw:size-4" })
56
- }) : null,
57
- P && P.length > 0 ? /* @__PURE__ */ y(o, { children: [/* @__PURE__ */ v(l, {
58
- asChild: !0,
59
- children: /* @__PURE__ */ v(e, {
60
- type: "button",
61
- variant: "ghost",
62
- size: "icon",
63
- "aria-label": Y.menuTrigger,
64
- disabled: R,
65
- children: /* @__PURE__ */ v(x, { className: "ttw:size-4" })
66
- })
67
- }), /* @__PURE__ */ v(s, {
68
- align: "end",
69
- children: P.map((e) => /* @__PURE__ */ v(c, {
70
- variant: e.destructive ? "destructive" : void 0,
71
- disabled: e.disabled,
72
- onSelect: e.onSelect,
73
- children: e.label
74
- }, e.id))
75
- })] }) : null,
76
- /* @__PURE__ */ v(e, {
77
- type: "button",
78
- variant: "ghost",
79
- size: "icon",
80
- "aria-label": Y.closeButton,
81
- disabled: R,
82
- onClick: H,
83
- children: /* @__PURE__ */ v(S, { className: "ttw:size-4" })
84
- })
85
- ]
86
- })]
87
- }),
88
- /* @__PURE__ */ y("div", {
89
- className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
90
- children: [/* @__PURE__ */ y("div", {
91
- ref: Z,
92
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
93
- children: [
94
- A?.form ? /* @__PURE__ */ v("div", {
95
- "data-invalid": "true",
96
- children: /* @__PURE__ */ v(u, { children: A.form })
97
- }) : null,
98
- D ? /* @__PURE__ */ v("div", {
99
- className: "ttw:flex ttw:flex-col ttw:gap-3",
100
- children: D
101
- }) : null,
102
- X ? /* @__PURE__ */ v(d, {
103
- ...I,
104
- labels: Y.detailBody
105
- }) : /* @__PURE__ */ y(_, { children: [
106
- /* @__PURE__ */ v(m, {
107
- ...O,
108
- onEdit: F ? void 0 : O.onEdit,
109
- onClear: F ? void 0 : O.onClear,
110
- disabled: F,
111
- labels: Y.vendorSection
112
- }),
113
- /* @__PURE__ */ v(f, {
114
- values: k,
115
- errors: A,
116
- onChange: j,
117
- disabled: F,
118
- labels: Y.detailsFields
119
- }),
120
- /* @__PURE__ */ v(p, {
121
- ...M,
122
- disabled: M.disabled || L || F,
123
- labels: Y.lineItems
124
- })
125
- ] })
126
- ]
127
- }), /* @__PURE__ */ v("div", {
128
- className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
129
- children: N
130
- })]
131
- }),
132
- X ? null : /* @__PURE__ */ y("div", {
133
- className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
134
- children: [/* @__PURE__ */ v(e, {
135
- type: "button",
136
- variant: "ghost",
137
- disabled: R,
138
- onClick: H,
139
- children: F ? Y.closeButton : Y.cancelButton
140
- }), F ? null : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(e, {
141
- type: "button",
142
- variant: V ? "secondary" : "default",
143
- onClick: W,
144
- loading: z,
145
- disabled: R || B || L || O.mode === "creating",
146
- children: Y.saveDraftButton
147
- }), V ? /* @__PURE__ */ v(e, {
148
- type: "button",
149
- onClick: G,
150
- loading: B,
151
- disabled: R || z || L || O.mode === "creating",
152
- children: Y.finalizeButton
153
- }) : null] })]
154
- })
155
- ]
156
- })
157
- });
3
+ function n(n) {
4
+ let r = t(null), i = t(n);
5
+ return e(() => {
6
+ if (n === i.current) return;
7
+ i.current = n;
8
+ let e = r.current?.querySelector("[aria-invalid=\"true\"], [data-invalid=\"true\"]");
9
+ e?.scrollIntoView({ block: "center" }), e?.focus({ preventScroll: !0 });
10
+ }, [n]), r;
158
11
  }
159
12
  //#endregion
160
- export { C as BillCreateScreen, C as default };
13
+ export { n as useFocusFirstInvalidField };