@tesouro/embedded-components-react 0.11.68 → 0.11.70

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/index.css CHANGED
@@ -620,10 +620,6 @@
620
620
  width: 1em;
621
621
  height: 1em;
622
622
  }
623
- .ttw\:size-\[18px\] {
624
- width: 18px;
625
- height: 18px;
626
- }
627
623
  .ttw\:size-\[23px\] {
628
624
  width: 23px;
629
625
  height: 23px;
@@ -2970,12 +2966,6 @@
2970
2966
  background-color: color-mix(in oklab, var(--ttw-primary) 10%, transparent);
2971
2967
  }
2972
2968
  }
2973
- .ttw\:bg-primary\/15 {
2974
- background-color: var(--ttw-primary);
2975
- @supports (color: color-mix(in lab, red, red)) {
2976
- background-color: color-mix(in oklab, var(--ttw-primary) 15%, transparent);
2977
- }
2978
- }
2979
2969
  .ttw\:bg-purple-100 {
2980
2970
  background-color: var(--ttw-color-purple-100);
2981
2971
  }
@@ -6827,9 +6817,6 @@
6827
6817
  .ttw\:\[\&\>svg\]\:text-muted-foreground > svg {
6828
6818
  color: var(--ttw-muted-foreground);
6829
6819
  }
