@tesouro/embedded-components-react 0.11.59 → 0.11.61
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 +37 -37
- package/dist/index.css +77 -230
- package/dist/index.d.ts +69 -23
- package/dist/lib/BankAccountsWidget.d.ts +20 -7
- 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/LinkedAccountsWidget.d.ts +30 -10
- package/dist/lib/WidgetSuite.d.ts +69 -23
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +21 -26
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +22 -35
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index6.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index7.js +20 -24
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index8.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +296 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index12.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +42 -281
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +180 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +16 -184
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +9 -93
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +136 -81
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +64 -101
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index6.js +54 -81
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +90 -65
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +108 -183
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +76 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +137 -120
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/labels.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +47 -60
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +71 -72
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +22 -37
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +119 -133
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +12 -8
- 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/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/rows.js +46 -27
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useAdminEligibleUserIds.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +248 -224
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/labels.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +22 -36
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +23 -70
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +91 -27
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +80 -63
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +145 -125
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index2.js +61 -9
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index3.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index4.js +180 -65
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +22 -178
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +6 -75
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +48 -11
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +45 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +8 -82
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AddTile/AddTile.js +17 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +3603 -3518
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index11.js +0 -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/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +0 -67
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +0 -138
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResultScreen as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { CheckIcon as r
|
|
3
|
+
import { CheckIcon as r } from "lucide-react";
|
|
4
4
|
// ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardSuccessView.js
|
|
5
|
-
|
|
5
|
+
var i = () => void 0;
|
|
6
|
+
function a({ labels: a, cardFace: o, cardholderName: s, lastFour: c, formFactorLabel: l, onDone: u, testIds: d }) {
|
|
7
|
+
let f = [
|
|
8
|
+
{
|
|
9
|
+
label: a.successCardholderLabel,
|
|
10
|
+
value: s
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: a.successLastFourLabel,
|
|
14
|
+
value: c
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: a.successFormatLabel,
|
|
18
|
+
value: l
|
|
19
|
+
}
|
|
20
|
+
].filter((e) => !!e.value);
|
|
6
21
|
return /* @__PURE__ */ n("div", {
|
|
7
|
-
"data-testid":
|
|
8
|
-
className: "ttw:flex ttw:flex-col",
|
|
9
|
-
children: [/* @__PURE__ */
|
|
10
|
-
className: "ttw:flex ttw:
|
|
11
|
-
children:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ t("p", {
|
|
22
|
-
className: "ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground",
|
|
23
|
-
children: a.successDescription
|
|
24
|
-
})
|
|
25
|
-
]
|
|
26
|
-
}), o ? /* @__PURE__ */ t("div", {
|
|
27
|
-
className: "ttw:px-4 ttw:pb-4",
|
|
28
|
-
children: /* @__PURE__ */ n(e, {
|
|
29
|
-
type: "button",
|
|
30
|
-
className: "ttw:w-full",
|
|
31
|
-
onClick: o,
|
|
32
|
-
children: [a.done, /* @__PURE__ */ t(i, { className: "ttw:size-4" })]
|
|
33
|
-
})
|
|
34
|
-
}) : null]
|
|
22
|
+
"data-testid": d?.root,
|
|
23
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
24
|
+
children: [/* @__PURE__ */ t("div", {
|
|
25
|
+
className: "ttw:flex ttw:justify-center ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
26
|
+
children: o
|
|
27
|
+
}), /* @__PURE__ */ t(e, {
|
|
28
|
+
icon: /* @__PURE__ */ t(r, {}),
|
|
29
|
+
title: a.successTitle,
|
|
30
|
+
description: a.successDescription,
|
|
31
|
+
details: f,
|
|
32
|
+
onDone: u ?? i,
|
|
33
|
+
labels: { done: a.done },
|
|
34
|
+
className: u ? void 0 : "ttw:[&>[data-slot=modal-footer]]:hidden"
|
|
35
|
+
})]
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
export { a as ActivateCardSuccessView };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js
|
|
2
2
|
var e = {
|
|
3
3
|
header: {
|
|
4
|
-
title: "Activate
|
|
4
|
+
title: "Activate card",
|
|
5
5
|
closeAriaLabel: "Close activate card"
|
|
6
6
|
},
|
|
7
7
|
cardFace: { bankLogoAlt: "Bank logo" },
|
|
@@ -23,8 +23,11 @@ var e = {
|
|
|
23
23
|
submittingAriaLabel: "Activating card",
|
|
24
24
|
successTitle: "Card activated",
|
|
25
25
|
successDescription: "This card is ready to use.",
|
|
26
|
+
successCardholderLabel: "Cardholder",
|
|
27
|
+
successLastFourLabel: "Last four",
|
|
28
|
+
successFormatLabel: "Format",
|
|
26
29
|
done: "Done",
|
|
27
|
-
errorDescription: "
|
|
30
|
+
errorDescription: "Couldn't activate this card. Check the details and try again."
|
|
28
31
|
}
|
|
29
32
|
};
|
|
30
33
|
function t(t) {
|
|
@@ -1,28 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { CheckIcon as i, CopyIcon as a } from "lucide-react";
|
|
3
4
|
// ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialRow.js
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var o = 2e3;
|
|
6
|
+
function s({ label: s, value: c, copyAriaLabel: l, copiedLabel: u, onCopy: d }) {
|
|
7
|
+
let [f, p] = t(!1);
|
|
8
|
+
return e(() => {
|
|
9
|
+
if (!f) return;
|
|
10
|
+
let e = setTimeout(() => p(!1), o);
|
|
11
|
+
return () => clearTimeout(e);
|
|
12
|
+
}, [f]), /* @__PURE__ */ r("div", {
|
|
6
13
|
className: "ttw:relative ttw:flex ttw:min-w-0 ttw:items-end ttw:justify-between ttw:gap-2",
|
|
7
|
-
children: [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ r("div", {
|
|
16
|
+
className: "ttw:min-w-0",
|
|
17
|
+
children: [/* @__PURE__ */ n("p", {
|
|
18
|
+
className: "ttw:text-[10px] ttw:font-medium ttw:tracking-wide ttw:text-white/70 ttw:uppercase",
|
|
19
|
+
children: s
|
|
20
|
+
}), /* @__PURE__ */ n("p", {
|
|
21
|
+
className: "ttw:mt-0.5 ttw:truncate ttw:text-base ttw:tracking-wide ttw:text-white",
|
|
22
|
+
children: c
|
|
23
|
+
})]
|
|
24
|
+
}),
|
|
25
|
+
c && d ? /* @__PURE__ */ n("button", {
|
|
26
|
+
type: "button",
|
|
27
|
+
"aria-label": l,
|
|
28
|
+
title: f ? u : l,
|
|
29
|
+
onClick: async () => {
|
|
30
|
+
await d(c) !== !1 && p(!0);
|
|
31
|
+
},
|
|
32
|
+
className: "ttw:inline-flex ttw:size-7 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-md ttw:text-white/70 ttw:transition-colors ttw:hover:bg-white/10 ttw:hover:text-white ttw:focus-visible:ring-2 ttw:focus-visible:ring-white/70 ttw:focus-visible:outline-none",
|
|
33
|
+
children: n(f ? i : a, {
|
|
34
|
+
className: "ttw:size-3.5",
|
|
35
|
+
"aria-hidden": "true"
|
|
36
|
+
})
|
|
37
|
+
}) : null,
|
|
38
|
+
/* @__PURE__ */ n("span", {
|
|
39
|
+
role: "status",
|
|
40
|
+
className: "ttw:sr-only",
|
|
41
|
+
children: f ? u : ""
|
|
24
42
|
})
|
|
25
|
-
|
|
43
|
+
]
|
|
26
44
|
});
|
|
27
45
|
}
|
|
28
|
-
export {
|
|
46
|
+
export { s as CardCredentialRow };
|
|
@@ -18,6 +18,7 @@ function o({ labels: o, cardNumber: s, expirationDate: c, securityCode: l, isLoc
|
|
|
18
18
|
label: o.cardNumber,
|
|
19
19
|
value: s,
|
|
20
20
|
copyAriaLabel: o.copyCardNumberAriaLabel,
|
|
21
|
+
copiedLabel: o.copiedLabel,
|
|
21
22
|
onCopy: d
|
|
22
23
|
}),
|
|
23
24
|
/* @__PURE__ */ a("div", {
|
|
@@ -26,11 +27,13 @@ function o({ labels: o, cardNumber: s, expirationDate: c, securityCode: l, isLoc
|
|
|
26
27
|
label: o.expirationDate,
|
|
27
28
|
value: c,
|
|
28
29
|
copyAriaLabel: o.copyExpirationDateAriaLabel,
|
|
30
|
+
copiedLabel: o.copiedLabel,
|
|
29
31
|
onCopy: d
|
|
30
32
|
}), /* @__PURE__ */ i(r, {
|
|
31
33
|
label: o.securityCode,
|
|
32
34
|
value: l,
|
|
33
35
|
copyAriaLabel: o.copySecurityCodeAriaLabel,
|
|
36
|
+
copiedLabel: o.copiedLabel,
|
|
34
37
|
onCopy: d
|
|
35
38
|
})]
|
|
36
39
|
})
|
|
@@ -1,51 +1,56 @@
|
|
|
1
|
-
import { Badge as e, Button as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuTrigger as i,
|
|
2
|
-
import { cardStatusToneClassName as o } from "./statusBadge.js";
|
|
1
|
+
import { Badge as e, Button as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuTrigger as i, Heading as a, Skeleton as o } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
3
2
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
3
|
import { EllipsisVerticalIcon as l, XIcon as u } from "lucide-react";
|
|
5
4
|
// ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsHeader.js
|
|
6
|
-
function d({ labels: d, title: f,
|
|
5
|
+
function d({ labels: d, title: f, titleAction: p, isTitlePending: m, statusLabel: h, statusTone: g, formFactorLabel: _, cardMenu: v, onClose: y, testIds: b }) {
|
|
7
6
|
return /* @__PURE__ */ c("div", {
|
|
8
|
-
className: "ttw:flex ttw:items-start ttw:gap-
|
|
7
|
+
className: "ttw:flex ttw:items-start ttw:gap-2 ttw:px-4 ttw:pt-5 ttw:@md/card-details:px-6 ttw:pb-4",
|
|
9
8
|
children: [
|
|
10
9
|
/* @__PURE__ */ c("div", {
|
|
11
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1
|
|
10
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1",
|
|
12
11
|
children: [/* @__PURE__ */ c("div", {
|
|
13
|
-
className: "ttw:flex ttw:items-center ttw:gap-
|
|
14
|
-
children: [
|
|
15
|
-
className: "ttw:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
13
|
+
children: [
|
|
14
|
+
m ? /* @__PURE__ */ s(o, { className: "ttw:h-7 ttw:w-48" }) : f ? /* @__PURE__ */ s(a, {
|
|
15
|
+
variant: "sheet",
|
|
16
|
+
level: 2,
|
|
17
|
+
className: "ttw:truncate ttw:text-foreground",
|
|
18
|
+
children: f
|
|
19
|
+
}) : null,
|
|
20
|
+
p,
|
|
21
|
+
h ? /* @__PURE__ */ s(e, {
|
|
22
|
+
tone: g ?? "neutral",
|
|
23
|
+
children: h
|
|
24
|
+
}) : null
|
|
25
|
+
]
|
|
26
|
+
}), _ ? /* @__PURE__ */ s("p", {
|
|
22
27
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
23
|
-
children:
|
|
28
|
+
children: _
|
|
24
29
|
}) : null]
|
|
25
30
|
}),
|
|
26
|
-
|
|
31
|
+
v ? /* @__PURE__ */ c(n, { children: [/* @__PURE__ */ s(i, {
|
|
27
32
|
asChild: !0,
|
|
28
33
|
children: /* @__PURE__ */ s(t, {
|
|
29
34
|
type: "button",
|
|
30
35
|
variant: "ghost",
|
|
31
|
-
size: "icon",
|
|
32
|
-
className: "ttw:
|
|
36
|
+
size: "icon-sm",
|
|
37
|
+
className: "ttw:shrink-0",
|
|
33
38
|
"aria-label": d.menuTriggerAriaLabel,
|
|
34
|
-
"data-testid":
|
|
39
|
+
"data-testid": b?.menuTrigger,
|
|
35
40
|
children: /* @__PURE__ */ s(l, { className: "ttw:size-4" })
|
|
36
41
|
})
|
|
37
42
|
}), /* @__PURE__ */ s(r, {
|
|
38
43
|
align: "end",
|
|
39
|
-
children:
|
|
44
|
+
children: v
|
|
40
45
|
})] }) : null,
|
|
41
|
-
|
|
46
|
+
y ? /* @__PURE__ */ s(t, {
|
|
42
47
|
type: "button",
|
|
43
48
|
variant: "ghost",
|
|
44
|
-
size: "icon",
|
|
45
|
-
className: "ttw:
|
|
49
|
+
size: "icon-sm",
|
|
50
|
+
className: "ttw:shrink-0 ttw:text-muted-foreground",
|
|
46
51
|
"aria-label": d.closeAriaLabel,
|
|
47
|
-
"data-testid":
|
|
48
|
-
onClick:
|
|
52
|
+
"data-testid": b?.closeButton,
|
|
53
|
+
onClick: y,
|
|
49
54
|
children: /* @__PURE__ */ s(u, { className: "ttw:size-4" })
|
|
50
55
|
}) : null
|
|
51
56
|
]
|