@tesouro/embedded-components-react 0.11.58 → 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
|
@@ -1,94 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ErrorState as
|
|
1
|
+
import { Heading as e, Label as t, RadioGroup as n, RadioGroupItem as r, Select as i, SelectContent as a, SelectItem as o, SelectTrigger as s, SelectValue as c, Separator as l } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as u } from "../../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
3
|
import "../../../../../../shared/ui/dist/index.js";
|
|
4
|
-
import { MailingOptionValue as
|
|
5
|
-
import { CardArt as
|
|
6
|
-
import { CardControls as
|
|
7
|
-
import { ManualAddressFields as
|
|
8
|
-
import { useId as
|
|
9
|
-
import { Fragment as
|
|
4
|
+
import { MailingOptionValue as d } from "./types.js";
|
|
5
|
+
import { CardArt as f } from "./CardArt.js";
|
|
6
|
+
import { CardControls as p } from "./CardControls/CardControls.js";
|
|
7
|
+
import { ManualAddressFields as m } from "./ManualAddressFields.js";
|
|
8
|
+
import { useId as h } from "react";
|
|
9
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
10
10
|
// ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SetupView.js
|
|
11
|
-
function
|
|
12
|
-
let
|
|
13
|
-
return /* @__PURE__ */
|
|
11
|
+
function y({ cardArtSrc: y, labels: b, cardholderOptions: x, selectedCardholder: S, onCardholderSelect: C, isCardholderError: w = !1, onCardholderRetry: T, cardFormatOptions: E, selectedCardFormat: D, onCardFormatSelect: O, isFundingAccountVisible: k, fundingAccountOptions: A, selectedFundingAccount: j, onFundingAccountSelect: M, isFundingAccountError: N = !1, onFundingAccountRetry: P, isMailingSectionVisible: F, selectedMailingOption: I, onMailingOptionSelect: L, businessAddress: R, isBusinessAddressVisible: z, isManualAddressVisible: B, manualAddress: V, onManualAddressChange: H, stateOptions: U, isCardControlsSectionVisible: W, cardControls: G }) {
|
|
12
|
+
let K = h(), q = `${K}-cardholder`, J = `${K}-card-format`, Y = `${K}-funding-account`, X = `${K}-mailing-business`, Z = `${K}-mailing-custom`;
|
|
13
|
+
return /* @__PURE__ */ v("div", {
|
|
14
14
|
className: "ttw:flex ttw:flex-col",
|
|
15
|
-
children: [/* @__PURE__ */
|
|
16
|
-
className: "ttw:
|
|
17
|
-
children: /* @__PURE__ */
|
|
18
|
-
src:
|
|
19
|
-
alt:
|
|
15
|
+
children: [/* @__PURE__ */ _("div", {
|
|
16
|
+
className: "ttw:px-6 ttw:pt-1 ttw:pb-2",
|
|
17
|
+
children: /* @__PURE__ */ _(f, {
|
|
18
|
+
src: y,
|
|
19
|
+
alt: b.cardArtAlt
|
|
20
20
|
})
|
|
21
|
-
}), /* @__PURE__ */
|
|
21
|
+
}), /* @__PURE__ */ v("div", {
|
|
22
22
|
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:py-6",
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ v("section", {
|
|
25
25
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
/* @__PURE__ */ _(e, {
|
|
28
|
+
variant: "section",
|
|
29
|
+
level: 3,
|
|
30
|
+
children: b.setup.sectionTitle
|
|
30
31
|
}),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ v("div", {
|
|
32
33
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
33
|
-
children: [/* @__PURE__ */
|
|
34
|
-
htmlFor:
|
|
35
|
-
children:
|
|
36
|
-
}),
|
|
37
|
-
title:
|
|
38
|
-
description:
|
|
39
|
-
retryLabel:
|
|
40
|
-
onRetry:
|
|
34
|
+
children: [/* @__PURE__ */ _(t, {
|
|
35
|
+
htmlFor: q,
|
|
36
|
+
children: b.setup.cardholderLabel
|
|
37
|
+
}), w ? /* @__PURE__ */ _(u, {
|
|
38
|
+
title: b.cardholderError.title,
|
|
39
|
+
description: b.cardholderError.description,
|
|
40
|
+
retryLabel: b.cardholderError.retry,
|
|
41
|
+
onRetry: T,
|
|
41
42
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:py-8"
|
|
42
|
-
}) : /* @__PURE__ */
|
|
43
|
-
value:
|
|
44
|
-
onValueChange:
|
|
45
|
-
children: [/* @__PURE__ */
|
|
46
|
-
id:
|
|
43
|
+
}) : /* @__PURE__ */ v(i, {
|
|
44
|
+
value: S ?? "",
|
|
45
|
+
onValueChange: C,
|
|
46
|
+
children: [/* @__PURE__ */ _(s, {
|
|
47
|
+
id: q,
|
|
47
48
|
className: "ttw:w-full",
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
}), /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ _(c, { placeholder: b.setup.cardholderPlaceholder })
|
|
50
|
+
}), /* @__PURE__ */ _(a, { children: x.map((e) => /* @__PURE__ */ _(o, {
|
|
50
51
|
value: e.value,
|
|
51
52
|
children: e.label
|
|
52
53
|
}, e.value)) })]
|
|
53
54
|
})]
|
|
54
55
|
}),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ v("div", {
|
|
56
57
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
58
|
-
htmlFor:
|
|
59
|
-
children:
|
|
60
|
-
}), /* @__PURE__ */
|
|
61
|
-
value:
|
|
62
|
-
onValueChange:
|
|
63
|
-
children: [/* @__PURE__ */
|
|
64
|
-
id:
|
|
58
|
+
children: [/* @__PURE__ */ _(t, {
|
|
59
|
+
htmlFor: J,
|
|
60
|
+
children: b.setup.cardFormatLabel
|
|
61
|
+
}), /* @__PURE__ */ v(i, {
|
|
62
|
+
value: D ?? "",
|
|
63
|
+
onValueChange: O,
|
|
64
|
+
children: [/* @__PURE__ */ _(s, {
|
|
65
|
+
id: J,
|
|
65
66
|
className: "ttw:w-full",
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
-
}), /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ _(c, { placeholder: b.setup.cardFormatPlaceholder })
|
|
68
|
+
}), /* @__PURE__ */ _(a, { children: E.map((e) => /* @__PURE__ */ _(o, {
|
|
68
69
|
value: e.value,
|
|
69
70
|
children: e.label
|
|
70
71
|
}, e.value)) })]
|
|
71
72
|
})]
|
|
72
73
|
}),
|
|
73
|
-
|
|
74
|
+
k ? /* @__PURE__ */ v("div", {
|
|
74
75
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
75
|
-
children: [/* @__PURE__ */
|
|
76
|
-
htmlFor:
|
|
77
|
-
children:
|
|
78
|
-
}),
|
|
79
|
-
title:
|
|
80
|
-
description:
|
|
81
|
-
retryLabel:
|
|
82
|
-
onRetry:
|
|
76
|
+
children: [/* @__PURE__ */ _(t, {
|
|
77
|
+
htmlFor: Y,
|
|
78
|
+
children: b.setup.fundingAccountLabel
|
|
79
|
+
}), N ? /* @__PURE__ */ _(u, {
|
|
80
|
+
title: b.fundingAccountError.title,
|
|
81
|
+
description: b.fundingAccountError.description,
|
|
82
|
+
retryLabel: b.fundingAccountError.retry,
|
|
83
|
+
onRetry: P,
|
|
83
84
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:py-8"
|
|
84
|
-
}) : /* @__PURE__ */
|
|
85
|
-
value:
|
|
86
|
-
onValueChange:
|
|
87
|
-
children: [/* @__PURE__ */
|
|
88
|
-
id:
|
|
85
|
+
}) : /* @__PURE__ */ v(i, {
|
|
86
|
+
value: j ?? "",
|
|
87
|
+
onValueChange: M,
|
|
88
|
+
children: [/* @__PURE__ */ _(s, {
|
|
89
|
+
id: Y,
|
|
89
90
|
className: "ttw:w-full",
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
-
}), /* @__PURE__ */
|
|
91
|
+
children: /* @__PURE__ */ _(c, { placeholder: b.setup.fundingAccountPlaceholder })
|
|
92
|
+
}), /* @__PURE__ */ _(a, { children: A.map((e) => /* @__PURE__ */ _(o, {
|
|
92
93
|
value: e.value,
|
|
93
94
|
children: e.label
|
|
94
95
|
}, e.value)) })]
|
|
@@ -96,81 +97,82 @@ function v({ cardArtSrc: v, labels: y, cardholderOptions: b, selectedCardholder:
|
|
|
96
97
|
}) : null
|
|
97
98
|
]
|
|
98
99
|
}),
|
|
99
|
-
|
|
100
|
+
F ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(l, {}), /* @__PURE__ */ v("section", {
|
|
100
101
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
101
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ v("div", {
|
|
102
103
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
103
|
-
children: [/* @__PURE__ */
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
children: [/* @__PURE__ */ _(e, {
|
|
105
|
+
variant: "section",
|
|
106
|
+
level: 3,
|
|
107
|
+
children: b.mailing.sectionTitle
|
|
108
|
+
}), /* @__PURE__ */ _("p", {
|
|
107
109
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
108
|
-
children:
|
|
110
|
+
children: b.mailing.sectionDescription
|
|
109
111
|
})]
|
|
110
|
-
}), /* @__PURE__ */
|
|
111
|
-
value:
|
|
112
|
-
onValueChange:
|
|
112
|
+
}), /* @__PURE__ */ v(n, {
|
|
113
|
+
value: I ?? "",
|
|
114
|
+
onValueChange: L,
|
|
113
115
|
className: "ttw:gap-0 ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ v("div", {
|
|
115
117
|
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:border-b ttw:border-border ttw:p-4",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
117
|
-
htmlFor:
|
|
118
|
+
children: [/* @__PURE__ */ v("label", {
|
|
119
|
+
htmlFor: X,
|
|
118
120
|
className: "ttw:flex ttw:cursor-pointer ttw:items-start ttw:gap-3",
|
|
119
|
-
children: [/* @__PURE__ */
|
|
120
|
-
value:
|
|
121
|
-
id:
|
|
121
|
+
children: [/* @__PURE__ */ _(r, {
|
|
122
|
+
value: d.BusinessAddress,
|
|
123
|
+
id: X,
|
|
122
124
|
className: "ttw:mt-0.5"
|
|
123
|
-
}), /* @__PURE__ */
|
|
125
|
+
}), /* @__PURE__ */ v("span", {
|
|
124
126
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-0.5",
|
|
125
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ _("span", {
|
|
126
128
|
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
127
|
-
children:
|
|
128
|
-
}), /* @__PURE__ */
|
|
129
|
+
children: b.mailing.businessTitle
|
|
130
|
+
}), /* @__PURE__ */ _("span", {
|
|
129
131
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
130
|
-
children:
|
|
132
|
+
children: b.mailing.businessDescription
|
|
131
133
|
})]
|
|
132
134
|
})]
|
|
133
|
-
}),
|
|
135
|
+
}), z ? /* @__PURE__ */ _("div", {
|
|
134
136
|
className: "ttw:cursor-default ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-foreground",
|
|
135
|
-
children:
|
|
137
|
+
children: R
|
|
136
138
|
}) : null]
|
|
137
|
-
}), /* @__PURE__ */
|
|
139
|
+
}), /* @__PURE__ */ v("div", {
|
|
138
140
|
className: "ttw:flex ttw:flex-col ttw:gap-0 ttw:p-4",
|
|
139
|
-
children: [/* @__PURE__ */
|
|
140
|
-
htmlFor:
|
|
141
|
+
children: [/* @__PURE__ */ v("label", {
|
|
142
|
+
htmlFor: Z,
|
|
141
143
|
className: "ttw:flex ttw:cursor-pointer ttw:items-start ttw:gap-3",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
143
|
-
value:
|
|
144
|
-
id:
|
|
144
|
+
children: [/* @__PURE__ */ _(r, {
|
|
145
|
+
value: d.DifferentAddress,
|
|
146
|
+
id: Z,
|
|
145
147
|
className: "ttw:mt-0.5"
|
|
146
|
-
}), /* @__PURE__ */
|
|
148
|
+
}), /* @__PURE__ */ v("span", {
|
|
147
149
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-0.5",
|
|
148
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ _("span", {
|
|
149
151
|
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
150
|
-
children:
|
|
151
|
-
}), /* @__PURE__ */
|
|
152
|
+
children: b.mailing.customTitle
|
|
153
|
+
}), /* @__PURE__ */ _("span", {
|
|
152
154
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
153
|
-
children:
|
|
155
|
+
children: b.mailing.customDescription
|
|
154
156
|
})]
|
|
155
157
|
})]
|
|
156
|
-
}),
|
|
157
|
-
values:
|
|
158
|
-
stateOptions:
|
|
159
|
-
onChange:
|
|
160
|
-
labels:
|
|
158
|
+
}), B ? /* @__PURE__ */ _(m, {
|
|
159
|
+
values: V,
|
|
160
|
+
stateOptions: U,
|
|
161
|
+
onChange: H,
|
|
162
|
+
labels: b.manualAddress
|
|
161
163
|
}) : null]
|
|
162
164
|
})]
|
|
163
165
|
})]
|
|
164
166
|
})] }) : null,
|
|
165
|
-
|
|
167
|
+
W ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(l, {}), /* @__PURE__ */ _("section", {
|
|
166
168
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
167
|
-
children: /* @__PURE__ */
|
|
168
|
-
...
|
|
169
|
-
labels:
|
|
169
|
+
children: /* @__PURE__ */ _(p, {
|
|
170
|
+
...G,
|
|
171
|
+
labels: b.cardControls
|
|
170
172
|
})
|
|
171
173
|
})] }) : null
|
|
172
174
|
]
|
|
173
175
|
})]
|
|
174
176
|
});
|
|
175
177
|
}
|
|
176
|
-
export {
|
|
178
|
+
export { y as SetupView };
|
|
@@ -1,49 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResultScreen as e } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { CardArt as t } from "./CardArt.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
import { CheckIcon as i
|
|
4
|
+
import { CheckIcon as i } from "lucide-react";
|
|
5
5
|
// ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SuccessView.js
|
|
6
|
-
function
|
|
6
|
+
function a({ cardArtSrc: a, labels: o, cardholder: s, lastFour: c, format: l, onDoneClick: u, onViewCardClick: d }) {
|
|
7
|
+
let f = [
|
|
8
|
+
{
|
|
9
|
+
label: o.success.cardholderLabel,
|
|
10
|
+
value: s
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: o.success.lastFourLabel,
|
|
14
|
+
value: c
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: o.success.formatLabel,
|
|
18
|
+
value: l
|
|
19
|
+
}
|
|
20
|
+
].filter((e) => !!e.value);
|
|
7
21
|
return /* @__PURE__ */ r("div", {
|
|
8
|
-
className: "ttw:flex ttw:min-h-0 ttw:flex-1 ttw:flex-col",
|
|
9
|
-
children: [/* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
24
|
-
children: s.success.title
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ n("p", {
|
|
27
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
28
|
-
children: s.success.description
|
|
29
|
-
})
|
|
30
|
-
]
|
|
31
|
-
})]
|
|
32
|
-
}), /* @__PURE__ */ r("div", {
|
|
33
|
-
className: "ttw:flex ttw:shrink-0 ttw:gap-3 ttw:border-t ttw:border-border ttw:bg-background ttw:px-6 ttw:py-4",
|
|
34
|
-
children: [/* @__PURE__ */ n(e, {
|
|
35
|
-
type: "button",
|
|
36
|
-
variant: "outline",
|
|
37
|
-
className: "ttw:flex-1",
|
|
38
|
-
onClick: c,
|
|
39
|
-
children: s.success.createAnother
|
|
40
|
-
}), l ? /* @__PURE__ */ r(e, {
|
|
41
|
-
type: "button",
|
|
42
|
-
className: "ttw:flex-1",
|
|
43
|
-
onClick: l,
|
|
44
|
-
children: [s.success.viewCard, /* @__PURE__ */ n(a, { className: "ttw:size-4" })]
|
|
45
|
-
}) : null]
|
|
22
|
+
className: "ttw:flex ttw:min-h-0 ttw:flex-1 ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:pb-6",
|
|
23
|
+
children: [/* @__PURE__ */ n(t, {
|
|
24
|
+
src: a,
|
|
25
|
+
alt: o.cardArtAlt
|
|
26
|
+
}), /* @__PURE__ */ n(e, {
|
|
27
|
+
icon: /* @__PURE__ */ n(i, {}),
|
|
28
|
+
title: o.success.title,
|
|
29
|
+
description: o.success.description,
|
|
30
|
+
details: f,
|
|
31
|
+
onDone: u,
|
|
32
|
+
onSecondaryAction: d,
|
|
33
|
+
labels: {
|
|
34
|
+
done: o.success.done,
|
|
35
|
+
secondaryAction: o.success.viewCard
|
|
36
|
+
}
|
|
46
37
|
})]
|
|
47
38
|
});
|
|
48
39
|
}
|
|
49
|
-
export {
|
|
40
|
+
export { a as SuccessView };
|
|
@@ -38,9 +38,12 @@ var n = {
|
|
|
38
38
|
description: "This will only take a moment"
|
|
39
39
|
},
|
|
40
40
|
success: {
|
|
41
|
-
title: "
|
|
42
|
-
description: "Your card is
|
|
43
|
-
|
|
41
|
+
title: "Card created",
|
|
42
|
+
description: "Your card is active and ready to use.",
|
|
43
|
+
cardholderLabel: "Cardholder",
|
|
44
|
+
lastFourLabel: "Last four",
|
|
45
|
+
formatLabel: "Format",
|
|
46
|
+
done: "Done",
|
|
44
47
|
viewCard: "View card"
|
|
45
48
|
},
|
|
46
49
|
footer: {
|
|
@@ -48,13 +51,13 @@ var n = {
|
|
|
48
51
|
createCard: "Create card"
|
|
49
52
|
},
|
|
50
53
|
cardholderError: {
|
|
51
|
-
title: "
|
|
52
|
-
description: "
|
|
54
|
+
title: "Couldn't load team members",
|
|
55
|
+
description: "Check your connection, then try again.",
|
|
53
56
|
retry: "Try again"
|
|
54
57
|
},
|
|
55
58
|
fundingAccountError: {
|
|
56
|
-
title: "
|
|
57
|
-
description: "
|
|
59
|
+
title: "Couldn't load funding accounts",
|
|
60
|
+
description: "Check your connection, then try again.",
|
|
58
61
|
retry: "Try again"
|
|
59
62
|
}
|
|
60
63
|
};
|
package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js
|
|
2
2
|
var e = {
|
|
3
3
|
list: "cards-list",
|
|
4
|
-
|
|
5
|
-
rowPrefix: "cards-list-row",
|
|
4
|
+
row: "cards-list-row",
|
|
6
5
|
empty: "cards-list-empty",
|
|
7
6
|
error: "cards-list-error",
|
|
8
7
|
detailsSheet: "cards-list-details-sheet"
|
|
@@ -10,9 +9,6 @@ var e = {
|
|
|
10
9
|
root: e.list,
|
|
11
10
|
empty: e.empty,
|
|
12
11
|
error: e.error,
|
|
13
|
-
row:
|
|
14
|
-
rootPrefix: e.rowPrefix,
|
|
15
|
-
cardFaceSwatch: { root: e.cardFaceSwatch }
|
|
16
|
-
}
|
|
12
|
+
row: e.row
|
|
17
13
|
}, n = { root: e.detailsSheet };
|
|
18
14
|
export { n as cardsListDetailsSheetTestIds, t as cardsListTestIds, e as cardsWidgetTestIds };
|