@tesouro/embedded-components-react 0.11.0 → 0.11.1

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 (56) hide show
  1. package/dist/experimental/QuickViewWidget.d.ts +11 -0
  2. package/dist/experimental/RemoteCheckCapture.d.ts +11 -0
  3. package/dist/experimental/index.d.ts +11 -0
  4. package/dist/index.css +15 -50
  5. package/dist/index.d.ts +54 -13
  6. package/dist/lib/AcceptDisclosuresWidget.d.ts +11 -0
  7. package/dist/lib/BalancesWidget.d.ts +11 -0
  8. package/dist/lib/BankAccountOnboardingWidget.d.ts +11 -0
  9. package/dist/lib/BankAccountsWidget.d.ts +11 -0
  10. package/dist/lib/BankingComplianceBannerWidget.d.ts +11 -0
  11. package/dist/lib/BillPayWidget.d.ts +11 -0
  12. package/dist/lib/CardDetailsWidget.d.ts +11 -0
  13. package/dist/lib/CounterpartsWidget.d.ts +11 -0
  14. package/dist/lib/CounterpartsWidgetPublic.d.ts +11 -0
  15. package/dist/lib/CreditCardsWidget.d.ts +11 -0
  16. package/dist/lib/CustomersWidget.d.ts +11 -0
  17. package/dist/lib/DebitCardsWidget.d.ts +11 -0
  18. package/dist/lib/ExpenseManagementWidget.d.ts +11 -0
  19. package/dist/lib/InsightsWidget.d.ts +11 -0
  20. package/dist/lib/LinkedAccountsWidget.d.ts +11 -0
  21. package/dist/lib/OfferWidget.d.ts +11 -0
  22. package/dist/lib/ProductsWidget.d.ts +11 -0
  23. package/dist/lib/ReceivablesWidget.d.ts +11 -0
  24. package/dist/lib/SettingsWidget.d.ts +11 -0
  25. package/dist/lib/TransfersWidget.d.ts +54 -13
  26. package/dist/lib/WidgetProvider.d.ts +11 -0
  27. package/dist/lib/WidgetProviderPublic.d.ts +11 -0
  28. package/dist/lib/WidgetSuite.d.ts +54 -13
  29. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +15 -12
  31. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AmountInput/AmountInput.js +30 -0
  32. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js +14 -1
  33. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +57 -0
  34. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/labels.js +7 -0
  35. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +4 -2
  36. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -2
  37. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +10 -17
  38. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +159 -218
  39. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/ReviewTransferStep.js +37 -88
  41. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +184 -245
  42. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js +43 -58
  43. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/reviewTransferStepLabels.js +6 -5
  44. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/transferResultStepLabels.js +7 -6
  45. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/useFocusFirstInvalidField.js +9 -0
  46. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountValue.js +32 -0
  47. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +68 -101
  48. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +155 -153
  49. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +20 -11
  50. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/maskLabels.js +7 -0
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +1846 -1603
  52. package/package.json +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModalHeader.js +0 -29
  54. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferReviewAccountCard.js +0 -64
  55. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +0 -14
  56. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +0 -17
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
+ import { RowData } from '@tanstack/react-table';
3
4
  import { FallbackProps } from 'react-error-boundary';
4
5
  import { PartialDeep } from 'type-fest';
5
6
 
@@ -332,6 +333,16 @@ type EmbeddedClient = Client;
332
333
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
333
334
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
334
335
 
336
+ declare module '@tanstack/react-table' {
337
+ interface ColumnMeta<TData extends RowData, TValue> {
338
+ /**
339
+ * Shrinks the column to its content on one line, leaving the table's
340
+ * spare width to the columns without it: dates, statuses and amounts.
341
+ */
342
+ fitContent?: boolean;
343
+ }
344
+ }
345
+
335
346
  interface LabelLabels {
336
347
  /**
337
348
  * How the field name and its requirement fragment compose. `{label}` is the
@@ -1,8 +1,19 @@
1
+ import { RowData } from '@tanstack/react-table';
1
2
  import * as React from 'react';
2
3
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
4
  import { PartialDeep } from 'type-fest';
4
5
  import { FallbackProps } from 'react-error-boundary';
5
6
 
7
+ declare module '@tanstack/react-table' {
8
+ interface ColumnMeta<TData extends RowData, TValue> {
9
+ /**
10
+ * Shrinks the column to its content on one line, leaving the table's
11
+ * spare width to the columns without it: dates, statuses and amounts.
12
+ */
13
+ fitContent?: boolean;
14
+ }
15
+ }
16
+
6
17
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
7
18
  children?: ReactNode;
