@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.
Files changed (46) hide show
  1. package/README.md +16 -16
  2. package/dist/index.css +40 -70
  3. package/dist/index.d.ts +19 -6
  4. package/dist/lib/CardDetailsWidget.d.ts +11 -3
  5. package/dist/lib/CreditCardsWidget.d.ts +19 -6
  6. package/dist/lib/DebitCardsWidget.d.ts +19 -6
  7. package/dist/lib/WidgetSuite.d.ts +19 -6
  8. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +112 -110
  9. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/cardDetailsView.js +1 -0
  10. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +0 -2
  11. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +94 -83
  12. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardSuccessView.js +32 -31
  13. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js +5 -2
  14. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialRow.js +41 -23
  15. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialsFace.js +3 -0
  16. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsHeader.js +30 -25
  17. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +162 -190
  18. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CopyButton.js +35 -0
  20. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CopyableValue.js +18 -0
  21. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameEditor.js +43 -0
  22. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/cardFaceSurface.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/labels.js +12 -8
  24. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index5.js +3 -3
  25. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +110 -104
  26. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CreateCardWidget.js +74 -68
  27. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/PreparingView.js +19 -18
  28. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SetupView.js +110 -108
  29. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SuccessView.js +33 -42
  30. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/labels.js +10 -7
  31. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/labels.js +1 -0
  32. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -6
  33. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +159 -145
  34. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/index.js +0 -1
  35. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +255 -112
  36. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +1 -1
  37. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +4 -4
  38. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/AddressLine.js +0 -22
  41. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/DetailCopyRow.js +0 -28
  42. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameRow.js +0 -64
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/statusBadge.js +0 -11
  44. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardFaceSwatch.js +0 -11
  45. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +0 -103
  46. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/statusBadge.js +0 -11
