@tesouro/embedded-components-react 0.11.100 → 0.11.102

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 (71) hide show
  1. package/dist/experimental/QuickViewWidget.d.ts +62 -2
  2. package/dist/experimental/index.d.ts +62 -2
  3. package/dist/index.css +21 -17
  4. package/dist/index.d.ts +10 -6
  5. package/dist/lib/CardDetailsWidget.d.ts +6 -4
  6. package/dist/lib/CreditCardsWidget.d.ts +6 -4
  7. package/dist/lib/DebitCardsWidget.d.ts +6 -4
  8. package/dist/lib/SettingsWidget.d.ts +2 -1
  9. package/dist/lib/WidgetSuite.d.ts +8 -5
  10. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +199 -168
  11. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/labels.js +1 -0
  12. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +44 -43
  13. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index3.js +9 -9
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index4.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index6.js +25 -284
  17. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +291 -0
  18. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +3 -3
  19. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index3.js +28 -17
  20. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index5.js +21 -34
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index6.js +71 -78
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index7.js +71 -77
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index8.js +43 -49
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index2.js +8 -1
  26. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/accounts/ui/dist/index2.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index2.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index.js +1 -0
  29. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +98 -0
  30. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/index.js +3 -0
  31. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +80 -0
  32. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/labels.js +27 -0
  33. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +17 -0
  34. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/testIds.js +7 -0
  35. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +29 -0
  36. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/analytics/events.js +4 -0
  37. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index.js +3 -0
  38. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index2.js +8 -0
  39. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +31 -0
  40. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/QuickViewWidget.js +57 -44
  41. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/labels.js +6 -3
  42. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index2.js +1 -1
  43. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index3.js +98 -91
  44. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/ExpenseSettingsTabs/ExpenseSettingsTabs.js +24 -21
  45. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js +14 -8
  46. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +87 -81
  48. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index3.js +63 -44
  49. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index6.js +9 -6
  50. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +302 -276
  51. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index.js +10 -10
  52. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index12.js +36 -36
  53. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index17.js +27 -13
  54. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsSectionContent.js +22 -0
  55. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +6 -7
  56. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +39 -37
  57. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index.js +9 -9
  58. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +39 -35
  59. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +59 -61
  60. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index4.js +2 -2
  61. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index6.js +2 -2
  62. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +3 -3
  63. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +114 -103
  64. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
  65. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +22 -18
  66. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +97 -97
  67. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +166 -154
  68. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +12 -12
  70. package/dist/packages/shared-ui-shadcn/dist/index.js +18 -15
  71. package/package.json +1 -1
@@ -739,11 +739,61 @@ interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
739
739
  }) => string;
740
740
  }
741
741
 
742
+ interface CardsQuickViewTileLabels {
743
+ /**
744
+ * Tile heading above the total, used when the caller passes no `title`,
745
+ * as before the browser's month is known.
746
+ */
747
+ title: string;
748
+ /** Screen-reader only: names the wait while card spend loads. */
749
+ loadingLabel: string;
750
+ /** Shown when the card spend request failed. */
751
+ loadErrorTitle: string;
752
+ /** Label for retry after a failed load. */
753
+ loadErrorRetry: string;
754
+ }
755
+
756
+ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
757
+ /**
758
+ * Tile heading for a month, e.g. "Card spend · October". `month` is 0 for
759
+ * January. Before the browser's month is known the tile shows `title`.
760
+ */
761
+ titleForMonth: (month: number) => string;
762
+ /**
763
+ * The heading as a screen reader hears it, at the start of the accessible
764
+ * name, e.g. "Card spend in October". Override it alongside
765
+ * `titleForMonth`.
766
+ */
767
+ accessibleTitleForMonth: (month: number) => string;
768
+ /** Call to action that opens the cards list. */
769
+ viewCards: string;
770
+ /** Line under the total when the token can see no card at all. */
771
+ noCardsYet: string;
772
+ /** Line under the total: the cards that are not closed, e.g. "5 cards". */
773
+ cardCount: (count: number) => string;
774
+ /**
775
+ * A negative total as a screen reader hears it, e.g. "negative $312.75".
776
+ * Screen readers skip the accounting parentheses the tile shows.
777
+ */
778
+ negativeAmount: (magnitude: string) => string;
779
+ /**
780
+ * The tile's one-sentence accessible name, e.g. "Card spend in October,
781
+ * $3,186.52, 5 cards. View cards."
782
+ */
783
+ accessibleName: (parts: {
784
+ title: string;
785
+ value: string;
786
+ detail: string;
787
+ action: string;
788
+ }) => string;
789
+ }
790
+
742
791
  /** Every tile's copy, keyed by `QuickViewWidget` `type`. */
