@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.60",
3
+ "version": "0.11.62",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,67 +0,0 @@
1
- // ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js
2
- var e = {
3
- title: "Linked accounts",
4
- connectButton: "Add external account",
5
- verifyCtaButton: "Click here to verify",
6
- learnMoreButton: "Learn more about linked accounts",
7
- connectTitle: "Link Account",
8
- nicknameLabel: "Account nickname",
9
- nameOnAccountLabel: "Legal name on account",
10
- accountNumberLabel: "Account number",
11
- routingNumberLabel: "Routing number",
12
- routingNumberError: "Routing number must be a valid 9-digit ABA routing number.",
13
- nicknamePlaceholder: "e.g. Operating account",
14
- holderTypeLabel: "Who owns this account?",
15
- personalOption: "Personal",
16
- personalOptionDescription: "Owned by an individual",
17
- businessOption: "Business",
18
- businessOptionDescription: "Owned by a company or organization",
19
- typeLabel: "Account type",
20
- checkingOption: "Checking",
21
- savingsOption: "Savings",
22
- cancelButton: "Cancel",
23
- closeButton: "Close",
24
- nextButton: "Next",
25
- backButton: "Back",
26
- stepIndicator: "Step {current}/{total}",
27
- connectStep1Heading: "Enter your bank details",
28
- connectStep1Description: "Tell us about the account you're linking, then enter its routing and account numbers.",
29
- connectStep2Heading: "Set team member access",
30
- connectStep2Description: "Who from your team should have access to manage/view this external account?",
31
- teamMemberAccessTooltip: "Members with access can view and manage this external account.",
32
- teamMembersLoadingLabel: "Loading team members",
33
- teamMembersErrorTitle: "Unable to load team members",
34
- teamMembersEmptyLabel: "No additional team members to add.",
35
- summaryTitle: "Verification deposits sent",
36
- summaryAccountAddedTitle: "Account added",
37
- summaryNextStepsHeading: "Next steps",
38
- summaryAccountPrefix: "Account",
39
- backToTransfersButton: "Back to Transfers",
40
- doneButton: "Done",
41
- saveButton: "Save account",
42
- editButton: "Edit",
43
- verifyButton: "Verify this account",
44
- unlinkButton: "Unlink",
45
- linkButton: "Link",
46
- editTitle: "Edit linked account",
47
- verifyTitle: "Enter deposit amounts",
48
- verifyDescription: "To verify this account, please enter the two deposit amounts seen in your personal bank account.",
49
- verifySectionHeading: "Enter the two deposit amounts that were sent to:",
50
- verifyExampleLabel: "Example:",
51
- verifyExampleText: "If you received $0.12 and $0.34, enter \"0.12\" and \"0.34\".",
52
- verifyAccountInProcess: "in process.",
53
- verifySuccessTitle: "Success!",
54
- verifySuccessDescription: "Your account {account} was successfully verified. You can now transfer money into and out of this account.",
55
- unlinkTitle: "Un-link Account",
56
- unlinkDescription: "Are you sure you want to un-link account {account} from business banking? Any transfers in process will continue to process, but no future money transfers will be able to process with this account.",
57
- unlinkConfirmButton: "Confirm",
58
- firstAmountLabel: "Deposit 1",
59
- secondAmountLabel: "Deposit 2",
60
- verifyAmountError: "Enter an amount between $0.01 and $0.99.",
61
- loadingLabel: "Loading linked accounts",
62
- errorTitle: "Unable to load linked accounts",
63
- actionErrorTitle: "Unable to update linked account",
64
- emptyTitle: "No Linked Accounts Yet",
65
- emptyDescription: "No external accounts have been linked yet."
66
- };
67
- export { e as DEFAULT_LABELS };
@@ -1,138 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { WidgetTitleWithIconAndChildren as n } from "../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
7
- import "../../../shared/ui/dist/index.js";
8
- import { DEFAULT_LABELS as r } from "./index15.js";
9
- import { AccountRow as i } from "./index3.js";
10
- import { linkedAccountsWidgetUiTestIds as a } from "./index8.js";
11
- import { ConnectAccountDialog as o } from "./index9.js";
12
- import { EditAccountDialog as s } from "./index11.js";
13
- import { EmptyState as c } from "./index12.js";
14
- import { UnlinkAccountDialog as l } from "./index13.js";
15
- import { VerifyAccountDialog as u } from "./index14.js";
16
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
17
- import { LinkIcon as m, PlusIcon as ee } from "lucide-react";
18
- // ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js
19
- function h({ labels: h, rows: g, isLoading: _ = !1, isError: v = !1, isConnectOpen: y, isEditOpen: b, isVerifyOpen: x, isUnlinkOpen: S, isSubmitting: C = !1, isActionDisabled: w = !1, canConnect: T = !0, isActionError: E = !1, isConnectError: D = !1, isEditError: O = !1, isVerifyError: k = !1, learnMoreUrl: A, unlinkAccountNumber: j, verifyAccountName: M, verifyAccountNumber: N, isVerifySuccess: P = !1, connectStep: F, accessRows: I, accessGrantedCount: L, isTeamMembersLoading: R = !1, isTeamMembersError: te = !1, isConnectNextDisabled: z = !1, isConnectRoutingNumberInvalid: B = !1, connectErrorMessage: V, isVerifyFirstAmountInvalid: H = !1, isVerifySecondAmountInvalid: U = !1, isVerifySubmitDisabled: W = !0, connectSummary: G, connectForm: K, editForm: q, verifyForm: J, onConnectOpenChange: Y, onEditOpenChange: X, onVerifyOpenChange: Z, onUnlinkOpenChange: Q, onConnectFormChange: ne, onEditFormChange: re, onVerifyFormChange: ie, onConnectNext: ae, onConnectBack: oe, onEditSubmit: se, onVerifySubmit: ce, onUnlinkConfirm: le }) {
20
- let $ = {
21
- ...r,
22
- ...h
23
- };
24
- return /* @__PURE__ */ p(d, { children: [
25
- /* @__PURE__ */ f(n, {
26
- icon: /* @__PURE__ */ f(m, { className: "ttw:size-5 ttw:shrink-0 ttw:text-foreground" }),
27
- title: $.title,
28
- headerActions: T ? /* @__PURE__ */ p(e, {
29
- type: "button",
30
- size: "sm",
31
- disabled: w,
32
- "data-testid": a.connectAccountButton,
33
- className: "ttw:inline-flex ttw:shrink-0 ttw:gap-2 ttw:whitespace-nowrap",
34
- onClick: () => Y(!0),
35
- children: [/* @__PURE__ */ f(ee, {
36
- className: "ttw:size-4",
37
- "aria-hidden": !0
38
- }), $.connectButton]
39
- }) : void 0,
40
- children: /* @__PURE__ */ p("div", {
41
- className: "ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border",
42
- children: [
43
- _ && /* @__PURE__ */ p("div", {
44
- "aria-label": $.loadingLabel,
45
- className: "ttw:space-y-3 ttw:p-4",
46
- children: [/* @__PURE__ */ f(t, {
47
- height: 44,
48
- width: "100%"
49
- }), /* @__PURE__ */ f(t, {
50
- height: 44,
51
- width: "100%"
52
- })]
53
- }),
54
- !_ && v && /* @__PURE__ */ f("div", {
55
- className: "ttw:p-4 ttw:text-sm ttw:text-destructive",
56
- children: $.errorTitle
57
- }),
58
- !_ && !v && E && /* @__PURE__ */ f("div", {
59
- role: "alert",
60
- className: "ttw:border-b ttw:border-destructive/30 ttw:p-4 ttw:text-sm ttw:text-destructive",
61
- children: $.actionErrorTitle
62
- }),
63
- !_ && !v && g.length === 0 && /* @__PURE__ */ f(c, {
64
- labels: $,
65
- learnMoreUrl: A,
66
- testId: a.emptyState
67
- }),
68
- !_ && !v && g.map((e, t) => /* @__PURE__ */ f(i, {
69
- row: e,
70
- isLast: t === g.length - 1,
71
- isActionDisabled: w
72
- }, e.key))
73
- ]
74
- })
75
- }),
76
- /* @__PURE__ */ f(o, {
77
- open: y,
78
- labels: $,
79
- connectStep: F,
80
- connectForm: K,
81
- accessRows: I,
82
- accessGrantedCount: L,
83
- connectSummary: G,
84
- isTeamMembersLoading: R,
85
- isTeamMembersError: te,
86
- isSubmitting: C,
87
- isActionDisabled: w,
88
- canConnect: T,
89
- isConnectError: D,
90
- isConnectNextDisabled: z,
91
- isConnectRoutingNumberInvalid: B,
92
- connectErrorMessage: V,
93
- onOpenChange: Y,
94
- onConnectFormChange: ne,
95
- onConnectNext: ae,
96
- onConnectBack: oe
97
- }),
98
- /* @__PURE__ */ f(s, {
99
- open: b,
100
- labels: $,
101
- editForm: q,
102
- isSubmitting: C,
103
- isActionDisabled: w,
104
- isEditError: O,
105
- onOpenChange: X,
106
- onEditFormChange: re,
107
- onEditSubmit: se
108
- }),
109
- /* @__PURE__ */ f(u, {
110
- open: x,
111
- labels: $,
112
- verifyForm: J,
113
- accountName: M,
114
- accountNumber: N,
115
- isVerifySuccess: P,
116
- isSubmitting: C,
117
- isActionDisabled: w,
118
- isVerifyFirstAmountInvalid: H,
119
- isVerifySecondAmountInvalid: U,
120
- isVerifySubmitDisabled: W,
121
- isVerifyError: k,
122
- onOpenChange: Z,
123
- onVerifyFormChange: ie,
124
- onVerifySubmit: ce
125
- }),
126
- /* @__PURE__ */ f(l, {
127
- open: S,
128
- labels: $,
129
- accountNumber: j,
130
- isSubmitting: C,
131
- isActionDisabled: w,
132
- isActionError: E,
133
- onOpenChange: Q,
134
- onUnlinkConfirm: le
135
- })
136
- ] });
137
- }
138
- export { h as LinkedAccountsWidgetUi };