6830
- .ttw\:\[\&\>svg\]\:text-primary > svg {
6831
- color: var(--ttw-primary);
6832
- }
6833
6820
  .ttw\:\[\&\>svg\]\:text-sidebar-accent-foreground > svg {
6834
6821
  color: var(
6835
6822
  --ttw-sidebar-accent-foreground,
@@ -6,87 +6,86 @@ import { LoadingRegion as u } from "../../../../../shared/ui/dist/lib/LoadingReg
6
6
  import "../../../../../shared/ui/dist/index.js";
7
7
  import { BALANCES_WIDGET_LABELS_EN as d } from "./labels.js";
8
8
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
9
- import { ArrowRight as m, Info as h, Landmark as g } from "lucide-react";
9
+ import { ArrowRight as m, Info as h } from "lucide-react";
10
10
  // ../../libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/BalancesWidget.js
11
- var _ = ({ accountRows: _, children: v, isLoading: y, isError: b, onRetry: x, totalBalance: S, totalBalanceSpokenLabel: C, shouldTotalBalanceDisplay: w, shouldShowViewAllAccounts: T, onViewAllAccountsClicked: E, labels: D, testIds: O }) => {
12
- let k = {
11
+ var g = ({ accountRows: g, children: _, isLoading: v, isError: y, onRetry: b, totalBalance: x, totalBalanceSpokenLabel: S, shouldTotalBalanceDisplay: C, shouldShowViewAllAccounts: w, onViewAllAccountsClicked: T, labels: E, testIds: D }) => {
12
+ let O = {
13
13
  ...d,
14
- ...D
14
+ ...E
15
15
  };
16
16
  return /* @__PURE__ */ f(s, {
17
- icon: /* @__PURE__ */ f(g, {}),
18
- title: k.widgetTitle,
19
- children: y ? /* @__PURE__ */ f(u, {
17
+ title: O.widgetTitle,
18
+ children: v ? /* @__PURE__ */ f(u, {
20
19
  isLoading: !0,
21
- loadingLabel: k.loadingLabel,
20
+ loadingLabel: O.loadingLabel,
22
21
  children: /* @__PURE__ */ f(n, {
23
- "data-testid": O?.skeleton,
22
+ "data-testid": D?.skeleton,
24
23
  height: 80,
25
24
  width: "100%",
26
25
  className: "ttw:rounded-md"
27
26
  })
28
- }) : b ? /* @__PURE__ */ f(l, {
29
- title: k.loadErrorTitle,
30
- description: k.loadErrorDescription,
31
- retryLabel: k.loadErrorRetry,
32
- onRetry: x,
33
- testId: O?.error
34
- }) : _.length > 0 ? /* @__PURE__ */ p("div", {
27
+ }) : y ? /* @__PURE__ */ f(l, {
28
+ title: O.loadErrorTitle,
29
+ description: O.loadErrorDescription,
30
+ retryLabel: O.loadErrorRetry,
31
+ onRetry: b,
32
+ testId: D?.error
33
+ }) : g.length > 0 ? /* @__PURE__ */ p("div", {
35
34
  className: "ttw:-mt-5 ttw:flex ttw:flex-col ttw:gap-4",
36
35
  children: [/* @__PURE__ */ p("div", {
37
36
  className: "ttw:flex ttw:min-w-0 ttw:flex-col",
38
- children: [w && /* @__PURE__ */ p("div", {
37
+ children: [C && /* @__PURE__ */ p("div", {
39
38
  className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:pb-4",
40
39
  children: [
41
40
  /* @__PURE__ */ f(t, {
42
41
  className: "ttw:min-w-0 ttw:truncate",
43
- "aria-hidden": C ? !0 : void 0,
44
- children: S
42
+ "aria-hidden": S ? !0 : void 0,
43
+ children: x
45
44
  }),
46
- C && /* @__PURE__ */ f("span", {
45
+ S && /* @__PURE__ */ f("span", {
47
46
  className: "ttw:sr-only",
48
- children: C
47
+ children: S
49
48
  }),
50
49
  /* @__PURE__ */ p("div", {
51
50
  className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-1",
52
51
  children: [/* @__PURE__ */ f("span", {
53
- "data-testid": O?.totalAvailableLabel,
52
+ "data-testid": D?.totalAvailableLabel,
54
53
  className: "ttw:text-sm ttw:text-muted-foreground",
55
- children: k.totalAvailableBalance
54
+ children: O.totalAvailableBalance
56
55
  }), /* @__PURE__ */ f(a, { children: /* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(o, {
57
56
  asChild: !0,
58
57
  children: /* @__PURE__ */ f(e, {
59
58
  type: "button",
60
59
  variant: "ghost",
61
60
  size: "icon-sm",
62
- "aria-label": k.totalAvailableBalanceInfoAriaLabel,
63
- "data-testid": O?.totalBalanceInfo,
61
+ "aria-label": O.totalAvailableBalanceInfoAriaLabel,
62
+ "data-testid": D?.totalBalanceInfo,
64
63
  className: "ttw:shrink-0",
65
64
  children: /* @__PURE__ */ f(h, { "aria-hidden": !0 })
66
65
  })
67
66
  }), /* @__PURE__ */ f(i, {
68
67
  sideOffset: 4,
69
68
  className: "ttw:max-w-sm ttw:text-left",
70
- children: k.totalAvailableBalanceTooltip
69
+ children: O.totalAvailableBalanceTooltip
71
70
  })] }) })]
72
71
  })
73
72
  ]
74
73
  }), /* @__PURE__ */ f("div", {
75
74
  className: "ttw:flex ttw:min-w-0 ttw:flex-col",
76
- children: v
75
+ children: _
77
76
  })]
78
- }), T && /* @__PURE__ */ p(e, {
77
+ }), w && /* @__PURE__ */ p(e, {
79
78
  type: "button",
80
79
  variant: "link",
81
- onClick: E,
80
+ onClick: T,
82
81
  className: "ttw:h-auto ttw:self-start ttw:p-0",
83
- children: [k.viewAllAccounts, /* @__PURE__ */ f(m, { "aria-hidden": !0 })]
82
+ children: [O.viewAllAccounts, /* @__PURE__ */ f(m, { "aria-hidden": !0 })]
84
83
  })]
85
84
  }) : /* @__PURE__ */ f(c, {
86
- title: k.noBalancesFound,
87
- description: k.noBalancesDescription,
88
- testId: O?.empty
85
+ title: O.noBalancesFound,
86
+ description: O.noBalancesDescription,
87
+ testId: D?.empty
89
88
  })
90
89
  });
91
90
  };
92
- export { d as BALANCES_WIDGET_LABELS_EN, _ as BalancesWidget };
91
+ export { d as BALANCES_WIDGET_LABELS_EN, g as BalancesWidget };
@@ -6,67 +6,65 @@ import { LoadingRegion as c } from "../../../../../shared/ui/dist/lib/LoadingReg
6
6
  import "../../../../../shared/ui/dist/index.js";
7
7
  import { INSIGHTS_WIDGET_LABELS_EN as l } from "./labels.js";
8
8
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
- import { Sparkles as f } from "lucide-react";
10
9
  // ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/InsightsWidget.js
11
- var p = (e) => e === "active" || e === "dismissed", m = ({ hasInsights: m, children: h, activeFilter: g, setActiveFilter: _, activeCount: v, dismissedCount: y, isLoading: b, isError: x, onRetry: S, labels: C, testIds: w }) => {
12
- let T = {
10
+ var f = (e) => e === "active" || e === "dismissed", p = ({ hasInsights: p, children: m, activeFilter: h, setActiveFilter: g, activeCount: _, dismissedCount: v, isLoading: y, isError: b, onRetry: x, labels: S, testIds: C }) => {
11
+ let w = {
13
12
  ...l,
14
- ...C
13
+ ...S
15
14
  };
16
15
  return /* @__PURE__ */ u(a, {
17
- icon: /* @__PURE__ */ u(f, {}),
18
- title: T.widgetTitle,
19
- children: b ? /* @__PURE__ */ u(c, {
16
+ title: w.widgetTitle,
17
+ children: y ? /* @__PURE__ */ u(c, {
20
18
  isLoading: !0,
21
- loadingLabel: T.loadingLabel,
19
+ loadingLabel: w.loadingLabel,
22
20
  children: /* @__PURE__ */ u(e, {
23
- "data-testid": w?.skeleton,
21
+ "data-testid": C?.skeleton,
24
22
  height: 80,
25
23
  width: "100%",
26
24
  className: "ttw:rounded-md"
27
25
  })
28
- }) : x ? /* @__PURE__ */ u(s, {
29
- title: T.loadErrorTitle,
30
- description: T.loadErrorDescription,
31
- retryLabel: T.loadErrorRetry,
32
- onRetry: S,
33
- testId: w?.error
26
+ }) : b ? /* @__PURE__ */ u(s, {
27
+ title: w.loadErrorTitle,
28
+ description: w.loadErrorDescription,
29
+ retryLabel: w.loadErrorRetry,
30
+ onRetry: x,
31
+ testId: C?.error
34
32
  }) : /* @__PURE__ */ d(t, {
35
- value: g,
33
+ value: h,
36
34
  onValueChange: (e) => {
37
- p(e) && _(e);
35
+ f(e) && g(e);
38
36
  },
39
37
  className: "ttw:gap-4",
40
38
  children: [
41
39
  /* @__PURE__ */ d(r, {
42
40
  variant: "pills",
43
- "aria-label": T.filterTabsLabel,
41
+ "aria-label": w.filterTabsLabel,
44
42
  children: [/* @__PURE__ */ u(i, {
45
43
  value: "active",
46
- count: v,
47
- "data-testid": w?.activeTab,
48
- children: T.activeTab
44
+ count: _,
45
+ "data-testid": C?.activeTab,
46
+ children: w.activeTab
49
47
  }), /* @__PURE__ */ u(i, {
50
48
  value: "dismissed",
51
- count: y,
52
- children: T.dismissedTab
49
+ count: v,
50
+ children: w.dismissedTab
53
51
  })]
54
52
  }),
55
- /* @__PURE__ */ u(n, { value: g === "active" ? "dismissed" : "active" }),
53
+ /* @__PURE__ */ u(n, { value: h === "active" ? "dismissed" : "active" }),
56
54
  /* @__PURE__ */ u(n, {
57
- value: g,
58
- children: m ? /* @__PURE__ */ u("div", {
55
+ value: h,
56
+ children: p ? /* @__PURE__ */ u("div", {
59
57
  className: "ttw:flex ttw:max-h-80 ttw:flex-col ttw:gap-2 ttw:overflow-y-auto",
60
- "data-testid": w?.list,
61
- children: h
58
+ "data-testid": C?.list,
59
+ children: m
62
60
  }) : /* @__PURE__ */ u(o, {
63
- title: T.noInsightsFound,
64
- description: g === "active" ? T.noInsightsDescription : void 0,
65
- testId: w?.empty
61
+ title: w.noInsightsFound,
62
+ description: h === "active" ? w.noInsightsDescription : void 0,
63
+ testId: C?.empty
66
64
  })
67
65
  })
68
66
  ]
69
67
  })
70
68
  });
71
69
  };
72
- export { l as INSIGHTS_WIDGET_LABELS_EN, m as InsightsWidget };
70
+ export { l as INSIGHTS_WIDGET_LABELS_EN, p as InsightsWidget };
@@ -4,49 +4,48 @@
4
4
  "use client";
5
5
  import { Button as e, Skeleton as t, TooltipProvider as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
6
  import { Link as ee } from "../../../shared/ui/dist/lib/Link/Link.js";
7
- import { StatePanel as te } from "../../../shared/ui/dist/lib/StatePanel/StatePanel.js";
8
- import { ErrorState as ne } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
9
- import { LoadingRegion as r } from "../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
10
- import { WidgetTitleWithIconAndChildren as i } from "../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
7
+ import { WidgetFrame as te } from "../../../shared/ui/dist/lib/WidgetFrame/WidgetFrame.js";
8
+ import { StatePanel as r } from "../../../shared/ui/dist/lib/StatePanel/StatePanel.js";
9
+ import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
10
+ import { LoadingRegion as a } from "../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
11
11
  import "../../../shared/ui/dist/index.js";
12
- import { DEFAULT_LABELS as a } from "./index13.js";
13
- import { AccountRow as o } from "./index2.js";
14
- import { linkedAccountsWidgetUiTestIds as s } from "./index6.js";
15
- import { ConnectAccountDialog as c } from "./index7.js";
16
- import { EditAccountDialog as l } from "./index8.js";
17
- import { SendDepositsDialog as u } from "./index10.js";
18
- import { UnlinkAccountDialog as d } from "./index11.js";
19
- import { VerifyAccountDialog as f } from "./index12.js";
12
+ import { DEFAULT_LABELS as o } from "./index13.js";
13
+ import { AccountRow as s } from "./index2.js";
14
+ import { linkedAccountsWidgetUiTestIds as c } from "./index6.js";
15
+ import { ConnectAccountDialog as l } from "./index7.js";
16
+ import { EditAccountDialog as u } from "./index8.js";
17
+ import { SendDepositsDialog as d } from "./index10.js";
18
+ import { UnlinkAccountDialog as f } from "./index11.js";
19
+ import { VerifyAccountDialog as ne } from "./index12.js";
20
20
  import { Fragment as re, jsx as p, jsxs as m } from "react/jsx-runtime";
21
21
  import { LinkIcon as h } from "lucide-react";
22
22
  // ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js
23
- function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b, isConnectOpen: x, isEditOpen: S, isVerifyOpen: C, isUnlinkOpen: w, isSendDepositsOpen: T = !1, isSubmitting: E = !1, isActionDisabled: D = !1, isAuthPending: O = !1, canConnect: k = !0, isConnectError: A = !1, isEditError: j = !1, isVerifyError: M = !1, isUnlinkError: N = !1, isSendDepositsError: P = !1, learnMoreUrl: F, unlinkAccountNumber: I, sendDepositsAccountNumber: L, verifyAccountName: R, verifyAccountNumber: z, connectStep: B, accessRows: V, accessGrantedCount: H, isTeamMembersLoading: U = !1, isTeamMembersError: ie = !1, isConnectRequiredErrorVisible: W = !1, isConnectRoutingNumberInvalid: G = !1, connectErrorMessage: K, isVerifyFirstAmountInvalid: q = !1, isVerifySecondAmountInvalid: J = !1, isVerifyRequiredErrorVisible: Y = !1, connectSummary: ae, connectForm: oe, editForm: se, verifyForm: ce, onConnectOpenChange: X, onEditOpenChange: le, onVerifyOpenChange: ue, onUnlinkOpenChange: de, onSendDepositsOpenChange: fe, onConnectFormChange: pe, onEditFormChange: me, onVerifyFormChange: he, onConnectNext: ge, onConnectBack: _e, onTeamMembersRetry: ve, onEditSubmit: ye, onVerifySubmit: be, onUnlinkConfirm: xe, onSendDepositsConfirm: Se }) {
23
+ function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b, isConnectOpen: x, isEditOpen: S, isVerifyOpen: C, isUnlinkOpen: w, isSendDepositsOpen: T = !1, isSubmitting: E = !1, isActionDisabled: D = !1, isAuthPending: O = !1, canConnect: k = !0, isConnectError: A = !1, isEditError: j = !1, isVerifyError: M = !1, isUnlinkError: N = !1, isSendDepositsError: P = !1, learnMoreUrl: F, unlinkAccountNumber: I, sendDepositsAccountNumber: L, verifyAccountName: R, verifyAccountNumber: z, connectStep: B, accessRows: V, accessGrantedCount: H, isTeamMembersLoading: ie = !1, isTeamMembersError: U = !1, isConnectRequiredErrorVisible: W = !1, isConnectRoutingNumberInvalid: G = !1, connectErrorMessage: K, isVerifyFirstAmountInvalid: q = !1, isVerifySecondAmountInvalid: J = !1, isVerifyRequiredErrorVisible: Y = !1, connectSummary: ae, connectForm: oe, editForm: se, verifyForm: ce, onConnectOpenChange: X, onEditOpenChange: le, onVerifyOpenChange: ue, onUnlinkOpenChange: de, onSendDepositsOpenChange: fe, onConnectFormChange: pe, onEditFormChange: me, onVerifyFormChange: he, onConnectNext: ge, onConnectBack: _e, onTeamMembersRetry: ve, onEditSubmit: ye, onVerifySubmit: be, onUnlinkConfirm: xe, onSendDepositsConfirm: Se }) {
24
24
  let Z = {
25
- ...a,
25
+ ...o,
26
26
  ...g
27
27
  }, Q = !v && !y && _.length === 0, $ = /* @__PURE__ */ p(e, {
28
28
  type: "button",
29
29
  size: "sm",
30
30
  disabled: D,
31
- "data-testid": s.connectAccountButton,
31
+ "data-testid": c.connectAccountButton,
32
32
  onClick: () => X(!0),
33
33
  children: Z.connectButton
34
34
  });
35
35
  return /* @__PURE__ */ m(re, { children: [
36
- /* @__PURE__ */ p(i, {
37
- icon: /* @__PURE__ */ p(h, {}),
36
+ /* @__PURE__ */ p(te, {
38
37
  title: Z.title,
39
- headerActions: k && !Q ? $ : void 0,
40
- children: y ? /* @__PURE__ */ p(ne, {
38
+ action: k && !Q ? $ : void 0,
39
+ children: y ? /* @__PURE__ */ p(i, {
41
40
  title: Z.errorTitle,
42
41
  retryLabel: Z.retryButton,
43
42
  onRetry: b
44
- }) : Q ? /* @__PURE__ */ p(te, {
43
+ }) : Q ? /* @__PURE__ */ p(r, {
45
44
  kind: "empty",
46
45
  icon: /* @__PURE__ */ p(h, {}),
47
46
  title: Z.emptyTitle,
48
47
  description: Z.emptyDescription,
49
- testId: s.emptyState,
48
+ testId: c.emptyState,
50
49
  action: k || F ? /* @__PURE__ */ m("div", {
51
50
  className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-3",
52
51
  children: [k ? $ : null, F ? /* @__PURE__ */ p(ee, {
@@ -57,7 +56,7 @@ function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b,
57
56
  children: Z.learnMoreButton
58
57
  }) : null]
59
58
  }) : void 0
60
- }) : /* @__PURE__ */ p(r, {
59
+ }) : /* @__PURE__ */ p(a, {
61
60
  isLoading: v,
62
61
  loadingLabel: Z.loadingLabel,
63
62
  children: v ? /* @__PURE__ */ m("div", {
@@ -65,14 +64,14 @@ function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b,
65
64
  children: [/* @__PURE__ */ p(t, { className: "ttw:h-11 ttw:w-full" }), /* @__PURE__ */ p(t, { className: "ttw:h-11 ttw:w-full" })]
66
65
  }) : /* @__PURE__ */ p(n, { children: /* @__PURE__ */ p("ul", {
67
66
  className: "ttw:-my-3 ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
68
- children: _.map((e) => /* @__PURE__ */ p(o, {
67
+ children: _.map((e) => /* @__PURE__ */ p(s, {
69
68
  row: e,
70
69
  isActionDisabled: D
71
70
  }, e.key))
72
71
  }) })
73
72
  })
74
73
  }),
75
- /* @__PURE__ */ p(c, {
74
+ /* @__PURE__ */ p(l, {
76
75
  open: x,
77
76
  labels: Z,
78
77
  connectStep: B,
@@ -80,8 +79,8 @@ function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b,
80
79
  accessRows: V,
81
80
  accessGrantedCount: H,
82
81
  connectSummary: ae,
83
- isTeamMembersLoading: U,
84
- isTeamMembersError: ie,
82
+ isTeamMembersLoading: ie,
83
+ isTeamMembersError: U,
85
84
  isSubmitting: E,
86
85
  isActionDisabled: D,
87
86
  canConnect: k,
@@ -95,7 +94,7 @@ function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b,
95
94
  onConnectBack: _e,
96
95
  onTeamMembersRetry: ve
97
96
  }),
98
- /* @__PURE__ */ p(l, {
97
+ /* @__PURE__ */ p(u, {
99
98
  open: S,
100
99
  labels: Z,
101
100
  editForm: se,
@@ -107,7 +106,7 @@ function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b,
107
106
  onEditFormChange: me,
108
107
  onEditSubmit: ye
109
108
  }),
110
- /* @__PURE__ */ p(f, {
109
+ /* @__PURE__ */ p(ne, {
111
110
  open: C,
112
111
  labels: Z,
113
112
  verifyForm: ce,
@@ -124,7 +123,7 @@ function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b,
124
123
  onVerifyFormChange: he,
125
124
  onVerifySubmit: be
126
125
  }),
127
- /* @__PURE__ */ p(u, {
126
+ /* @__PURE__ */ p(d, {
128
127
  open: T,
129
128
  labels: Z,
130
129
  accountNumber: L,
@@ -134,7 +133,7 @@ function g({ labels: g, rows: _, isLoading: v = !1, isError: y = !1, onRetry: b,
134
133
  onOpenChange: fe,
135
134
  onConfirm: Se
136
135
  }),
137
- /* @__PURE__ */ p(d, {
136
+ /* @__PURE__ */ p(f, {
138
137
  open: w,
139
138
  labels: Z,
140
139
  accountNumber: I,
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.68", n = "1468a37a3e34161d7c068bff6667dddd9937ea52", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.70", n = "ef422258d25803fdf583bdc335b0a4e3f4c64d59", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -26,10 +26,9 @@ import { MaskedAccountNumber as S } from "./lib/MaskedAccountNumber/MaskedAccoun
26
26
  import { InlineErrorAlert as C } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
27
27
  import { PAGINATION_FOOTER_LABELS_EN as w } from "./lib/PaginationFooter/labels.js";
28
28
  import { PaginationFooter as T } from "./lib/PaginationFooter/PaginationFooter.js";
29
- import { WidgetTitleWithIconAndChildren as E } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
30
29
  import "./lib/OnboardingShell/labels.js";
31
30
  import "./lib/OnboardingShell/OnboardingShellStepper.js";
32
31
  import "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
33
- import { OnboardingShell as D } from "./lib/OnboardingShell/OnboardingShell.js";
34
- import { SectionHeading as O } from "./lib/SectionHeading/SectionHeading.js";
35
- export { m as AddTile, b as AmountInput, _ as ERROR_STATE_ID, t as EmbeddedToaster, g as EmptyState, v as ErrorState, u as HostIsolationScope, C as InlineErrorAlert, d as Link, x as LoadingRegion, S as MaskedAccountNumber, y as NoAccessState, D as OnboardingShell, w as PAGINATION_FOOTER_LABELS_EN, T as PaginationFooter, O as SectionHeading, h as StatePanel, n as ToastNameMessage, r as UIFramework, a as UIProvider, p as WidgetContainer, f as WidgetFrame, E as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
32
+ import { OnboardingShell as E } from "./lib/OnboardingShell/OnboardingShell.js";
33
+ import { SectionHeading as D } from "./lib/SectionHeading/SectionHeading.js";
34
+ export { m as AddTile, b as AmountInput, _ as ERROR_STATE_ID, t as EmbeddedToaster, g as EmptyState, v as ErrorState, u as HostIsolationScope, C as InlineErrorAlert, d as Link, x as LoadingRegion, S as MaskedAccountNumber, y as NoAccessState, E as OnboardingShell, w as PAGINATION_FOOTER_LABELS_EN, T as PaginationFooter, D as SectionHeading, h as StatePanel, n as ToastNameMessage, r as UIFramework, a as UIProvider, p as WidgetContainer, f as WidgetFrame, e as avatarSwatchFor, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
@@ -1,11 +1,10 @@
1
1
  import { WidgetFrame as e } from "../WidgetFrame/WidgetFrame.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetContainer/WidgetContainer.js
4
- function n({ icon: n, title: r, children: i }) {
4
+ function n({ title: n, children: r }) {
5
5
  return /* @__PURE__ */ t(e, {
6
- icon: n,
7
- title: r,
8
- children: i
6
+ title: n,
7
+ children: r
9
8
  });
10
9
  }
11
10
  export { n as WidgetContainer };
@@ -1,33 +1,26 @@
1
1
  import { Typography as e, cn as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js
4
- function i({ title: i, icon: a, action: o, bodyClassName: s, className: c, children: l, ...u }) {
5
- let d = i !== void 0 || o != null;
4
+ function i({ title: i, action: a, bodyClassName: o, className: s, children: c, ...l }) {
5
+ let u = i !== void 0 || a != null;
6
6
  return /* @__PURE__ */ r("div", {
7
7
  "data-slot": "widget-frame",
8
- className: t("ttw:@container/widget ttw:flex ttw:w-full ttw:flex-col ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:text-card-foreground", c),
9
- ...u,
10
- children: [d ? /* @__PURE__ */ r("div", {
8
+ className: t("ttw:@container/widget ttw:flex ttw:w-full ttw:flex-col ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:text-card-foreground", s),
9
+ ...l,
10
+ children: [u ? /* @__PURE__ */ r("div", {
11
11
  className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:px-4 ttw:py-3",
12
- children: [i === void 0 ? null : /* @__PURE__ */ r("div", {
13
- className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-2",
14
- children: [a ? /* @__PURE__ */ n("span", {
15
- "aria-hidden": !0,
16
- className: "ttw:flex ttw:shrink-0 ttw:items-center ttw:text-primary ttw:[&>svg]:size-5 ttw:[&>svg]:text-primary",
17
- children: a
18
- }) : null, /* @__PURE__ */ n(e, {
19
- component: "h2",
20
- variant: "h6",
21
- className: "ttw:min-w-0 ttw:font-semibold ttw:text-foreground",
22
- children: i
23
- })]
24
- }), o == null ? null : /* @__PURE__ */ n("div", {
12
+ children: [i === void 0 ? null : /* @__PURE__ */ n(e, {
13
+ component: "h2",
14
+ variant: "h6",
15
+ className: "ttw:min-w-0 ttw:font-semibold ttw:text-foreground",
16
+ children: i
17
+ }), a == null ? null : /* @__PURE__ */ n("div", {
25
18
  className: "ttw:ml-auto ttw:flex ttw:shrink-0 ttw:items-center ttw:justify-end ttw:gap-2",
26
- children: o
19
+ children: a
27
20
  })]
28
21
  }) : null, /* @__PURE__ */ n("div", {
29
- className: t("ttw:flex ttw:flex-col ttw:p-4", s),
30
- children: l
22
+ className: t("ttw:flex ttw:flex-col ttw:p-4", o),
23
+ children: c
31
24
  })]
32
25
  });
33
26
  }
@@ -11,18 +11,17 @@ import { TransferAccountValue as p } from "./TransferAccountValue.js";
11
11
  import { TransferMoneyModal as m } from "../TransferMoneyModal/TransferMoneyModal.js";
12
12
  import { TransferDetailSheet as h } from "./TransferDetailSheet.js";
13
13
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
14
- import { ArrowDownUp as y } from "lucide-react";
15
14
  // ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js
16
- var b = [], x = () => void 0;
17
- function S({ transferRows: e, isLoading: r, isError: a, onRetry: f, showTransferMoneyCta: p, isTransferMoneyCtaDisabled: S = !1, onTransferMoneyClick: D, transferMoneyModal: O, pagination: k, selectedRowKey: A, onRowClick: j, transferDetail: M, onTransferDetailClose: N, onLinkAccountClick: P, labels: F, testIds: I }) {
18
- let L = {
15
+ var y = [], b = () => void 0;
16
+ function x({ transferRows: e, isLoading: r, isError: a, onRetry: f, showTransferMoneyCta: p, isTransferMoneyCtaDisabled: x = !1, onTransferMoneyClick: E, transferMoneyModal: D, pagination: O, selectedRowKey: k, onRowClick: A, transferDetail: j, onTransferDetailClose: M, onLinkAccountClick: N, labels: P, testIds: F }) {
17
+ let I = {
19
18
  ...d,
20
- ...F
21
- }, R = [
19
+ ...P
20
+ }, L = [
22
21
  {
23
22
  id: "date",
24
23
  meta: { fitContent: !0 },
25
- header: L.tableHeaderDate,
24
+ header: I.tableHeaderDate,
26
25
  cell: ({ row: e }) => /* @__PURE__ */ _("span", {
27
26
  className: "ttw:font-normal ttw:whitespace-nowrap ttw:text-muted-foreground",
28
27
  children: e.original.dateLabel
@@ -30,125 +29,124 @@ function S({ transferRows: e, isLoading: r, isError: a, onRetry: f, showTransfer
30
29
  },
31
30
  {
32
31
  id: "from",
33
- header: L.transferFromLabel,
34
- cell: ({ row: e }) => /* @__PURE__ */ _(C, {
32
+ header: I.transferFromLabel,
33
+ cell: ({ row: e }) => /* @__PURE__ */ _(S, {
35
34
  account: e.original.from,
36
- labels: L
35
+ labels: I
37
36
  })
38
37
  },
39
38
  {
40
39
  id: "to",
41
- header: L.transferToLabel,
42
- cell: ({ row: e }) => /* @__PURE__ */ _(C, {
40
+ header: I.transferToLabel,
41
+ cell: ({ row: e }) => /* @__PURE__ */ _(S, {
43
42
  account: e.original.to,
44
- labels: L
43
+ labels: I
45
44
  })
46
45
  },
47
46
  {
48
47
  id: "status",
49
48
  meta: { fitContent: !0 },
50
- header: L.tableHeaderStatus,
51
- cell: ({ row: e }) => /* @__PURE__ */ _(w, { row: e.original })
49
+ header: I.tableHeaderStatus,
50
+ cell: ({ row: e }) => /* @__PURE__ */ _(C, { row: e.original })
52
51
  },
53
52
  {
54
53
  id: "amount",
55
54
  meta: { fitContent: !0 },
56
55
  header: () => /* @__PURE__ */ _("span", {
57
56
  className: "ttw:block ttw:text-right",
58
- children: L.tableHeaderAmount
57
+ children: I.tableHeaderAmount
59
58
  }),
60
- cell: ({ row: e }) => /* @__PURE__ */ _(T, { row: e.original })
59
+ cell: ({ row: e }) => /* @__PURE__ */ _(w, { row: e.original })
61
60
  }
62
- ], z = j ? {
63
- onRowClick: (e) => j(e.rowKey),
61
+ ], R = A ? {
62
+ onRowClick: (e) => A(e.rowKey),
64
63
  rowAriaLabel: (e) => e.ariaLabel
65
- } : {}, B = k ? /* @__PURE__ */ _(u, {
66
- ...k,
64
+ } : {}, z = O ? /* @__PURE__ */ _(u, {
65
+ ...O,
67
66
  labels: {
68
- rowsPerPageLabel: L.paginationRowsPerPage,
69
- previousPageButton: L.paginationPreviousPage,
70
- nextPageButton: L.paginationNextPage
67
+ rowsPerPageLabel: I.paginationRowsPerPage,
68
+ previousPageButton: I.paginationPreviousPage,
69
+ nextPageButton: I.paginationNextPage
71
70
  }
72
- }) : null, V = p && !r ? /* @__PURE__ */ _("span", {
71
+ }) : null, B = p && !r ? /* @__PURE__ */ _("span", {
73
72
  className: "ttw:inline-flex ttw:shrink-0",
74
- title: S ? L.transferMoneyCtaDisabledTooltip : void 0,
73
+ title: x ? I.transferMoneyCtaDisabledTooltip : void 0,
75
74
  children: /* @__PURE__ */ _(t, {
76
75
  type: "button",
77
76
  size: "sm",
78
77
  className: "ttw:whitespace-nowrap",
79
- disabled: S,
80
- onClick: S ? void 0 : D,
81
- "data-testid": I?.transferMoneyButton,
82
- children: L.transferMoneyCta
78
+ disabled: x,
79
+ onClick: x ? void 0 : E,
80
+ "data-testid": F?.transferMoneyButton,
81
+ children: I.transferMoneyCta
83
82
  })
84
- }) : void 0, H = !r && !a && e.length > 0;
83
+ }) : void 0, V = !r && !a && e.length > 0;
85
84
  return /* @__PURE__ */ v(g, { children: [
86
85
  /* @__PURE__ */ _(o, {
87
- icon: /* @__PURE__ */ _(y, {}),
88
- title: L.widgetTitle,
89
- action: V,
90
- bodyClassName: H ? "ttw:p-0" : void 0,
86
+ title: I.widgetTitle,
87
+ action: B,
88
+ bodyClassName: V ? "ttw:p-0" : void 0,
91
89
  children: r ? /* @__PURE__ */ _(l, {
92
90
  isLoading: !0,
93
- loadingLabel: L.loadingLabel,
91
+ loadingLabel: I.loadingLabel,
94
92
  children: /* @__PURE__ */ _(i, {
95
- "data-testid": I?.skeleton,
93
+ "data-testid": F?.skeleton,
96
94
  height: 120,
97
95
  width: "100%",
98
96
  className: "ttw:rounded-md"
99
97
  })
100
98
  }) : a ? /* @__PURE__ */ _(c, {
101
- title: L.loadErrorTitle,
102
- description: L.loadErrorDescription,
103
- retryLabel: L.loadErrorRetry,
99
+ title: I.loadErrorTitle,
100
+ description: I.loadErrorDescription,
101
+ retryLabel: I.loadErrorRetry,
104
102
  onRetry: f,
105
- testId: I?.error
103
+ testId: F?.error
106
104
  }) : e.length === 0 ? /* @__PURE__ */ v("div", {
107
105
  className: "ttw:flex ttw:flex-col ttw:gap-4",
108
106
  children: [/* @__PURE__ */ _(s, {
109
- title: L.emptyTitle,
110
- description: L.emptyDescription,
111
- testId: I?.empty
112
- }), k && !k.isPreviousDisabled ? B : null]
107
+ title: I.emptyTitle,
108
+ description: I.emptyDescription,
109
+ testId: F?.empty
110
+ }), O && !O.isPreviousDisabled ? z : null]
113
111
  }) : /* @__PURE__ */ v("div", {
114
112
  className: "ttw:flex ttw:flex-col",
115
113
  children: [/* @__PURE__ */ _(n, {
116
114
  framed: !1,
117
- columns: R,
115
+ columns: L,
118
116
  data: e,
119
117
  getRowId: (e) => e.rowKey,
120
- rowTestId: I?.transferRow,
121
- rowClassName: (e) => e.rowKey === A ? "ttw:bg-muted" : void 0,
122
- ...z,
123
- renderCard: (e) => /* @__PURE__ */ _(E, {
118
+ rowTestId: F?.transferRow,
119
+ rowClassName: (e) => e.rowKey === k ? "ttw:bg-muted" : void 0,
120
+ ...R,
121
+ renderCard: (e) => /* @__PURE__ */ _(T, {
124
122
  row: e,
125
- labels: L
123
+ labels: I
126
124
  }),
127
125
  showPagination: !1,
128
- sorting: b,
129
- onSortingChange: x,
126
+ sorting: y,
127
+ onSortingChange: b,
130
128
  pageSize: e.length,
131
- pageSizeOptions: k?.pageSizeOptions ?? [],
132
- onPageSizeChange: x,
133
- onNextPage: x,
134
- onPrevPage: x
135
- }), B]
129
+ pageSizeOptions: O?.pageSizeOptions ?? [],
130
+ onPageSizeChange: b,
131
+ onNextPage: b,
132
+ onPrevPage: b
133
+ }), z]
136
134
  })
137
135
  }),
138
136
  /* @__PURE__ */ _(m, {
139
- ...O,
140
- labels: L
137
+ ...D,
138
+ labels: I
141
139
  }),
142
140
  /* @__PURE__ */ _(h, {
143
- detail: M,
144
- onClose: N,
145
- onLinkAccountClick: P,
146
- labels: L,
147
- testIds: I?.transferDetail
141
+ detail: j,
142
+ onClose: M,
143
+ onLinkAccountClick: N,
144
+ labels: I,
145
+ testIds: F?.transferDetail
148
146
  })
149
147
  ] });
150
148
  }
151
- function C({ account: e, labels: t }) {
149
+ function S({ account: e, labels: t }) {
152
150
  return /* @__PURE__ */ _(p, {
153
151
  singleLine: !0,
154
152
  numberLabels: f(t),
@@ -156,19 +154,19 @@ function C({ account: e, labels: t }) {
156
154
  number: e.number
157
155
  });
158
156
  }
159
- function w({ row: t }) {
157
+ function C({ row: t }) {
160
158
  return /* @__PURE__ */ _(e, {
161
159
  tone: t.statusTone,
162
160
  children: t.statusLabel
163
161
  });
164
162
  }
165
- function T({ row: e }) {
163
+ function w({ row: e }) {
166
164
  return /* @__PURE__ */ _("span", {
167
165
  className: a("ttw:block ttw:text-right ttw:font-semibold ttw:whitespace-nowrap ttw:tabular-nums", e.isAmountStruckThrough && "ttw:line-through"),
168
166
  children: e.amountLabel
169
167
  });
170
168
  }
171
- function E({ row: e, labels: t }) {
169
+ function T({ row: e, labels: t }) {
172
170
  return /* @__PURE__ */ v("div", {
173
171
  className: "ttw:flex ttw:flex-col ttw:gap-2",
174
172
  children: [
@@ -177,23 +175,23 @@ function E({ row: e, labels: t }) {
177
175
  children: [/* @__PURE__ */ _("span", {
178
176
  className: "ttw:text-muted-foreground",
179
177
  children: e.dateLabel
180
- }), /* @__PURE__ */ _(T, { row: e })]
178
+ }), /* @__PURE__ */ _(w, { row: e })]
181
179
  }),
182
180
  /* @__PURE__ */ _(r, { items: [{
183
181
  label: t.transferFromLabel,
184
- value: /* @__PURE__ */ _(C, {
182
+ value: /* @__PURE__ */ _(S, {
185
183
  account: e.from,
186
184
  labels: t
187
185
  })
188
186
  }, {
189
187
  label: t.transferToLabel,
190
- value: /* @__PURE__ */ _(C, {
188
+ value: /* @__PURE__ */ _(S, {
191
189
  account: e.to,
192
190
  labels: t
193
191
  })
194
192
  }] }),
195
- /* @__PURE__ */ _(w, { row: e })
193
+ /* @__PURE__ */ _(C, { row: e })
196
194
  ]
197
195
  });
198
196
  }
199
- export { d as TRANSFERS_WIDGET_LABELS_EN, S as TransfersWidget };
197
+ export { d as TRANSFERS_WIDGET_LABELS_EN, x as TransfersWidget };
@@ -10342,7 +10342,9 @@ function fx({ open: t, onOpenChange: n, title: r, description: i, headerActions:
10342
10342
  },
10343
10343
  onCloseAutoFocus: (e) => {
10344
10344
  let t = y.current;
10345
- y.current = null, t?.isConnected && (e.preventDefault(), t.focus());
10345
+ y.current = null;
10346
+ let n = document.activeElement;
10347
+ n instanceof HTMLElement && n !== document.body ? e.preventDefault() : t?.isConnected && (e.preventDefault(), t.focus());
10346
10348
  },
10347
10349
  ...i ? {} : { "aria-describedby": void 0 },
10348
10350
  children: [/* @__PURE__ */ v(cx, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.68",
3
+ "version": "0.11.70",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,12 +0,0 @@
1
- import { WidgetFrame as e } from "../WidgetFrame/WidgetFrame.js";
2
- import { jsx as t } from "react/jsx-runtime";
3
- // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js
4
- function n({ icon: n, title: r, children: i, headerActions: a }) {
5
- return /* @__PURE__ */ t(e, {
6
- icon: n,
7
- title: r,
8
- action: a,
9
- children: i
10
- });
11
- }
12
- export { n as WidgetTitleWithIconAndChildren };