743
792
  interface QuickViewWidgetLabels {
744
793
  accounts: AccountsQuickViewWidgetLabels;
745
794
  invoices: InvoicesQuickViewWidgetLabels;
746
795
  bills: BillsQuickViewWidgetLabels;
796
+ cards: CardsQuickViewWidgetLabels;
747
797
  }
748
798
  /**
749
799
  * Overrides for `QuickViewWidget`'s `labels` prop. Each group is merged with
@@ -753,6 +803,7 @@ interface QuickViewWidgetLabelOverrides {
753
803
  accounts?: Partial<AccountsQuickViewWidgetLabels>;
754
804
  invoices?: Partial<InvoicesQuickViewWidgetLabels>;
755
805
  bills?: Partial<BillsQuickViewWidgetLabels>;
806
+ cards?: Partial<CardsQuickViewWidgetLabels>;
756
807
  }
757
808
  declare const QUICK_VIEW_WIDGET_LABELS_EN: QuickViewWidgetLabels;
758
809
 
@@ -760,6 +811,7 @@ declare const QuickViewType: {
760
811
  readonly Accounts: "accounts";
761
812
  readonly Invoices: "invoices";
762
813
  readonly Bills: "bills";
814
+ readonly Cards: "cards";
763
815
  };
764
816
  type QuickViewType = (typeof QuickViewType)[keyof typeof QuickViewType];
765
817
  interface QuickViewWidgetClickHandlers {
@@ -790,6 +842,11 @@ interface QuickViewWidgetClickHandlers {
790
842
  * bill". Without it that tile is static.
791
843
  */
792
844
  onAddBillClick?: () => void;
845
+ /**
846
+ * `type="cards"`: called when the tile is clicked. Wire it to the host's
847
+ * cards list. Without it the tile is static.
848
+ */
849
+ onViewCardsClick?: () => void;
793
850
  }
794
851
  /**
795
852
  * Which click handlers each tile calls. Every other handler is ignored for that
@@ -799,6 +856,7 @@ declare const QUICK_VIEW_CLICK_HANDLERS: {
799
856
  readonly accounts: readonly ["onViewAccountsClick"];
800
857
  readonly invoices: readonly ["onViewInvoicesClick", "onCreateInvoiceClick"];
801
858
  readonly bills: readonly ["onViewBillsClick", "onAddBillClick"];
859
+ readonly cards: readonly ["onViewCardsClick"];
802
860
  };
803
861
  interface QuickViewWidgetProps extends WidgetProviderProps, QuickViewWidgetClickHandlers {
804
862
  /** Which summary the tile shows. */
@@ -826,10 +884,12 @@ interface QuickViewWidgetProps extends WidgetProviderProps, QuickViewWidgetClick
826
884
  * - `bills`: the total due on open bills due in the next 30 days, and how
827
885
  * many are overdue or awaiting approval. Renders nothing without
828
886
  * `payable:read:org`.
887
+ * - `cards`: this month's spend across every card the token can see, and how
888
+ * many cards are open. Renders nothing without `debit_card:read:org`.
829
889
  *
830
890
  * Each type calls only its own click handlers; see `QUICK_VIEW_CLICK_HANDLERS`.
831
891
  */
832
- declare function QuickViewWidget({ type, labels, onViewAccountsClick, onViewInvoicesClick, onCreateInvoiceClick, onViewBillsClick, onAddBillClick, className, style, ...widgetProviderProps }: QuickViewWidgetProps): React.JSX.Element | null;
892
+ declare function QuickViewWidget({ type, labels, onViewAccountsClick, onViewInvoicesClick, onCreateInvoiceClick, onViewBillsClick, onAddBillClick, onViewCardsClick, className, style, ...widgetProviderProps }: QuickViewWidgetProps): React.JSX.Element | null;
833
893
 
834
894
  export { QUICK_VIEW_CLICK_HANDLERS, QUICK_VIEW_WIDGET_LABELS_EN, QuickViewType, QuickViewWidget };