8
19
  };
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
+ import { RowData } from '@tanstack/react-table';
3
4
  import { FallbackProps } from 'react-error-boundary';
4
5
 
5
6
  interface ExpensesHeaderLabels {
@@ -101,6 +102,16 @@ interface AccordionItemCardLabels {
101
102
  location: string;
102
103
  }
103
104
 
105
+ declare module '@tanstack/react-table' {
106
+ interface ColumnMeta<TData extends RowData, TValue> {
107
+ /**
108
+ * Shrinks the column to its content on one line, leaving the table's
109
+ * spare width to the columns without it: dates, statuses and amounts.
110
+ */
111
+ fitContent?: boolean;
112
+ }
113
+ }
114
+
104
115
  interface TransactionDetailsActionsLabels {
105
116
  returnToExpenses: string;
106
117
  cancel: string;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ReactElement, ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
+ import { RowData } from '@tanstack/react-table';
3
4
  import { FallbackProps } from 'react-error-boundary';
4
5
 
5
6
  interface InsightsWidgetLabels {
@@ -369,6 +370,16 @@ type EmbeddedClient = Client;
369
370
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
370
371
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
371
372
 
373
+ declare module '@tanstack/react-table' {
374
+ interface ColumnMeta<TData extends RowData, TValue> {
375
+ /**
376
+ * Shrinks the column to its content on one line, leaving the table's
377
+ * spare width to the columns without it: dates, statuses and amounts.
378
+ */
379
+ fitContent?: boolean;
380
+ }
381
+ }
382
+
372
383
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
373
384
  children?: ReactNode;
374
385
  };
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
+ import { RowData } from '@tanstack/react-table';
3
4
  import { FallbackProps } from 'react-error-boundary';
4
5
 
5
6
  interface Labels {
@@ -398,6 +399,16 @@ type EmbeddedClient = Client;
398
399
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
399
400
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
400
401
 
402
+ declare module '@tanstack/react-table' {
403
+ interface ColumnMeta<TData extends RowData, TValue> {
404
+ /**
405
+ * Shrinks the column to its content on one line, leaving the table's
406
+ * spare width to the columns without it: dates, statuses and amounts.
407
+ */
408
+ fitContent?: boolean;
409
+ }
410
+ }
411
+
401
412
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
402
413
  children?: ReactNode;
403
414
  };
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
3
  import { PartialDeep } from 'type-fest';
4
+ import { RowData } from '@tanstack/react-table';
4
5
  import { FallbackProps } from 'react-error-boundary';
5
6
 
6
7
  interface OfferWidgetLabels {
@@ -383,6 +384,16 @@ type EmbeddedClient = Client;
383
384
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
384
385
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
385
386
 
387
+ declare module '@tanstack/react-table' {
388
+ interface ColumnMeta<TData extends RowData, TValue> {
389
+ /**
390
+ * Shrinks the column to its content on one line, leaving the table's
391
+ * spare width to the columns without it: dates, statuses and amounts.
392
+ */
393
+ fitContent?: boolean;
394
+ }
395
+ }
396
+
386
397
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
387
398
  children?: ReactNode;
388
399
  };
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
3
  import { PartialDeep } from 'type-fest';
4
+ import { RowData } from '@tanstack/react-table';
4
5
  import { FallbackProps } from 'react-error-boundary';
5
6
 
6
7
  type AuthToken = string | undefined;
@@ -332,6 +333,16 @@ type EmbeddedClient = Client;
332
333
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
333
334
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
334
335
 
336
+ declare module '@tanstack/react-table' {
337
+ interface ColumnMeta<TData extends RowData, TValue> {
338
+ /**
339
+ * Shrinks the column to its content on one line, leaving the table's
340
+ * spare width to the columns without it: dates, statuses and amounts.
341
+ */
342
+ fitContent?: boolean;
343
+ }
344
+ }
345
+
335
346
  interface LabelLabels {
336
347
  /**
337
348
  * How the field name and its requirement fragment compose. `{label}` is the
@@ -1,8 +1,19 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
3
  import { PartialDeep } from 'type-fest';
4
+ import { RowData } from '@tanstack/react-table';
4
5
  import { FallbackProps } from 'react-error-boundary';
5
6
 
7
+ declare module '@tanstack/react-table' {
8
+ interface ColumnMeta<TData extends RowData, TValue> {
9
+ /**
10
+ * Shrinks the column to its content on one line, leaving the table's
11
+ * spare width to the columns without it: dates, statuses and amounts.
12
+ */
13
+ fitContent?: boolean;
14
+ }
15
+ }
16
+
6
17
  interface LabelLabels {
7
18
  /**
8
19
  * How the field name and its requirement fragment compose. `{label}` is the
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ReactNode, ComponentType, AnchorHTMLAttributes, ErrorInfo } from 'react';
3
+ import { RowData } from '@tanstack/react-table';
3
4
  import { FallbackProps } from 'react-error-boundary';
4
5
 
5
6
  interface Labels {
@@ -382,6 +383,16 @@ type EmbeddedClient = Client;
382
383
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
383
384
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
384
385
 
386
+ declare module '@tanstack/react-table' {
387
+ interface ColumnMeta<TData extends RowData, TValue> {
388
+ /**
389
+ * Shrinks the column to its content on one line, leaving the table's
390
+ * spare width to the columns without it: dates, statuses and amounts.
391
+ */
392
+ fitContent?: boolean;
393
+ }
394
+ }
395
+
385
396
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
386
397
  children?: ReactNode;
