@tesouro/embedded-components-react 0.2.261 → 0.2.263

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 (47) hide show
  1. package/dist/experimental/WidgetSuite.d.ts +77 -5
  2. package/dist/experimental/WidgetSuite.js +5 -5
  3. package/dist/experimental/index.d.ts +77 -5
  4. package/dist/experimental/index.js +5 -5
  5. package/dist/index.js +4 -4
  6. package/dist/lib/BalancesWidget.js +1 -1
  7. package/dist/lib/InsightsWidget.js +2 -2
  8. package/dist/lib/TransfersWidget.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index4.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index5.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/index.js +3 -3
  12. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index3.js → lib/BalancesWidget/BalancesWidget.js} +5 -5
  13. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index4.js → lib/BalancesWidget/SingleBalance/SingleBalance.js} +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/balances-widget/ui/dist/{index2.js → lib/BalancesWidget/labels.js} +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +3 -3
  17. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/{index3.js → lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js} +3 -3
  18. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/index.js +2 -0
  19. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/{index2.js → lib/ExpenseManagementWidgetUi/labels.js} +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/index.js +4 -4
  23. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index3.js → lib/InsightsWidget/InsightsWidget.js} +5 -5
  24. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index5.js → lib/InsightsWidget/SingleInsight/SingleInsight.js} +3 -3
  25. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index4.js → lib/InsightsWidget/SingleInsight/labels.js} +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/{index2.js → lib/InsightsWidget/labels.js} +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index4.js → lib/TransferMoneyModal/ReviewTransferStep.js} +4 -4
  31. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index8.js → lib/TransferMoneyModal/TransferMoneyModal.js} +5 -5
  32. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index5.js → lib/TransferMoneyModal/TransferMoneyModalHeader.js} +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index7.js → lib/TransferMoneyModal/TransferResultStep.js} +3 -3
  34. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index2.js → lib/TransferMoneyModal/TransferReviewAccountCard.js} +2 -2
  35. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index3.js → lib/TransferMoneyModal/reviewTransferStepLabels.js} +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index6.js → lib/TransferMoneyModal/transferResultStepLabels.js} +1 -1
  37. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index10.js → lib/TransfersWidget/TransfersWidget.js} +6 -6
  38. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/{index9.js → lib/TransfersWidget/labels.js} +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js +5 -5
  40. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js +10 -1
  41. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +74 -11
  42. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +58 -33
  43. package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index.js +2 -1
  44. package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index4.js +29 -0
  45. package/dist/packages/shared-ui-shadcn/dist/index.js +4039 -4017
  46. package/package.json +6 -6
  47. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index4.js +0 -2
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index3.js
1
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/reviewTransferStepLabels.js
2
2
  var e = {
3
3
  fromAccountSection: "From Account",
4
4
  toAccountSection: "To Account",
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index6.js
1
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/transferResultStepLabels.js
2
2
  var e = {
3
3
  successTitle: "Success!",
4
4
  errorTitle: "Error",
@@ -1,11 +1,11 @@
1
- import { Button as e, Skeleton as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { WidgetTitleWithIconAndChildren as r } from "../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { TRANSFERS_WIDGET_LABELS_EN as i } from "./index9.js";
5
- import { TransferMoneyModal as a } from "./index8.js";
1
+ import { Button as e, Skeleton as t, Typography as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { WidgetTitleWithIconAndChildren as r } from "../../../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
3
+ import "../../../../../shared/ui/dist/index.js";
4
+ import { TRANSFERS_WIDGET_LABELS_EN as i } from "./labels.js";
5
+ import { TransferMoneyModal as a } from "../TransferMoneyModal/TransferMoneyModal.js";
6
6
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  import { ArrowDownToLine as l, ArrowDownUp as u, ArrowUpFromLine as d } from "lucide-react";
8
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index10.js
8
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js
9
9
  function f({ transferRows: f, isLoading: p, isError: m, onRetry: h, showTransferMoneyCta: g, isTransferMoneyCtaDisabled: _ = !1, onTransferMoneyClick: v, transferMoneyModal: y, labels: b }) {
10
10
  let x = {
11
11
  ...i,
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index9.js
1
+ //#region ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js
2
2
  var e = {
3
3
  widgetTitle: "Transfer money",
4
4
  transferMoneyCta: "Transfer money",
@@ -1,6 +1,6 @@
1
- import { WIDGET_SUITE_SECTION_LABELS_EN as e } from "./index3.js";
2
- import { WidgetSuiteSectionId as t } from "./index4.js";
3
- import { WIDGET_SUITE_SHELL_LABELS_EN as n } from "../../ui/dist/index2.js";
1
+ import { WIDGET_SUITE_CONTENT_LABELS_EN as e, WIDGET_SUITE_SECTION_LABELS_EN as t, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as n } from "./index3.js";
2
+ import { WIDGET_SUITE_DEFAULT_SECTIONS as r, WidgetSuiteSectionId as i } from "./index4.js";
3
+ import { WIDGET_SUITE_SHELL_LABELS_EN as a } from "../../ui/dist/index2.js";
4
4
  import "../../ui/dist/index.js";
5
- import { WidgetSuite as r } from "./index5.js";
6
- export { e as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SHELL_LABELS_EN, r as WidgetSuite, t as WidgetSuiteSectionId };
5
+ import { WidgetSuite as o } from "./index5.js";
6
+ export { e as WIDGET_SUITE_CONTENT_LABELS_EN, r as WIDGET_SUITE_DEFAULT_SECTIONS, t as WIDGET_SUITE_SECTION_LABELS_EN, n as WIDGET_SUITE_SECTION_TITLE_LABELS_EN, a as WIDGET_SUITE_SHELL_LABELS_EN, o as WidgetSuite, i as WidgetSuiteSectionId };
@@ -1,8 +1,17 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index3.js
2
2
  var e = {
3
+ dashboard: "Dashboard",
3
4
  accounts: "Accounts",
4
5
  cards: "Cards",
6
+ transfers: "Transfers",
7
+ "bill-pay": "Bill Pay",
8
+ invoicing: "Invoicing",
9
+ expenses: "Expenses",
5
10
  settings: "Settings"
11
+ }, t = { bankTagline: "Business Banking provided by {bankName}" }, n = {
12
+ creditCards: { title: "Credit cards" },
13
+ debitCards: { title: "Debit cards" },
14
+ expensePlaceholders: { expensesUnavailable: "Expenses are not available in this suite yet." }
6
15
  };
7
16
  //#endregion
8
- export { e as WIDGET_SUITE_SECTION_LABELS_EN };
17
+ export { n as WIDGET_SUITE_CONTENT_LABELS_EN, e as WIDGET_SUITE_SECTION_LABELS_EN, t as WIDGET_SUITE_SECTION_TITLE_LABELS_EN };
@@ -9,26 +9,89 @@ import { CardProgram as n } from "../../../shared/feature/dist/lib/card/cardProg
9
9
  import "../../../shared/feature/dist/index.js";
10
10
  import { BankAccountsWidget as r } from "../../../bank-accounts-widget/feature/dist/index8.js";
11
11
  import "../../../bank-accounts-widget/feature/dist/index.js";
12
- import { CardsWidget as i } from "../../../cards-widget/feature/dist/index8.js";
12
+ import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index28.js";
13
+ import "../../../bill-pay-widget/feature/dist/index.js";
14
+ import { CardsWidget as a } from "../../../cards-widget/feature/dist/index8.js";
13
15
  import "../../../cards-widget/feature/dist/index.js";
14
- import { SettingsWidget as a } from "../../../settings-widget/feature/dist/index6.js";
16
+ import { BalancesWidget as o } from "../../../balances-widget/feature/dist/index5.js";
17
+ import "../../../balances-widget/feature/dist/index.js";
18
+ import { InsightsWidget as s } from "../../../insights-widget/feature/dist/index11.js";
19
+ import "../../../insights-widget/feature/dist/index.js";
20
+ import { InvoicingWidget as c } from "../../../invoicing-widget/feature/dist/index3.js";
21
+ import "../../../invoicing-widget/feature/dist/index.js";
22
+ import { SettingsWidget as l } from "../../../settings-widget/feature/dist/index6.js";
15
23
  import "../../../settings-widget/feature/dist/index.js";
16
- import { jsx as o } from "react/jsx-runtime";
24
+ import { TransfersWidget as u } from "../../../transfers-widget/feature/dist/index6.js";
25
+ import "../../../transfers-widget/feature/dist/index.js";
26
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
17
27
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js
18
- var s = {
28
+ var p = ({ children: e }) => /* @__PURE__ */ d("div", {
29
+ className: "ttw:rounded-md ttw:border ttw:border-dashed ttw:border-border ttw:p-8 ttw:text-sm ttw:text-muted-foreground",
30
+ children: e
31
+ }), m = {
32
+ Dashboard: "dashboard",
19
33
  Accounts: "accounts",
20
34
  Cards: "cards",
35
+ Transfers: "transfers",
36
+ BillPay: "bill-pay",
37
+ Invoicing: "invoicing",
38
+ Expenses: "expenses",
21
39
  Settings: "settings"
22
- }, c = {
23
- [s.Accounts]: {
40
+ }, h = [
41
+ m.Dashboard,
42
+ m.Accounts,
43
+ m.Cards,
44
+ m.Transfers,
45
+ m.BillPay,
46
+ m.Invoicing,
47
+ m.Expenses,
48
+ m.Settings
49
+ ], g = {
50
+ [m.Dashboard]: { render: ({ grantedScopes: n }) => {
51
+ let r = e(n, [t.BankAccountReadOrg]);
52
+ return /* @__PURE__ */ f("div", {
53
+ className: r ? "ttw:grid ttw:gap-4 ttw:md:grid-cols-2" : "ttw:grid ttw:gap-4",
54
+ children: [r && /* @__PURE__ */ d(o, {}), /* @__PURE__ */ d(s, {})]
55
+ });
56
+ } },
57
+ [m.Accounts]: {
24
58
  anyOfScopes: [t.BankAccountReadOrg, t.ExternalBankAccountReadOrg],
25
- render: () => /* @__PURE__ */ o(r, {})
59
+ rendersOwnTitle: !0,
60
+ render: () => /* @__PURE__ */ d(r, {})
26
61
  },
27
- [s.Cards]: {
62
+ [m.Cards]: {
28
63
  anyOfScopes: [t.CreditCardReadOrg, t.DebitCardReadOrg],
29
- render: (r) => /* @__PURE__ */ o(i, { cardProgram: e(r, [t.CreditCardReadOrg]) ? n.Credit : n.Debit })
64
+ render: ({ grantedScopes: r, labels: i }) => /* @__PURE__ */ f("div", {
65
+ className: "ttw:grid ttw:gap-8",
66
+ children: [e(r, [t.CreditCardReadOrg]) && /* @__PURE__ */ d(a, {
67
+ cardProgram: n.Credit,
68
+ labels: i.creditCards
69
+ }), e(r, [t.DebitCardReadOrg]) && /* @__PURE__ */ d(a, {
70
+ cardProgram: n.Debit,
71
+ labels: i.debitCards
72
+ })]
73
+ })
30
74
  },
31
- [s.Settings]: { render: () => /* @__PURE__ */ o(a, {}) }
75
+ [m.Transfers]: {
76
+ anyOfScopes: [t.BankAccountReadOrg],
77
+ render: () => /* @__PURE__ */ d(u, {})
78
+ },
79
+ [m.BillPay]: {
80
+ anyOfScopes: [t.PayableReadOrg],
81
+ render: () => /* @__PURE__ */ d(i, {})
82
+ },
83
+ [m.Invoicing]: {
84
+ anyOfScopes: [t.InvoiceReadOrg],
85
+ render: () => /* @__PURE__ */ d(c, {})
86
+ },
87
+ [m.Expenses]: {
88
+ anyOfScopes: [t.ExpenseReadOrg, t.ExpenseReadSelf],
89
+ render: ({ labels: e }) => /* @__PURE__ */ d(p, { children: e.expensePlaceholders.expensesUnavailable })
90
+ },
91
+ [m.Settings]: {
92
+ rendersOwnTitle: !0,
93
+ render: () => /* @__PURE__ */ d(l, {})
94
+ }
32
95
  };
33
96
  //#endregion
34
- export { c as WIDGET_SUITE_SECTIONS, s as WidgetSuiteSectionId };
97
+ export { h as WIDGET_SUITE_DEFAULT_SECTIONS, g as WIDGET_SUITE_SECTIONS, m as WidgetSuiteSectionId };
@@ -8,52 +8,77 @@ import { useAnalyticsTrack as t } from "../../../shared/feature/dist/lib/analyti
8
8
  import { WidgetProvider as n } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
9
9
  import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
10
  import "../../../shared/feature/dist/index.js";
11
- import { WIDGET_SUITE_SECTION_LABELS_EN as i } from "./index3.js";
12
- import { WIDGET_SUITE_SECTIONS as a } from "./index4.js";
13
- import { WIDGET_NAME as o, WidgetSuiteAnalyticsEvent as s } from "./index2.js";
14
- import { WidgetSuiteShell as c } from "../../ui/dist/index3.js";
11
+ import { WIDGET_SUITE_CONTENT_LABELS_EN as i, WIDGET_SUITE_SECTION_LABELS_EN as a, WIDGET_SUITE_SECTION_TITLE_LABELS_EN as o } from "./index3.js";
12
+ import { WIDGET_SUITE_SECTIONS as s } from "./index4.js";
13
+ import { WIDGET_NAME as c, WidgetSuiteAnalyticsEvent as l } from "./index2.js";
14
+ import { WidgetSuiteShell as u } from "../../ui/dist/index3.js";
15
+ import { SectionPageTitle as d } from "../../ui/dist/index4.js";
15
16
  import "../../ui/dist/index.js";
16
- import { useEffect as l, useState as u } from "react";
17
- import { jsx as d } from "react/jsx-runtime";
17
+ import { useEffect as f, useMemo as p, useState as m } from "react";
18
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
18
19
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js
19
- function f({ sections: n, labels: o, sectionLabels: f }) {
20
- let p = t();
21
- l(() => {
22
- p(s.Mounted);
23
- }, [p]);
24
- let m = {
25
- ...i,
26
- ...f
27
- }, { initResponse: h } = r(), g = h?.scopes, _ = n.flatMap((t) => {
28
- let n = a[t];
29
- return !n || n.anyOfScopes && !e(g, n.anyOfScopes) ? [] : [{
20
+ function v({ sections: n, labels: c, sectionLabels: v, sectionTitleLabels: y, contentLabels: b, showSectionTitle: x = !0 }) {
21
+ let S = t();
22
+ f(() => {
23
+ S(l.Mounted);
24
+ }, [S]);
25
+ let C = {
26
+ ...a,
27
+ ...v
28
+ }, { initResponse: w } = r(), T = w?.scopes, E = p(() => ({
29
+ creditCards: {
30
+ ...i.creditCards,
31
+ ...b?.creditCards
32
+ },
33
+ debitCards: {
34
+ ...i.debitCards,
35
+ ...b?.debitCards
36
+ },
37
+ expensePlaceholders: {
38
+ ...i.expensePlaceholders,
39
+ ...b?.expensePlaceholders
40
+ }
41
+ }), [b]), D = w?.bankName?.trim(), O = D ? {
42
+ ...o,
43
+ ...y
44
+ }.bankTagline.replaceAll("{bankName}", D) : void 0, k = n.flatMap((t) => {
45
+ let n = s[t];
46
+ if (!n || n.anyOfScopes && !e(T, n.anyOfScopes)) return [];
47
+ let r = C[t], i = n.render({
48
+ grantedScopes: T,
49
+ labels: E
50
+ });
51
+ return [{
30
52
  id: t,
31
- label: m[t],
32
- content: n.render(g)
53
+ label: r,
54
+ content: x && !n.rendersOwnTitle ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(d, {
55
+ title: r,
56
+ bankTagline: O
57
+ }), i] }) : i
33
58
  }];
34
- }), [v, y] = u(n[0] ?? ""), b = _.some((e) => e.id === v) ? v : _[0]?.id ?? "";
35
- return /* @__PURE__ */ d(c, {
36
- sections: _,
37
- selectedSectionId: b,
38
- onSectionChange: y,
39
- labels: o
59
+ }), [A, j] = m(n[0] ?? ""), M = k.some((e) => e.id === A) ? A : k[0]?.id ?? "";
60
+ return /* @__PURE__ */ g(u, {
61
+ sections: k,
62
+ selectedSectionId: M,
63
+ onSectionChange: j,
64
+ labels: c
40
65
  });
41
66
  }
42
- function p({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: p, ...m }) {
43
- return /* @__PURE__ */ d(n, {
44
- widgetName: o,
67
+ function y({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: l, onError: u, analytics: d, ...f }) {
68
+ return /* @__PURE__ */ g(n, {
69
+ widgetName: c,
45
70
  baseUrl: e,
46
71
  widgetToken: t,
47
72
  organizationId: r,
48
73
  configClient: i,
49
74
  linkComponent: a,
50
- implementation: s,
51
- uiFramework: c,
75
+ implementation: o,
76
+ uiFramework: s,
52
77
  errorFallback: l,
53
78
  onError: u,
54
- analytics: p,
55
- children: /* @__PURE__ */ d(f, { ...m })
79
+ analytics: d,
80
+ children: /* @__PURE__ */ g(v, { ...f })
56
81
  });
57
82
  }
58
83
  //#endregion
59
- export { p as WidgetSuite, p as default };
84
+ export { y as WidgetSuite, y as default };
@@ -1,3 +1,4 @@
1
1
  import { WIDGET_SUITE_SHELL_LABELS_EN as e } from "./index2.js";
2
2
  import { WidgetSuiteShell as t } from "./index3.js";
3
- export { e as WIDGET_SUITE_SHELL_LABELS_EN, t as WidgetSuiteShell };
3
+ import { SectionPageTitle as n } from "./index4.js";
4
+ export { n as SectionPageTitle, e as WIDGET_SUITE_SHELL_LABELS_EN, t as WidgetSuiteShell };
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
7
+ //#region ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index4.js
8
+ function r({ title: r, bankTagline: i, testId: a, children: o }) {
9
+ return /* @__PURE__ */ n("div", {
10
+ className: "ttw:mb-6 ttw:flex ttw:justify-between ttw:gap-4",
11
+ children: [/* @__PURE__ */ n("div", {
12
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
13
+ children: [/* @__PURE__ */ t(e, {
14
+ variant: "h1",
15
+ "data-testid": a,
16
+ children: r
17
+ }), i && /* @__PURE__ */ t(e, {
18
+ color: "muted",
19
+ variant: "body1",
20
+ children: i
21
+ })]
22
+ }), /* @__PURE__ */ t("div", {
23
+ className: "ttw:flex ttw:items-center ttw:gap-2",
24
+ children: o
25
+ })]
26
+ });
27
+ }
28
+ //#endregion
29
+ export { r as SectionPageTitle };