835
- export type { AccountsQuickViewWidgetLabels, BillsQuickViewWidgetLabels, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps };
895
+ export type { AccountsQuickViewWidgetLabels, BillsQuickViewWidgetLabels, CardsQuickViewWidgetLabels, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps };
@@ -739,11 +739,61 @@ interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
739
739
  }) => string;
740
740
  }
741
741
 
742
+ interface CardsQuickViewTileLabels {
743
+ /**
744
+ * Tile heading above the total, used when the caller passes no `title`,
745
+ * as before the browser's month is known.
746
+ */
747
+ title: string;
748
+ /** Screen-reader only: names the wait while card spend loads. */
749
+ loadingLabel: string;
750
+ /** Shown when the card spend request failed. */
751
+ loadErrorTitle: string;
752
+ /** Label for retry after a failed load. */
753
+ loadErrorRetry: string;
754
+ }
755
+
756
+ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
757
+ /**
758
+ * Tile heading for a month, e.g. "Card spend · October". `month` is 0 for
759
+ * January. Before the browser's month is known the tile shows `title`.
760
+ */
761
+ titleForMonth: (month: number) => string;
762
+ /**
763
+ * The heading as a screen reader hears it, at the start of the accessible
764
+ * name, e.g. "Card spend in October". Override it alongside
765
+ * `titleForMonth`.
766
+ */
767
+ accessibleTitleForMonth: (month: number) => string;
768
+ /** Call to action that opens the cards list. */
769
+ viewCards: string;
770
+ /** Line under the total when the token can see no card at all. */
771
+ noCardsYet: string;
772
+ /** Line under the total: the cards that are not closed, e.g. "5 cards". */
773
+ cardCount: (count: number) => string;
774
+ /**
775
+ * A negative total as a screen reader hears it, e.g. "negative $312.75".
776
+ * Screen readers skip the accounting parentheses the tile shows.
777
+ */
778
+ negativeAmount: (magnitude: string) => string;
779
+ /**
780
+ * The tile's one-sentence accessible name, e.g. "Card spend in October,
781
+ * $3,186.52, 5 cards. View cards."
782
+ */
783
+ accessibleName: (parts: {
784
+ title: string;
785
+ value: string;
786
+ detail: string;
787
+ action: string;
788
+ }) => string;
789
+ }
790
+
742
791
  /** Every tile's copy, keyed by `QuickViewWidget` `type`. */
743
792
  interface QuickViewWidgetLabels {
744
793
  accounts: AccountsQuickViewWidgetLabels;
745
794
  invoices: InvoicesQuickViewWidgetLabels;
746
795
  bills: BillsQuickViewWidgetLabels;
796
+ cards: CardsQuickViewWidgetLabels;
747
797
  }
748
798
  /**
749
799
  * Overrides for `QuickViewWidget`'s `labels` prop. Each group is merged with
@@ -753,6 +803,7 @@ interface QuickViewWidgetLabelOverrides {
753
803
  accounts?: Partial<AccountsQuickViewWidgetLabels>;
754
804
  invoices?: Partial<InvoicesQuickViewWidgetLabels>;
755
805
  bills?: Partial<BillsQuickViewWidgetLabels>;
806
+ cards?: Partial<CardsQuickViewWidgetLabels>;
756
807
  }
757
808
  declare const QUICK_VIEW_WIDGET_LABELS_EN: QuickViewWidgetLabels;
758
809
 
@@ -760,6 +811,7 @@ declare const QuickViewType: {
760
811
  readonly Accounts: "accounts";
761
812
  readonly Invoices: "invoices";
762
813
  readonly Bills: "bills";
814
+ readonly Cards: "cards";
763
815
  };
764
816
  type QuickViewType = (typeof QuickViewType)[keyof typeof QuickViewType];
765
817
  interface QuickViewWidgetClickHandlers {
@@ -790,6 +842,11 @@ interface QuickViewWidgetClickHandlers {
790
842
  * bill". Without it that tile is static.
791
843
  */
792
844
  onAddBillClick?: () => void;
845
+ /**
846
+ * `type="cards"`: called when the tile is clicked. Wire it to the host's
847
+ * cards list. Without it the tile is static.
848
+ */
849
+ onViewCardsClick?: () => void;
793
850
  }
