@tesouro/embedded-components-react 0.2.261 → 0.2.262

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 (46) hide show
  1. package/dist/experimental/WidgetSuite.d.ts +77 -5
  2. package/dist/experimental/WidgetSuite.js +5 -5
  3. package/dist/experimental/index.d.ts +77 -5
  4. package/dist/experimental/index.js +5 -5
  5. package/dist/index.js +4 -4
  6. package/dist/lib/BalancesWidget.js +1 -1
  7. package/dist/lib/InsightsWidget.js +2 -2
  8. package/dist/lib/TransfersWidget.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index4.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/index.js +3 -3
  12. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index3.js → lib/BalancesWidget/BalancesWidget.js} +5 -5
  13. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index4.js → lib/BalancesWidget/SingleBalance/SingleBalance.js} +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index2.js → lib/BalancesWidget/labels.js} +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +3 -3
  17. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/{index3.js → lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js} +3 -3
  18. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/index.js +2 -0
  19. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/{index2.js → lib/ExpenseManagementWidgetUi/labels.js} +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/index.js +4 -4
  23. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index3.js → lib/InsightsWidget/InsightsWidget.js} +5 -5
  24. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index5.js → lib/InsightsWidget/SingleInsight/SingleInsight.js} +3 -3
  25. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index4.js → lib/InsightsWidget/SingleInsight/labels.js} +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index2.js → lib/InsightsWidget/labels.js} +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index4.js → lib/TransferMoneyModal/ReviewTransferStep.js} +4 -4
  31. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index8.js → lib/TransferMoneyModal/TransferMoneyModal.js} +5 -5
  32. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index5.js → lib/TransferMoneyModal/TransferMoneyModalHeader.js} +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index7.js → lib/TransferMoneyModal/TransferResultStep.js} +3 -3
  34. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index2.js → lib/TransferMoneyModal/TransferReviewAccountCard.js} +2 -2
  35. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index3.js → lib/TransferMoneyModal/reviewTransferStepLabels.js} +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index6.js → lib/TransferMoneyModal/transferResultStepLabels.js} +1 -1
  37. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index10.js → lib/TransfersWidget/TransfersWidget.js} +6 -6
  38. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index9.js → lib/TransfersWidget/labels.js} +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js +5 -5
  40. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js +10 -1
  41. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +74 -11
  42. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +58 -33
  43. package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index.js +2 -1
  44. package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index4.js +29 -0
  45. package/package.json +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index4.js +0 -2
@@ -591,16 +591,32 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
591
591
  }
592
592
 
593
593
  /**
594
- * The sections this pass wires. Three of a planned eight (EMBD-4873): enough to
595
- * exercise an ungated section, a scope-gated one, and a widget that gates its
596
- * own subsections, without eight widgets' worth of integration noise.
594
+ * The sections the suite can offer, declared in the default menu order
595
+ * (EMBD-4875). Order here is documentation only the suite renders whatever
596
+ * order its `sections` prop lists.
597
597
  */
598
598
  declare const WidgetSuiteSectionId: {
599
+ readonly Dashboard: "dashboard";
599
600
  readonly Accounts: "accounts";
600
601
  readonly Cards: "cards";
602
+ readonly Transfers: "transfers";
603
+ readonly BillPay: "bill-pay";
604
+ readonly Invoicing: "invoicing";
605
+ readonly Expenses: "expenses";
601
606
  readonly Settings: "settings";
602
607
  };
603
608
  type WidgetSuiteSectionId = (typeof WidgetSuiteSectionId)[keyof typeof WidgetSuiteSectionId];
609
+ /**
610
+ * The whole surface in the shipped white-label header order
611
+ * (`useDashboardLayout.tsx`): its banking group, then its finops group, then
612
+ * Settings, which white label keeps in the avatar menu rather than the header.
613
+ *
614
+ * Exported as a constant to spread rather than wired up as a default for
615
+ * `sections`, which stays required. A default would make a host's page
616
+ * composition invisible at the call site and would grow silently every time a
617
+ * section is added here. The zero-config wrapper is the intended consumer.
618
+ */
619
+ declare const WIDGET_SUITE_DEFAULT_SECTIONS: readonly ["dashboard", "accounts", "cards", "transfers", "bill-pay", "invoicing", "expenses", "settings"];
604
620
 
605
621
  /**
606
622
  * The section names in the suite menu.
@@ -615,7 +631,42 @@ type WidgetSuiteSectionId = (typeof WidgetSuiteSectionId)[keyof typeof WidgetSui
615
631
  * `BillPayWidgetNative` makes between `labels` and `tabsLabels`.
616
632
  */
617
633
  type WidgetSuiteSectionLabels = Record<WidgetSuiteSectionId, string>;
634
+ /** Copy for the heading above a section, as opposed to its menu item. */
635
+ interface WidgetSuiteSectionTitleLabels {
636
+ /**
637
+ * The bank attribution beneath the heading. `{bankName}` is replaced with the
638
+ * bank `/init` names, so a translation can put it anywhere in the sentence
639
+ * rather than after a fixed lead-in. An override that drops the placeholder
640
+ * shows no name.
641
+ */
642
+ bankTagline: string;
643
+ }
644
+ /**
645
+ * Copy the suite puts *inside* a section's panel, rather than in its menu or
646
+ * heading. Each group is shaped as the props of the widget it is handed to, so
647
+ * the merged object below can be passed down by reference.
648
+ */
649
+ interface WidgetSuiteContentLabels {
650
+ /**
651
+ * `CardsList` renders its own `labels.title` as the list heading, defaulting
652
+ * to "Cards". Two instances stack in the Cards section, so each is retitled by
653
+ * program.
654
+ */
655
+ creditCards: {
656
+ title: string;
657
+ };
658
+ debitCards: {
659
+ title: string;
660
+ };
661
+ /** Expenses is only a placeholder until the suite wires a read/self surface. */
662
+ expensePlaceholders: {
663
+ expensesUnavailable: string;
664
+ };
665
+ }
666
+ /** Named as the shipped white-label header names them. */
618
667
  declare const WIDGET_SUITE_SECTION_LABELS_EN: WidgetSuiteSectionLabels;
668
+ declare const WIDGET_SUITE_SECTION_TITLE_LABELS_EN: WidgetSuiteSectionTitleLabels;
669
+ declare const WIDGET_SUITE_CONTENT_LABELS_EN: WidgetSuiteContentLabels;
619
670
 
