@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.
Files changed (105) hide show
  1. package/README.md +37 -37
  2. package/dist/index.css +77 -230
  3. package/dist/index.d.ts +69 -23
  4. package/dist/lib/BankAccountsWidget.d.ts +20 -7
  5. package/dist/lib/CardDetailsWidget.d.ts +11 -3
  6. package/dist/lib/CreditCardsWidget.d.ts +19 -6
  7. package/dist/lib/DebitCardsWidget.d.ts +19 -6
  8. package/dist/lib/LinkedAccountsWidget.d.ts +30 -10
  9. package/dist/lib/WidgetSuite.d.ts +69 -23
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index.js +5 -5
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +21 -26
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +18 -16
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +22 -35
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index6.js +29 -14
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index7.js +20 -24
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index8.js +31 -0
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +296 -0
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index12.js +1 -0
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +5 -10
  21. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +42 -281
  22. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index.js +5 -3
  23. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +180 -0
  24. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +16 -184
  25. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +9 -93
  26. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +136 -81
  27. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +64 -101
  28. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index6.js +54 -81
  29. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +90 -65
  30. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +108 -183
  31. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +76 -0
  32. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +6 -8
  34. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +137 -120
  35. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/labels.js +5 -5
  36. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +47 -60
  37. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +71 -72
  38. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +22 -37
  39. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +119 -133
  40. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +12 -8
  41. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +112 -110
  42. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/cardDetailsView.js +1 -0
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +0 -2
  44. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +94 -83
  45. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardSuccessView.js +32 -31
  46. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js +5 -2
  47. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialRow.js +41 -23
  48. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardCredentialsFace.js +3 -0
  49. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsHeader.js +30 -25
  50. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +162 -190
  51. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +2 -2
  52. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CopyButton.js +35 -0
  53. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CopyableValue.js +18 -0
  54. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameEditor.js +43 -0
  55. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/cardFaceSurface.js +1 -1
  56. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/labels.js +12 -8
  57. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index5.js +3 -3
  58. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +110 -104
  59. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CreateCardWidget.js +74 -68
  60. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/PreparingView.js +19 -18
  61. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SetupView.js +110 -108
  62. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SuccessView.js +33 -42
  63. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/labels.js +10 -7
  64. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/labels.js +1 -0
  65. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/testIds.js +2 -6
  66. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/useCardsWidget.js +159 -145
  67. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/index.js +0 -1
  68. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +255 -112
  69. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.js +4 -4
  71. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +1 -1
  72. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +9 -7
  73. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/rows.js +46 -27
  74. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useAdminEligibleUserIds.js +3 -2
  75. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +248 -224
  76. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/labels.js +5 -5
  77. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index.js +2 -2
  78. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +22 -36
  79. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +23 -70
  80. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +91 -27
  81. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +80 -63
  82. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +145 -125
  83. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index2.js +61 -9
  84. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index3.js +77 -50
  85. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index4.js +180 -65
  86. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +22 -178
  87. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +6 -75
  88. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +48 -11
  89. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +45 -7
  90. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +8 -82
  91. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  92. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +15 -14
  93. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AddTile/AddTile.js +17 -0
  94. package/dist/packages/shared-ui-shadcn/dist/index.js +3603 -3518
  95. package/package.json +1 -1
  96. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index11.js +0 -1
  97. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/AddressLine.js +0 -22
  98. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/DetailCopyRow.js +0 -28
  99. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/NicknameRow.js +0 -64
  100. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/statusBadge.js +0 -11
  101. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardFaceSwatch.js +0 -11
  102. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +0 -103
  103. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/statusBadge.js +0 -11
  104. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +0 -67
  105. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +0 -138
