@tesouro/embedded-components-react 0.11.60 → 0.11.62

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 (65) hide show
  1. package/README.md +21 -21
  2. package/dist/index.css +37 -160
  3. package/dist/index.d.ts +50 -17
  4. package/dist/lib/BankAccountsWidget.d.ts +20 -7
  5. package/dist/lib/LinkedAccountsWidget.d.ts +30 -10
  6. package/dist/lib/WidgetSuite.d.ts +50 -17
  7. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index.js +5 -5
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +21 -26
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +18 -16
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +22 -35
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index6.js +29 -14
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index7.js +20 -24
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index8.js +31 -0
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +296 -0
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index12.js +1 -0
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +5 -10
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +42 -281
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index.js +5 -3
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +180 -0
  21. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +16 -184
  22. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +9 -93
  23. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +136 -81
  24. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +64 -101
  25. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index6.js +54 -81
  26. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +90 -65
  27. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +108 -183
  28. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +76 -0
  29. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +6 -8
  31. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +137 -120
  32. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/labels.js +5 -5
  33. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +47 -60
  34. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +71 -72
  35. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +22 -37
  36. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +119 -133
  37. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +12 -8
  38. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +9 -7
  40. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/rows.js +46 -27
  41. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useAdminEligibleUserIds.js +3 -2
  42. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +248 -224
  43. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/labels.js +5 -5
  44. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +22 -36
  46. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +23 -70
  47. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +91 -27
  48. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +80 -63
  49. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +145 -125
  50. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index2.js +61 -9
  51. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index3.js +77 -50
  52. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index4.js +180 -65
  53. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +22 -178
  54. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +6 -75
  55. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +48 -11
  56. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +45 -7
  57. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +8 -82
  58. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +15 -14
  60. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AddTile/AddTile.js +17 -0
  61. package/dist/packages/shared-ui-shadcn/dist/index.js +3603 -3518
  62. package/package.json +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index11.js +0 -1
  64. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +0 -67
  65. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +0 -138
@@ -2,189 +2,21 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r, Button as i, Separator as a } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
- import { CheckCircle2Icon as c, CopyIcon as l, EyeIcon as u, EyeOffIcon as d } from "lucide-react";
5
+ import { Button as e, Tooltip as t, TooltipContent as n, TooltipTrigger as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
8
7
  // ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js
9
- function f({ label: e, value: t, isCopied: n, copyAriaLabel: r, onCopy: a, trailingActions: u }) {
10
- return /* @__PURE__ */ s("div", {
11
- className: "ttw:space-y-1",
12
- children: [/* @__PURE__ */ o("p", {
13
- className: "ttw:text-sm ttw:text-muted-foreground",
14
- children: e
15
- }), /* @__PURE__ */ s("div", {
16
- className: "ttw:flex ttw:items-center ttw:gap-2",
17
- children: [
18
- /* @__PURE__ */ o("span", {
19
- className: "ttw:font-medium",
20
- children: t
21
- }),
22
- u,
23
- /* @__PURE__ */ o(i, {
24
- type: "button",
25
- variant: "ghost",
26
- size: "icon",
27
- className: "ttw:size-7 ttw:text-primary",
28
- "aria-label": r,
29
- onClick: a,
30
- children: o(n ? c : l, { className: "ttw:size-4" })
31
- })
32
- ]
33
- })]
34
- });
8
+ function o({ label: o, onClick: s, children: c, className: l }) {
9
+ return /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ i(r, {
10
+ asChild: !0,
11
+ children: /* @__PURE__ */ i(e, {
12
+ type: "button",
13
+ variant: "ghost",
14
+ size: "icon-sm",
15
+ "aria-label": o,
16
+ className: l,
17
+ onClick: s,
18
+ children: c
19
+ })
20
+ }), /* @__PURE__ */ i(n, { children: o })] });
35
21
  }