387
398
  };
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
3
+ import { RowData } from '@tanstack/react-table';
3
4
  import { FallbackProps } from 'react-error-boundary';
4
5
 
5
6
  type AuthToken = string | undefined;
@@ -331,6 +332,16 @@ type EmbeddedClient = Client;
331
332
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
332
333
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
333
334
 
335
+ declare module '@tanstack/react-table' {
336
+ interface ColumnMeta<TData extends RowData, TValue> {
337
+ /**
338
+ * Shrinks the column to its content on one line, leaving the table's
339
+ * spare width to the columns without it: dates, statuses and amounts.
340
+ */
341
+ fitContent?: boolean;
342
+ }
343
+ }
344
+
334
345
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
335
346
  children?: ReactNode;
336
347
  };
@@ -603,9 +614,9 @@ interface TransfersWidgetLabels {
603
614
  transferMoneyCtaDisabledTooltip: string;
604
615
  /** Fallback when an account has no nickname in lists or options. */
605
616
  accountFallbackName: string;
606
- /** Mask prefix before last four digits on account options. */
617
+ /** @deprecated No longer rendered. */
607
618
  embeddedAccountMaskPrefix: string;
608
- /** Prefix before full account number on review cards (e.g. "Account #:"). */
619
+ /** @deprecated No longer rendered. */
609
620
  modalReviewAccountNumberPrefix: string;
610
621
  /** @deprecated No longer rendered; the list shows From and To columns. */
611
622
  listAccountsSeparator: string;
@@ -618,25 +629,32 @@ interface TransfersWidgetLabels {
618
629
  transferToLabel: string;
619
630
  /** Row's accessible name. `{amount}`, `{from}` and `{to}` are filled in. */
620
631
  rowAriaLabel: string;
621
- /** Account kind, shown as the tile tooltip and in the detail panel. */
632
+ /** Account kind, the muted line under an account's name. */
622
633
  accountKindInternal: string;
623
634
  accountKindExternal: string;
624
- /** Badge after an external account's name in a row. */
635
+ /** @deprecated No longer rendered. */
625
636
  externalAccountBadge: string;
637
+ /** @deprecated No longer rendered; the detail panel explains a return. */
638
+ returnShortReasonAccountClosed: string;
639
+ /** @deprecated No longer rendered; the detail panel explains a return. */
640
+ returnShortReasonInvalidAccountDetails: string;
641
+ /** @deprecated No longer rendered; the detail panel explains a return. */
642
+ returnShortReasonAccountCannotReceive: string;
643
+ /** @deprecated No longer rendered; the detail panel explains a return. */
644
+ returnShortReasonRefusedByReceiver: string;
626
645
  /** Name for an external account with no nickname. */
627
646
  externalAccountFallbackName: string;
628
- /** Suffix after an account name. `{last4}` is filled in. */
647
+ /** Suffix after an account name in sentences. `{last4}` is filled in. */
629
648
  accountMaskTemplate: string;
649
+ /** `{last4}` is filled in. */
650
+ accountNumberEndingIn: string;
651
+ showAccountNumber: string;
652
+ hideAccountNumber: string;
630
653
  detailTitle: string;
631
654
  /** Screen-reader name of the detail panel's close button. */
632
655
  detailClose: string;
633
656
  detailInitiatedByLabel: string;
634
657
  detailInitiatedOnLabel: string;
635
- /** Short reasons under a Returned badge. A GENERIC return shows none. */
636
- returnShortReasonAccountClosed: string;
637
- returnShortReasonInvalidAccountDetails: string;
638
- returnShortReasonAccountCannotReceive: string;
639
- returnShortReasonRefusedByReceiver: string;
640
658
  returnedTitleAccountClosed: string;
641
659
  returnedTitleInvalidAccountDetails: string;
642
660
  returnedTitleAccountCannotReceive: string;
@@ -652,6 +670,7 @@ interface TransfersWidgetLabels {
652
670
  /** `{account}` is filled in. */
653
671
  returnedPausedSentence: string;
654
672
  returnedLinkAccountCta: string;
673
+ loadingLabel: string;
655
674
  loadErrorTitle: string;
656
675
  loadErrorDescription: string;
657
676
  loadErrorRetry: string;
@@ -663,38 +682,60 @@ interface TransfersWidgetLabels {
663
682
  modalTitle: string;
664
683
  /** Shown under the title on the accounts step (e.g. ACH timing). */
665
684
  modalAccountsSubtitle: string;
666
- /** Placeholder inside the From account select on the accounts step. */
685
+ /** `{current}` and `{total}` are filled in. */
686
+ modalStepLabel: string;
687
+ /** @deprecated Use `modalFromLabel`. */
667
688
  modalFromAccountPlaceholder: string;
668
- /** Placeholder inside the To account select on the accounts step. */
689
+ /** @deprecated Use `modalToLabel`. */
669
690
  modalToAccountPlaceholder: string;
670
- /** Primary action on the accounts step (legacy: full-width Confirm). */
691
+ /** @deprecated Use `modalContinue`. */
671
692
  modalAccountsConfirm: string;
693
+ /** @deprecated No longer rendered. */
672
694
  modalStepAccounts: string;
695
+ /** @deprecated No longer rendered. */
673
696
  modalStepAmount: string;
697
+ /** @deprecated No longer rendered. */
674
698
  modalStepReview: string;
699
+ /** @deprecated No longer rendered. */
675
700
  modalStepResult: string;
676
701
  modalFromLabel: string;
677
702
  modalToLabel: string;
678
703
  modalAmountLabel: string;
679
704
  /** Placeholder for the amount input (e.g. "0.00"). */
680
705
  modalAmountPlaceholder: string;
706
+ modalFromRequiredError: string;
707
+ modalToRequiredError: string;
681
708
  modalContinue: string;
682
709
  modalBack: string;
710
+ /** @deprecated Use `modalConfirmTransfer`. */
683
711
  modalSubmit: string;
684
712
  modalClose: string;
685
713
  modalReviewHeading: string;
714
+ /** @deprecated Use `modalFromLabel`. */
686
715
  modalReviewFromAccountLabel: string;
716
+ /** @deprecated Use `modalToLabel`. */
687
717
  modalReviewToAccountLabel: string;
718
+ /** @deprecated No longer rendered. */
688
719
  modalAvailableBalanceCaption: string;
689
720
  modalConfirmTransfer: string;
721
+ /** @deprecated Use `modalBack`. */
690
722
  modalGoBack: string;
723
+ /** @deprecated No longer rendered. */
691
724
  modalSuccessTitle: string;
725
+ /** @deprecated No longer rendered. */
692
726
  modalSuccessDescription: string;
693
727
  modalResultSuccessTitle: string;
728
+ modalResultDescription: string;
729
+ modalDone: string;
730
+ /** @deprecated No longer rendered. */
694
731
  modalResultErrorTitle: string;
732
+ /** @deprecated No longer rendered. */
695
733
  modalResultTransferMessagePrefix: string;
734
+ /** @deprecated No longer rendered. */
696
735
  modalResultSuccessMessageSuffix: string;
736
+ /** @deprecated No longer rendered. */
697
737
  modalResultErrorMessageSuffix: string;
738
+ /** @deprecated Use `modalDone`. */
698
739
  modalBackToTransfers: string;
699
740
  modalSelectPlaceholder: string;
700
741
  rowStatusCompleted: string;
@@ -1,3 +1,4 @@
1
+ import { RowData } from '@tanstack/react-table';
1
2
  import * as React from 'react';
2
3
  import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo } from 'react';
3
4
  import { FallbackProps } from 'react-error-boundary';
@@ -382,6 +383,16 @@ type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
382
383
  */
383
384
  declare function cloneEmbeddedClient(source: EmbeddedClient): EmbeddedClient;
384
385
 
386
+ declare module '@tanstack/react-table' {
387
+ interface ColumnMeta<TData extends RowData, TValue> {
388
+ /**
389
+ * Shrinks the column to its content on one line, leaving the table's
390
+ * spare width to the columns without it: dates, statuses and amounts.
391
+ */
392
+ fitContent?: boolean;
393
+ }
394
+ }
395
+
385
396
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
386
397
  children?: ReactNode;
387
398
  };
@@ -1,4 +1,5 @@
1
1
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, PropsWithChildren } from 'react';
2
+ import { RowData } from '@tanstack/react-table';
2
3
  import { FallbackProps } from 'react-error-boundary';
3
4
 
4
5
  type AuthToken = string | undefined;
@@ -330,6 +331,16 @@ type EmbeddedClient = Client;
330
331
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
331
332
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
332
333
 
334
+ declare module '@tanstack/react-table' {
335
+ interface ColumnMeta<TData extends RowData, TValue> {
336
+ /**
337
+ * Shrinks the column to its content on one line, leaving the table's
338
+ * spare width to the columns without it: dates, statuses and amounts.
339
+ */
340
+ fitContent?: boolean;
341
+ }
342
+ }
343
+
333
344
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
334
345
  children?: ReactNode;
335
346
  };
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, ReactElement } from 'react';
3
+ import { RowData } from '@tanstack/react-table';
3
4
  import { FallbackProps } from 'react-error-boundary';