620
671
  interface WidgetSuiteProps extends WidgetProviderProps {
621
672
  /**
@@ -635,6 +686,27 @@ interface WidgetSuiteProps extends WidgetProviderProps {
635
686
  labels?: PartialDeep<WidgetSuiteShellLabels>;
636
687
  /** Overrides for the section names in the menu. */
637
688
  sectionLabels?: Partial<WidgetSuiteSectionLabels>;
689
+ /**
690
+ * Overrides for the section heading's own copy — today the bank tagline, whose
691
+ * `{bankName}` placeholder is filled with the bank `/init` names.
692
+ */
693
+ sectionTitleLabels?: Partial<WidgetSuiteSectionTitleLabels>;
694
+ /**
695
+ * Overrides for the copy inside a section's panel: the two card-list titles
696
+ * and the Expenses placeholder.
697
+ */
698
+ contentLabels?: PartialDeep<WidgetSuiteContentLabels>;
699
+ /**
700
+ * Shows a heading above each section, named as its menu item is.
701
+ *
702
+ * Defaults to `true`: the suite owns its page, and a page with a menu but no
703
+ * heading reads as a fragment of someone else's. Set `false` when the host
704
+ * already renders a heading of its own above the suite.
705
+ *
706
+ * Sections whose widget heads itself (Accounts, Settings) never get one, at
707
+ * any setting — see `rendersOwnTitle` in `sections.tsx`.
708
+ */
709
+ showSectionTitle?: boolean;
638
710
  }
639
711
  /**
640
712
  * A suite of widgets bound together by navigation.
@@ -656,5 +728,5 @@ interface WidgetSuiteProps extends WidgetProviderProps {
656
728
  */
657
729
  declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
658
730
 