36
- function p({ labels: p, routingNumberLabel: m, accountNumberDisplayLabel: h, accountNumberTestId: g, wireAccountNumberLabel: _, bankNameLabel: v, bankAddressLabel: y, domesticWireIntroLabel: b, domesticWireNoteLabel: x, thingsToKnowBodyLabel: S, supportTeamHref: C, isAccountNumberVisible: w, isAccountNumberCopied: T, isRoutingNumberCopied: E, isDomesticWireExpanded: D, onDomesticWireExpandedChange: O, onToggleAccountNumberVisibility: k, onCopyAccountNumber: A, onCopyRoutingNumber: j, onCopyWireAccountNumber: M, onCopyWireRoutingNumber: N, onCopyBankName: P, onCopyBankAddress: F }) {
37
- return /* @__PURE__ */ s("div", {
38
- className: "ttw:space-y-6",
39
- children: [/* @__PURE__ */ s("section", {
40
- className: "ttw:space-y-4",
41
- children: [
42
- /* @__PURE__ */ o("h3", {
43
- className: "ttw:text-lg ttw:font-bold ttw:text-primary",
44
- children: p.detailsSectionTitle
45
- }),
46
- /* @__PURE__ */ o(a, { className: "ttw:bg-border" }),
47
- /* @__PURE__ */ s("div", {
48
- className: "ttw:space-y-4",
49
- children: [/* @__PURE__ */ o(f, {
50
- label: p.routingNumberLabel,
51
- value: m,
52
- isCopied: E,
53
- copyAriaLabel: p.copyLabel,
54
- onCopy: j
55
- }), /* @__PURE__ */ s("div", {
56
- className: "ttw:space-y-1",
57
- children: [/* @__PURE__ */ o("p", {
58
- className: "ttw:text-sm ttw:text-muted-foreground",
59
- children: p.accountNumberLabel
60
- }), /* @__PURE__ */ s("div", {
61
- className: "ttw:flex ttw:items-center ttw:gap-2",
62
- children: [
63
- /* @__PURE__ */ o("span", {
64
- "data-testid": g,
65
- className: "ttw:font-medium ttw:tracking-widest",
66
- children: h
67
- }),
68
- /* @__PURE__ */ o(i, {
69
- type: "button",
70
- variant: "ghost",
71
- size: "icon",
72
- className: "ttw:size-7 ttw:text-primary",
73
- "aria-label": p.toggleAccountNumberVisibility,
74
- onClick: k,
75
- children: o(w ? d : u, { className: "ttw:size-4" })
76
- }),
77
- /* @__PURE__ */ o(i, {
78
- type: "button",
79
- variant: "ghost",
80
- size: "icon",
81
- className: "ttw:size-7 ttw:text-primary",
82
- "aria-label": p.copyLabel,
83
- onClick: A,
84
- children: o(T ? c : l, { className: "ttw:size-4" })
85
- })
86
- ]
87
- })]
88
- })]
89
- })
90
- ]
91
- }), /* @__PURE__ */ s("section", {
92
- className: "ttw:space-y-3",
93
- children: [/* @__PURE__ */ o("h3", {
94
- className: "ttw:text-lg ttw:font-bold ttw:text-primary",
95
- children: p.receiveMoneySectionTitle
96
- }), /* @__PURE__ */ o(e, {
97
- type: "single",
98
- collapsible: !0,
99
- value: D ? "domestic-wire" : "",
100
- onValueChange: (e) => O(e === "domestic-wire"),
101
- className: "ttw:overflow-hidden ttw:rounded-xl ttw:border ttw:border-border",
102
- children: /* @__PURE__ */ s(n, {
103
- value: "domestic-wire",
104
- className: "ttw:border-0",
105
- children: [/* @__PURE__ */ o(r, {
106
- iconPosition: "left",
107
- className: "ttw:cursor-pointer ttw:bg-white ttw:px-4 ttw:py-3 ttw:font-medium ttw:hover:no-underline data-[state=closed]:rounded-xl data-[state=open]:rounded-t-xl data-[state=open]:rounded-b-none",
108
- children: p.domesticWireTitle
109
- }), /* @__PURE__ */ s(t, {
110
- className: "ttw:space-y-4 ttw:rounded-t-xl ttw:rounded-b-xl ttw:bg-[#F8F9FA] ttw:px-4 ttw:pt-4 ttw:pb-4",
111
- children: [
112
- /* @__PURE__ */ o("p", {
113
- className: "ttw:text-sm ttw:text-foreground",
114
- children: b
115
- }),
116
- /* @__PURE__ */ o("p", {
117
- className: "ttw:text-sm ttw:text-foreground",
118
- children: x
119
- }),
120
- /* @__PURE__ */ s("div", {
121
- className: "ttw:space-y-4 ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-4",
122
- children: [
123
- /* @__PURE__ */ o("p", {
124
- className: "ttw:font-medium",
125
- children: p.wireDetailsSectionTitle
126
- }),
127
- /* @__PURE__ */ o(f, {
128
- label: p.accountNumberLabel,
129
- value: _,
130
- copyAriaLabel: p.copyLabel,
131
- onCopy: M
132
- }),
133
- /* @__PURE__ */ o(f, {
134
- label: p.routingNumberLabel,
135
- value: m,
136
- copyAriaLabel: p.copyLabel,
137
- onCopy: N
138
- }),
139
- /* @__PURE__ */ o(f, {
140
- label: p.bankNameLabel,
141
- value: v,
142
- copyAriaLabel: p.copyLabel,
143
- onCopy: P
144
- }),
145
- y ? /* @__PURE__ */ o(f, {
146
- label: p.bankAddressLabel,
147
- value: y,
148
- copyAriaLabel: p.copyLabel,
149
- onCopy: F
150
- }) : null
151
- ]
152
- }),
153
- /* @__PURE__ */ s("p", {
154
- className: "ttw:text-sm ttw:text-foreground",
155
- children: [
156
- /* @__PURE__ */ o("span", {
157
- className: "ttw:font-semibold",
158
- children: p.thingsToKnowHeading
159
- }),
160
- " ",
161
- S
162
- ]
163
- }),
164
- C ? /* @__PURE__ */ s("p", {
165
- className: "ttw:text-sm ttw:text-foreground",
166
- children: [
167
- p.supportQuestionsPrefix,
168
- " ",
169
- /* @__PURE__ */ o(i, {
170
- variant: "link",
171
- asChild: !0,
172
- className: "ttw:h-auto ttw:p-0 ttw:text-sm ttw:font-normal",
173
- children: /* @__PURE__ */ o("a", {
174
- href: C,
175
- target: "_blank",
176
- rel: "noopener noreferrer",
177
- children: p.supportTeamLink
178
- })
179
- }),
180
- "."
181
- ]
182
- }) : null
183
- ]
184
- })]
185
- })
186
- })]
187
- })]
188
- });
189
- }
190
- export { p as AccountDetailsPanel };
22
+ export { o as IconActionButton };
@@ -1,94 +1,10 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { Button as e, Dialog as t, DialogContent as n, DialogFooter as r, DialogHeader as i, DialogTitle as a, DropdownMenu as o, DropdownMenuContent as s, DropdownMenuItem as c, DropdownMenuTrigger as l, Input as u, Label as d } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { InlineErrorAlert as f } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
7
- import "../../../../shared/ui/dist/index.js";
8
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
9
- import { MoreVerticalIcon as h, XIcon as g } from "lucide-react";
10
1
  // ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js