@@ -1,37 +1,38 @@
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 { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { CheckIcon as r, ChevronRightIcon as i } from "lucide-react";
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
- function a({ labels: a, onDone: o, testIds: s }) {
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": s?.root,
8
- className: "ttw:flex ttw:flex-col",
9
- children: [/* @__PURE__ */ n("div", {
10
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-3 ttw:px-4 ttw:pt-10 ttw:pb-8 ttw:text-center",
11
- children: [
12
- /* @__PURE__ */ t("div", {
13
- "aria-hidden": "true",
14
- className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-lg ttw:bg-emerald-700 ttw:text-white",
15
- children: /* @__PURE__ */ t(r, { className: "ttw:size-5" })
16
- }),
17
- /* @__PURE__ */ t("h3", {
18
- className: "ttw:text-lg ttw:font-semibold ttw:text-foreground",
19
- children: a.successTitle
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 Card",
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: "We couldn't activate this card. Check the details and try again."
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 { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { CopyIcon as n } from "lucide-react";
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
- function r({ label: r, value: i, copyAriaLabel: a, onCopy: o }) {
5
- return /* @__PURE__ */ t("div", {
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: [/* @__PURE__ */ t("div", {
8
- className: "ttw:min-w-0",
9
- children: [/* @__PURE__ */ e("p", {
10
- className: "ttw:text-[10px] ttw:font-medium ttw:tracking-wide ttw:text-white/70 ttw:uppercase",
11
- children: r
12
- }), /* @__PURE__ */ e("p", {
13
- className: "ttw:mt-0.5 ttw:truncate ttw:text-base ttw:tracking-wide ttw:text-white",
14
- children: i
15
- })]
16
- }), i && o ? /* @__PURE__ */ e("button", {
17
- type: "button",
18
- "aria-label": a,
19
- onClick: () => o(i),
20
- 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",
21
- children: /* @__PURE__ */ e(n, {
22
- className: "ttw:size-3.5",
23
- "aria-hidden": "true"
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
- }) : null]
43
+ ]
26
44
  });
27
45
  }
28
- export { r as CardCredentialRow };
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, Skeleton as a } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
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, isTitlePending: p, statusLabel: m, statusTone: h, formFactorLabel: g, cardMenu: _, onClose: v, testIds: y }) {
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-1.5 ttw:px-4 ttw:pt-4 ttw:pb-3",
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.5",
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-1.5",
14
- children: [p ? /* @__PURE__ */ s(a, { className: "ttw:h-8 ttw:w-48" }) : f ? /* @__PURE__ */ s("h2", {
15
- className: "ttw:truncate ttw:text-2xl ttw:font-semibold ttw:tracking-[-0.6px] ttw:text-foreground",
16
- children: f
17
- }) : null, m ? /* @__PURE__ */ s(e, {
18
- className: o(h ?? "neutral"),
19
- children: m
20
- }) : null]
21
- }), g ? /* @__PURE__ */ s("p", {
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: g
28
+ children: _
24
29
  }) : null]
25
30
  }),
26
- _ ? /* @__PURE__ */ c(n, { children: [/* @__PURE__ */ s(i, {
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:size-8 ttw:shrink-0 ttw:bg-muted",
36
+ size: "icon-sm",
37
+ className: "ttw:shrink-0",
33
38
  "aria-label": d.menuTriggerAriaLabel,
34
- "data-testid": y?.menuTrigger,
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
- v ? /* @__PURE__ */ s(t, {
46
+ y ? /* @__PURE__ */ s(t, {
42
47
  type: "button",
43
48
  variant: "ghost",
44
- size: "icon",
45
- className: "ttw:size-8 ttw:shrink-0",
49
+ size: "icon-sm",
50
+ className: "ttw:shrink-0 ttw:text-muted-foreground",
46
51
  "aria-label": d.closeAriaLabel,
47
- "data-testid": y?.closeButton,
48
- onClick: v,
52
+ "data-testid": b?.closeButton,
53
+ onClick: y,
49
54
  children: /* @__PURE__ */ s(u, { className: "ttw:size-4" })
50
55
  }) : null
51
56
  ]