@tesouro/embedded-components-react 0.9.1 → 0.9.4
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 +76 -0
- package/dist/core.js +1 -0
- package/dist/index.css +387 -65
- package/dist/index.d.ts +74 -2
- package/dist/index.js +57 -55
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetContext.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/buildOnboardingPrefill.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index2.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/hasLiveScheduledRecord.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/useApplyDuplicateVerdictsMutation.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/analytics/events.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index13.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/formatBillMoney.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/formatScheduledDateLabel.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/formatters.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/formatters.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/mapTransactionRow.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/apiValidationErrors.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/discount.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/lineItems.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentRecord.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index11.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useSubEntityForm.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +1 -0
- 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/product-catalog/feature/dist/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/helpers.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/HostIsolationScope.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/usePortalThemeSync.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/useRenderedThemeCheck.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/color.js +182 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/labels.js +1 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +28 -13
- package/dist/theme.d.ts +2 -0
- package/package.json +1 -1
|
@@ -4,30 +4,35 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { PortalContainerProvider as e, usePortalContainer as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { OVERLAY_Z_INDEX as n, SCOPE_CLASS as r } from "./isolationRoot.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { usePortalThemeSync as i } from "./usePortalThemeSync.js";
|
|
8
|
+
import { useRenderedThemeCheck as a } from "./useRenderedThemeCheck.js";
|
|
9
|
+
import { useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
|
|
10
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
9
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/HostIsolationScope.js
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
let
|
|
13
|
-
if (
|
|
12
|
+
var d = { display: "contents" }, f = `position: relative; z-index: ${n};`, p = "document" in globalThis ? s : o;
|
|
13
|
+
function m({ children: n }) {
|
|
14
|
+
let o = t(), [s] = l(() => {
|
|
15
|
+
if (o != null || !("document" in globalThis)) return null;
|
|
14
16
|
let e = globalThis.document.createElement("div");
|
|
15
|
-
return e.classList.add(r), e.setAttribute("style",
|
|
17
|
+
return e.classList.add(r), e.setAttribute("style", f), e;
|
|
16
18
|
});
|
|
17
|
-
|
|
18
|
-
if (!
|
|
19
|
-
let e =
|
|
19
|
+
p(() => {
|
|
20
|
+
if (!s) return;
|
|
21
|
+
let e = s, t = globalThis.document?.body;
|
|
20
22
|
if (t) return t.appendChild(e), () => {
|
|
21
23
|
e.remove();
|
|
22
24
|
};
|
|
23
|
-
}, [
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
}, [s]);
|
|
26
|
+
let m = s ?? o, h = c(null);
|
|
27
|
+
return i(h, s), a(h, o == null), /* @__PURE__ */ u(e, {
|
|
28
|
+
container: m,
|
|
29
|
+
children: /* @__PURE__ */ u("div", {
|
|
30
|
+
ref: h,
|
|
26
31
|
className: r,
|
|
27
|
-
style:
|
|
32
|
+
style: d,
|
|
28
33
|
children: n
|
|
29
34
|
})
|
|
30
35
|
});
|
|
31
36
|
}
|
|
32
37
|
//#endregion
|
|
33
|
-
export {
|
|
38
|
+
export { m as HostIsolationScope };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { THEME_TOKEN_NAMES as e } from "../../../../util/dist/lib/theme/themeTokens.js";
|
|
6
|
+
import "../../../../util/dist/index.js";
|
|
7
|
+
import { useEffect as t, useLayoutEffect as n } from "react";
|
|
8
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/usePortalThemeSync.js
|
|
9
|
+
var r = "document" in globalThis ? n : t, i = Object.values(e);
|
|
10
|
+
function a(e, t) {
|
|
11
|
+
let n = t, { getComputedStyle: r } = globalThis;
|
|
12
|
+
if (n && e && typeof r == "function" && n.parentElement) try {
|
|
13
|
+
let t = r(e), a = r(n.parentElement);
|
|
14
|
+
for (let e of i) {
|
|
15
|
+
let r = t.getPropertyValue(e).trim();
|
|
16
|
+
r && r !== a.getPropertyValue(e).trim() ? n.style.getPropertyValue(e) !== r && n.style.setProperty(e, r) : n.style.getPropertyValue(e) && n.style.removeProperty(e);
|
|
17
|
+
}
|
|
18
|
+
} catch {}
|
|
19
|
+
}
|
|
20
|
+
function o(e, n) {
|
|
21
|
+
r(() => {
|
|
22
|
+
a(e.current, n);
|
|
23
|
+
}, [e, n]), t(() => {
|
|
24
|
+
let t = e.current;
|
|
25
|
+
if (!n || !t || typeof MutationObserver != "function") return;
|
|
26
|
+
let r, i = () => {
|
|
27
|
+
r === void 0 && (r = requestAnimationFrame(() => {
|
|
28
|
+
r = void 0, a(e.current, n);
|
|
29
|
+
}));
|
|
30
|
+
}, o = new MutationObserver(i);
|
|
31
|
+
for (let e = t.parentNode; e; e = e.parentNode) e.nodeType === Node.ELEMENT_NODE && o.observe(e, { attributes: !0 });
|
|
32
|
+
document.head && o.observe(document.head, {
|
|
33
|
+
childList: !0,
|
|
34
|
+
subtree: !0,
|
|
35
|
+
characterData: !0,
|
|
36
|
+
attributes: !0
|
|
37
|
+
});
|
|
38
|
+
let s = typeof matchMedia == "function" ? matchMedia("(prefers-color-scheme: dark)") : void 0;
|
|
39
|
+
return s?.addEventListener("change", i), () => {
|
|
40
|
+
o.disconnect(), s?.removeEventListener("change", i), r !== void 0 && cancelAnimationFrame(r);
|
|
41
|
+
};
|
|
42
|
+
}, [e, n]);
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { o as usePortalThemeSync };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { isThemeDevelopmentBuild as e, readThemeTokens as t, reportThemeIssues as n, themeIssues as r } from "../../../../util/dist/lib/theme/createTheme.js";
|
|
6
|
+
import "../../../../util/dist/index.js";
|
|
7
|
+
import { useEffect as i } from "react";
|
|
8
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/useRenderedThemeCheck.js
|
|
9
|
+
function a(a, o) {
|
|
10
|
+
i(() => {
|
|
11
|
+
if (!o || !e()) return;
|
|
12
|
+
let i = a.current, { getComputedStyle: s } = globalThis;
|
|
13
|
+
if (i && typeof s == "function") try {
|
|
14
|
+
let e = s(i);
|
|
15
|
+
n(r(t((t) => e.getPropertyValue(t))));
|
|
16
|
+
} catch {}
|
|
17
|
+
}, [o, a]);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { a as useRenderedThemeCheck };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { coerceAmountValueToMinorUnits as e } from "./lib/coerceAmountValueToMinorUnits.js";
|
|
2
|
+
import { createCurrencyFormatter as t } from "./lib/createCurrencyFormatter.js";
|
|
3
|
+
import { amountOutputToMajorUnits as n, minorExponentForCurrency as r } from "./lib/amountOutputToMajorUnits.js";
|
|
4
|
+
import { formatCalendarDate as i } from "./lib/formatCalendarDate.js";
|
|
5
|
+
import { formatTimestampDate as a } from "./lib/formatTimestampDate.js";
|
|
6
|
+
import { formatRejectionDate as o } from "./lib/formatRejectionDate.js";
|
|
7
|
+
import { currencySymbolForCode as s, formatMoneyExact as c } from "./lib/formatMoneyExact.js";
|
|
8
|
+
import { formatPhoneDisplay as l } from "./lib/formatPhoneDisplay.js";
|
|
9
|
+
import { getInitials as u } from "./lib/getInitials.js";
|
|
10
|
+
import { isValidAchAccountNumber as d } from "./lib/isValidAchAccountNumber.js";
|
|
11
|
+
import { mergeLabelTree as f } from "./lib/mergeLabelTree.js";
|
|
12
|
+
import { normalizeAmountOutputCurrencyCode as p } from "./lib/normalizeAmountOutputCurrencyCode.js";
|
|
13
|
+
import { parseAmountOutputMajorUnits as m } from "./lib/parseAmountOutputMajorUnits.js";
|
|
14
|
+
import { parseCalendarDate as h, parseDateOrTimestamp as g } from "./lib/parseCalendarDate.js";
|
|
15
|
+
import { getRelativeCalendarDay as _ } from "./lib/relativeCalendarDay.js";
|
|
16
|
+
import { parseDecimalAmountToMinorUnits as v } from "./lib/parseDecimalAmountToMinorUnits.js";
|
|
17
|
+
import { sumAmountOutputsMajorUnits as y } from "./lib/sumAmountOutputsMajorUnits.js";
|
|
18
|
+
import { getStateOptions as b, isStateValid as x } from "./lib/usStates.js";
|
|
19
|
+
import { createWidgetTokenManager as S } from "./lib/widgetTokenManager.js";
|
|
20
|
+
import { TESOURO_NEW_EMBEDDED_BANK_ACCOUNT_CREATED_SUCCESS_EVENT as C, TESOURO_NEW_EXTERNAL_BANK_ACCOUNT_LINKED_SUCCESS_EVENT as w, emitWidgetDomEvent as T } from "./lib/widgetDomEvents.js";
|
|
21
|
+
import { extractApiErrorMessage as E } from "./lib/apiErrors.js";
|
|
22
|
+
import { parseApiValidationErrors as D } from "./lib/apiValidationErrors.js";
|
|
23
|
+
import "./lib/auditHistory/auditHistoryActor.js";
|
|
24
|
+
import { buildReceivableAuditHistory as O } from "./lib/auditHistory/buildReceivableAuditHistory.js";
|
|
25
|
+
import { buildPayableAuditHistory as k, hasUnattributedAuditRows as A } from "./lib/auditHistory/buildPayableAuditHistory.js";
|
|
26
|
+
import "./lib/theme/color.js";
|
|
27
|
+
import { THEME_TOKEN_NAMES as j } from "./lib/theme/themeTokens.js";
|
|
28
|
+
import { createTheme as M, isThemeDevelopmentBuild as N, readThemeTokens as P, reportThemeIssues as F, themeIssues as I, themeToCss as L } from "./lib/theme/createTheme.js";
|
|
29
|
+
import "./lib/theme/index.js";
|
|
30
|
+
export { C as TESOURO_NEW_EMBEDDED_BANK_ACCOUNT_CREATED_SUCCESS_EVENT, w as TESOURO_NEW_EXTERNAL_BANK_ACCOUNT_LINKED_SUCCESS_EVENT, j as THEME_TOKEN_NAMES, n as amountOutputToMajorUnits, k as buildPayableAuditHistory, O as buildReceivableAuditHistory, e as coerceAmountValueToMinorUnits, t as createCurrencyFormatter, M as createTheme, S as createWidgetTokenManager, s as currencySymbolForCode, T as emitWidgetDomEvent, E as extractApiErrorMessage, i as formatCalendarDate, c as formatMoneyExact, l as formatPhoneDisplay, o as formatRejectionDate, a as formatTimestampDate, u as getInitials, _ as getRelativeCalendarDay, b as getStateOptions, A as hasUnattributedAuditRows, x as isStateValid, N as isThemeDevelopmentBuild, d as isValidAchAccountNumber, f as mergeLabelTree, r as minorExponentForCurrency, p as normalizeAmountOutputCurrencyCode, m as parseAmountOutputMajorUnits, D as parseApiValidationErrors, h as parseCalendarDate, g as parseDateOrTimestamp, v as parseDecimalAmountToMinorUnits, P as readThemeTokens, F as reportThemeIssues, y as sumAmountOutputsMajorUnits, I as themeIssues, L as themeToCss };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/color.js
|
|
2
|
+
var e = (e) => Math.min(1, Math.max(0, e)), t = {
|
|
3
|
+
white: {
|
|
4
|
+
r: 1,
|
|
5
|
+
g: 1,
|
|
6
|
+
b: 1,
|
|
7
|
+
alpha: 1
|
|
8
|
+
},
|
|
9
|
+
black: {
|
|
10
|
+
r: 0,
|
|
11
|
+
g: 0,
|
|
12
|
+
b: 0,
|
|
13
|
+
alpha: 1
|
|
14
|
+
},
|
|
15
|
+
transparent: {
|
|
16
|
+
r: 0,
|
|
17
|
+
g: 0,
|
|
18
|
+
b: 0,
|
|
19
|
+
alpha: 0
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function n(e) {
|
|
23
|
+
let t = e.slice(1);
|
|
24
|
+
if (!/^(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(t)) return null;
|
|
25
|
+
let n = t.length <= 4 ? t.split("").map((e) => e + e).join("") : t, r = (e) => Number.parseInt(n.slice(e * 2, e * 2 + 2), 16) / 255;
|
|
26
|
+
return {
|
|
27
|
+
r: r(0),
|
|
28
|
+
g: r(1),
|
|
29
|
+
b: r(2),
|
|
30
|
+
alpha: n.length === 8 ? r(3) : 1
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function r(e, t = 1) {
|
|
34
|
+
if (e === "none") return 0;
|
|
35
|
+
let n = /^(-?[\d.]+(?:e-?\d+)?)(%|deg)?$/i.exec(e);
|
|
36
|
+
if (!n) return null;
|
|
37
|
+
let r = Number.parseFloat(n[1]);
|
|
38
|
+
return Number.isNaN(r) ? null : n[2] === "%" ? r / 100 * t : r;
|
|
39
|
+
}
|
|
40
|
+
function i(e) {
|
|
41
|
+
let t = /^([a-z]+)\(\s*([^()]*)\)$/i.exec(e);
|
|
42
|
+
if (!t) return null;
|
|
43
|
+
let [n, r] = t[2].split("/").map((e) => e.trim()), i = n.split(/[\s,]+/).filter(Boolean);
|
|
44
|
+
return r === void 0 && i.length === 4 ? {
|
|
45
|
+
name: t[1].toLowerCase(),
|
|
46
|
+
args: i.slice(0, 3),
|
|
47
|
+
alpha: i[3]
|
|
48
|
+
} : {
|
|
49
|
+
name: t[1].toLowerCase(),
|
|
50
|
+
args: i,
|
|
51
|
+
alpha: r
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function a({ l: t, a: n, b: r, alpha: i }) {
|
|
55
|
+
let a = (t + .3963377774 * n + .2158037573 * r) ** 3, o = (t - .1055613458 * n - .0638541728 * r) ** 3, s = (t - .0894841775 * n - 1.291485548 * r) ** 3, c = [
|
|
56
|
+
4.0767416621 * a - 3.3077115913 * o + .2309699292 * s,
|
|
57
|
+
-1.2684380046 * a + 2.6097574011 * o - .3413193965 * s,
|
|
58
|
+
-.0041960863 * a - .7034186147 * o + 1.707614701 * s
|
|
59
|
+
].map((t) => {
|
|
60
|
+
let n = e(t);
|
|
61
|
+
return n <= .0031308 ? 12.92 * n : 1.055 * n ** (1 / 2.4) - .055;
|
|
62
|
+
});
|
|
63
|
+
return {
|
|
64
|
+
r: c[0],
|
|
65
|
+
g: c[1],
|
|
66
|
+
b: c[2],
|
|
67
|
+
alpha: i
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
var o = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
|
|
71
|
+
function s({ r: e, g: t, b: n, alpha: r }) {
|
|
72
|
+
let [i, a, s] = [
|
|
73
|
+
e,
|
|
74
|
+
t,
|
|
75
|
+
n
|
|
76
|
+
].map(o), c = Math.cbrt(.4122214708 * i + .5363325363 * a + .0514459929 * s), l = Math.cbrt(.2119034982 * i + .6806995451 * a + .1073969566 * s), u = Math.cbrt(.0883024619 * i + .2817188376 * a + .6299787005 * s);
|
|
77
|
+
return {
|
|
78
|
+
l: .2104542553 * c + .793617785 * l - .0040720468 * u,
|
|
79
|
+
a: 1.9779984951 * c - 2.428592205 * l + .4505937099 * u,
|
|
80
|
+
b: .0259040371 * c + .7827717662 * l - .808675766 * u,
|
|
81
|
+
alpha: r
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function c(e, t, n, r) {
|
|
85
|
+
let i = (t) => (t + e / 30) % 12, a = t * Math.min(n, 1 - n), o = (e) => n - a * Math.max(-1, Math.min(i(e) - 3, Math.min(9 - i(e), 1)));
|
|
86
|
+
return {
|
|
87
|
+
r: o(0),
|
|
88
|
+
g: o(8),
|
|
89
|
+
b: o(4),
|
|
90
|
+
alpha: r
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function l(o) {
|
|
94
|
+
let s = o.trim().toLowerCase();
|
|
95
|
+
if (s in t) return t[s];
|
|
96
|
+
if (s.startsWith("#")) return n(s);
|
|
97
|
+
let l = i(s);
|
|
98
|
+
if (!l || l.args.length !== 3) return null;
|
|
99
|
+
let u = l.alpha === void 0 ? 1 : r(l.alpha, 1);
|
|
100
|
+
if (u === null) return null;
|
|
101
|
+
let [d, f, p] = l.args;
|
|
102
|
+
switch (l.name) {
|
|
103
|
+
case "rgb":
|
|
104
|
+
case "rgba": {
|
|
105
|
+
let t = [
|
|
106
|
+
d,
|
|
107
|
+
f,
|
|
108
|
+
p
|
|
109
|
+
].map((e) => r(e, 255));
|
|
110
|
+
if (t.some((e) => e === null)) return null;
|
|
111
|
+
let [n, i, a] = t;
|
|
112
|
+
return {
|
|
113
|
+
r: e(n / 255),
|
|
114
|
+
g: e(i / 255),
|
|
115
|
+
b: e(a / 255),
|
|
116
|
+
alpha: u
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
case "hsl":
|
|
120
|
+
case "hsla": {
|
|
121
|
+
let e = r(d), t = r(f, 1), n = r(p, 1);
|
|
122
|
+
if (e === null || t === null || n === null) return null;
|
|
123
|
+
let i = (e, t) => t.endsWith("%") ? e : e / 100;
|
|
124
|
+
return c((e % 360 + 360) % 360, i(t, f), i(n, p), u);
|
|
125
|
+
}
|
|
126
|
+
case "oklch": {
|
|
127
|
+
let e = r(d, 1), t = r(f, .4), n = r(p);
|
|
128
|
+
if (e === null || t === null || n === null) return null;
|
|
129
|
+
let i = n * Math.PI / 180;
|
|
130
|
+
return a({
|
|
131
|
+
l: e,
|
|
132
|
+
a: t * Math.cos(i),
|
|
133
|
+
b: t * Math.sin(i),
|
|
134
|
+
alpha: u
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
case "oklab": {
|
|
138
|
+
let e = r(d, 1), t = r(f, .4), n = r(p, .4);
|
|
139
|
+
return e === null || t === null || n === null ? null : a({
|
|
140
|
+
l: e,
|
|
141
|
+
a: t,
|
|
142
|
+
b: n,
|
|
143
|
+
alpha: u
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
default: return null;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function u(t, n, r) {
|
|
150
|
+
let i = s(t), o = s(n), c = e(r), l = i.alpha * c + o.alpha * (1 - c);
|
|
151
|
+
if (l === 0) return {
|
|
152
|
+
r: 0,
|
|
153
|
+
g: 0,
|
|
154
|
+
b: 0,
|
|
155
|
+
alpha: 0
|
|
156
|
+
};
|
|
157
|
+
let u = (e, t) => (e * i.alpha * c + t * o.alpha * (1 - c)) / l;
|
|
158
|
+
return a({
|
|
159
|
+
l: u(i.l, o.l),
|
|
160
|
+
a: u(i.a, o.a),
|
|
161
|
+
b: u(i.b, o.b),
|
|
162
|
+
alpha: l
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function d(e, t) {
|
|
166
|
+
let n = (t, n) => t * e.alpha + n * (1 - e.alpha);
|
|
167
|
+
return {
|
|
168
|
+
r: n(e.r, t.r),
|
|
169
|
+
g: n(e.g, t.g),
|
|
170
|
+
b: n(e.b, t.b),
|
|
171
|
+
alpha: 1
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function f({ r: e, g: t, b: n }) {
|
|
175
|
+
return .2126 * o(e) + .7152 * o(t) + .0722 * o(n);
|
|
176
|
+
}
|
|
177
|
+
function p(e, t) {
|
|
178
|
+
let n = Math.max(f(e), f(t)), r = Math.min(f(e), f(t));
|
|
179
|
+
return (n + .05) / (r + .05);
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
export { d as composite, p as contrastRatio, u as mixOklab, l as parseCssColor };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { composite as e, contrastRatio as t, mixOklab as n, parseCssColor as r } from "./color.js";
|
|
2
|
+
import { DEFAULT_THEME_TOKENS as i, MIN_TEXT_CONTRAST as a, THEME_CONTRAST_PAIRS as o, THEME_RADIUS_RANGE_REM as s, THEME_TOKEN_FALLBACKS as c, THEME_TOKEN_NAMES as l, THEME_TONES as u } from "./themeTokens.js";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js
|
|
4
|
+
var d = new Map(Object.entries(l).map(([e, t]) => [t, e])), f = new Set(Object.values(l));
|
|
5
|
+
function p(e) {
|
|
6
|
+
let t = /^(-?[\d.]+)(rem|px|em)?$/i.exec(e.trim());
|
|
7
|
+
if (!t) return null;
|
|
8
|
+
let n = Number.parseFloat(t[1]);
|
|
9
|
+
return Number.isNaN(n) ? null : t[2] ? t[2].toLowerCase() === "px" ? n / 16 : n : n === 0 ? 0 : null;
|
|
10
|
+
}
|
|
11
|
+
function m(t, n) {
|
|
12
|
+
return t.alpha >= 1 ? t : n ? e(t, n) : null;
|
|
13
|
+
}
|
|
14
|
+
function h(e) {
|
|
15
|
+
let l = [], d = { ...i };
|
|
16
|
+
for (let [t, n] of Object.entries(e)) n?.trim() && (d[t] = n);
|
|
17
|
+
let f = (e) => {
|
|
18
|
+
let t = d[e]?.trim();
|
|
19
|
+
return t ? r(t) : null;
|
|
20
|
+
}, h = (e) => {
|
|
21
|
+
let t = c[e];
|
|
22
|
+
return f(e) ?? (t ? f(t) : null);
|
|
23
|
+
}, g = h("--ttw-background"), _ = g && g.alpha >= 1 ? g : null, v = (e, n, r, i, o = a) => {
|
|
24
|
+
if (!r || !i) return;
|
|
25
|
+
let s = m(r, _), c = s ? m(i, s) : null;
|
|
26
|
+
if (!s || !c) return;
|
|
27
|
+
let u = t(s, c);
|
|
28
|
+
u < o && l.push({
|
|
29
|
+
kind: "contrast",
|
|
30
|
+
fill: e,
|
|
31
|
+
text: n,
|
|
32
|
+
ratio: Math.round(u * 100) / 100,
|
|
33
|
+
minimum: o
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
for (let { fill: e, text: t, minimum: n } of o) (c[e] === void 0 || c[t] === void 0 || f(e) || f(t)) && v(e, t, h(e), h(t), n);
|
|
37
|
+
let y = h("--ttw-foreground");
|
|
38
|
+
for (let e of u) {
|
|
39
|
+
let t = h(e.hue), r = h(e.subtle) ?? (t && g ? n(t, g, .12) : null), i = h(e.text) ?? (t && y ? n(t, y, .6) : null);
|
|
40
|
+
v(e.subtle, e.text, r, i);
|
|
41
|
+
}
|
|
42
|
+
let b = d["--ttw-radius"]?.trim();
|
|
43
|
+
if (b) {
|
|
44
|
+
let e = p(b);
|
|
45
|
+
e !== null && (e < s.min || e > s.max) && l.push({
|
|
46
|
+
kind: "radius",
|
|
47
|
+
value: b
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return l;
|
|
51
|
+
}
|
|
52
|
+
var g = "[@tesouro/embedded-components-react]";
|
|
53
|
+
function _(e) {
|
|
54
|
+
switch (e.kind) {
|
|
55
|
+
case "unknown-key": return `${g} createTheme: "${e.key}" is not a theme token, so it does nothing. Known keys: ${Object.keys(l).join(", ")}.`;
|
|
56
|
+
case "contrast": {
|
|
57
|
+
let t = (e) => d.get(e) ?? e;
|
|
58
|
+
return `${g} Theme contrast: ${t(e.text)} (${e.text}) on ${t(e.fill)} (${e.fill}) is ${e.ratio}:1. Text needs at least ${e.minimum}:1 to stay readable.`;
|
|
59
|
+
}
|
|
60
|
+
case "radius": return `${g} Theme radius "${e.value}" is outside ${s.min}–${s.max}rem, the range components are designed for.`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function v() {
|
|
64
|
+
try {
|
|
65
|
+
return process.env.NODE_ENV !== "production";
|
|
66
|
+
} catch {
|
|
67
|
+
return !1;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
var y = /* @__PURE__ */ new Set();
|
|
71
|
+
function b(e) {
|
|
72
|
+
if (v()) for (let t of e) {
|
|
73
|
+
let e = _(t);
|
|
74
|
+
if (!y.has(e)) {
|
|
75
|
+
y.add(e);
|
|
76
|
+
try {
|
|
77
|
+
console.warn(e);
|
|
78
|
+
} catch {}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function x(e) {
|
|
83
|
+
let t = {}, n = [];
|
|
84
|
+
for (let [r, i] of Object.entries(e ?? {})) {
|
|
85
|
+
let e = l[r];
|
|
86
|
+
if (!e) {
|
|
87
|
+
n.push({
|
|
88
|
+
kind: "unknown-key",
|
|
89
|
+
key: r
|
|
90
|
+
});
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
typeof i == "string" && i.trim() !== "" && (t[e] = i.trim());
|
|
94
|
+
}
|
|
95
|
+
return v() && (n.push(...h(t)), b(n)), t;
|
|
96
|
+
}
|
|
97
|
+
function S(e, t = ":root") {
|
|
98
|
+
return `${t} {\n${Object.entries(e).filter((e) => f.has(e[0]) && typeof e[1] == "string").map(([e, t]) => ` ${e}: ${t};`).join("\n")}\n}`;
|
|
99
|
+
}
|
|
100
|
+
function C(e) {
|
|
101
|
+
let t = {};
|
|
102
|
+
for (let n of Object.values(l)) {
|
|
103
|
+
let r = e(n)?.trim();
|
|
104
|
+
r && (t[n] = r);
|
|
105
|
+
}
|
|
106
|
+
return t;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { x as createTheme, _ as describeThemeIssue, v as isThemeDevelopmentBuild, C as readThemeTokens, b as reportThemeIssues, h as themeIssues, S as themeToCss };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js
|
|
2
|
+
var e = {
|
|
3
|
+
radius: "--ttw-radius",
|
|
4
|
+
fontFamily: "--ttw-font-family",
|
|
5
|
+
background: "--ttw-background",
|
|
6
|
+
foreground: "--ttw-foreground",
|
|
7
|
+
card: "--ttw-card",
|
|
8
|
+
cardForeground: "--ttw-card-foreground",
|
|
9
|
+
popover: "--ttw-popover",
|
|
10
|
+
popoverForeground: "--ttw-popover-foreground",
|
|
11
|
+
primary: "--ttw-primary",
|
|
12
|
+
primaryForeground: "--ttw-primary-foreground",
|
|
13
|
+
secondary: "--ttw-secondary",
|
|
14
|
+
secondaryForeground: "--ttw-secondary-foreground",
|
|
15
|
+
muted: "--ttw-muted",
|
|
16
|
+
mutedForeground: "--ttw-muted-foreground",
|
|
17
|
+
accent: "--ttw-accent",
|
|
18
|
+
accentForeground: "--ttw-accent-foreground",
|
|
19
|
+
border: "--ttw-border",
|
|
20
|
+
input: "--ttw-input",
|
|
21
|
+
ring: "--ttw-ring",
|
|
22
|
+
overlay: "--ttw-overlay",
|
|
23
|
+
destructive: "--ttw-destructive",
|
|
24
|
+
destructiveForeground: "--ttw-destructive-foreground",
|
|
25
|
+
destructiveSubtle: "--ttw-destructive-subtle",
|
|
26
|
+
destructiveSubtleForeground: "--ttw-destructive-subtle-foreground",
|
|
27
|
+
info: "--ttw-info",
|
|
28
|
+
infoSubtle: "--ttw-info-subtle",
|
|
29
|
+
infoForeground: "--ttw-info-foreground",
|
|
30
|
+
success: "--ttw-success",
|
|
31
|
+
successSubtle: "--ttw-success-subtle",
|
|
32
|
+
successForeground: "--ttw-success-foreground",
|
|
33
|
+
warning: "--ttw-warning",
|
|
34
|
+
warningSubtle: "--ttw-warning-subtle",
|
|
35
|
+
warningForeground: "--ttw-warning-foreground",
|
|
36
|
+
violet: "--ttw-violet",
|
|
37
|
+
violetSubtle: "--ttw-violet-subtle",
|
|
38
|
+
violetForeground: "--ttw-violet-foreground",
|
|
39
|
+
cyan: "--ttw-cyan",
|
|
40
|
+
cyanSubtle: "--ttw-cyan-subtle",
|
|
41
|
+
cyanForeground: "--ttw-cyan-foreground",
|
|
42
|
+
surfaceSubtle: "--ttw-surface-subtle",
|
|
43
|
+
sidebar: "--ttw-sidebar",
|
|
44
|
+
sidebarForeground: "--ttw-sidebar-foreground",
|
|
45
|
+
sidebarPrimary: "--ttw-sidebar-primary",
|
|
46
|
+
sidebarPrimaryForeground: "--ttw-sidebar-primary-foreground",
|
|
47
|
+
sidebarAccent: "--ttw-sidebar-accent",
|
|
48
|
+
sidebarAccentForeground: "--ttw-sidebar-accent-foreground",
|
|
49
|
+
sidebarBorder: "--ttw-sidebar-border",
|
|
50
|
+
sidebarRing: "--ttw-sidebar-ring"
|
|
51
|
+
}, t = {
|
|
52
|
+
"--ttw-radius": "0.625rem",
|
|
53
|
+
"--ttw-background": "oklch(1 0 0)",
|
|
54
|
+
"--ttw-foreground": "oklch(0.145 0 0)",
|
|
55
|
+
"--ttw-card": "oklch(1 0 0)",
|
|
56
|
+
"--ttw-card-foreground": "oklch(0.145 0 0)",
|
|
57
|
+
"--ttw-popover": "oklch(1 0 0)",
|
|
58
|
+
"--ttw-popover-foreground": "oklch(0.145 0 0)",
|
|
59
|
+
"--ttw-primary": "oklch(0.457 0.24 264.052)",
|
|
60
|
+
"--ttw-primary-foreground": "oklch(0.93 0.034 272.052)",
|
|
61
|
+
"--ttw-secondary": "oklch(0.97 0 0)",
|
|
62
|
+
"--ttw-secondary-foreground": "oklch(0.205 0 0)",
|
|
63
|
+
"--ttw-muted": "oklch(0.97 0 0)",
|
|
64
|
+
"--ttw-muted-foreground": "oklch(0.556 0 0)",
|
|
65
|
+
"--ttw-accent": "oklch(0.97 0 0)",
|
|
66
|
+
"--ttw-accent-foreground": "oklch(0.205 0 0)",
|
|
67
|
+
"--ttw-destructive": "#dc2626",
|
|
68
|
+
"--ttw-destructive-foreground": "#fff",
|
|
69
|
+
"--ttw-border": "oklch(0.922 0 0)",
|
|
70
|
+
"--ttw-input": "oklch(0.922 0 0)",
|
|
71
|
+
"--ttw-ring": "oklch(0.708 0 0)",
|
|
72
|
+
"--ttw-info": "#2563eb",
|
|
73
|
+
"--ttw-success": "#16a34a",
|
|
74
|
+
"--ttw-warning": "#d97706",
|
|
75
|
+
"--ttw-violet": "#7c3aed",
|
|
76
|
+
"--ttw-cyan": "#0891b2",
|
|
77
|
+
"--ttw-overlay": "oklch(0 0 0 / 0.5)"
|
|
78
|
+
}, n = {
|
|
79
|
+
"--ttw-surface-subtle": "--ttw-muted",
|
|
80
|
+
"--ttw-sidebar": "--ttw-card",
|
|
81
|
+
"--ttw-sidebar-foreground": "--ttw-foreground",
|
|
82
|
+
"--ttw-sidebar-primary": "--ttw-primary",
|
|
83
|
+
"--ttw-sidebar-primary-foreground": "--ttw-primary-foreground",
|
|
84
|
+
"--ttw-sidebar-accent": "--ttw-accent",
|
|
85
|
+
"--ttw-sidebar-accent-foreground": "--ttw-accent-foreground",
|
|
86
|
+
"--ttw-sidebar-border": "--ttw-border",
|
|
87
|
+
"--ttw-sidebar-ring": "--ttw-ring"
|
|
88
|
+
}, r = 4.5, i = [
|
|
89
|
+
{
|
|
90
|
+
fill: "--ttw-background",
|
|
91
|
+
text: "--ttw-foreground"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
fill: "--ttw-card",
|
|
95
|
+
text: "--ttw-card-foreground"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
fill: "--ttw-popover",
|
|
99
|
+
text: "--ttw-popover-foreground"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
fill: "--ttw-primary",
|
|
103
|
+
text: "--ttw-primary-foreground"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
fill: "--ttw-secondary",
|
|
107
|
+
text: "--ttw-secondary-foreground"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
fill: "--ttw-muted",
|
|
111
|
+
text: "--ttw-muted-foreground",
|
|
112
|
+
minimum: 3
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
fill: "--ttw-accent",
|
|
116
|
+
text: "--ttw-accent-foreground"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
fill: "--ttw-destructive",
|
|
120
|
+
text: "--ttw-destructive-foreground"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
fill: "--ttw-sidebar",
|
|
124
|
+
text: "--ttw-sidebar-foreground"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
fill: "--ttw-sidebar-primary",
|
|
128
|
+
text: "--ttw-sidebar-primary-foreground"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
fill: "--ttw-sidebar-accent",
|
|
132
|
+
text: "--ttw-sidebar-accent-foreground"
|
|
133
|
+
}
|
|
134
|
+
], a = [
|
|
135
|
+
{
|
|
136
|
+
hue: "--ttw-info",
|
|
137
|
+
subtle: "--ttw-info-subtle",
|
|
138
|
+
text: "--ttw-info-foreground"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
hue: "--ttw-success",
|
|
142
|
+
subtle: "--ttw-success-subtle",
|
|
143
|
+
text: "--ttw-success-foreground"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
hue: "--ttw-warning",
|
|
147
|
+
subtle: "--ttw-warning-subtle",
|
|
148
|
+
text: "--ttw-warning-foreground"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
hue: "--ttw-destructive",
|
|
152
|
+
subtle: "--ttw-destructive-subtle",
|
|
153
|
+
text: "--ttw-destructive-subtle-foreground"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
hue: "--ttw-violet",
|
|
157
|
+
subtle: "--ttw-violet-subtle",
|
|
158
|
+
text: "--ttw-violet-foreground"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
hue: "--ttw-cyan",
|
|
162
|
+
subtle: "--ttw-cyan-subtle",
|
|
163
|
+
text: "--ttw-cyan-foreground"
|
|
164
|
+
}
|
|
165
|
+
], o = {
|
|
166
|
+
min: 0,
|
|
167
|
+
max: 1.25
|
|
168
|
+
};
|
|
169
|
+
//#endregion
|
|
170
|
+
export { t as DEFAULT_THEME_TOKENS, r as MIN_TEXT_CONTRAST, i as THEME_CONTRAST_PAIRS, o as THEME_RADIUS_RANGE_REM, n as THEME_TOKEN_FALLBACKS, e as THEME_TOKEN_NAMES, a as THEME_TONES };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { TESOURO_NEW_EMBEDDED_BANK_ACCOUNT_CREATED_SUCCESS_EVENT as e, TESOURO_NEW_EXTERNAL_BANK_ACCOUNT_LINKED_SUCCESS_EVENT as t } from "../../../../../shared/util/dist/lib/widgetDomEvents.js";
|
|
6
|
+
import "../../../../../shared/util/dist/index.js";
|
|
6
7
|
import { isOrganizationOnItsWay as ee } from "../../../../../shared/data-access/dist/lib/organizationStatus.js";
|
|
7
8
|
import { useEmbedApi as n } from "../../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
9
|
import { Scope as r } from "../../../../../shared/data-access/dist/lib/scopes.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { formatLabel as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { amountOutputToMajorUnits as t } from "../../../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
|
|
3
3
|
import { formatMoneyExact as n } from "../../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
4
|
+
import "../../../../../shared/util/dist/index.js";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js
|
|
5
6
|
function r(e, t, n) {
|
|
6
7
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -7,6 +7,7 @@ import { coerceAmountValueToMinorUnits as t } from "../../../../../shared/util/d
|
|
|
7
7
|
import { amountOutputToMajorUnits as n, minorExponentForCurrency as r } from "../../../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
|
|
8
8
|
import { currencySymbolForCode as i, formatMoneyExact as a } from "../../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
9
9
|
import { parseDecimalAmountToMinorUnits as o } from "../../../../../shared/util/dist/lib/parseDecimalAmountToMinorUnits.js";
|
|
10
|
+
import "../../../../../shared/util/dist/index.js";
|
|
10
11
|
import "../../../../../shared/ui/dist/index.js";
|
|
11
12
|
import { TRANSFERS_ANALYTICS_EVENTS as s } from "../analytics/events.js";
|
|
12
13
|
import { useCreateBookTransferMutation as c } from "../../../../data-access/dist/index7.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WIDGET_SUITE_SHELL_LABELS_EN as e } from "../../../../ui/dist/index2.js";
|
|
2
2
|
import "../../../../ui/dist/index.js";
|
|
3
3
|
import { mergeLabelTree as t } from "../../../../../shared/util/dist/lib/mergeLabelTree.js";
|
|
4
|
+
import "../../../../../shared/util/dist/index.js";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/labels.js
|
|
5
6
|
var n = {
|
|
6
7
|
shell: e,
|