11
- function _({ labels: o, open: s, form: c, isSubmitting: l, isSaveDisabled: h = !1, isError: _, onOpenChange: v, onFormChange: y, onSubmit: b }) {
12
- return /* @__PURE__ */ p(t, {
13
- open: s,
14
- onOpenChange: v,
15
- children: /* @__PURE__ */ m(n, {
16
- showCloseButton: !1,
17
- className: "ttw:max-w-[400px] ttw:gap-0 ttw:p-0",
18
- children: [
19
- /* @__PURE__ */ m(i, {
20
- className: "ttw:border-b ttw:border-border ttw:p-6 ttw:pb-4 ttw:pr-12",
21
- children: [/* @__PURE__ */ p(a, {
22
- className: "ttw:text-left",
23
- children: o.editDialogTitle
24
- }), /* @__PURE__ */ p(e, {
25
- type: "button",
26
- variant: "ghost",
27
- size: "icon",
28
- className: "ttw:absolute ttw:top-4 ttw:right-4",
29
- "aria-label": o.editDialogCloseAriaLabel,
30
- disabled: l,
31
- onClick: () => v(!1),
32
- children: /* @__PURE__ */ p(g, { className: "ttw:size-4" })
33
- })]
34
- }),
35
- /* @__PURE__ */ m("div", {
36
- className: "ttw:p-6",
37
- children: [/* @__PURE__ */ m("div", {
38
- className: "ttw:space-y-2",
39
- children: [/* @__PURE__ */ m(d, {
40
- htmlFor: "edit-account-nickname",
41
- children: [o.editNicknameLabel, /* @__PURE__ */ p("span", {
42
- className: "ttw:text-destructive",
43
- children: "*"
44
- })]
45
- }), /* @__PURE__ */ p(u, {
46
- id: "edit-account-nickname",
47
- value: c.nickname,
48
- disabled: l,
49
- onChange: (e) => y({ nickname: e.target.value })
50
- })]
51
- }), _ ? /* @__PURE__ */ p(f, {
52
- className: "ttw:mt-4",
53
- children: o.editErrorTitle
54
- }) : null]
55
- }),
56
- /* @__PURE__ */ m(r, {
57
- className: "ttw:border-t ttw:border-border ttw:p-6 ttw:pt-4",
58
- children: [/* @__PURE__ */ p(e, {
59
- type: "button",
60
- variant: "outline",
61
- disabled: l,
62
- onClick: () => v(!1),
63
- children: o.editCancelButton
64
- }), /* @__PURE__ */ p(e, {
65
- type: "button",
66
- disabled: l || h,
67
- onClick: b,
68
- children: o.editSaveButton
69
- })]
70
- })
71
- ]
72
- })
73
- });
74
- }
75
- function v({ labels: t, canEdit: n, onEditNickname: r }) {
76
- return n ? /* @__PURE__ */ m(o, { children: [/* @__PURE__ */ p(l, {
77
- asChild: !0,
78
- children: /* @__PURE__ */ p(e, {
79
- type: "button",
80
- variant: "outline",
81
- size: "icon",
82
- className: "ttw:size-10 ttw:rounded-xl ttw:border-border ttw:text-muted-foreground",
83
- "aria-label": t.editAccountMenuItem,
84
- children: /* @__PURE__ */ p(h, { className: "ttw:size-4" })
85
- })
86
- }), /* @__PURE__ */ p(s, {
87
- align: "end",
88
- children: /* @__PURE__ */ p(c, {
89
- onSelect: r,
90
- children: t.editAccountMenuItem
91
- })
92
- })] }) : null;
93
- }
94
- export { v as AccountActionsMenu, _ as EditAccountDialog };
2
+ var e = {
3
+ AccountNumber: "accountNumber",
4
+ RoutingNumber: "routingNumber",
5
+ WireAccountNumber: "wireAccountNumber",
6
+ WireRoutingNumber: "wireRoutingNumber",
7
+ BankName: "bankName",
8
+ BankAddress: "bankAddress"
9
+ };
10
+ export { e as AccountDetailsCopyField };
@@ -2,93 +2,148 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { Button as e, DatePicker as t, Dialog as n, DialogContent as r, DialogDescription as i, DialogFooter as a, DialogHeader as o, DialogTitle as s, Label as c } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
- import { DownloadIcon as d, XIcon as f } from "lucide-react";
5
+ import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r, Button as i, DescriptionList as a, Heading as o, TooltipProvider as s } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { IconActionButton as c } from "./index2.js";
7
+ import { AccountDetailsCopyField as l } from "./index3.js";
8
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
+ import { CheckIcon as f, CopyIcon as p, EyeIcon as m, EyeOffIcon as h } from "lucide-react";
8
10
  // ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js