794
851
  /**
795
852
  * Which click handlers each tile calls. Every other handler is ignored for that
@@ -799,6 +856,7 @@ declare const QUICK_VIEW_CLICK_HANDLERS: {
799
856
  readonly accounts: readonly ["onViewAccountsClick"];
800
857
  readonly invoices: readonly ["onViewInvoicesClick", "onCreateInvoiceClick"];
801
858
  readonly bills: readonly ["onViewBillsClick", "onAddBillClick"];
859
+ readonly cards: readonly ["onViewCardsClick"];
802
860
  };
803
861
  interface QuickViewWidgetProps extends WidgetProviderProps, QuickViewWidgetClickHandlers {
804
862
  /** Which summary the tile shows. */
@@ -826,10 +884,12 @@ interface QuickViewWidgetProps extends WidgetProviderProps, QuickViewWidgetClick
826
884
  * - `bills`: the total due on open bills due in the next 30 days, and how
827
885
  * many are overdue or awaiting approval. Renders nothing without
828
886
  * `payable:read:org`.
887
+ * - `cards`: this month's spend across every card the token can see, and how
888
+ * many cards are open. Renders nothing without `debit_card:read:org`.
829
889
  *
830
890
  * Each type calls only its own click handlers; see `QUICK_VIEW_CLICK_HANDLERS`.
831
891
  */
832
- declare function QuickViewWidget({ type, labels, onViewAccountsClick, onViewInvoicesClick, onCreateInvoiceClick, onViewBillsClick, onAddBillClick, className, style, ...widgetProviderProps }: QuickViewWidgetProps): React.JSX.Element | null;
892
+ declare function QuickViewWidget({ type, labels, onViewAccountsClick, onViewInvoicesClick, onCreateInvoiceClick, onViewBillsClick, onAddBillClick, onViewCardsClick, className, style, ...widgetProviderProps }: QuickViewWidgetProps): React.JSX.Element | null;
833
893
 
834
894
  interface CheckAmountAndDetailScreenLabels {
835
895
  title: string;
@@ -942,4 +1002,4 @@ interface RemoteCheckCaptureWidgetProps extends WidgetProviderProps {
942
1002
  declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, labels, onDepositComplete, }: RemoteCheckCaptureWidgetProps): React.JSX.Element;
943
1003
 
944
1004
  export { QUICK_VIEW_CLICK_HANDLERS, QUICK_VIEW_WIDGET_LABELS_EN, QuickViewType, QuickViewWidget, RemoteCheckCaptureWidget };
945
- export type { AccountsQuickViewWidgetLabels, BillsQuickViewWidgetLabels, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps, RemoteCheckCaptureWidgetProps };
1005
+ export type { AccountsQuickViewWidgetLabels, BillsQuickViewWidgetLabels, CardsQuickViewWidgetLabels, InvoicesQuickViewWidgetLabels, QuickViewWidgetClickHandlers, QuickViewWidgetLabelOverrides, QuickViewWidgetLabels, QuickViewWidgetProps, RemoteCheckCaptureWidgetProps };
package/dist/index.css CHANGED
@@ -131,6 +131,10 @@
131
131
  container-type: inline-size;
132
132
  container-name: field-group;
133
133
  }
