@tesouro/embedded-components-react 0.11.0 → 0.11.2
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.
- package/dist/experimental/QuickViewWidget.d.ts +11 -0
- package/dist/experimental/RemoteCheckCapture.d.ts +11 -0
- package/dist/experimental/index.d.ts +11 -0
- package/dist/index.css +509 -61
- package/dist/index.d.ts +54 -13
- package/dist/lib/AcceptDisclosuresWidget.d.ts +11 -0
- package/dist/lib/BalancesWidget.d.ts +11 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +11 -0
- package/dist/lib/BankAccountsWidget.d.ts +11 -0
- package/dist/lib/BankingComplianceBannerWidget.d.ts +11 -0
- package/dist/lib/BillPayWidget.d.ts +11 -0
- package/dist/lib/CardDetailsWidget.d.ts +11 -0
- package/dist/lib/CounterpartsWidget.d.ts +11 -0
- package/dist/lib/CounterpartsWidgetPublic.d.ts +11 -0
- package/dist/lib/CreditCardsWidget.d.ts +11 -0
- package/dist/lib/CustomersWidget.d.ts +11 -0
- package/dist/lib/DebitCardsWidget.d.ts +11 -0
- package/dist/lib/ExpenseManagementWidget.d.ts +11 -0
- package/dist/lib/InsightsWidget.d.ts +11 -0
- package/dist/lib/LinkedAccountsWidget.d.ts +11 -0
- package/dist/lib/OfferWidget.d.ts +11 -0
- package/dist/lib/ProductsWidget.d.ts +11 -0
- package/dist/lib/ReceivablesWidget.d.ts +11 -0
- package/dist/lib/SettingsWidget.d.ts +11 -0
- package/dist/lib/TransfersWidget.d.ts +54 -13
- package/dist/lib/WidgetProvider.d.ts +11 -0
- package/dist/lib/WidgetProviderPublic.d.ts +11 -0
- package/dist/lib/WidgetSuite.d.ts +54 -13
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AmountInput/AmountInput.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/labels.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +159 -218
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/ReviewTransferStep.js +37 -88
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +184 -245
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js +43 -58
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/reviewTransferStepLabels.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/transferResultStepLabels.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/useFocusFirstInvalidField.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountValue.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +68 -101
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +155 -153
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +20 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/maskLabels.js +7 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +1850 -1607
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModalHeader.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferReviewAccountCard.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +0 -17
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DialogDescription as e, DialogTitle as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
-
import { ArrowRightLeft as i } from "lucide-react";
|
|
4
|
-
// ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModalHeader.js
|
|
5
|
-
function a({ title: a, subtitle: o }) {
|
|
6
|
-
return /* @__PURE__ */ n("div", {
|
|
7
|
-
className: "ttw:pb-4",
|
|
8
|
-
children: /* @__PURE__ */ r("div", {
|
|
9
|
-
className: "ttw:flex ttw:items-start ttw:gap-3 ttw:pr-8",
|
|
10
|
-
children: [/* @__PURE__ */ n("div", {
|
|
11
|
-
className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-primary/10",
|
|
12
|
-
children: /* @__PURE__ */ n(i, {
|
|
13
|
-
className: "ttw:size-[18px] ttw:text-primary",
|
|
14
|
-
"aria-hidden": !0
|
|
15
|
-
})
|
|
16
|
-
}), /* @__PURE__ */ r("div", {
|
|
17
|
-
className: "ttw:min-w-0 ttw:flex-1",
|
|
18
|
-
children: [/* @__PURE__ */ n(t, {
|
|
19
|
-
className: "ttw:text-left ttw:text-xl ttw:font-semibold ttw:leading-tight ttw:tracking-tight",
|
|
20
|
-
children: a
|
|
21
|
-
}), /* @__PURE__ */ n(e, {
|
|
22
|
-
className: "ttw:mt-1.5 ttw:text-left",
|
|
23
|
-
children: o
|
|
24
|
-
})]
|
|
25
|
-
})]
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
export { a as TransferMoneyModalHeader };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Typography as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Landmark as r } from "lucide-react";
|
|
4
|
-
// ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferReviewAccountCard.js
|
|
5
|
-
function i({ account: i }) {
|
|
6
|
-
let a = !!i.balanceLabel;
|
|
7
|
-
return /* @__PURE__ */ n("div", {
|
|
8
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-input ttw:px-4 ttw:py-3.5",
|
|
9
|
-
children: [/* @__PURE__ */ t("div", {
|
|
10
|
-
className: "ttw:min-w-0 ttw:flex-1",
|
|
11
|
-
children: i.showInstitutionIcon ? /* @__PURE__ */ n("div", {
|
|
12
|
-
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
13
|
-
children: [/* @__PURE__ */ t("div", {
|
|
14
|
-
className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-md ttw:bg-primary/10",
|
|
15
|
-
children: /* @__PURE__ */ t(r, {
|
|
16
|
-
className: "ttw:size-5 ttw:text-primary",
|
|
17
|
-
"aria-hidden": !0
|
|
18
|
-
})
|
|
19
|
-
}), /* @__PURE__ */ n("div", {
|
|
20
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-col",
|
|
21
|
-
children: [/* @__PURE__ */ t(e, {
|
|
22
|
-
variant: "body2",
|
|
23
|
-
component: "p",
|
|
24
|
-
className: "ttw:truncate ttw:font-semibold ttw:leading-tight ttw:text-foreground",
|
|
25
|
-
children: i.primaryLabel
|
|
26
|
-
}), /* @__PURE__ */ t(e, {
|
|
27
|
-
variant: "body2",
|
|
28
|
-
color: "muted",
|
|
29
|
-
component: "p",
|
|
30
|
-
className: "ttw:max-w-full ttw:break-all ttw:leading-tight",
|
|
31
|
-
children: i.accountDetailLabel
|
|
32
|
-
})]
|
|
33
|
-
})]
|
|
34
|
-
}) : /* @__PURE__ */ n("div", {
|
|
35
|
-
className: "ttw:flex ttw:min-w-0 ttw:max-w-full ttw:flex-col ttw:items-start",
|
|
36
|
-
children: [/* @__PURE__ */ t("span", {
|
|
37
|
-
className: "ttw:block ttw:max-w-full ttw:truncate ttw:rounded-full ttw:bg-primary/10 ttw:px-2.5 ttw:py-0.5 ttw:text-sm ttw:font-medium ttw:text-primary",
|
|
38
|
-
children: i.primaryLabel
|
|
39
|
-
}), /* @__PURE__ */ t(e, {
|
|
40
|
-
variant: "body2",
|
|
41
|
-
color: "muted",
|
|
42
|
-
component: "p",
|
|
43
|
-
className: "ttw:max-w-full ttw:break-all ttw:leading-tight",
|
|
44
|
-
children: i.accountDetailLabel
|
|
45
|
-
})]
|
|
46
|
-
})
|
|
47
|
-
}), a ? /* @__PURE__ */ n("div", {
|
|
48
|
-
className: "ttw:flex ttw:shrink-0 ttw:flex-col ttw:text-right",
|
|
49
|
-
children: [/* @__PURE__ */ t(e, {
|
|
50
|
-
variant: "body2",
|
|
51
|
-
component: "p",
|
|
52
|
-
className: "ttw:font-semibold ttw:leading-tight ttw:text-foreground",
|
|
53
|
-
children: i.balanceLabel
|
|
54
|
-
}), i.availableBalanceCaption ? /* @__PURE__ */ t(e, {
|
|
55
|
-
variant: "body2",
|
|
56
|
-
color: "muted",
|
|
57
|
-
component: "p",
|
|
58
|
-
className: "ttw:text-xs ttw:leading-tight",
|
|
59
|
-
children: i.availableBalanceCaption
|
|
60
|
-
}) : null]
|
|
61
|
-
}) : null]
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
export { i as TransferReviewAccountCard };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { cn as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { Landmark as n } from "lucide-react";
|
|
4
|
-
// ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js
|
|
5
|
-
function r({ kind: r }) {
|
|
6
|
-
return /* @__PURE__ */ t("span", {
|
|
7
|
-
className: e("ttw:flex ttw:size-7 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-md", r === "internal" ? "ttw:bg-primary/10 ttw:text-primary" : "ttw:bg-muted ttw:text-muted-foreground"),
|
|
8
|
-
children: /* @__PURE__ */ t(n, {
|
|
9
|
-
className: "ttw:size-4",
|
|
10
|
-
"aria-hidden": !0
|
|
11
|
-
})
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
export { r as TransferAccountTile };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Badge as e, cn as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
// ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js
|
|
4
|
-
var r = {
|
|
5
|
-
success: "ttw:bg-emerald-100 ttw:text-emerald-700",
|
|
6
|
-
warning: "ttw:bg-amber-100 ttw:text-amber-700",
|
|
7
|
-
destructive: "ttw:bg-destructive/10 ttw:text-destructive",
|
|
8
|
-
returned: "ttw:bg-rose-100 ttw:text-rose-700"
|
|
9
|
-
};
|
|
10
|
-
function i({ label: i, tone: a }) {
|
|
11
|
-
return /* @__PURE__ */ n(e, {
|
|
12
|
-
variant: "secondary",
|
|
13
|
-
className: t(r[a]),
|
|
14
|
-
children: i
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
export { i as TransferStatusBadge };
|