4
5
  import { PartialDeep } from 'type-fest';
5
6
 
@@ -381,6 +382,16 @@ declare const OnboardingSuppressionReason: {
381
382
  };
382
383
  type OnboardingSuppressionReason = (typeof OnboardingSuppressionReason)[keyof typeof OnboardingSuppressionReason];
383
384
 
385
+ declare module '@tanstack/react-table' {
386
+ interface ColumnMeta<TData extends RowData, TValue> {
387
+ /**
388
+ * Shrinks the column to its content on one line, leaving the table's
389
+ * spare width to the columns without it: dates, statuses and amounts.
390
+ */
391
+ fitContent?: boolean;
392
+ }
393
+ }
394
+
384
395
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
385
396
  children?: ReactNode;
386
397
  };
@@ -2899,9 +2910,9 @@ interface TransfersWidgetLabels {
2899
2910
  transferMoneyCtaDisabledTooltip: string;
2900
2911
  /** Fallback when an account has no nickname in lists or options. */
2901
2912
  accountFallbackName: string;
2902
- /** Mask prefix before last four digits on account options. */
2913
+ /** @deprecated No longer rendered. */
2903
2914
  embeddedAccountMaskPrefix: string;
2904
- /** Prefix before full account number on review cards (e.g. "Account #:"). */
2915
+ /** @deprecated No longer rendered. */
2905
2916
  modalReviewAccountNumberPrefix: string;
2906
2917
  /** @deprecated No longer rendered; the list shows From and To columns. */
2907
2918
  listAccountsSeparator: string;
@@ -2914,25 +2925,32 @@ interface TransfersWidgetLabels {
2914
2925
  transferToLabel: string;
2915
2926
  /** Row's accessible name. `{amount}`, `{from}` and `{to}` are filled in. */
2916
2927
  rowAriaLabel: string;
2917
- /** Account kind, shown as the tile tooltip and in the detail panel. */
2928
+ /** Account kind, the muted line under an account's name. */
2918
2929
  accountKindInternal: string;
2919
2930
  accountKindExternal: string;
2920
- /** Badge after an external account's name in a row. */
2931
+ /** @deprecated No longer rendered. */
2921
2932
  externalAccountBadge: string;
2933
+ /** @deprecated No longer rendered; the detail panel explains a return. */
2934
+ returnShortReasonAccountClosed: string;
2935
+ /** @deprecated No longer rendered; the detail panel explains a return. */
2936
+ returnShortReasonInvalidAccountDetails: string;
2937
+ /** @deprecated No longer rendered; the detail panel explains a return. */
2938
+ returnShortReasonAccountCannotReceive: string;
2939
+ /** @deprecated No longer rendered; the detail panel explains a return. */
2940
+ returnShortReasonRefusedByReceiver: string;
2922
2941
  /** Name for an external account with no nickname. */
2923
2942
  externalAccountFallbackName: string;
2924
- /** Suffix after an account name. `{last4}` is filled in. */
2943
+ /** Suffix after an account name in sentences. `{last4}` is filled in. */
2925
2944
  accountMaskTemplate: string;
2945
+ /** `{last4}` is filled in. */
2946
+ accountNumberEndingIn: string;
2947
+ showAccountNumber: string;
2948
+ hideAccountNumber: string;
2926
2949
  detailTitle: string;
2927
2950
  /** Screen-reader name of the detail panel's close button. */
2928
2951
  detailClose: string;
2929
2952
  detailInitiatedByLabel: string;
2930
2953
  detailInitiatedOnLabel: string;
2931
- /** Short reasons under a Returned badge. A GENERIC return shows none. */
2932
- returnShortReasonAccountClosed: string;
2933
- returnShortReasonInvalidAccountDetails: string;
2934
- returnShortReasonAccountCannotReceive: string;
2935
- returnShortReasonRefusedByReceiver: string;
2936
2954
  returnedTitleAccountClosed: string;
2937
2955
  returnedTitleInvalidAccountDetails: string;
2938
2956
  returnedTitleAccountCannotReceive: string;
@@ -2948,6 +2966,7 @@ interface TransfersWidgetLabels {
2948
2966
  /** `{account}` is filled in. */
2949
2967
  returnedPausedSentence: string;
2950
2968
  returnedLinkAccountCta: string;
2969
+ loadingLabel: string;
2951
2970
  loadErrorTitle: string;
2952
2971
  loadErrorDescription: string;
2953
2972
  loadErrorRetry: string;
@@ -2959,38 +2978,60 @@ interface TransfersWidgetLabels {
2959
2978
  modalTitle: string;
2960
2979
  /** Shown under the title on the accounts step (e.g. ACH timing). */
2961
2980
  modalAccountsSubtitle: string;
2962
- /** Placeholder inside the From account select on the accounts step. */
2981
+ /** `{current}` and `{total}` are filled in. */
2982
+ modalStepLabel: string;
2983
+ /** @deprecated Use `modalFromLabel`. */
2963
2984
  modalFromAccountPlaceholder: string;
2964
- /** Placeholder inside the To account select on the accounts step. */
2985
+ /** @deprecated Use `modalToLabel`. */
2965
2986
  modalToAccountPlaceholder: string;
2966
- /** Primary action on the accounts step (legacy: full-width Confirm). */
2987
+ /** @deprecated Use `modalContinue`. */
2967
2988
  modalAccountsConfirm: string;
2989
+ /** @deprecated No longer rendered. */
2968
2990
  modalStepAccounts: string;
2991
+ /** @deprecated No longer rendered. */
2969
2992
  modalStepAmount: string;
2993
+ /** @deprecated No longer rendered. */
2970
2994
  modalStepReview: string;
2995
+ /** @deprecated No longer rendered. */
2971
2996
  modalStepResult: string;
2972
2997
  modalFromLabel: string;
2973
2998
  modalToLabel: string;
2974
2999
  modalAmountLabel: string;
2975
3000
  /** Placeholder for the amount input (e.g. "0.00"). */
2976
3001
  modalAmountPlaceholder: string;
3002
+ modalFromRequiredError: string;
3003
+ modalToRequiredError: string;
2977
3004
  modalContinue: string;
2978
3005
  modalBack: string;
3006
+ /** @deprecated Use `modalConfirmTransfer`. */
2979
3007
  modalSubmit: string;
2980
3008
  modalClose: string;
2981
3009
  modalReviewHeading: string;
3010
+ /** @deprecated Use `modalFromLabel`. */
2982
3011
  modalReviewFromAccountLabel: string;
3012
+ /** @deprecated Use `modalToLabel`. */
2983
3013
  modalReviewToAccountLabel: string;
3014
+ /** @deprecated No longer rendered. */
2984
3015
  modalAvailableBalanceCaption: string;
2985
3016
  modalConfirmTransfer: string;
3017
+ /** @deprecated Use `modalBack`. */
2986
3018
  modalGoBack: string;
3019
+ /** @deprecated No longer rendered. */
2987
3020
  modalSuccessTitle: string;
3021
+ /** @deprecated No longer rendered. */
2988
3022
  modalSuccessDescription: string;
2989
3023
  modalResultSuccessTitle: string;
3024
+ modalResultDescription: string;
3025
+ modalDone: string;
3026
+ /** @deprecated No longer rendered. */
2990
3027
  modalResultErrorTitle: string;
3028
+ /** @deprecated No longer rendered. */
2991
3029
  modalResultTransferMessagePrefix: string;
3030
+ /** @deprecated No longer rendered. */
2992
3031
  modalResultSuccessMessageSuffix: string;
3032
+ /** @deprecated No longer rendered. */
2993
3033
  modalResultErrorMessageSuffix: string;
3034
+ /** @deprecated Use `modalDone`. */
2994
3035
  modalBackToTransfers: string;
2995
3036
  modalSelectPlaceholder: string;
2996
3037
  rowStatusCompleted: string;
@@ -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.0", n = "e6a6ac128fb58394e9391583d640a385022b289d", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.1", n = "1199a87eb3454312056c8d4ec5dd4ce22d22e518", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -11,21 +11,24 @@ import { registerDesignSystemEnsurer as o, registerUIRenderers as s, useDesignSy
11
11
  import "./lib/UIContext/index.js";
12
12
  import { HostIsolationScope as u } from "./lib/HostIsolationScope/HostIsolationScope.js";
13
13
  import { Link as d } from "./lib/Link/Link.js";
14
- import "./lib/WidgetFrame/WidgetFrame.js";
15
- import { WidgetContainer as f } from "./lib/WidgetContainer/WidgetContainer.js";
14
+ import { WidgetFrame as f } from "./lib/WidgetFrame/WidgetFrame.js";
15
+ import { WidgetContainer as p } from "./lib/WidgetContainer/WidgetContainer.js";
16
16
  import "./lib/StatePanel/labels.js";
17
17
  import "./lib/StatePanel/StatePanel.js";
18
- import { EmptyState as p } from "./lib/EmptyState/EmptyState.js";
19
- import { ERROR_STATE_ID as m, ErrorState as h } from "./lib/ErrorState/ErrorState.js";
18
+ import { EmptyState as m } from "./lib/EmptyState/EmptyState.js";
19
+ import { ERROR_STATE_ID as h, ErrorState as g } from "./lib/ErrorState/ErrorState.js";
20
20
  import "./lib/StatePanel/NoAccessState.js";
21
- import "./lib/LoadingRegion/LoadingRegion.js";
22
- import { InlineErrorAlert as g } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
23
- import { PAGINATION_FOOTER_LABELS_EN as _ } from "./lib/PaginationFooter/labels.js";
24
- import { PaginationFooter as v } from "./lib/PaginationFooter/PaginationFooter.js";
25
- import { WidgetTitleWithIconAndChildren as y } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
21
+ import { AmountInput as _ } from "./lib/AmountInput/AmountInput.js";
22
+ import { LoadingRegion as v } from "./lib/LoadingRegion/LoadingRegion.js";
23
+ import "./lib/MaskedAccountNumber/labels.js";
24
+ import { MaskedAccountNumber as y } from "./lib/MaskedAccountNumber/MaskedAccountNumber.js";
25
+ import { InlineErrorAlert as b } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
26
+ import { PAGINATION_FOOTER_LABELS_EN as x } from "./lib/PaginationFooter/labels.js";
27
+ import { PaginationFooter as S } from "./lib/PaginationFooter/PaginationFooter.js";
28
+ import { WidgetTitleWithIconAndChildren as C } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
26
29
  import "./lib/OnboardingShell/labels.js";
27
30
  import "./lib/OnboardingShell/OnboardingShellStepper.js";
28
31
  import "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
29
- import { OnboardingShell as b } from "./lib/OnboardingShell/OnboardingShell.js";
30
- import { SectionHeading as x } from "./lib/SectionHeading/SectionHeading.js";
31
- export { m as ERROR_STATE_ID, t as EmbeddedToaster, p as EmptyState, h as ErrorState, u as HostIsolationScope, g as InlineErrorAlert, d as Link, b as OnboardingShell, _ as PAGINATION_FOOTER_LABELS_EN, v as PaginationFooter, x as SectionHeading, n as ToastNameMessage, r as UIFramework, a as UIProvider, f as WidgetContainer, y as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
32
+ import { OnboardingShell as w } from "./lib/OnboardingShell/OnboardingShell.js";
33
+ import { SectionHeading as T } from "./lib/SectionHeading/SectionHeading.js";
34
+ export { _ as AmountInput, h as ERROR_STATE_ID, t as EmbeddedToaster, m as EmptyState, g as ErrorState, u as HostIsolationScope, b as InlineErrorAlert, d as Link, v as LoadingRegion, y as MaskedAccountNumber, w as OnboardingShell, x as PAGINATION_FOOTER_LABELS_EN, S as PaginationFooter, T as SectionHeading, n as ToastNameMessage, r as UIFramework, a as UIProvider, p as WidgetContainer, f as WidgetFrame, C as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
@@ -0,0 +1,30 @@
1
+ import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n, cn as r } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
3
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/AmountInput/AmountInput.js
4
+ var o = /^(\d*)(?:\.(\d{0,2}))?$/;
5
+ function s(e) {
6
+ let t = o.exec(e.trim());
7
+ return !t || !t[1] && !t[2] ? e : `${t[1].replace(/^0+(?=\d)/, "") || "0"}.${(t[2] ?? "").padEnd(2, "0")}`;
8
+ }
9
+ function c({ value: o, onValueChange: c, currencySymbol: l, onBlur: u, className: d, ...f }) {
10
+ let p = (e) => {
11
+ u?.(e);
12
+ let t = s(o);
13
+ t !== o && c(t);
14
+ };
15
+ return /* @__PURE__ */ a(e, { children: [/* @__PURE__ */ i(t, {
16
+ "aria-hidden": !0,
17
+ children: l
18
+ }), /* @__PURE__ */ i(n, {
19
+ ...f,
20
+ type: "text",
21
+ inputMode: "decimal",
22
+ autoComplete: "off",
23
+ "data-has-start-addon": !0,
24
+ className: r("ttw:text-right ttw:tabular-nums", d),
25
+ value: o,
26
+ onChange: (e) => c(e.target.value),
27
+ onBlur: p
28
+ })] });
29
+ }
30
+ export { c as AmountInput, s as formatAmountInputValue };
@@ -1 +1,14 @@
1
- import "react/jsx-runtime";
1
+ import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js
3
+ function r({ isLoading: r, loadingLabel: i, children: a, ...o }) {
4
+ return /* @__PURE__ */ n(e, { children: [r ? /* @__PURE__ */ t("span", {
5
+ role: "status",
6
+ className: "ttw:sr-only",
7
+ children: i
8
+ }) : null, /* @__PURE__ */ t("div", {
9
+ "aria-busy": r || void 0,
10
+ ...o,
11
+ children: a
12
+ })] });
13
+ }
14
+ export { r as LoadingRegion, r as default };