134
+ .ttw\:\@container\/invoice-numbering {
135
+ container-type: inline-size;
136
+ container-name: invoice-numbering;
137
+ }
134
138
  .ttw\:\@container\/line-item {
135
139
  container-type: inline-size;
136
140
  container-name: line-item;
@@ -1024,6 +1028,9 @@
1024
1028
  .ttw\:w-110 {
1025
1029
  width: calc(var(--ttw-spacing) * 110);
1026
1030
  }
1031
+ .ttw\:w-112 {
1032
+ width: calc(var(--ttw-spacing) * 112);
1033
+ }
1027
1034
  .ttw\:w-140 {
1028
1035
  width: calc(var(--ttw-spacing) * 140);
1029
1036
  }
@@ -1312,9 +1319,6 @@
1312
1319
  .ttw\:min-w-30\.5 {
1313
1320
  min-width: calc(var(--ttw-spacing) * 30.5);
1314
1321
  }
1315
- .ttw\:min-w-32 {
1316
- min-width: calc(var(--ttw-spacing) * 32);
1317
- }
1318
1322
  .ttw\:min-w-35 {
1319
1323
  min-width: calc(var(--ttw-spacing) * 35);
1320
1324
  }
@@ -1375,6 +1379,9 @@
1375
1379
  .ttw\:shrink-9999 {
1376
1380
  flex-shrink: 9999;
1377
1381
  }
1382
+ .ttw\:grow {
1383
+ flex-grow: 1;
1384
+ }
1378
1385
  .ttw\:grow-0 {
1379
1386
  flex-grow: 0;
1380
1387
  }
@@ -1384,6 +1391,9 @@
1384
1391
  .ttw\:basis-56 {
1385
1392
  flex-basis: calc(var(--ttw-spacing) * 56);
1386
1393
  }
1394
+ .ttw\:basis-80 {
1395
+ flex-basis: calc(var(--ttw-spacing) * 80);
1396
+ }
1387
1397
  .ttw\:basis-\[6\.5rem\] {
1388
1398
  flex-basis: 6.5rem;
1389
1399
  }
@@ -1764,6 +1774,9 @@
1764
1774
  .ttw\:self-center {
1765
1775
  align-self: center;
1766
1776
  }
1777
+ .ttw\:self-end {
1778
+ align-self: flex-end;
1779
+ }
1767
1780
  .ttw\:self-start {
1768
1781
  align-self: flex-start;
1769
1782
  }
@@ -3650,9 +3663,6 @@
3650
3663
  .ttw\:p-4 {
3651
3664
  padding: calc(var(--ttw-spacing) * 4);
3652
3665
  }
3653
- .ttw\:p-5 {
3654
- padding: calc(var(--ttw-spacing) * 5);
3655
- }
3656
3666
  .ttw\:p-6 {
3657
3667
  padding: calc(var(--ttw-spacing) * 6);
3658
3668
  }
@@ -6323,6 +6333,11 @@
6323
6333
  grid-template-columns: repeat(3, minmax(0, 1fr));
6324
6334
  }
6325
6335
  }
6336
+ @container invoice-numbering (width >= 28rem) {
6337
+ .ttw\:\@md\/invoice-numbering\:grid-cols-3 {
6338
+ grid-template-columns: repeat(3, minmax(0, 1fr));
6339
+ }
6340
+ }
6326
6341
  @container field-group (width >= 28rem) {
6327
6342
  .ttw\:\@md\/field-group\:flex-row {
6328
6343
  flex-direction: row;
@@ -6352,17 +6367,6 @@
6352
6367
  display: none;
6353
6368
  }
6354
6369
  }