659
- export { WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
660
- export type { PartialDeep, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteShellLabels };
731
+ export { WIDGET_SUITE_CONTENT_LABELS_EN, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SECTION_TITLE_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
732
+ export type { PartialDeep, WidgetSuiteContentLabels, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteSectionTitleLabels, WidgetSuiteShellLabels };
@@ -1,6 +1,6 @@
1
- import { WIDGET_SUITE_SECTION_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js";
2
- import { WidgetSuiteSectionId as t } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
3
- import { WIDGET_SUITE_SHELL_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js";
4
- import { WidgetSuite as r } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
1
+ import { WIDGET_SUITE_CONTENT_LABELS_EN as e, WIDGET_SUITE_SECTION_LABELS_EN as t, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js";
2
+ import { WIDGET_SUITE_DEFAULT_SECTIONS as r, WidgetSuiteSectionId as i } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
3
+ import { WIDGET_SUITE_SHELL_LABELS_EN as a } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js";
4
+ import { WidgetSuite as o } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
5
5
  import "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js";
6
- export { e as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SHELL_LABELS_EN, r as WidgetSuite, t as WidgetSuiteSectionId };
6
+ export { e as WIDGET_SUITE_CONTENT_LABELS_EN, r as WIDGET_SUITE_DEFAULT_SECTIONS, t as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SECTION_TITLE_LABELS_EN, a as WIDGET_SUITE_SHELL_LABELS_EN, o as WidgetSuite, i as WidgetSuiteSectionId };
@@ -591,16 +591,32 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
591
591
  }
592
592
 
593
593
  /**
594
- * The sections this pass wires. Three of a planned eight (EMBD-4873): enough to
595
- * exercise an ungated section, a scope-gated one, and a widget that gates its
596
- * own subsections, without eight widgets' worth of integration noise.
594
+ * The sections the suite can offer, declared in the default menu order
595
+ * (EMBD-4875). Order here is documentation only the suite renders whatever
596
+ * order its `sections` prop lists.
597
597
  */
598
598
  declare const WidgetSuiteSectionId: {
599
+ readonly Dashboard: "dashboard";
599
600
  readonly Accounts: "accounts";
600
601
  readonly Cards: "cards";
602
+ readonly Transfers: "transfers";
603
+ readonly BillPay: "bill-pay";
604
+ readonly Invoicing: "invoicing";
605
+ readonly Expenses: "expenses";
601
606
  readonly Settings: "settings";
602
607
  };
603
608
  type WidgetSuiteSectionId = (typeof WidgetSuiteSectionId)[keyof typeof WidgetSuiteSectionId];
609
+ /**
610
+ * The whole surface in the shipped white-label header order
611
+ * (`useDashboardLayout.tsx`): its banking group, then its finops group, then
612
+ * Settings, which white label keeps in the avatar menu rather than the header.
613
+ *
614
+ * Exported as a constant to spread rather than wired up as a default for
615
+ * `sections`, which stays required. A default would make a host's page
616
+ * composition invisible at the call site and would grow silently every time a
617
+ * section is added here. The zero-config wrapper is the intended consumer.
618
+ */
619
+ declare const WIDGET_SUITE_DEFAULT_SECTIONS: readonly ["dashboard", "accounts", "cards", "transfers", "bill-pay", "invoicing", "expenses", "settings"];
604
620
 
605
621
  /**
606
622
  * The section names in the suite menu.
@@ -615,7 +631,42 @@ type WidgetSuiteSectionId = (typeof WidgetSuiteSectionId)[keyof typeof WidgetSui
615
631
  * `BillPayWidgetNative` makes between `labels` and `tabsLabels`.
616
632
  */
617
633
  type WidgetSuiteSectionLabels = Record<WidgetSuiteSectionId, string>;
634
+ /** Copy for the heading above a section, as opposed to its menu item. */
635
+ interface WidgetSuiteSectionTitleLabels {
636
+ /**
637
+ * The bank attribution beneath the heading. `{bankName}` is replaced with the
638
+ * bank `/init` names, so a translation can put it anywhere in the sentence
639
+ * rather than after a fixed lead-in. An override that drops the placeholder
640
+ * shows no name.
641
+ */
642
+ bankTagline: string;
643
+ }
644
+ /**
645
+ * Copy the suite puts *inside* a section's panel, rather than in its menu or
646
+ * heading. Each group is shaped as the props of the widget it is handed to, so
647
+ * the merged object below can be passed down by reference.
648
+ */
649
+ interface WidgetSuiteContentLabels {
650
+ /**
651
+ * `CardsList` renders its own `labels.title` as the list heading, defaulting
652
+ * to "Cards". Two instances stack in the Cards section, so each is retitled by
653
+ * program.
654
+ */
655
+ creditCards: {
656
+ title: string;
657
+ };
658
+ debitCards: {
659
+ title: string;
660
+ };
661
+ /** Expenses is only a placeholder until the suite wires a read/self surface. */
662
+ expensePlaceholders: {
663
+ expensesUnavailable: string;
664
+ };
665
+ }
666
+ /** Named as the shipped white-label header names them. */
618
667
  declare const WIDGET_SUITE_SECTION_LABELS_EN: WidgetSuiteSectionLabels;
668
+ declare const WIDGET_SUITE_SECTION_TITLE_LABELS_EN: WidgetSuiteSectionTitleLabels;
669
+ declare const WIDGET_SUITE_CONTENT_LABELS_EN: WidgetSuiteContentLabels;
619
670
 
620
671
  interface WidgetSuiteProps extends WidgetProviderProps {
621
672
  /**
@@ -635,6 +686,27 @@ interface WidgetSuiteProps extends WidgetProviderProps {
635
686
  labels?: PartialDeep<WidgetSuiteShellLabels>;
636
687
  /** Overrides for the section names in the menu. */
637
688
  sectionLabels?: Partial<WidgetSuiteSectionLabels>;
689
+ /**
690
+ * Overrides for the section heading's own copy — today the bank tagline, whose
691
+ * `{bankName}` placeholder is filled with the bank `/init` names.
692
+ */
693
+ sectionTitleLabels?: Partial<WidgetSuiteSectionTitleLabels>;
694
+ /**
695
+ * Overrides for the copy inside a section's panel: the two card-list titles
696
+ * and the Expenses placeholder.
697
+ */
698
+ contentLabels?: PartialDeep<WidgetSuiteContentLabels>;
699
+ /**
700
+ * Shows a heading above each section, named as its menu item is.
701
+ *
702
+ * Defaults to `true`: the suite owns its page, and a page with a menu but no
703
+ * heading reads as a fragment of someone else's. Set `false` when the host
704
+ * already renders a heading of its own above the suite.
705
+ *
706
+ * Sections whose widget heads itself (Accounts, Settings) never get one, at
707
+ * any setting — see `rendersOwnTitle` in `sections.tsx`.
708
+ */
709
+ showSectionTitle?: boolean;
638
710
  }
639
711
  /**
640
712
  * A suite of widgets bound together by navigation.
@@ -656,5 +728,5 @@ interface WidgetSuiteProps extends WidgetProviderProps {
656
728
  */
657
729
  declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
658
730
 
659
- export { WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
660
- export type { PartialDeep, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteShellLabels };
731
+ export { WIDGET_SUITE_CONTENT_LABELS_EN, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_SECTION_LABELS_EN, WIDGET_SUITE_SECTION_TITLE_LABELS_EN, WIDGET_SUITE_SHELL_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
732
+ export type { PartialDeep, WidgetSuiteContentLabels, WidgetSuiteProps, WidgetSuiteSectionLabels, WidgetSuiteSectionTitleLabels, WidgetSuiteShellLabels };
@@ -1,6 +1,6 @@
1
- import { WIDGET_SUITE_SECTION_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js";
2
- import { WidgetSuiteSectionId as t } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
3
- import { WIDGET_SUITE_SHELL_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js";
4
- import { WidgetSuite as r } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
1
+ import { WIDGET_SUITE_CONTENT_LABELS_EN as e, WIDGET_SUITE_SECTION_LABELS_EN as t, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js";
2
+ import { WIDGET_SUITE_DEFAULT_SECTIONS as r, WidgetSuiteSectionId as i } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
3
+ import { WIDGET_SUITE_SHELL_LABELS_EN as a } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js";
4
+ import { WidgetSuite as o } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
5
5
  import "./WidgetSuite.js";
6
- export { e as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SHELL_LABELS_EN, r as WidgetSuite, t as WidgetSuiteSectionId };
6
+ export { e as WIDGET_SUITE_CONTENT_LABELS_EN, r as WIDGET_SUITE_DEFAULT_SECTIONS, t as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SECTION_TITLE_LABELS_EN, a as WIDGET_SUITE_SHELL_LABELS_EN, o as WidgetSuite, i as WidgetSuiteSectionId };
package/dist/index.js CHANGED
@@ -33,12 +33,12 @@ import { ExpenseManagementWidget as N } from "./libs/tesouro-embedded-components
33
33
  import "./lib/ExpenseManagementWidget.js";
34
34
  import "./lib/ExpenseApprovalPoliciesWidget.js";
35
35
  import "./lib/ExpenseRequirementsWidget.js";
36
- import { BALANCES_WIDGET_LABELS_EN as P } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/index2.js";
36
+ import { BALANCES_WIDGET_LABELS_EN as P } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
37
37
  import { BalancesWidget as F } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js";
38
38
  import "./lib/BalancesWidget.js";
39
39
  import { INSIGHTS_FEATURE_LABELS_EN as I } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
40
- import { INSIGHTS_WIDGET_LABELS_EN as L } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js";
41
- import { SINGLE_INSIGHT_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js";
40
+ import { INSIGHTS_WIDGET_LABELS_EN as L } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
41
+ import { SINGLE_INSIGHT_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
42
42
  import { InsightsWidget as z } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
43
43
  import "./lib/InsightsWidget.js";
44
44
  import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as B } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js";
@@ -78,7 +78,7 @@ import "./lib/SettingsWidget.js";
78
78
  import "./lib/TagsWidget.js";
79
79
  import "./lib/TeamWidget.js";
80
80
  import { DEFAULT_FEATURE_LABELS as fe } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
81
- import { TRANSFERS_WIDGET_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index9.js";
81
+ import { TRANSFERS_WIDGET_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
82
82
  import { TransfersWidget as me } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js";
83
83
  import "./lib/TransfersWidget.js";
84
84
  import "./lib/UploadReceiptWidget.js";
@@ -1,4 +1,4 @@
1
- import { BALANCES_WIDGET_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/balances-widget/ui/dist/index2.js";
1
+ import { BALANCES_WIDGET_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
2
2
  import "../libs/tesouro-embedded-components-react/balances-widget/ui/dist/index.js";
3
3
  import { BalancesWidget as t } from "../libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js";
4
4
  import "../libs/tesouro-embedded-components-react/balances-widget/feature/dist/index.js";
@@ -1,6 +1,6 @@
1
1
  import { INSIGHTS_FEATURE_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
2
- import { INSIGHTS_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js";
3
- import { SINGLE_INSIGHT_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js";
2
+ import { INSIGHTS_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
3
+ import { SINGLE_INSIGHT_LABELS_EN as n } from "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
4
4
  import "../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index.js";
5
5
  import { InsightsWidget as r } from "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js";
6
6
  import "../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js";
@@ -1,5 +1,5 @@
1
1
  import { DEFAULT_FEATURE_LABELS as e } from "../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
2
- import { TRANSFERS_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index9.js";
2
+ import { TRANSFERS_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
3
3
  import "../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index.js";
4
4
  import { TransfersWidget as n } from "../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js";
5
5
  import "../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index.js";
@@ -1,4 +1,4 @@
1
- import { SingleBalance as e } from "../../ui/dist/index4.js";
1
+ import { SingleBalance as e } from "../../ui/dist/lib/BalancesWidget/SingleBalance/SingleBalance.js";
2
2
  import "../../ui/dist/index.js";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  //#region ../../libs/tesouro-embedded-components-react/balances-widget/feature/dist/index4.js
@@ -7,7 +7,7 @@ import { WidgetProvider as t } from "../../../shared/feature/dist/lib/WidgetProv
7
7
  import "../../../shared/feature/dist/index.js";
8
8
  import { BalancesWidgetAnalyticsEvent as n, WIDGET_NAME as r } from "./index2.js";
9
9
  import { BalancesWidgetContextProvider as i, useBalancesWidgetContext as a } from "./index3.js";
10
- import { BalancesWidget as o } from "../../ui/dist/index3.js";
10
+ import { BalancesWidget as o } from "../../ui/dist/lib/BalancesWidget/BalancesWidget.js";
11
11
  import "../../ui/dist/index.js";
12
12
  import { SingleBalance as s } from "./index4.js";
13
13
  import { useEffect as c, useMemo as l } from "react";
@@ -1,4 +1,4 @@
1
- import { BALANCES_WIDGET_LABELS_EN as e } from "./index2.js";
2
- import { BalancesWidget as t } from "./index3.js";
3
- import { SingleBalance as n } from "./index4.js";
1
+ import { BALANCES_WIDGET_LABELS_EN as e } from "./lib/BalancesWidget/labels.js";
2
+ import { BalancesWidget as t } from "./lib/BalancesWidget/BalancesWidget.js";
3
+ import { SingleBalance as n } from "./lib/BalancesWidget/SingleBalance/SingleBalance.js";
4
4
  export { e as BALANCES_WIDGET_LABELS_EN, t as BalancesWidget, n as SingleBalance };
@@ -1,10 +1,10 @@
1
- import { Button as e, Skeleton as t, Tooltip as n, TooltipContent as r, TooltipProvider as i, TooltipTrigger as a, Typography as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { WidgetContainer as s } from "../../../shared/ui/dist/lib/WidgetContainer/WidgetContainer.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { BALANCES_WIDGET_LABELS_EN as c } from "./index2.js";
1
+ import { Button as e, Skeleton as t, Tooltip as n, TooltipContent as r, TooltipProvider as i, TooltipTrigger as a, Typography as o } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { WidgetContainer as s } from "../../../../../shared/ui/dist/lib/WidgetContainer/WidgetContainer.js";
3
+ import "../../../../../shared/ui/dist/index.js";
4
+ import { BALANCES_WIDGET_LABELS_EN as c } from "./labels.js";
5
5
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
6
  import { ArrowRight as d, CircleHelp as f } from "lucide-react";
7
- //#region ../../libs/tesouro-embedded-components-react/balances-widget/ui/dist/index3.js
7
+ //#region ../../libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/BalancesWidget.js
8
8
  var p = ({ accountRows: p, children: m, isLoading: h, isError: g, onRetry: _, totalBalance: v, shouldTotalBalanceDisplay: y, shouldShowViewAllAccounts: b, onViewAllAccountsClicked: x, labels: S }) => {
9
9
  let C = {
10
10
  ...c,
@@ -1,7 +1,7 @@
1
- import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { Typography as e } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  import { ChevronRight as i, Landmark as a } from "lucide-react";
4
- //#region ../../libs/tesouro-embedded-components-react/balances-widget/ui/dist/index4.js
4
+ //#region ../../libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/SingleBalance/SingleBalance.js
5
5
  var o = (e) => [
6
6
  "ttw:flex ttw:flex-row ttw:items-center ttw:w-full ttw:min-w-0 ttw:overflow-hidden",
7
7
  "ttw:gap-3 ttw:m-0 ttw:bg-transparent",
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/balances-widget/ui/dist/index2.js
1
+ //#region ../../libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js
2
2
  var e = {
3
3
  widgetTitle: "Accounts",
4
4
  totalAvailableBalance: "Total available balance",
@@ -6,7 +6,7 @@ import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analyti
6
6
  import { WidgetProvider as t } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
7
7
  import "../../../shared/feature/dist/index.js";
8
8
  import { ExpenseManagementWidgetAnalyticsEvent as n, WIDGET_NAME as r } from "./index2.js";
9
- import { ExpenseManagementWidgetUi as i } from "../../ui/dist/index3.js";
9
+ import { ExpenseManagementWidgetUi as i } from "../../ui/dist/lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js";
10
10
  import "../../ui/dist/index.js";
11
11
  import { ExpenseApprovalPoliciesWidget as a } from "../../../expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js";
12
12
  import "../../../expense-approval-policies-widget/feature/dist/index.js";
@@ -1,4 +1,4 @@
1
- import "./index2.js";
2
- import { ExpenseManagementWidgetUi as e } from "./index3.js";
3
- import "./index4.js";
1
+ import "./lib/ExpenseManagementWidgetUi/labels.js";
2
+ import { ExpenseManagementWidgetUi as e } from "./lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js";
3
+ import "./lib/ExpenseManagementWidgetUi/index.js";
4
4
  export { e as ExpenseManagementWidgetUi };
@@ -2,10 +2,10 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { DEFAULT_LABELS as i } from "./index2.js";
5
+ import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { DEFAULT_LABELS as i } from "./labels.js";
7
7
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
- //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index3.js
8
+ //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js
9
9
  function s({ labels: s, receiptsContent: c, matchingContent: l, policiesContent: u, requirementsContent: d }) {
10
10
  let f = {
11
11
  ...i,
@@ -0,0 +1,2 @@
1
+ import "./labels.js";
2
+ import "./ExpenseManagementWidgetUi.js";
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index2.js
1
+ //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/labels.js
2
2
  var e = {
3
3
  title: "Expense management",
4
4
  description: "Manage receipts, matching, policies, and requirements.",
@@ -1,5 +1,5 @@
1
1
  import { mapInsightToRowView as e } from "./index9.js";
2
- import { SingleInsight as t } from "../../ui/dist/index5.js";
2
+ import { SingleInsight as t } from "../../ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js";
3
3
  import "../../ui/dist/index.js";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  //#region ../../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js
@@ -8,7 +8,7 @@ import "../../../shared/feature/dist/index.js";
8
8
  import "./index3.js";
9
9
  import { InsightsWidgetContextProvider as n, useInsightsWidgetContext as r } from "./index8.js";
10
10
  import { InsightsWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index2.js";
11
- import { InsightsWidget as o } from "../../ui/dist/index3.js";
11
+ import { InsightsWidget as o } from "../../ui/dist/lib/InsightsWidget/InsightsWidget.js";
12
12
  import "../../ui/dist/index.js";
13
13
  import { SingleInsight as s } from "./index10.js";
14
14
  import { useEffect as c } from "react";
@@ -1,5 +1,5 @@
1
- import { INSIGHTS_WIDGET_LABELS_EN as e } from "./index2.js";
2
- import { InsightsWidget as t } from "./index3.js";
3
- import { SINGLE_INSIGHT_LABELS_EN as n } from "./index4.js";
4
- import { SingleInsight as r } from "./index5.js";
1
+ import { INSIGHTS_WIDGET_LABELS_EN as e } from "./lib/InsightsWidget/labels.js";
2
+ import { InsightsWidget as t } from "./lib/InsightsWidget/InsightsWidget.js";
3
+ import { SINGLE_INSIGHT_LABELS_EN as n } from "./lib/InsightsWidget/SingleInsight/labels.js";
4
+ import { SingleInsight as r } from "./lib/InsightsWidget/SingleInsight/SingleInsight.js";
5
5
  export { e as INSIGHTS_WIDGET_LABELS_EN, t as InsightsWidget, n as SINGLE_INSIGHT_LABELS_EN, r as SingleInsight };
@@ -1,10 +1,10 @@
1
- import { Button as e, Skeleton as t, Typography as n, cn as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { WidgetContainer as i } from "../../../shared/ui/dist/lib/WidgetContainer/WidgetContainer.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { INSIGHTS_WIDGET_LABELS_EN as a } from "./index2.js";
1
+ import { Button as e, Skeleton as t, Typography as n, cn as r } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { WidgetContainer as i } from "../../../../../shared/ui/dist/lib/WidgetContainer/WidgetContainer.js";
3
+ import "../../../../../shared/ui/dist/index.js";
4
+ import { INSIGHTS_WIDGET_LABELS_EN as a } from "./labels.js";
5
5
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
6
6
  import { Sparkles as l } from "lucide-react";
7
- //#region ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index3.js
7
+ //#region ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/InsightsWidget.js
8
8
  var u = ({ hasInsights: u, children: d, activeFilter: f, setActiveFilter: p, isLoading: m, isError: h, onRetry: g, labels: _, activeTabTestId: v }) => {
9
9
  let y = {
10
10
  ...a,
@@ -1,8 +1,8 @@
1
- import { Badge as e, Button as t, Switch as n, Typography as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { SINGLE_INSIGHT_LABELS_EN as i } from "./index4.js";
1
+ import { Badge as e, Button as t, Switch as n, Typography as r } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { SINGLE_INSIGHT_LABELS_EN as i } from "./labels.js";
3
3
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
4
4
  import { ArrowRight as s, X as c } from "lucide-react";
5
- //#region ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index5.js
5
+ //#region ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js
6
6
  var l = ({ row: l, onDismissClick: u, labels: d }) => {
7
7
  let f = {
8
8
  ...i,
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index4.js
1
+ //#region ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js
2
2
  var e = { dismissInsightAriaLabel: "Dismiss insight" };
3
3
  //#endregion
4
4
  export { e as SINGLE_INSIGHT_LABELS_EN };
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/index2.js
1
+ //#region ../../libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js
2
2
  var e = {
3
3
  widgetTitle: "Insights",
4
4
  activeTab: "Active",
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.2.261", n = "608664deb7e09a97a2becd27b5c3df7148a072a5", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.2.262", n = "2efd449d245f11c88723dfbe989b39bad5cf891d", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -16,8 +16,8 @@ import { useTransferExternalAccountsQuery as l } from "../../data-access/dist/in
16
16
  import { useMergedRecentBankAccountTransfersQuery as u } from "../../data-access/dist/index6.js";
17
17
  import "../../data-access/dist/index.js";
18
18
  import { mapTransferToRowView as d, useTransferMoneyModalController as f } from "./index4.js";
19
- import { TRANSFERS_WIDGET_LABELS_EN as p } from "../../ui/dist/index9.js";
20
- import { TransfersWidget as ee } from "../../ui/dist/index10.js";
19
+ import { TRANSFERS_WIDGET_LABELS_EN as p } from "../../ui/dist/lib/TransfersWidget/labels.js";
20
+ import { TransfersWidget as ee } from "../../ui/dist/lib/TransfersWidget/TransfersWidget.js";
21
21
  import "../../ui/dist/index.js";
22
22
  import { useCallback as m, useEffect as h, useMemo as g } from "react";
23
23
  import { jsx as _ } from "react/jsx-runtime";
@@ -1,3 +1,3 @@
1
- import { TRANSFERS_WIDGET_LABELS_EN as e } from "./index9.js";
2
- import { TransfersWidget as t } from "./index10.js";
1
+ import { TRANSFERS_WIDGET_LABELS_EN as e } from "./lib/TransfersWidget/labels.js";
2
+ import { TransfersWidget as t } from "./lib/TransfersWidget/TransfersWidget.js";
3
3
  export { e as TRANSFERS_WIDGET_LABELS_EN, t as TransfersWidget };
@@ -1,9 +1,9 @@
1
- import { Button as e, Separator as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { TransferReviewAccountCard as r } from "./index2.js";
3
- import { DEFAULT_REVIEW_TRANSFER_STEP_LABELS as i } from "./index3.js";
1
+ import { Button as e, Separator as t, Typography as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { TransferReviewAccountCard as r } from "./TransferReviewAccountCard.js";
3
+ import { DEFAULT_REVIEW_TRANSFER_STEP_LABELS as i } from "./reviewTransferStepLabels.js";
4
4
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
5
5
  import { ArrowLeft as c, ArrowRight as l } from "lucide-react";
6
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index4.js
6
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/ReviewTransferStep.js
7
7
  function u({ fromAccount: u, toAccount: d, amountLabel: f, isSubmitting: p, onConfirm: m, onGoBack: h, labels: g }) {
8
8
  let _ = {
9
9
  ...i,
@@ -1,10 +1,10 @@
1
- import { Button as e, Dialog as t, DialogContent as n, DialogFooter as r, Input as i, Label as a, Select as o, SelectContent as s, SelectItem as c, SelectTrigger as l, Separator as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ReviewTransferStep as f } from "./index4.js";
3
- import { TransferMoneyModalHeader as p } from "./index5.js";
4
- import { TransferResultStep as m } from "./index7.js";
1
+ import { Button as e, Dialog as t, DialogContent as n, DialogFooter as r, Input as i, Label as a, Select as o, SelectContent as s, SelectItem as c, SelectTrigger as l, Separator as u, Typography as d } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ReviewTransferStep as f } from "./ReviewTransferStep.js";
3
+ import { TransferMoneyModalHeader as p } from "./TransferMoneyModalHeader.js";
4
+ import { TransferResultStep as m } from "./TransferResultStep.js";
5
5
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
6
6
  import { ArrowRight as v } from "lucide-react";
7
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index8.js
7
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js
8
8
  var y = "ttw:flex ttw:h-auto ttw:min-h-14 ttw:w-full ttw:cursor-pointer ttw:items-center ttw:justify-start ttw:rounded-lg ttw:border-border ttw:px-5 ttw:py-3.5 ttw:text-left ttw:text-base ttw:font-normal ttw:text-foreground ttw:disabled:cursor-not-allowed ttw:[&_svg]:ml-auto ttw:[&_svg]:shrink-0", b = {
9
9
  position: "popper",
10
10
  align: "start",
@@ -1,7 +1,7 @@
1
- import { DialogDescription as e, DialogTitle as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { DialogDescription as e, DialogTitle 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
  import { ArrowRightLeft as i } from "lucide-react";
4
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index5.js
4
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModalHeader.js
5
5
  function a({ title: a, subtitle: o }) {
6
6
  return /* @__PURE__ */ n("div", {
7
7
  className: "ttw:pb-4",
@@ -1,8 +1,8 @@
1
- import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { DEFAULT_TRANSFER_RESULT_STEP_LABELS as n } from "./index6.js";
1
+ import { Button as e, Typography as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { DEFAULT_TRANSFER_RESULT_STEP_LABELS as n } from "./transferResultStepLabels.js";
3
3
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  import { ArrowLeft as a, CheckCircle2 as o, X as s } from "lucide-react";
5
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index7.js
5
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js
6
6
  function c({ amountLabel: c, isSuccess: l, onBackToTransfers: u, labels: d }) {
7
7
  let f = {
8
8
  ...n,
@@ -1,7 +1,7 @@
1
- import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { Typography as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { Landmark as r } from "lucide-react";
4
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index2.js
4
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferReviewAccountCard.js
5
5
  function i({ account: i }) {
6
6
  let a = !!i.balanceLabel;
7
7
  return /* @__PURE__ */ n("div", {
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index3.js
1
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/reviewTransferStepLabels.js
2
2
  var e = {
3
3
  fromAccountSection: "From Account",
4
4
  toAccountSection: "To Account",
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index6.js
1
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/transferResultStepLabels.js
2
2
  var e = {
3
3
  successTitle: "Success!",
4
4
  errorTitle: "Error",
@@ -1,11 +1,11 @@
1
- import { Button as e, Skeleton as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { WidgetTitleWithIconAndChildren as r } from "../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { TRANSFERS_WIDGET_LABELS_EN as i } from "./index9.js";
5
- import { TransferMoneyModal as a } from "./index8.js";
1
+ import { Button as e, Skeleton as t, Typography as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { WidgetTitleWithIconAndChildren as r } from "../../../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
3
+ import "../../../../../shared/ui/dist/index.js";
4
+ import { TRANSFERS_WIDGET_LABELS_EN as i } from "./labels.js";
5
+ import { TransferMoneyModal as a } from "../TransferMoneyModal/TransferMoneyModal.js";
6
6
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  import { ArrowDownToLine as l, ArrowDownUp as u, ArrowUpFromLine as d } from "lucide-react";
8
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index10.js
8
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js
9
9
  function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransferMoneyCta: g, isTransferMoneyCtaDisabled: _ = !1, onTransferMoneyClick: v, transferMoneyModal: y, labels: b }) {
10
10
  let x = {
11
11
  ...i,
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index9.js
1
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js
2
2
  var e = {
3
3
  widgetTitle: "Transfer money",
4
4
  transferMoneyCta: "Transfer money",
@@ -1,6 +1,6 @@
1
- import { WIDGET_SUITE_SECTION_LABELS_EN as e } from "./index3.js";
2
- import { WidgetSuiteSectionId as t } from "./index4.js";
3
- import { WIDGET_SUITE_SHELL_LABELS_EN as n } from "../../ui/dist/index2.js";
1
+ import { WIDGET_SUITE_CONTENT_LABELS_EN as e, WIDGET_SUITE_SECTION_LABELS_EN as t, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as n } from "./index3.js";
2
+ import { WIDGET_SUITE_DEFAULT_SECTIONS as r, WidgetSuiteSectionId as i } from "./index4.js";
3
+ import { WIDGET_SUITE_SHELL_LABELS_EN as a } from "../../ui/dist/index2.js";
4
4
  import "../../ui/dist/index.js";
5
- import { WidgetSuite as r } from "./index5.js";
6
- export { e as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SHELL_LABELS_EN, r as WidgetSuite, t as WidgetSuiteSectionId };
5
+ import { WidgetSuite as o } from "./index5.js";
6
+ export { e as WIDGET_SUITE_CONTENT_LABELS_EN, r as WIDGET_SUITE_DEFAULT_SECTIONS, t as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SECTION_TITLE_LABELS_EN, a as WIDGET_SUITE_SHELL_LABELS_EN, o as WidgetSuite, i as WidgetSuiteSectionId };
@@ -1,8 +1,17 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js
2
2
  var e = {
3
+ dashboard: "Dashboard",
3
4
  accounts: "Accounts",
4
5
  cards: "Cards",
6
+ transfers: "Transfers",
7
+ "bill-pay": "Bill Pay",
8
+ invoicing: "Invoicing",
9
+ expenses: "Expenses",
5
10
  settings: "Settings"
11
+ }, t = { bankTagline: "Business Banking provided by {bankName}" }, n = {
12
+ creditCards: { title: "Credit cards" },
13
+ debitCards: { title: "Debit cards" },
14
+ expensePlaceholders: { expensesUnavailable: "Expenses are not available in this suite yet." }
6
15
  };
7
16
  //#endregion
8
- export { e as WIDGET_SUITE_SECTION_LABELS_EN };
17
+ export { n as WIDGET_SUITE_CONTENT_LABELS_EN, e as WIDGET_SUITE_SECTION_LABELS_EN, t as WIDGET_SUITE_SECTION_TITLE_LABELS_EN };
@@ -9,26 +9,89 @@ import { CardProgram as n } from "../../../shared/feature/dist/lib/card/cardProg
9
9
  import "../../../shared/feature/dist/index.js";
10
10
  import { BankAccountsWidget as r } from "../../../bank-accounts-widget/feature/dist/index8.js";
11
11
  import "../../../bank-accounts-widget/feature/dist/index.js";
12
- import { CardsWidget as i } from "../../../cards-widget/feature/dist/index8.js";
12
+ import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index28.js";
13
+ import "../../../bill-pay-widget/feature/dist/index.js";
14
+ import { CardsWidget as a } from "../../../cards-widget/feature/dist/index8.js";
13
15
  import "../../../cards-widget/feature/dist/index.js";
14
- import { SettingsWidget as a } from "../../../settings-widget/feature/dist/index6.js";
16
+ import { BalancesWidget as o } from "../../../balances-widget/feature/dist/index5.js";
17
+ import "../../../balances-widget/feature/dist/index.js";
18
+ import { InsightsWidget as s } from "../../../insights-widget/feature/dist/index11.js";
19
+ import "../../../insights-widget/feature/dist/index.js";
20
+ import { InvoicingWidget as c } from "../../../invoicing-widget/feature/dist/index3.js";
21
+ import "../../../invoicing-widget/feature/dist/index.js";
22
+ import { SettingsWidget as l } from "../../../settings-widget/feature/dist/index6.js";
15
23
  import "../../../settings-widget/feature/dist/index.js";
16
- import { jsx as o } from "react/jsx-runtime";
24
+ import { TransfersWidget as u } from "../../../transfers-widget/feature/dist/index6.js";
25
+ import "../../../transfers-widget/feature/dist/index.js";
26
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
17
27
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js
18
- var s = {
28
+ var p = ({ children: e }) => /* @__PURE__ */ d("div", {
29
+ className: "ttw:rounded-md ttw:border ttw:border-dashed ttw:border-border ttw:p-8 ttw:text-sm ttw:text-muted-foreground",
30
+ children: e
31
+ }), m = {
32
+ Dashboard: "dashboard",
19
33
  Accounts: "accounts",
20
34
  Cards: "cards",
35
+ Transfers: "transfers",
36
+ BillPay: "bill-pay",
37
+ Invoicing: "invoicing",
38
+ Expenses: "expenses",
21
39
  Settings: "settings"
22
- }, c = {
23
- [s.Accounts]: {
40
+ }, h = [
41
+ m.Dashboard,
42
+ m.Accounts,
43
+ m.Cards,
44
+ m.Transfers,
45
+ m.BillPay,
46
+ m.Invoicing,
47
+ m.Expenses,
48
+ m.Settings
49
+ ], g = {
50
+ [m.Dashboard]: { render: ({ grantedScopes: n }) => {
51
+ let r = e(n, [t.BankAccountReadOrg]);
52
+ return /* @__PURE__ */ f("div", {
53
+ className: r ? "ttw:grid ttw:gap-4 ttw:md:grid-cols-2" : "ttw:grid ttw:gap-4",
54
+ children: [r && /* @__PURE__ */ d(o, {}), /* @__PURE__ */ d(s, {})]
55
+ });
56
+ } },
57
+ [m.Accounts]: {
24
58
  anyOfScopes: [t.BankAccountReadOrg, t.ExternalBankAccountReadOrg],
25
- render: () => /* @__PURE__ */ o(r, {})
59
+ rendersOwnTitle: !0,
60
+ render: () => /* @__PURE__ */ d(r, {})
26
61
  },
27
- [s.Cards]: {
62
+ [m.Cards]: {
28
63
  anyOfScopes: [t.CreditCardReadOrg, t.DebitCardReadOrg],
29
- render: (r) => /* @__PURE__ */ o(i, { cardProgram: e(r, [t.CreditCardReadOrg]) ? n.Credit : n.Debit })
64
+ render: ({ grantedScopes: r, labels: i }) => /* @__PURE__ */ f("div", {
65
+ className: "ttw:grid ttw:gap-8",
66
+ children: [e(r, [t.CreditCardReadOrg]) && /* @__PURE__ */ d(a, {
67
+ cardProgram: n.Credit,
68
+ labels: i.creditCards
69
+ }), e(r, [t.DebitCardReadOrg]) && /* @__PURE__ */ d(a, {
70
+ cardProgram: n.Debit,
71
+ labels: i.debitCards
72
+ })]
73
+ })
30
74
  },
31
- [s.Settings]: { render: () => /* @__PURE__ */ o(a, {}) }
75
+ [m.Transfers]: {
76
+ anyOfScopes: [t.BankAccountReadOrg],
77
+ render: () => /* @__PURE__ */ d(u, {})
78
+ },
79
+ [m.BillPay]: {
80
+ anyOfScopes: [t.PayableReadOrg],
81
+ render: () => /* @__PURE__ */ d(i, {})
82
+ },
83
+ [m.Invoicing]: {
84
+ anyOfScopes: [t.InvoiceReadOrg],
85
+ render: () => /* @__PURE__ */ d(c, {})
86
+ },
87
+ [m.Expenses]: {
88
+ anyOfScopes: [t.ExpenseReadOrg, t.ExpenseReadSelf],
89
+ render: ({ labels: e }) => /* @__PURE__ */ d(p, { children: e.expensePlaceholders.expensesUnavailable })
90
+ },
91
+ [m.Settings]: {
92
+ rendersOwnTitle: !0,
93
+ render: () => /* @__PURE__ */ d(l, {})
94
+ }
32
95
  };
33
96
  //#endregion
34
- export { c as WIDGET_SUITE_SECTIONS, s as WidgetSuiteSectionId };
97
+ export { h as WIDGET_SUITE_DEFAULT_SECTIONS, g as WIDGET_SUITE_SECTIONS, m as WidgetSuiteSectionId };
@@ -8,52 +8,77 @@ import { useAnalyticsTrack as t } from "../../../shared/feature/dist/lib/analyti
8
8
  import { WidgetProvider as n } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
9
9
  import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
10
  import "../../../shared/feature/dist/index.js";
11
- import { WIDGET_SUITE_SECTION_LABELS_EN as i } from "./index3.js";
12
- import { WIDGET_SUITE_SECTIONS as a } from "./index4.js";
13
- import { WIDGET_NAME as o, WidgetSuiteAnalyticsEvent as s } from "./index2.js";
14
- import { WidgetSuiteShell as c } from "../../ui/dist/index3.js";
11
+ import { WIDGET_SUITE_CONTENT_LABELS_EN as i, WIDGET_SUITE_SECTION_LABELS_EN as a, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as o } from "./index3.js";
12
+ import { WIDGET_SUITE_SECTIONS as s } from "./index4.js";
13
+ import { WIDGET_NAME as c, WidgetSuiteAnalyticsEvent as l } from "./index2.js";
14
+ import { WidgetSuiteShell as u } from "../../ui/dist/index3.js";
15
+ import { SectionPageTitle as d } from "../../ui/dist/index4.js";
15
16
  import "../../ui/dist/index.js";
16
- import { useEffect as l, useState as u } from "react";
17
- import { jsx as d } from "react/jsx-runtime";
17
+ import { useEffect as f, useMemo as p, useState as m } from "react";
18
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
18
19
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js
19
- function f({ sections: n, labels: o, sectionLabels: f }) {
20
- let p = t();
21
- l(() => {
22
- p(s.Mounted);
23
- }, [p]);
24
- let m = {
25
- ...i,
26
- ...f
27
- }, { initResponse: h } = r(), g = h?.scopes, _ = n.flatMap((t) => {
28
- let n = a[t];
29
- return !n || n.anyOfScopes && !e(g, n.anyOfScopes) ? [] : [{
20
+ function v({ sections: n, labels: c, sectionLabels: v, sectionTitleLabels: y, contentLabels: b, showSectionTitle: x = !0 }) {
21
+ let S = t();
22
+ f(() => {
23
+ S(l.Mounted);
24
+ }, [S]);
25
+ let C = {
26
+ ...a,
27
+ ...v
28
+ }, { initResponse: w } = r(), T = w?.scopes, E = p(() => ({
29
+ creditCards: {
30
+ ...i.creditCards,
31
+ ...b?.creditCards
32
+ },
33
+ debitCards: {
34
+ ...i.debitCards,
35
+ ...b?.debitCards
36
+ },
37
+ expensePlaceholders: {
38
+ ...i.expensePlaceholders,
39
+ ...b?.expensePlaceholders
40
+ }
41
+ }), [b]), D = w?.bankName?.trim(), O = D ? {
42
+ ...o,
43
+ ...y
44
+ }.bankTagline.replaceAll("{bankName}", D) : void 0, k = n.flatMap((t) => {
45
+ let n = s[t];
46
+ if (!n || n.anyOfScopes && !e(T, n.anyOfScopes)) return [];
47
+ let r = C[t], i = n.render({
48
+ grantedScopes: T,
49
+ labels: E
50
+ });
51
+ return [{
30
52
  id: t,
31
- label: m[t],
32
- content: n.render(g)
53
+ label: r,
54
+ content: x && !n.rendersOwnTitle ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(d, {
55
+ title: r,
56
+ bankTagline: O
57
+ }), i] }) : i
33
58
  }];
34
- }), [v, y] = u(n[0] ?? ""), b = _.some((e) => e.id === v) ? v : _[0]?.id ?? "";
35
- return /* @__PURE__ */ d(c, {
36
- sections: _,
37
- selectedSectionId: b,
38
- onSectionChange: y,
39
- labels: o
59
+ }), [A, j] = m(n[0] ?? ""), M = k.some((e) => e.id === A) ? A : k[0]?.id ?? "";
60
+ return /* @__PURE__ */ g(u, {
61
+ sections: k,
62
+ selectedSectionId: M,
63
+ onSectionChange: j,
64
+ labels: c
40
65
  });
41
66
  }
42
- function p({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: p, ...m }) {
43
- return /* @__PURE__ */ d(n, {
44
- widgetName: o,
67
+ function y({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: l, onError: u, analytics: d, ...f }) {
68
+ return /* @__PURE__ */ g(n, {
69
+ widgetName: c,
45
70
  baseUrl: e,
46
71
  widgetToken: t,
47
72
  organizationId: r,
48
73
  configClient: i,
49
74
  linkComponent: a,
50
- implementation: s,
51
- uiFramework: c,
75
+ implementation: o,
76
+ uiFramework: s,
52
77
  errorFallback: l,
53
78
  onError: u,
54
- analytics: p,
55
- children: /* @__PURE__ */ d(f, { ...m })
79
+ analytics: d,
80
+ children: /* @__PURE__ */ g(v, { ...f })
56
81
  });
57
82
  }
58
83
  //#endregion
59
- export { p as WidgetSuite, p as default };
84
+ export { y as WidgetSuite, y as default };
@@ -1,3 +1,4 @@
1
1
  import { WIDGET_SUITE_SHELL_LABELS_EN as e } from "./index2.js";
2
2
  import { WidgetSuiteShell as t } from "./index3.js";
3
- export { e as WIDGET_SUITE_SHELL_LABELS_EN, t as WidgetSuiteShell };
3
+ import { SectionPageTitle as n } from "./index4.js";
4
+ export { n as SectionPageTitle, e as WIDGET_SUITE_SHELL_LABELS_EN, t as WidgetSuiteShell };
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
7
+ //#region ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index4.js
8
+ function r({ title: r, bankTagline: i, testId: a, children: o }) {
9
+ return /* @__PURE__ */ n("div", {
10
+ className: "ttw:mb-6 ttw:flex ttw:justify-between ttw:gap-4",
11
+ children: [/* @__PURE__ */ n("div", {
12
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
13
+ children: [/* @__PURE__ */ t(e, {
14
+ variant: "h1",
15
+ "data-testid": a,
16
+ children: r
17
+ }), i && /* @__PURE__ */ t(e, {
18
+ color: "muted",
19
+ variant: "body1",
20
+ children: i
21
+ })]
22
+ }), /* @__PURE__ */ t("div", {
23
+ className: "ttw:flex ttw:items-center ttw:gap-2",
24
+ children: o
25
+ })]
26
+ });
27
+ }
28
+ //#endregion
29
+ export { r as SectionPageTitle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.2.261",
3
+ "version": "0.2.262",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -1,2 +0,0 @@
1
- import "./index2.js";
2
- import "./index3.js";