@tesouro/embedded-components-react 0.11.59 → 0.11.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/dist/index.css +40 -70
- package/dist/index.d.ts +19 -6
- package/dist/lib/CardDetailsWidget.d.ts +11 -3
- package/dist/lib/CreditCardsWidget.d.ts +19 -6
- package/dist/lib/DebitCardsWidget.d.ts +19 -6
- package/dist/lib/WidgetSuite.d.ts +19 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +112 -110
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/cardDetailsView.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +94 -83
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardSuccessView.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialRow.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialsFace.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsHeader.js +30 -25
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +162 -190
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CopyButton.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CopyableValue.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameEditor.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/cardFaceSurface.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/labels.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +110 -104
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CreateCardWidget.js +74 -68
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/PreparingView.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SetupView.js +110 -108
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SuccessView.js +33 -42
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/labels.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +159 -145
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +255 -112
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/AddressLine.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/DetailCopyRow.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameRow.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/statusBadge.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardFaceSwatch.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +0 -103
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/statusBadge.js +0 -11
package/README.md
CHANGED
|
@@ -507,8 +507,8 @@ Lists an organization's **credit** cards one page at a time, with a "Show my car
|
|
|
507
507
|
| `defaultSelectedCardId` | `string \| null` | `undefined` | Initial selection when uncontrolled. Ignored when `selectedCardId` is supplied. |
|
|
508
508
|
| `onSelectedCardIdChange` | `(cardId: string \| null) => void` | `undefined` | Fires whenever the open card changes, including on close (`null`). Supplying it does **not** change what renders. |
|
|
509
509
|
| `cardDetailsLabels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Label overrides forwarded into the details panel. |
|
|
510
|
-
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the details panel's status, form-factor and program copy
|
|
511
|
-
| `cardDetailsActivateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the copy of the Activate
|
|
510
|
+
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the details panel's status, form-factor and program copy. |
|
|
511
|
+
| `cardDetailsActivateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the copy of the Activate card form the details panel opens. |
|
|
512
512
|
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the details panel's card face. Omit it and the face renders no logo. |
|
|
513
513
|
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. |
|
|
514
514
|
| `onCreateCard` | `() => void` | `undefined` | Your own Create card handler. Required for the button to render. |
|
|
@@ -532,8 +532,8 @@ Lists an organization's **debit** cards one page at a time, with a "Show my card
|
|
|
532
532
|
| `defaultSelectedCardId` | `string \| null` | `undefined` | Initial selection when uncontrolled. Ignored when `selectedCardId` is supplied. |
|
|
533
533
|
| `onSelectedCardIdChange` | `(cardId: string \| null) => void` | `undefined` | Fires whenever the open card changes, including on close (`null`). Supplying it does **not** change what renders. |
|
|
534
534
|
| `cardDetailsLabels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Label overrides forwarded into the details panel. |
|
|
535
|
-
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the details panel's status, form-factor and program copy
|
|
536
|
-
| `cardDetailsActivateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the copy of the Activate
|
|
535
|
+
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the details panel's status, form-factor and program copy. |
|
|
536
|
+
| `cardDetailsActivateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the copy of the Activate card form the details panel opens. |
|
|
537
537
|
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the details panel's card face, ignored when `cardArtSrc` is set. Omit both and the face renders no logo. |
|
|
538
538
|
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. |
|
|
539
539
|
| `cardArtSrc` | `string` | `undefined` | Card art for the create sheet and the details card face. Omitted, the sheet uses a neutral plastic. |
|
|
@@ -546,21 +546,21 @@ Lists an organization's **debit** cards one page at a time, with a "Show my card
|
|
|
546
546
|
|
|
547
547
|
### CardDetailsWidget
|
|
548
548
|
|
|
549
|
-
Details for one credit or debit card: status, form factor, program, masked number, and
|
|
549
|
+
Details for one credit or debit card: status, form factor, program, masked number, and cardholder on the card face, nickname in the heading, and one copy action for the full billing address. It renders panel content rather than its own drawer, so it fits on a page of your own or inside chrome you already have.
|
|
550
550
|
|
|
551
551
|
#### Props
|
|
552
552
|
|
|
553
|
-
| Prop | Type | Default | Description
|
|
554
|
-
| ---------------- | --------------------------------------- | -------------- |
|
|
555
|
-
| `cardId` | `string` | **Required** | Id of the card to show.
|
|
556
|
-
| `cardProgram` | `'credit' \| 'debit'` | **Required** | Which issuing program `cardId` belongs to.
|
|
557
|
-
| `onClose` | `() => void` | `undefined` | Called by the panel's close control and the activation **Done** button. Omit it and
|
|
558
|
-
| `labels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Overrides the panel's copy. See the exported `CardDetailsWidgetLabels` type for every key.
|
|
559
|
-
| `activateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the Activate
|
|
560
|
-
| `featureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides status, form-factor and program wording, toasts, and the refused-reveal sentence. See `CardDetailsFeatureLabels`.
|
|
561
|
-
| `cardArtSrc` | `string` | `undefined` | Full plastic art for the card face (the same asset you pass `CreateCardWidget`). Takes priority over `bankLogoSrc`.
|
|
562
|
-
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the card face; ignored when `cardArtSrc` is set. The widget ships no bank artwork, so omit it and no logo shows.
|
|
563
|
-
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. Falls back to `labels.cardFace.bankLogoAlt`.
|
|
553
|
+
| Prop | Type | Default | Description |
|
|
554
|
+
| ---------------- | --------------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
555
|
+
| `cardId` | `string` | **Required** | Id of the card to show. |
|
|
556
|
+
| `cardProgram` | `'credit' \| 'debit'` | **Required** | Which issuing program `cardId` belongs to. |
|
|
557
|
+
| `onClose` | `() => void` | `undefined` | Called by the panel's close control and the activation **Done** button. Omit it and the panel renders no close control, and Done returns to the details. |
|
|
558
|
+
| `labels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Overrides the panel's copy. See the exported `CardDetailsWidgetLabels` type for every key. |
|
|
559
|
+
| `activateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the Activate card form's copy, including its result screen. See the exported `ActivateCardPanelLabels` type for every key. |
|
|
560
|
+
| `featureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides status, form-factor and program wording, toasts, and the refused-reveal sentence. Copy buttons confirm themselves; `copySuccessToast` is no longer shown. See `CardDetailsFeatureLabels`. |
|
|
561
|
+
| `cardArtSrc` | `string` | `undefined` | Full plastic art for the card face (the same asset you pass `CreateCardWidget`). Takes priority over `bankLogoSrc`. |
|
|
562
|
+
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the card face; ignored when `cardArtSrc` is set. The widget ships no bank artwork, so omit it and no logo shows. |
|
|
563
|
+
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. Falls back to `labels.cardFace.bankLogoAlt`. |
|
|
564
564
|
|
|
565
565
|
### CounterpartsWidget
|
|
566
566
|
|
package/dist/index.css
CHANGED
|
@@ -135,6 +135,10 @@
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
@layer utilities {
|
|
138
|
+
.ttw\:\@container\/card-details {
|
|
139
|
+
container-type: inline-size;
|
|
140
|
+
container-name: card-details;
|
|
141
|
+
}
|
|
138
142
|
.ttw\:\@container\/description-list {
|
|
139
143
|
container-type: inline-size;
|
|
140
144
|
container-name: description-list;
|
|
@@ -649,9 +653,6 @@
|
|
|
649
653
|
.ttw\:h-0\.5 {
|
|
650
654
|
height: calc(var(--ttw-spacing) * 0.5);
|
|
651
655
|
}
|
|
652
|
-
.ttw\:h-1 {
|
|
653
|
-
height: var(--ttw-spacing);
|
|
654
|
-
}
|
|
655
656
|
.ttw\:h-1\.5 {
|
|
656
657
|
height: calc(var(--ttw-spacing) * 1.5);
|
|
657
658
|
}
|
|
@@ -703,9 +704,6 @@
|
|
|
703
704
|
.ttw\:h-16\.5 {
|
|
704
705
|
height: calc(var(--ttw-spacing) * 16.5);
|
|
705
706
|
}
|
|
706
|
-
.ttw\:h-18 {
|
|
707
|
-
height: calc(var(--ttw-spacing) * 18);
|
|
708
|
-
}
|
|
709
707
|
.ttw\:h-20 {
|
|
710
708
|
height: calc(var(--ttw-spacing) * 20);
|
|
711
709
|
}
|
|
@@ -928,9 +926,6 @@
|
|
|
928
926
|
.ttw\:w-2 {
|
|
929
927
|
width: calc(var(--ttw-spacing) * 2);
|
|
930
928
|
}
|
|
931
|
-
.ttw\:w-2\.5 {
|
|
932
|
-
width: calc(var(--ttw-spacing) * 2.5);
|
|
933
|
-
}
|
|
934
929
|
.ttw\:w-2\/3 {
|
|
935
930
|
width: calc(2 / 3 * 100%);
|
|
936
931
|
}
|
|
@@ -1075,9 +1070,6 @@
|
|
|
1075
1070
|
.ttw\:w-160 {
|
|
1076
1071
|
width: calc(var(--ttw-spacing) * 160);
|
|
1077
1072
|
}
|
|
1078
|
-
.ttw\:w-168 {
|
|
1079
|
-
width: calc(var(--ttw-spacing) * 168);
|
|
1080
|
-
}
|
|
1081
1073
|
.ttw\:w-200 {
|
|
1082
1074
|
width: calc(var(--ttw-spacing) * 200);
|
|
1083
1075
|
}
|
|
@@ -1102,9 +1094,6 @@
|
|
|
1102
1094
|
.ttw\:w-\[36rem\] {
|
|
1103
1095
|
width: 36rem;
|
|
1104
1096
|
}
|
|
1105
|
-
.ttw\:w-\[42px\] {
|
|
1106
|
-
width: 42px;
|
|
1107
|
-
}
|
|
1108
1097
|
.ttw\:w-\[60\%\] {
|
|
1109
1098
|
width: 60%;
|
|
1110
1099
|
}
|
|
@@ -1114,9 +1103,6 @@
|
|
|
1114
1103
|
.ttw\:w-\[90\%\] {
|
|
1115
1104
|
width: 90%;
|
|
1116
1105
|
}
|
|
1117
|
-
.ttw\:w-\[90px\] {
|
|
1118
|
-
width: 90px;
|
|
1119
|
-
}
|
|
1120
1106
|
.ttw\:w-\[95\%\] {
|
|
1121
1107
|
width: 95%;
|
|
1122
1108
|
}
|
|
@@ -1288,6 +1274,9 @@
|
|
|
1288
1274
|
.ttw\:max-w-\[650px\] {
|
|
1289
1275
|
max-width: 650px;
|
|
1290
1276
|
}
|
|
1277
|
+
.ttw\:max-w-\[720px\] {
|
|
1278
|
+
max-width: 720px;
|
|
1279
|
+
}
|
|
1291
1280
|
.ttw\:max-w-\[800px\] {
|
|
1292
1281
|
max-width: 800px;
|
|
1293
1282
|
}
|
|
@@ -1300,6 +1289,9 @@
|
|
|
1300
1289
|
.ttw\:max-w-\[calc\(100vw-3rem\)\] {
|
|
1301
1290
|
max-width: calc(100vw - 3rem);
|
|
1302
1291
|
}
|
|
1292
|
+
.ttw\:max-w-\[calc\(100vw-32px\)\] {
|
|
1293
|
+
max-width: calc(100vw - 32px);
|
|
1294
|
+
}
|
|
1303
1295
|
.ttw\:max-w-full {
|
|
1304
1296
|
max-width: 100%;
|
|
1305
1297
|
}
|
|
@@ -1426,6 +1418,9 @@
|
|
|
1426
1418
|
.ttw\:flex-1\/2 {
|
|
1427
1419
|
flex: calc(1/2 * 100%);
|
|
1428
1420
|
}
|
|
1421
|
+
.ttw\:flex-auto {
|
|
1422
|
+
flex: auto;
|
|
1423
|
+
}
|
|
1429
1424
|
.ttw\:flex-shrink-0 {
|
|
1430
1425
|
flex-shrink: 0;
|
|
1431
1426
|
}
|
|
@@ -1795,6 +1790,9 @@
|
|
|
1795
1790
|
.ttw\:gap-x-2 {
|
|
1796
1791
|
column-gap: calc(var(--ttw-spacing) * 2);
|
|
1797
1792
|
}
|
|
1793
|
+
.ttw\:gap-x-3 {
|
|
1794
|
+
column-gap: calc(var(--ttw-spacing) * 3);
|
|
1795
|
+
}
|
|
1798
1796
|
.ttw\:gap-x-4 {
|
|
1799
1797
|
column-gap: calc(var(--ttw-spacing) * 4);
|
|
1800
1798
|
}
|
|
@@ -1872,15 +1870,9 @@
|
|
|
1872
1870
|
.ttw\:rounded-2xl {
|
|
1873
1871
|
border-radius: calc(var(--ttw-radius) + 8px);
|
|
1874
1872
|
}
|
|
1875
|
-
.ttw\:rounded-\[1px\] {
|
|
1876
|
-
border-radius: 1px;
|
|
1877
|
-
}
|
|
1878
1873
|
.ttw\:rounded-\[2px\] {
|
|
1879
1874
|
border-radius: 2px;
|
|
1880
1875
|
}
|
|
1881
|
-
.ttw\:rounded-\[3\.5px\] {
|
|
1882
|
-
border-radius: 3.5px;
|
|
1883
|
-
}
|
|
1884
1876
|
.ttw\:rounded-\[4px\] {
|
|
1885
1877
|
border-radius: 4px;
|
|
1886
1878
|
}
|
|
@@ -2240,9 +2232,6 @@
|
|
|
2240
2232
|
.ttw\:bg-\[\#FBBF24\] {
|
|
2241
2233
|
background-color: #FBBF24;
|
|
2242
2234
|
}
|
|
2243
|
-
.ttw\:bg-\[\#FFFAEB\] {
|
|
2244
|
-
background-color: #FFFAEB;
|
|
2245
|
-
}
|
|
2246
2235
|
.ttw\:bg-\[\#f2f2f2\] {
|
|
2247
2236
|
background-color: #f2f2f2;
|
|
2248
2237
|
}
|
|
@@ -3724,10 +3713,6 @@
|
|
|
3724
3713
|
}
|
|
3725
3714
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
3726
3715
|
}
|
|
3727
|
-
.ttw\:bg-gradient-to-b {
|
|
3728
|
-
--tw-gradient-position: to bottom in oklab;
|
|
3729
|
-
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
3730
|
-
}
|
|
3731
3716
|
.ttw\:bg-gradient-to-r {
|
|
3732
3717
|
--tw-gradient-position: to right in oklab;
|
|
3733
3718
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
@@ -3747,10 +3732,6 @@
|
|
|
3747
3732
|
--tw-gradient-from: #f8fafc;
|
|
3748
3733
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3749
3734
|
}
|
|
3750
|
-
.ttw\:from-background {
|
|
3751
|
-
--tw-gradient-from: var(--ttw-background);
|
|
3752
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3753
|
-
}
|
|
3754
3735
|
.ttw\:from-black\/70 {
|
|
3755
3736
|
--tw-gradient-from: var(--ttw-color-black);
|
|
3756
3737
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -3784,13 +3765,6 @@
|
|
|
3784
3765
|
--tw-gradient-to: #e2e8f0;
|
|
3785
3766
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3786
3767
|
}
|
|
3787
|
-
.ttw\:to-primary\/10 {
|
|
3788
|
-
--tw-gradient-to: var(--ttw-primary);
|
|
3789
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3790
|
-
--tw-gradient-to: color-mix(in oklab, var(--ttw-primary) 10%, transparent);
|
|
3791
|
-
}
|
|
3792
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3793
|
-
}
|
|
3794
3768
|
.ttw\:to-purple-400 {
|
|
3795
3769
|
--tw-gradient-to: var(--ttw-color-purple-400);
|
|
3796
3770
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
@@ -3977,6 +3951,9 @@
|
|
|
3977
3951
|
.ttw\:pt-0\.5 {
|
|
3978
3952
|
padding-top: calc(var(--ttw-spacing) * 0.5);
|
|
3979
3953
|
}
|
|
3954
|
+
.ttw\:pt-1 {
|
|
3955
|
+
padding-top: var(--ttw-spacing);
|
|
3956
|
+
}
|
|
3980
3957
|
.ttw\:pt-1\.5 {
|
|
3981
3958
|
padding-top: calc(var(--ttw-spacing) * 1.5);
|
|
3982
3959
|
}
|
|
@@ -3998,9 +3975,6 @@
|
|
|
3998
3975
|
.ttw\:pt-8 {
|
|
3999
3976
|
padding-top: calc(var(--ttw-spacing) * 8);
|
|
4000
3977
|
}
|
|
4001
|
-
.ttw\:pt-10 {
|
|
4002
|
-
padding-top: calc(var(--ttw-spacing) * 10);
|
|
4003
|
-
}
|
|
4004
3978
|
.ttw\:pt-12 {
|
|
4005
3979
|
padding-top: calc(var(--ttw-spacing) * 12);
|
|
4006
3980
|
}
|
|
@@ -4052,9 +4026,6 @@
|
|
|
4052
4026
|
.ttw\:pb-2\.5 {
|
|
4053
4027
|
padding-bottom: calc(var(--ttw-spacing) * 2.5);
|
|
4054
4028
|
}
|
|
4055
|
-
.ttw\:pb-3 {
|
|
4056
|
-
padding-bottom: calc(var(--ttw-spacing) * 3);
|
|
4057
|
-
}
|
|
4058
4029
|
.ttw\:pb-4 {
|
|
4059
4030
|
padding-bottom: calc(var(--ttw-spacing) * 4);
|
|
4060
4031
|
}
|
|
@@ -4212,10 +4183,6 @@
|
|
|
4212
4183
|
.ttw\:text-\[length\:inherit\] {
|
|
4213
4184
|
font-size: inherit;
|
|
4214
4185
|
}
|
|
4215
|
-
.ttw\:leading-4 {
|
|
4216
|
-
--tw-leading: calc(var(--ttw-spacing) * 4);
|
|
4217
|
-
line-height: calc(var(--ttw-spacing) * 4);
|
|
4218
|
-
}
|
|
4219
4186
|
.ttw\:leading-4\.5 {
|
|
4220
4187
|
--tw-leading: calc(var(--ttw-spacing) * 4.5);
|
|
4221
4188
|
line-height: calc(var(--ttw-spacing) * 4.5);
|
|
@@ -4296,10 +4263,6 @@
|
|
|
4296
4263
|
--tw-font-weight: var(--ttw-font-weight-semibold);
|
|
4297
4264
|
font-weight: var(--ttw-font-weight-semibold);
|
|
4298
4265
|
}
|
|
4299
|
-
.ttw\:tracking-\[-0\.6px\] {
|
|
4300
|
-
--tw-tracking: -0.6px;
|
|
4301
|
-
letter-spacing: -0.6px;
|
|
4302
|
-
}
|
|
4303
4266
|
.ttw\:tracking-\[-0\.75px\] {
|
|
4304
4267
|
--tw-tracking: -0.75px;
|
|
4305
4268
|
letter-spacing: -0.75px;
|
|
@@ -4392,9 +4355,6 @@
|
|
|
4392
4355
|
.ttw\:text-\[\#999999\] {
|
|
4393
4356
|
color: #999999;
|
|
4394
4357
|
}
|
|
4395
|
-
.ttw\:text-\[\#B54708\] {
|
|
4396
|
-
color: #B54708;
|
|
4397
|
-
}
|
|
4398
4358
|
.ttw\:text-accent-foreground {
|
|
4399
4359
|
color: var(--ttw-accent-foreground);
|
|
4400
4360
|
}
|
|
@@ -6506,9 +6466,6 @@
|
|
|
6506
6466
|
.ttw\:sm\:max-w-160 {
|
|
6507
6467
|
max-width: calc(var(--ttw-spacing) * 160);
|
|
6508
6468
|
}
|
|
6509
|
-
.ttw\:sm\:max-w-168 {
|
|
6510
|
-
max-width: calc(var(--ttw-spacing) * 168);
|
|
6511
|
-
}
|
|
6512
6469
|
.ttw\:sm\:max-w-178 {
|
|
6513
6470
|
max-width: calc(var(--ttw-spacing) * 178);
|
|
6514
6471
|
}
|
|
@@ -6545,14 +6502,6 @@
|
|
|
6545
6502
|
.ttw\:sm\:gap-3 {
|
|
6546
6503
|
gap: calc(var(--ttw-spacing) * 3);
|
|
6547
6504
|
}
|
|
6548
|
-
.ttw\:sm\:border-t-0 {
|
|
6549
|
-
border-top-style: var(--tw-border-style);
|
|
6550
|
-
border-top-width: 0px;
|
|
6551
|
-
}
|
|
6552
|
-
.ttw\:sm\:border-l {
|
|
6553
|
-
border-left-style: var(--tw-border-style);
|
|
6554
|
-
border-left-width: 1px;
|
|
6555
|
-
}
|
|
6556
6505
|
.ttw\:sm\:text-center {
|
|
6557
6506
|
text-align: center;
|
|
6558
6507
|
}
|
|
@@ -6671,6 +6620,13 @@
|
|
|
6671
6620
|
.ttw\:\@md\/field-group\:items-center {
|
|
6672
6621
|
align-items: center;
|
|
6673
6622
|
}
|
|
6623
|
+
}
|
|
6624
|
+
@container card-details (width >= 28rem) {
|
|
6625
|
+
.ttw\:\@md\/card-details\:px-6 {
|
|
6626
|
+
padding-inline: calc(var(--ttw-spacing) * 6);
|
|
6627
|
+
}
|
|
6628
|
+
}
|
|
6629
|
+
@container field-group (width >= 28rem) {
|
|
6674
6630
|
.ttw\:\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has( > [data-slot=field-content]) {
|
|
6675
6631
|
align-items: flex-start;
|
|
6676
6632
|
}
|
|
@@ -6686,6 +6642,17 @@
|
|
|
6686
6642
|
display: none;
|
|
6687
6643
|
}
|
|
6688
6644
|
}
|
|
6645
|
+
@container card-details (width >= 36rem) {
|
|
6646
|
+
.ttw\:\@xl\/card-details\:shrink-0 {
|
|
6647
|
+
flex-shrink: 0;
|
|
6648
|
+
}
|
|
6649
|
+
.ttw\:\@xl\/card-details\:flex-row {
|
|
6650
|
+
flex-direction: row;
|
|
6651
|
+
}
|
|
6652
|
+
.ttw\:\@xl\/card-details\:items-start {
|
|
6653
|
+
align-items: flex-start;
|
|
6654
|
+
}
|
|
6655
|
+
}
|
|
6689
6656
|
@container line-item (width >= 56rem) {
|
|
6690
6657
|
.ttw\:\@4xl\/line-item\:col-span-2 {
|
|
6691
6658
|
grid-column: span 2 / span 2;
|
|
@@ -6931,6 +6898,9 @@
|
|
|
6931
6898
|
flex: auto;
|
|
6932
6899
|
}
|
|
6933
6900
|
}
|
|
6901
|
+
.ttw\:\[\&\>\[data-slot\=modal-footer\]\]\:hidden > [data-slot=modal-footer] {
|
|
6902
|
+
display: none;
|
|
6903
|
+
}
|
|
6934
6904
|
.ttw\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has( > [data-slot=field-content]) > [role=checkbox], .ttw\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has( > [data-slot=field-content]) [role=radio] {
|
|
6935
6905
|
margin-top: 1px;
|
|
6936
6906
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2658,7 +2658,7 @@ interface CardsListLabels {
|
|
|
2658
2658
|
activateButton: string;
|
|
2659
2659
|
/** Accessible name for a row's Activate button; the card name is appended. */
|
|
2660
2660
|
activateButtonForCard: string;
|
|
2661
|
-
/** Accessible name for a row
|
|
2661
|
+
/** Accessible name for a row, which opens the card; card name appended. */
|
|
2662
2662
|
selectCardButton: string;
|
|
2663
2663
|
/** Separator between a card's nickname and its last four digits. */
|
|
2664
2664
|
cardNameSeparator: string;
|
|
@@ -2706,8 +2706,7 @@ interface CardDetailsFieldLabels {
|
|
|
2706
2706
|
nickname: string;
|
|
2707
2707
|
/**
|
|
2708
2708
|
* Heading for the billing-address block (EMBD-5466 restyle): one section,
|
|
2709
|
-
* one heading, with
|
|
2710
|
-
* rather than a separately-labeled row per line.
|
|
2709
|
+
* one heading, with a single copy control for the complete address.
|
|
2711
2710
|
*/
|
|
2712
2711
|
billingAddress: string;
|
|
2713
2712
|
/** Sub-header over the merchant categories / velocity control rows. */
|
|
@@ -2717,12 +2716,16 @@ interface CardDetailsFieldLabels {
|
|
|
2717
2716
|
perTransactionMax: string;
|
|
2718
2717
|
/** Stands in for a row whose value the card does not carry. */
|
|
2719
2718
|
emptyValue: string;
|
|
2719
|
+
/** @deprecated Cardholder is shown on the card face without a copy control. */
|
|
2720
2720
|
copyCardholderAriaLabel: string;
|
|
2721
|
+
/** @deprecated Nickname is shown in the heading without a copy control. */
|
|
2721
2722
|
copyNicknameAriaLabel: string;
|
|
2723
|
+
copyBillingAddressAriaLabel: string;
|
|
2722
2724
|
copyBillingAddressLine1AriaLabel: string;
|
|
2723
2725
|
copyBillingAddressLine2AriaLabel: string;
|
|
2724
2726
|
copyBillingAddressCityStateAriaLabel: string;
|
|
2725
2727
|
copyBillingAddressPostalCodeAriaLabel: string;
|
|
2728
|
+
copiedLabel: string;
|
|
2726
2729
|
}
|
|
2727
2730
|
/** Copy for the controls the owner can switch on alongside the details. */
|
|
2728
2731
|
interface CardDetailsActionLabels {
|
|
@@ -2735,6 +2738,7 @@ interface CardDetailsActionLabels {
|
|
|
2735
2738
|
}
|
|
2736
2739
|
/** Copy for the nickname row's inline editor. */
|
|
2737
2740
|
interface CardDetailsNicknameLabels {
|
|
2741
|
+
edit: string;
|
|
2738
2742
|
/** Accessible name for the control that opens the editor. */
|
|
2739
2743
|
editAriaLabel: string;
|
|
2740
2744
|
/** Accessible name for the editor's text field. */
|
|
@@ -2773,6 +2777,7 @@ interface CardDetailsCredentialsLabels {
|
|
|
2773
2777
|
copyCardNumberAriaLabel: string;
|
|
2774
2778
|
copyExpirationDateAriaLabel: string;
|
|
2775
2779
|
copySecurityCodeAriaLabel: string;
|
|
2780
|
+
copiedLabel: string;
|
|
2776
2781
|
/** Shown next to the control when the reveal failed. */
|
|
2777
2782
|
errorDescription: string;
|
|
2778
2783
|
}
|
|
@@ -2836,6 +2841,9 @@ interface ActivateCardStatusLabels {
|
|
|
2836
2841
|
submittingAriaLabel: string;
|
|
2837
2842
|
successTitle: string;
|
|
2838
2843
|
successDescription: string;
|
|
2844
|
+
successCardholderLabel: string;
|
|
2845
|
+
successLastFourLabel: string;
|
|
2846
|
+
successFormatLabel: string;
|
|
2839
2847
|
/** Label for the optional post-success control. */
|
|
2840
2848
|
done: string;
|
|
2841
2849
|
/** Fallback failure copy when the owner supplies no `errorMessage`. */
|
|
@@ -2860,7 +2868,7 @@ interface ActivateCardPanelLabels {
|
|
|
2860
2868
|
* panel's own labels stay with the panel.
|
|
2861
2869
|
*/
|
|
2862
2870
|
interface CardDetailsFeatureLabels {
|
|
2863
|
-
/**
|
|
2871
|
+
/** @deprecated Unused: copy buttons confirm themselves. */
|
|
2864
2872
|
copySuccessToast: string;
|
|
2865
2873
|
/**
|
|
2866
2874
|
* Toast shown when activation is refused because the card is no longer
|
|
@@ -3049,7 +3057,10 @@ interface CreateCardWidgetLabels {
|
|
|
3049
3057
|
success: {
|
|
3050
3058
|
title: string;
|
|
3051
3059
|
description: string;
|
|
3052
|
-
|
|
3060
|
+
cardholderLabel: string;
|
|
3061
|
+
lastFourLabel: string;
|
|
3062
|
+
formatLabel: string;
|
|
3063
|
+
done: string;
|
|
3053
3064
|
viewCard: string;
|
|
3054
3065
|
};
|
|
3055
3066
|
footer: {
|
|
@@ -3157,7 +3168,7 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
3157
3168
|
*
|
|
3158
3169
|
* They are separate from `CardsListLabels` (the `ui` lib's) because the cells
|
|
3159
3170
|
* reaching that library are already formatted: the em-dash, the nickname
|
|
3160
|
-
* fallback and the
|
|
3171
|
+
* fallback and the pager's range are all written *here*, so the UI lib has
|
|
3161
3172
|
* no key to override them with. `bank-accounts-widget`'s `featureLabels` is the
|
|
3162
3173
|
* precedent for the split.
|
|
3163
3174
|
*
|
|
@@ -3182,6 +3193,8 @@ interface CardsFeatureLabels {
|
|
|
3182
3193
|
* for the case where there is nothing at all to show.
|
|
3183
3194
|
*/
|
|
3184
3195
|
untitledFundingAccount: string;
|
|
3196
|
+
/** `{from}` and `{to}` are substituted. */
|
|
3197
|
+
pageRange: string;
|
|
3185
3198
|
/** Display copy per card lifecycle status; keys are the generated code terms. */
|
|
3186
3199
|
cardStatus: Record<CardStatus, string>;
|
|
3187
3200
|
/** Display copy per card form factor; keys are the generated code terms. */
|
|
@@ -24,8 +24,7 @@ interface CardDetailsFieldLabels {
|
|
|
24
24
|
nickname: string;
|
|
25
25
|
/**
|
|
26
26
|
* Heading for the billing-address block (EMBD-5466 restyle): one section,
|
|
27
|
-
* one heading, with
|
|
28
|
-
* rather than a separately-labeled row per line.
|
|
27
|
+
* one heading, with a single copy control for the complete address.
|
|
29
28
|
*/
|
|
30
29
|
billingAddress: string;
|
|
31
30
|
/** Sub-header over the merchant categories / velocity control rows. */
|
|
@@ -35,12 +34,16 @@ interface CardDetailsFieldLabels {
|
|
|
35
34
|
perTransactionMax: string;
|
|
36
35
|
/** Stands in for a row whose value the card does not carry. */
|
|
37
36
|
emptyValue: string;
|
|
37
|
+
/** @deprecated Cardholder is shown on the card face without a copy control. */
|
|
38
38
|
copyCardholderAriaLabel: string;
|
|
39
|
+
/** @deprecated Nickname is shown in the heading without a copy control. */
|
|
39
40
|
copyNicknameAriaLabel: string;
|
|
41
|
+
copyBillingAddressAriaLabel: string;
|
|
40
42
|
copyBillingAddressLine1AriaLabel: string;
|
|
41
43
|
copyBillingAddressLine2AriaLabel: string;
|
|
42
44
|
copyBillingAddressCityStateAriaLabel: string;
|
|
43
45
|
copyBillingAddressPostalCodeAriaLabel: string;
|
|
46
|
+
copiedLabel: string;
|
|
44
47
|
}
|
|
45
48
|
/** Copy for the controls the owner can switch on alongside the details. */
|
|
46
49
|
interface CardDetailsActionLabels {
|
|
@@ -53,6 +56,7 @@ interface CardDetailsActionLabels {
|
|
|
53
56
|
}
|
|
54
57
|
/** Copy for the nickname row's inline editor. */
|
|
55
58
|
interface CardDetailsNicknameLabels {
|
|
59
|
+
edit: string;
|
|
56
60
|
/** Accessible name for the control that opens the editor. */
|
|
57
61
|
editAriaLabel: string;
|
|
58
62
|
/** Accessible name for the editor's text field. */
|
|
@@ -91,6 +95,7 @@ interface CardDetailsCredentialsLabels {
|
|
|
91
95
|
copyCardNumberAriaLabel: string;
|
|
92
96
|
copyExpirationDateAriaLabel: string;
|
|
93
97
|
copySecurityCodeAriaLabel: string;
|
|
98
|
+
copiedLabel: string;
|
|
94
99
|
/** Shown next to the control when the reveal failed. */
|
|
95
100
|
errorDescription: string;
|
|
96
101
|
}
|
|
@@ -154,6 +159,9 @@ interface ActivateCardStatusLabels {
|
|
|
154
159
|
submittingAriaLabel: string;
|
|
155
160
|
successTitle: string;
|
|
156
161
|
successDescription: string;
|
|
162
|
+
successCardholderLabel: string;
|
|
163
|
+
successLastFourLabel: string;
|
|
164
|
+
successFormatLabel: string;
|
|
157
165
|
/** Label for the optional post-success control. */
|
|
158
166
|
done: string;
|
|
159
167
|
/** Fallback failure copy when the owner supplies no `errorMessage`. */
|
|
@@ -830,7 +838,7 @@ type CardType = CreditCardType;
|
|
|
830
838
|
* panel's own labels stay with the panel.
|
|
831
839
|
*/
|
|
832
840
|
interface CardDetailsFeatureLabels {
|
|
833
|
-
/**
|
|
841
|
+
/** @deprecated Unused: copy buttons confirm themselves. */
|
|
834
842
|
copySuccessToast: string;
|
|
835
843
|
/**
|
|
836
844
|
* Toast shown when activation is refused because the card is no longer
|
|
@@ -88,7 +88,7 @@ interface CardsListLabels {
|
|
|
88
88
|
activateButton: string;
|
|
89
89
|
/** Accessible name for a row's Activate button; the card name is appended. */
|
|
90
90
|
activateButtonForCard: string;
|
|
91
|
-
/** Accessible name for a row
|
|
91
|
+
/** Accessible name for a row, which opens the card; card name appended. */
|
|
92
92
|
selectCardButton: string;
|
|
93
93
|
/** Separator between a card's nickname and its last four digits. */
|
|
94
94
|
cardNameSeparator: string;
|
|
@@ -757,8 +757,7 @@ interface CardDetailsFieldLabels {
|
|
|
757
757
|
nickname: string;
|
|
758
758
|
/**
|
|
759
759
|
* Heading for the billing-address block (EMBD-5466 restyle): one section,
|
|
760
|
-
* one heading, with
|
|
761
|
-
* rather than a separately-labeled row per line.
|
|
760
|
+
* one heading, with a single copy control for the complete address.
|
|
762
761
|
*/
|
|
763
762
|
billingAddress: string;
|
|
764
763
|
/** Sub-header over the merchant categories / velocity control rows. */
|
|
@@ -768,12 +767,16 @@ interface CardDetailsFieldLabels {
|
|
|
768
767
|
perTransactionMax: string;
|
|
769
768
|
/** Stands in for a row whose value the card does not carry. */
|
|
770
769
|
emptyValue: string;
|
|
770
|
+
/** @deprecated Cardholder is shown on the card face without a copy control. */
|
|
771
771
|
copyCardholderAriaLabel: string;
|
|
772
|
+
/** @deprecated Nickname is shown in the heading without a copy control. */
|
|
772
773
|
copyNicknameAriaLabel: string;
|
|
774
|
+
copyBillingAddressAriaLabel: string;
|
|
773
775
|
copyBillingAddressLine1AriaLabel: string;
|
|
774
776
|
copyBillingAddressLine2AriaLabel: string;
|
|
775
777
|
copyBillingAddressCityStateAriaLabel: string;
|
|
776
778
|
copyBillingAddressPostalCodeAriaLabel: string;
|
|
779
|
+
copiedLabel: string;
|
|
777
780
|
}
|
|
778
781
|
/** Copy for the controls the owner can switch on alongside the details. */
|
|
779
782
|
interface CardDetailsActionLabels {
|
|
@@ -786,6 +789,7 @@ interface CardDetailsActionLabels {
|
|
|
786
789
|
}
|
|
787
790
|
/** Copy for the nickname row's inline editor. */
|
|
788
791
|
interface CardDetailsNicknameLabels {
|
|
792
|
+
edit: string;
|
|
789
793
|
/** Accessible name for the control that opens the editor. */
|
|
790
794
|
editAriaLabel: string;
|
|
791
795
|
/** Accessible name for the editor's text field. */
|
|
@@ -824,6 +828,7 @@ interface CardDetailsCredentialsLabels {
|
|
|
824
828
|
copyCardNumberAriaLabel: string;
|
|
825
829
|
copyExpirationDateAriaLabel: string;
|
|
826
830
|
copySecurityCodeAriaLabel: string;
|
|
831
|
+
copiedLabel: string;
|
|
827
832
|
/** Shown next to the control when the reveal failed. */
|
|
828
833
|
errorDescription: string;
|
|
829
834
|
}
|
|
@@ -887,6 +892,9 @@ interface ActivateCardStatusLabels {
|
|
|
887
892
|
submittingAriaLabel: string;
|
|
888
893
|
successTitle: string;
|
|
889
894
|
successDescription: string;
|
|
895
|
+
successCardholderLabel: string;
|
|
896
|
+
successLastFourLabel: string;
|
|
897
|
+
successFormatLabel: string;
|
|
890
898
|
/** Label for the optional post-success control. */
|
|
891
899
|
done: string;
|
|
892
900
|
/** Fallback failure copy when the owner supplies no `errorMessage`. */
|
|
@@ -911,7 +919,7 @@ interface ActivateCardPanelLabels {
|
|
|
911
919
|
* panel's own labels stay with the panel.
|
|
912
920
|
*/
|
|
913
921
|
interface CardDetailsFeatureLabels {
|
|
914
|
-
/**
|
|
922
|
+
/** @deprecated Unused: copy buttons confirm themselves. */
|
|
915
923
|
copySuccessToast: string;
|
|
916
924
|
/**
|
|
917
925
|
* Toast shown when activation is refused because the card is no longer
|
|
@@ -1085,7 +1093,10 @@ interface CreateCardWidgetLabels {
|
|
|
1085
1093
|
success: {
|
|
1086
1094
|
title: string;
|
|
1087
1095
|
description: string;
|
|
1088
|
-
|
|
1096
|
+
cardholderLabel: string;
|
|
1097
|
+
lastFourLabel: string;
|
|
1098
|
+
formatLabel: string;
|
|
1099
|
+
done: string;
|
|
1089
1100
|
viewCard: string;
|
|
1090
1101
|
};
|
|
1091
1102
|
footer: {
|
|
@@ -1193,7 +1204,7 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
1193
1204
|
*
|
|
1194
1205
|
* They are separate from `CardsListLabels` (the `ui` lib's) because the cells
|
|
1195
1206
|
* reaching that library are already formatted: the em-dash, the nickname
|
|
1196
|
-
* fallback and the
|
|
1207
|
+
* fallback and the pager's range are all written *here*, so the UI lib has
|
|
1197
1208
|
* no key to override them with. `bank-accounts-widget`'s `featureLabels` is the
|
|
1198
1209
|
* precedent for the split.
|
|
1199
1210
|
*
|
|
@@ -1218,6 +1229,8 @@ interface CardsFeatureLabels {
|
|
|
1218
1229
|
* for the case where there is nothing at all to show.
|
|
1219
1230
|
*/
|
|
1220
1231
|
untitledFundingAccount: string;
|
|
1232
|
+
/** `{from}` and `{to}` are substituted. */
|
|
1233
|
+
pageRange: string;
|
|
1221
1234
|
/** Display copy per card lifecycle status; keys are the generated code terms. */
|
|
1222
1235
|
cardStatus: Record<CardStatus, string>;
|
|
1223
1236
|
/** Display copy per card form factor; keys are the generated code terms. */
|