6355
- @container card-details (width >= 36rem) {
6356
- .ttw\:\@xl\/card-details\:shrink-0 {
6357
- flex-shrink: 0;
6358
- }
6359
- .ttw\:\@xl\/card-details\:flex-row {
6360
- flex-direction: row;
6361
- }
6362
- .ttw\:\@xl\/card-details\:items-start {
6363
- align-items: flex-start;
6364
- }
6365
- }
6366
6370
  @container summary-card-group (width >= 48rem) {
6367
6371
  .ttw\:\@3xl\/summary-card-group\:grid-cols-4 {
6368
6372
  grid-template-columns: repeat(4, minmax(0, 1fr));
package/dist/index.d.ts CHANGED
@@ -2715,11 +2715,12 @@ interface CardDetailsCardFaceLabels {
2715
2715
  }
2716
2716
  /** Row headings and per-row copy affordance names for the details table. */
2717
2717
  interface CardDetailsFieldLabels {
2718
+ detailsHeading: string;
2718
2719
  cardholder: string;
2719
2720
  nickname: string;
2720
2721
  /**
2721
- * Heading for the billing-address block (EMBD-5466 restyle): one section,
2722
- * one heading, with a single copy control for the complete address.
2722
+ * Heading for the billing-address block: one heading, with a copy control
2723
+ * beside each populated address line.
2723
2724
  */
2724
2725
  billingAddress: string;
2725
2726
  /** Sub-header over the merchant categories / velocity control rows. */
@@ -2729,10 +2730,11 @@ interface CardDetailsFieldLabels {
2729
2730
  perTransactionMax: string;
2730
2731
  /** Stands in for a row whose value the card does not carry. */
2731
2732
  emptyValue: string;
2732
- /** @deprecated Cardholder is shown on the card face without a copy control. */
2733
+ /** @deprecated The cardholder detail has no copy control. */
2733
2734
  copyCardholderAriaLabel: string;
2734
- /** @deprecated Nickname is shown in the heading without a copy control. */
2735
+ /** @deprecated The nickname detail has no copy control. */
2735
2736
  copyNicknameAriaLabel: string;
2737
+ /** @deprecated Address lines have individual copy controls. */
2736
2738
  copyBillingAddressAriaLabel: string;
2737
2739
  copyBillingAddressLine1AriaLabel: string;
2738
2740
  copyBillingAddressLine2AriaLabel: string;
@@ -3751,7 +3753,8 @@ interface GapCoverageAlertTestIds {
3751
3753
  }
3752
3754
  interface GapCoverageAlertProps {
3753
3755
  gaps: GapRange[];
3754
- onSelectGap: (id: string) => void;
3756
+ /** Omit for an informational coverage warning with no create-rule shortcut. */
3757
+ onSelectGap?: (id: string) => void;
3755
3758
  disabled?: boolean;
3756
3759
  labels?: Partial<GapCoverageAlertLabels>;
3757
3760
  testIds?: GapCoverageAlertTestIds;
@@ -3977,7 +3980,8 @@ interface Labels {
3977
3980
  interface SettingsWidgetSection {
3978
3981
  id: string;
3979
3982
  label: string;
3980
- content: ReactNode;
3983
+ /** The child may portal its action beside the shell-owned heading. */
3984
+ content: ReactNode | ((headerActionContainer: HTMLElement | null) => ReactNode);
3981
3985
  }
3982
3986
 
3983
3987
  /**
@@ -20,11 +20,12 @@ interface CardDetailsCardFaceLabels {
20
20
  }
21
21
  /** Row headings and per-row copy affordance names for the details table. */
22
22
  interface CardDetailsFieldLabels {
23
+ detailsHeading: string;
23
24
  cardholder: string;
24
25
  nickname: string;
25
26
  /**
26
- * Heading for the billing-address block (EMBD-5466 restyle): one section,
27
- * one heading, with a single copy control for the complete address.
27
+ * Heading for the billing-address block: one heading, with a copy control
28
+ * beside each populated address line.
28
29
  */
29
30
  billingAddress: string;
30
31
  /** Sub-header over the merchant categories / velocity control rows. */
@@ -34,10 +35,11 @@ interface CardDetailsFieldLabels {
34
35
  perTransactionMax: string;
35
36
  /** Stands in for a row whose value the card does not carry. */
36
37
  emptyValue: string;
37
- /** @deprecated Cardholder is shown on the card face without a copy control. */
38
+ /** @deprecated The cardholder detail has no copy control. */
38
39
  copyCardholderAriaLabel: string;
39
- /** @deprecated Nickname is shown in the heading without a copy control. */
40
+ /** @deprecated The nickname detail has no copy control. */
40
41
  copyNicknameAriaLabel: string;
42
+ /** @deprecated Address lines have individual copy controls. */
41
43
  copyBillingAddressAriaLabel: string;
42
44
  copyBillingAddressLine1AriaLabel: string;
43
45
  copyBillingAddressLine2AriaLabel: string;
@@ -753,11 +753,12 @@ interface CardDetailsCardFaceLabels {
753
753
  }
754
754
  /** Row headings and per-row copy affordance names for the details table. */
755
755
  interface CardDetailsFieldLabels {
756
+ detailsHeading: string;
756
757
  cardholder: string;
757
758
  nickname: string;
758
759
  /**
759
- * Heading for the billing-address block (EMBD-5466 restyle): one section,
760
- * one heading, with a single copy control for the complete address.
760
+ * Heading for the billing-address block: one heading, with a copy control
761
+ * beside each populated address line.
761
762
  */
762
763
  billingAddress: string;
763
764
  /** Sub-header over the merchant categories / velocity control rows. */
@@ -767,10 +768,11 @@ interface CardDetailsFieldLabels {
767
768
  perTransactionMax: string;
768
769
  /** Stands in for a row whose value the card does not carry. */
769
770
  emptyValue: string;
770
- /** @deprecated Cardholder is shown on the card face without a copy control. */
771
+ /** @deprecated The cardholder detail has no copy control. */
771
772
  copyCardholderAriaLabel: string;
772
- /** @deprecated Nickname is shown in the heading without a copy control. */
773
+ /** @deprecated The nickname detail has no copy control. */
773
774
  copyNicknameAriaLabel: string;
775
+ /** @deprecated Address lines have individual copy controls. */
774
776
  copyBillingAddressAriaLabel: string;
775
777
  copyBillingAddressLine1AriaLabel: string;
776
778
  copyBillingAddressLine2AriaLabel: string;
@@ -753,11 +753,12 @@ interface CardDetailsCardFaceLabels {
753
753
  }
754
754
  /** Row headings and per-row copy affordance names for the details table. */
755
755
  interface CardDetailsFieldLabels {
756
+ detailsHeading: string;
756
757
  cardholder: string;
757
758
  nickname: string;
758
759
  /**
759
- * Heading for the billing-address block (EMBD-5466 restyle): one section,
760
- * one heading, with a single copy control for the complete address.
760
+ * Heading for the billing-address block: one heading, with a copy control
761
+ * beside each populated address line.
761
762
  */
762
763
  billingAddress: string;
763
764
  /** Sub-header over the merchant categories / velocity control rows. */
@@ -767,10 +768,11 @@ interface CardDetailsFieldLabels {
767
768
  perTransactionMax: string;
768
769
  /** Stands in for a row whose value the card does not carry. */
769
770
  emptyValue: string;
770
- /** @deprecated Cardholder is shown on the card face without a copy control. */
771
+ /** @deprecated The cardholder detail has no copy control. */
771
772
  copyCardholderAriaLabel: string;
772
- /** @deprecated Nickname is shown in the heading without a copy control. */
773
+ /** @deprecated The nickname detail has no copy control. */
773
774
  copyNicknameAriaLabel: string;
775
+ /** @deprecated Address lines have individual copy controls. */
774
776
  copyBillingAddressAriaLabel: string;
775
777
  copyBillingAddressLine1AriaLabel: string;
776
778
  copyBillingAddressLine2AriaLabel: string;
@@ -10,7 +10,8 @@ interface Labels {
10
10
  interface SettingsWidgetSection {
11
11
  id: string;
12
12
  label: string;
13
- content: ReactNode;
13
+ /** The child may portal its action beside the shell-owned heading. */
14
+ content: ReactNode | ((headerActionContainer: HTMLElement | null) => ReactNode);
14
15
  }
15
16
 
16
17
  /**
@@ -1712,11 +1712,12 @@ interface CardDetailsCardFaceLabels {
1712
1712
  }
1713
1713
  /** Row headings and per-row copy affordance names for the details table. */
1714
1714
  interface CardDetailsFieldLabels {
1715
+ detailsHeading: string;
1715
1716
  cardholder: string;
1716
1717
  nickname: string;
1717
1718
  /**
1718
- * Heading for the billing-address block (EMBD-5466 restyle): one section,
1719
- * one heading, with a single copy control for the complete address.
1719
+ * Heading for the billing-address block: one heading, with a copy control
1720
+ * beside each populated address line.
1720
1721
  */
1721
1722
  billingAddress: string;
1722
1723
  /** Sub-header over the merchant categories / velocity control rows. */
@@ -1726,10 +1727,11 @@ interface CardDetailsFieldLabels {
1726
1727
  perTransactionMax: string;
1727
1728
  /** Stands in for a row whose value the card does not carry. */
1728
1729
  emptyValue: string;
1729
- /** @deprecated Cardholder is shown on the card face without a copy control. */
1730
+ /** @deprecated The cardholder detail has no copy control. */
1730
1731
  copyCardholderAriaLabel: string;
1731
- /** @deprecated Nickname is shown in the heading without a copy control. */
1732
+ /** @deprecated The nickname detail has no copy control. */
1732
1733
  copyNicknameAriaLabel: string;
1734
+ /** @deprecated Address lines have individual copy controls. */
1733
1735
  copyBillingAddressAriaLabel: string;
1734
1736
  copyBillingAddressLine1AriaLabel: string;
1735
1737
  copyBillingAddressLine2AriaLabel: string;
@@ -2838,7 +2840,8 @@ interface Labels {
2838
2840
  interface SettingsWidgetSection {
2839
2841
  id: string;
2840
2842
  label: string;
2841
- content: ReactNode;
2843
+ /** The child may portal its action beside the shell-owned heading. */
2844
+ content: ReactNode | ((headerActionContainer: HTMLElement | null) => ReactNode);
2842
2845
  }
2843
2846
 
2844
2847
  /**