@@ -1,94 +1,95 @@
1
- import { Label as e, RadioGroup as t, RadioGroupItem as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s, Separator as c } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ErrorState as l } from "../../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
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 u } from "./types.js";
5
- import { CardArt as d } from "./CardArt.js";
6
- import { CardControls as f } from "./CardControls/CardControls.js";
7
- import { ManualAddressFields as p } from "./ManualAddressFields.js";
8
- import { useId as m } from "react";
9
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
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 v({ cardArtSrc: v, labels: y, cardholderOptions: b, selectedCardholder: x, onCardholderSelect: S, isCardholderError: C = !1, onCardholderRetry: w, cardFormatOptions: T, selectedCardFormat: E, onCardFormatSelect: D, isFundingAccountVisible: O, fundingAccountOptions: k, selectedFundingAccount: A, onFundingAccountSelect: j, isFundingAccountError: M = !1, onFundingAccountRetry: N, isMailingSectionVisible: P, selectedMailingOption: F, onMailingOptionSelect: I, businessAddress: L, isBusinessAddressVisible: R, isManualAddressVisible: z, manualAddress: B, onManualAddressChange: V, stateOptions: H, isCardControlsSectionVisible: U, cardControls: W }) {
12
- let G = m(), K = `${G}-cardholder`, q = `${G}-card-format`, J = `${G}-funding-account`, Y = `${G}-mailing-business`, X = `${G}-mailing-custom`;
13
- return /* @__PURE__ */ _("div", {
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__ */ g("div", {
16
- className: "ttw:bg-primary/5 ttw:px-6 ttw:pt-2 ttw:pb-6",
17
- children: /* @__PURE__ */ g(d, {
18
- src: v,
19
- alt: y.cardArtAlt
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__ */ _("div", {
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__ */ _("section", {
24
+ /* @__PURE__ */ v("section", {
25
25
  className: "ttw:flex ttw:flex-col ttw:gap-4",
26
26
  children: [
27
- /* @__PURE__ */ g("h3", {
28
- className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
29
- children: y.setup.sectionTitle
27
+ /* @__PURE__ */ _(e, {
28
+ variant: "section",
29
+ level: 3,
30
+ children: b.setup.sectionTitle
30
31
  }),
31
- /* @__PURE__ */ _("div", {
32
+ /* @__PURE__ */ v("div", {
32
33
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
33
- children: [/* @__PURE__ */ g(e, {
34
- htmlFor: K,
35
- children: y.setup.cardholderLabel
36
- }), C ? /* @__PURE__ */ g(l, {
37
- title: y.cardholderError.title,
38
- description: y.cardholderError.description,
39
- retryLabel: y.cardholderError.retry,
40
- onRetry: w,
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__ */ _(r, {
43
- value: x ?? "",
44
- onValueChange: S,
45
- children: [/* @__PURE__ */ g(o, {
46
- id: K,
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__ */ g(s, { placeholder: y.setup.cardholderPlaceholder })
49
- }), /* @__PURE__ */ g(i, { children: b.map((e) => /* @__PURE__ */ g(a, {
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__ */ _("div", {
56
+ /* @__PURE__ */ v("div", {
56
57
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
57
- children: [/* @__PURE__ */ g(e, {
58
- htmlFor: q,
59
- children: y.setup.cardFormatLabel
60
- }), /* @__PURE__ */ _(r, {
61
- value: E ?? "",
62
- onValueChange: D,
63
- children: [/* @__PURE__ */ g(o, {
64
- id: q,
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__ */ g(s, { placeholder: y.setup.cardFormatPlaceholder })
67
- }), /* @__PURE__ */ g(i, { children: T.map((e) => /* @__PURE__ */ g(a, {
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
- O ? /* @__PURE__ */ _("div", {
74
+ k ? /* @__PURE__ */ v("div", {
74
75
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
75
- children: [/* @__PURE__ */ g(e, {
76
- htmlFor: J,
77
- children: y.setup.fundingAccountLabel
78
- }), M ? /* @__PURE__ */ g(l, {
79
- title: y.fundingAccountError.title,
80
- description: y.fundingAccountError.description,
81
- retryLabel: y.fundingAccountError.retry,
82
- onRetry: N,
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__ */ _(r, {
85
- value: A ?? "",
86
- onValueChange: j,
87
- children: [/* @__PURE__ */ g(o, {
88
- id: J,
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__ */ g(s, { placeholder: y.setup.fundingAccountPlaceholder })
91
- }), /* @__PURE__ */ g(i, { children: k.map((e) => /* @__PURE__ */ g(a, {
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
- P ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(c, {}), /* @__PURE__ */ _("section", {
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__ */ _("div", {
102
+ children: [/* @__PURE__ */ v("div", {
102
103
  className: "ttw:flex ttw:flex-col ttw:gap-1",
103
- children: [/* @__PURE__ */ g("h3", {
104
- className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
105
- children: y.mailing.sectionTitle
106
- }), /* @__PURE__ */ g("p", {
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: y.mailing.sectionDescription
110
+ children: b.mailing.sectionDescription
109
111
  })]
110
- }), /* @__PURE__ */ _(t, {
111
- value: F ?? "",
112
- onValueChange: I,
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__ */ _("div", {
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__ */ _("label", {
117
- htmlFor: Y,
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__ */ g(n, {
120
- value: u.BusinessAddress,
121
- id: Y,
121
+ children: [/* @__PURE__ */ _(r, {
122
+ value: d.BusinessAddress,
123
+ id: X,
122
124
  className: "ttw:mt-0.5"
123
- }), /* @__PURE__ */ _("span", {
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__ */ g("span", {
127
+ children: [/* @__PURE__ */ _("span", {
126
128
  className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
127
- children: y.mailing.businessTitle
128
- }), /* @__PURE__ */ g("span", {
129
+ children: b.mailing.businessTitle
130
+ }), /* @__PURE__ */ _("span", {
129
131
  className: "ttw:text-sm ttw:text-muted-foreground",
130
- children: y.mailing.businessDescription
132
+ children: b.mailing.businessDescription
131
133
  })]
132
134
  })]
133
- }), R ? /* @__PURE__ */ g("div", {
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: L
137
+ children: R
136
138
  }) : null]
137
- }), /* @__PURE__ */ _("div", {
139
+ }), /* @__PURE__ */ v("div", {
138
140
  className: "ttw:flex ttw:flex-col ttw:gap-0 ttw:p-4",
139
- children: [/* @__PURE__ */ _("label", {
140
- htmlFor: X,
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__ */ g(n, {
143
- value: u.DifferentAddress,
144
- id: X,
144
+ children: [/* @__PURE__ */ _(r, {
145
+ value: d.DifferentAddress,
146
+ id: Z,
145
147
  className: "ttw:mt-0.5"
146
- }), /* @__PURE__ */ _("span", {
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__ */ g("span", {
150
+ children: [/* @__PURE__ */ _("span", {
149
151
  className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
150
- children: y.mailing.customTitle
151
- }), /* @__PURE__ */ g("span", {
152
+ children: b.mailing.customTitle
153
+ }), /* @__PURE__ */ _("span", {
152
154
  className: "ttw:text-sm ttw:text-muted-foreground",
153
- children: y.mailing.customDescription
155
+ children: b.mailing.customDescription
154
156
  })]
155
157
  })]
156
- }), z ? /* @__PURE__ */ g(p, {
157
- values: B,
158
- stateOptions: H,
159
- onChange: V,
160
- labels: y.manualAddress
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
- U ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(c, {}), /* @__PURE__ */ g("section", {
167
+ W ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(l, {}), /* @__PURE__ */ _("section", {
166
168
  className: "ttw:flex ttw:flex-col ttw:gap-4",
167
- children: /* @__PURE__ */ g(f, {
168
- ...W,
169
- labels: y.cardControls
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 { v as SetupView };
178
+ export { y as SetupView };
@@ -1,49 +1,40 @@
1
- import { Button as e } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
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, ChevronRightIcon as a } from "lucide-react";
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 o({ cardArtSrc: o, labels: s, onCreateAnotherClick: c, onViewCardClick: l }) {
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__ */ r("div", {
10
- className: "ttw:flex ttw:min-h-0 ttw:flex-1 ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-6 ttw:overflow-y-auto ttw:bg-gradient-to-b ttw:from-background ttw:to-primary/10 ttw:px-6 ttw:py-12",
11
- children: [/* @__PURE__ */ n(t, {
12
- src: o,
13
- alt: s.cardArtAlt
14
- }), /* @__PURE__ */ r("div", {
15
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-3 ttw:text-center",
16
- children: [
17
- /* @__PURE__ */ n("div", {
18
- "aria-hidden": "true",
19
- className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-lg ttw:bg-emerald-700 ttw:text-white",
20
- children: /* @__PURE__ */ n(i, { className: "ttw:size-5" })
21
- }),
22
- /* @__PURE__ */ n("h2", {
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 { o as SuccessView };
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: "All set!",
42
- description: "Your card is activated and ready to use.",
43
- createAnother: "Create another card",
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: "Unable to load team members",
52
- description: "Something went wrong. Please try again.",
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: "Unable to load funding accounts",
57
- description: "Something went wrong. Please try again.",
59
+ title: "Couldn't load funding accounts",
60
+ description: "Check your connection, then try again.",
58
61
  retry: "Try again"
59
62
  }
60
63
  };
@@ -5,6 +5,7 @@ var n = {
5
5
  emptyValue: "—",
6
6
  untitledCard: "Untitled card",
7
7
  untitledFundingAccount: "Account",
8
+ pageRange: "{from}–{to}",
8
9
  cardStatus: e,
9
10
  cardType: t
10
11
  };
@@ -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
- cardFaceSwatch: "card-face-swatch",
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 };