9
- function p({ labels: p, open: m, startDate: h, endDate: g, isDownloading: _, isDownloadDisabled: v, disabledStartDates: y, disabledEndDates: b, onOpenChange: x, onStartDateChange: S, onEndDateChange: C, onDownload: w }) {
10
- return /* @__PURE__ */ l(n, {
11
- open: m,
12
- onOpenChange: x,
13
- children: /* @__PURE__ */ u(r, {
14
- showCloseButton: !1,
15
- className: "ttw:max-w-[400px] ttw:gap-0 ttw:p-0",
11
+ function g({ value: e, copyLabel: t, copiedLabel: n, isCopied: r = !1, onCopy: i, valueTestId: a, revealAction: o }) {
12
+ return /* @__PURE__ */ d("span", {
13
+ className: "ttw:-my-1.5 ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1",
14
+ children: [
15
+ /* @__PURE__ */ u("span", {
16
+ "data-testid": a,
17
+ className: "ttw:tabular-nums",
18
+ children: e
19
+ }),
20
+ o,
21
+ /* @__PURE__ */ u(c, {
22
+ label: r ? n : t,
23
+ onClick: i,
24
+ children: u(r ? f : p, {})
25
+ })
26
+ ]
27
+ });
28
+ }
29
+ var _ = "domestic-wire";
30
+ function v({ labels: f, routingNumberLabel: p, accountNumberDisplayLabel: v, accountNumberTestId: y, wireAccountNumberLabel: b, bankNameLabel: x, bankAddressLabel: S, domesticWireIntroLabel: C, domesticWireNoteLabel: w, thingsToKnowBodyLabel: T, supportTeamHref: E, isAccountNumberVisible: D, copiedField: O, isDomesticWireExpanded: k, onDomesticWireExpandedChange: A, onToggleAccountNumberVisibility: j, onCopy: M }) {
31
+ let { copiedLabel: N } = f, P = (e) => ({
32
+ copiedLabel: N,
33
+ isCopied: O === e,
34
+ onCopy: () => M(e)
35
+ }), F = [
36
+ {
37
+ label: f.accountNumberLabel,
38
+ value: /* @__PURE__ */ u(g, {
39
+ value: b,
40
+ copyLabel: f.copyAccountNumber,
41
+ ...P(l.WireAccountNumber)
42
+ })
43
+ },
44
+ {
45
+ label: f.routingNumberLabel,
46
+ value: /* @__PURE__ */ u(g, {
47
+ value: p,
48
+ copyLabel: f.copyRoutingNumber,
49
+ ...P(l.WireRoutingNumber)
50
+ })
51
+ },
52
+ {
53
+ label: f.bankNameLabel,
54
+ value: /* @__PURE__ */ u(g, {
55
+ value: x,
56
+ copyLabel: f.copyBankName,
57
+ ...P(l.BankName)
58
+ })
59
+ },
60
+ ...S ? [{
61
+ label: f.bankAddressLabel,
62
+ value: /* @__PURE__ */ u(g, {
63
+ value: S,
64
+ copyLabel: f.copyBankAddress,
65
+ ...P(l.BankAddress)
66
+ })
67
+ }] : []
68
+ ];
69
+ return /* @__PURE__ */ u(s, { children: /* @__PURE__ */ u("div", {
70
+ className: "ttw:flex ttw:max-w-180 ttw:flex-col ttw:gap-6",
71
+ children: /* @__PURE__ */ d("section", {
72
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
16
73
  children: [
17
74
  /* @__PURE__ */ u(o, {
18
- className: "ttw:p-6 ttw:pb-4 ttw:pr-12",
19
- children: [/* @__PURE__ */ u("div", {
20
- className: "ttw:flex ttw:items-start ttw:gap-3",
21
- children: [/* @__PURE__ */ l("div", {
22
- className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/40",
23
- children: /* @__PURE__ */ l(d, { className: "ttw:size-5 ttw:text-primary" })
24
- }), /* @__PURE__ */ u("div", {
25
- className: "ttw:min-w-0 ttw:space-y-1",
26
- children: [/* @__PURE__ */ l(s, {
27
- className: "ttw:text-left",
28
- children: p.exportDialogTitle
29
- }), /* @__PURE__ */ l(i, {
30
- className: "ttw:text-left ttw:text-muted-foreground",
31
- children: p.exportDialogDescription
32
- })]
33
- })]
34
- }), /* @__PURE__ */ l(e, {
35
- type: "button",
36
- variant: "ghost",
37
- size: "icon",
38
- className: "ttw:absolute ttw:top-4 ttw:right-4",
39
- "aria-label": p.exportDialogCloseAriaLabel,
40
- disabled: _,
41
- onClick: () => x(!1),
42
- children: /* @__PURE__ */ l(f, { className: "ttw:size-4" })
43
- })]
75
+ variant: "section",
76
+ level: 3,
77
+ children: f.detailsSectionTitle
44
78
  }),
45
- /* @__PURE__ */ u("div", {
46
- className: "ttw:space-y-4 ttw:px-6 ttw:pb-6",
47
- children: [/* @__PURE__ */ u("div", {
48
- className: "ttw:space-y-2",
49
- children: [/* @__PURE__ */ l(c, {
50
- htmlFor: "export-start-date",
51
- children: p.exportStartDateLabel
52
- }), /* @__PURE__ */ l(t, {
53
- id: "export-start-date",
54
- value: h,
55
- onChange: S,
56
- placeholder: p.exportStartDatePlaceholder,
57
- disabled: _,
58
- disabledDates: y
79
+ /* @__PURE__ */ u(a, { items: [{
80
+ label: f.routingNumberLabel,
81
+ value: /* @__PURE__ */ u(g, {
82
+ value: p,
83
+ copyLabel: f.copyRoutingNumber,
84
+ ...P(l.RoutingNumber)
85
+ })
86
+ }, {
87
+ label: f.accountNumberLabel,
88
+ value: /* @__PURE__ */ u(g, {
89
+ value: v,
90
+ valueTestId: y,
91
+ copyLabel: f.copyAccountNumber,
92
+ ...P(l.AccountNumber),
93
+ revealAction: /* @__PURE__ */ u(c, {
94
+ label: D ? f.hideAccountNumber : f.showAccountNumber,
95
+ onClick: j,
96
+ children: u(D ? h : m, {})
97
+ })
98
+ })
99
+ }] }),
100
+ /* @__PURE__ */ u(e, {
101
+ type: "single",
102
+ collapsible: !0,
103
+ value: k ? _ : "",
104
+ onValueChange: (e) => A(e === _),
105
+ className: "ttw:border-t ttw:border-border",
106
+ children: /* @__PURE__ */ d(n, {
107
+ value: _,
108
+ children: [/* @__PURE__ */ u(r, {
109
+ className: "ttw:cursor-pointer ttw:py-2.5 ttw:text-foreground",
110
+ children: f.domesticWireTitle
111
+ }), /* @__PURE__ */ d(t, {
112
+ className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:pb-4 ttw:text-sm ttw:text-foreground",
113
+ children: [
114
+ /* @__PURE__ */ u("p", { children: C }),
115
+ /* @__PURE__ */ u(a, { items: F }),
116
+ /* @__PURE__ */ u("p", { children: w }),
117
+ /* @__PURE__ */ d("p", { children: [
118
+ /* @__PURE__ */ u("span", {
119
+ className: "ttw:font-semibold",
120
+ children: f.thingsToKnowHeading
121
+ }),
122
+ " ",
123
+ T
124
+ ] }),
125
+ E ? /* @__PURE__ */ d("p", { children: [
126
+ f.supportQuestionsPrefix,
127
+ " ",
128
+ /* @__PURE__ */ u(i, {
129
+ variant: "link",
130
+ asChild: !0,
131
+ className: "ttw:h-auto ttw:p-0 ttw:text-sm ttw:font-normal",
132
+ children: /* @__PURE__ */ u("a", {
133
+ href: E,
134
+ target: "_blank",
135
+ rel: "noopener noreferrer",
136
+ children: f.supportTeamLink
137
+ })
138
+ }),
139
+ "."
140
+ ] }) : null
141
+ ]
59
142
  })]
60
- }), /* @__PURE__ */ u("div", {
61
- className: "ttw:space-y-2",
62
- children: [/* @__PURE__ */ l(c, {
63
- htmlFor: "export-end-date",
64
- children: p.exportEndDateLabel
65
- }), /* @__PURE__ */ l(t, {
66
- id: "export-end-date",
67
- value: g,
68
- onChange: C,
69
- placeholder: p.exportEndDatePlaceholder,
70
- disabled: _,
71
- disabledDates: b
72
- })]
73
- })]
74
- }),
75
- /* @__PURE__ */ u(a, {
76
- className: "ttw:border-t ttw:border-border ttw:p-6 ttw:pt-4",
77
- children: [/* @__PURE__ */ l(e, {
78
- type: "button",
79
- variant: "outline",
80
- disabled: _,
81
- onClick: () => x(!1),
82
- children: p.exportCancelButton
83
- }), /* @__PURE__ */ l(e, {
84
- type: "button",
85
- disabled: v || _,
86
- onClick: w,
87
- children: p.exportDownloadButton
88
- })]
143
+ })
89
144
  })
90
145
  ]
91
146
  })
92
- });
147
+ }) });
93
148
  }
94
- export { p as ExportTransactionsDialog };
149
+ export { v as AccountDetailsPanel };