@aurora-is-near/intents-swap-widget 3.21.0 → 3.21.1
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/dist/components/WidgetContainer.js +23 -14
- package/dist/components/WidgetContainer.js.map +1 -1
- package/dist/{config-CyBNYvb1.js → config-DAMaL9k2.js} +2 -2
- package/dist/{config-CyBNYvb1.js.map → config-DAMaL9k2.js.map} +1 -1
- package/dist/config.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/ext/alchemy/index.js +1 -1
- package/dist/ext/index.js +1 -1
- package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
- package/dist/features/BalanceRpcLoader/index.js +1 -1
- package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
- package/dist/features/ChainsDropdown/index.js +1 -1
- package/dist/features/ChainsSelector/index.js +1 -1
- package/dist/features/DepositMethodSwitcher.js +1 -1
- package/dist/features/ErrorBoundary.js +1 -1
- package/dist/features/ExternalDeposit.js +1 -1
- package/dist/features/SendAddress/index.js +1 -1
- package/dist/features/SendAddress/useNotification.js +1 -1
- package/dist/features/SubmitButton/index.js +1 -1
- package/dist/features/SuccessScreen/index.js +1 -1
- package/dist/features/SuccessScreen/useSummaryItemsCount.js +1 -1
- package/dist/features/SwapDirectionSwitcher.js +1 -1
- package/dist/features/SwapQuote/SwapQuote.js +1 -1
- package/dist/features/SwapQuote/index.js +1 -1
- package/dist/features/TokenInput/TokenInput.js +1 -1
- package/dist/features/TokenInput/TokenInputEmpty.js +1 -1
- package/dist/features/TokenInput/TokenInputSource.js +1 -1
- package/dist/features/TokenInput/TokenInputTarget.js +1 -1
- package/dist/features/TokenInput/WalletBalance.js +1 -1
- package/dist/features/TokenInput/hooks/index.js +1 -1
- package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
- package/dist/features/TokenInput/index.js +1 -1
- package/dist/features/TokensList/TokenItem.js +1 -1
- package/dist/features/TokensList/TokensList.js +1 -1
- package/dist/features/TokensList/index.js +1 -1
- package/dist/features/TokensModal.js +1 -1
- package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +1 -1
- package/dist/features/WalletCompatibilityCheck/index.js +1 -1
- package/dist/features/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useAllTokens.js +1 -1
- package/dist/hooks/useChains.js +1 -1
- package/dist/hooks/useCompatibilityCheck.js +1 -1
- package/dist/hooks/useDefaultToken.js +1 -1
- package/dist/hooks/useExternalDepositStatus/index.js +1 -1
- package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
- package/dist/hooks/useIntentsBalance.js +1 -1
- package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
- package/dist/hooks/useMakeDepositAddress.js +1 -1
- package/dist/hooks/useMakeIntentsTransfer.js +1 -1
- package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
- package/dist/hooks/useMakeQuote.js +1 -1
- package/dist/hooks/useMakeQuoteTransfer.js +1 -1
- package/dist/hooks/useMakeTransfer.js +1 -1
- package/dist/hooks/useMergedBalance.js +1 -1
- package/dist/hooks/useSwitchChain.js +1 -1
- package/dist/hooks/useTheme.js +1 -1
- package/dist/hooks/useTokenInputPair.js +1 -1
- package/dist/hooks/useTokens.js +1 -1
- package/dist/hooks/useTokensFiltered.js +1 -1
- package/dist/hooks/useTokensIntentsUnique.js +1 -1
- package/dist/index.js +1 -1
- package/dist/machine/effects/index.js +1 -1
- package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
- package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
- package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
- package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
- package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
- package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
- package/dist/machine/effects/useWalletConnEffect.js +1 -1
- package/dist/machine/events/index.js +1 -1
- package/dist/machine/events/tokenSelect.js +1 -1
- package/dist/machine/events/validateInputAndMoveTo.js +1 -1
- package/dist/machine/events/validateInputs.js +1 -1
- package/dist/machine/index.js +1 -1
- package/dist/machine/snap.js +1 -1
- package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
- package/dist/machine/subscriptions/index.js +1 -1
- package/dist/theme/ThemeProvider.js +1 -1
- package/dist/utils/intents/signers/near.js +1 -1
- package/dist/utils/intents/signers/privy.js +1 -1
- package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
- package/dist/widgets/WidgetDeposit/index.js +14 -15
- package/dist/widgets/WidgetDeposit/index.js.map +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
- package/dist/widgets/WidgetSwap/index.js +14 -15
- package/dist/widgets/WidgetSwap/index.js.map +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
- package/dist/widgets/WidgetWithdraw/index.js +12 -13
- package/dist/widgets/WidgetWithdraw/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WidgetContainer.tsx +11 -1
- package/src/widgets/WidgetDeposit/index.tsx +7 -10
- package/src/widgets/WidgetSwap/index.tsx +7 -10
- package/src/widgets/WidgetWithdraw/index.tsx +7 -10
- package/dist/components/BaseContainer.d.ts +0 -2
- package/dist/components/BaseContainer.js +0 -23
- package/dist/components/BaseContainer.js.map +0 -1
- package/src/components/BaseContainer.tsx +0 -19
|
@@ -3,7 +3,7 @@ import "../../utils/near/checkNearAccountExists.js";
|
|
|
3
3
|
import "../../utils/checkers/isNotEmptyAmount.js";
|
|
4
4
|
import "../../utils/checkers/isValidBigint.js";
|
|
5
5
|
import "../../utils/near/isNearAddress.js";
|
|
6
|
-
import { K as I, L as d, N as u } from "../../config-
|
|
6
|
+
import { K as I, L as d, N as u } from "../../config-DAMaL9k2.js";
|
|
7
7
|
import "../guards/index.js";
|
|
8
8
|
import "../machine.js";
|
|
9
9
|
import "../guards/checks/isBalanceSufficient.js";
|
package/dist/machine/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, u as t, a as r, c as a, b as f } from "../config-
|
|
1
|
+
import { r as o, u as t, a as r, c as a, b as f } from "../config-DAMaL9k2.js";
|
|
2
2
|
import { guardStates as S } from "./guards/index.js";
|
|
3
3
|
import { machine as n, moveTo as u } from "./machine.js";
|
|
4
4
|
import { fireEvent as i } from "./events/utils/fireEvent.js";
|
package/dist/machine/snap.js
CHANGED
|
@@ -2,7 +2,7 @@ import "valtio";
|
|
|
2
2
|
import "derive-valtio";
|
|
3
3
|
import "./computed/getIsNativeNearDeposit.js";
|
|
4
4
|
import "./computed/getIsDirectTokenOnNearDeposit.js";
|
|
5
|
-
import { u as h, a as b, b as d } from "../config-
|
|
5
|
+
import { u as h, a as b, b as d } from "../config-DAMaL9k2.js";
|
|
6
6
|
import "./machine.js";
|
|
7
7
|
import "./guards/index.js";
|
|
8
8
|
import "./computed/getUsdTradeDelta.js";
|
|
@@ -5,7 +5,7 @@ import "./checkers/isOnlyErrorChanged.js";
|
|
|
5
5
|
import "./checkers/isValidInitialState.js";
|
|
6
6
|
import "./checkers/isWalletDisconnected.js";
|
|
7
7
|
import "./checkers/isSendAddressForbidden.js";
|
|
8
|
-
import { X as g, Y as u } from "../../config-
|
|
8
|
+
import { X as g, Y as u } from "../../config-DAMaL9k2.js";
|
|
9
9
|
import "./checkers/isAmountChangedFromQuote.js";
|
|
10
10
|
import "ethers";
|
|
11
11
|
import "../machine.js";
|
|
@@ -3,7 +3,7 @@ import { useState as b, useEffect as p, useCallback as R } from "react";
|
|
|
3
3
|
import { useTokenModal as A } from "../../hooks/useTokenModal.js";
|
|
4
4
|
import { useTypedTranslation as F } from "../../localisation.js";
|
|
5
5
|
import { WidgetDepositSkeleton as S } from "./WidgetDepositSkeleton.js";
|
|
6
|
-
import { b as q, u as j, y as N, n as O, c as Q, p as U, o as K, S as P } from "../../config-
|
|
6
|
+
import { b as q, u as j, y as N, n as O, c as Q, p as U, o as K, S as P } from "../../config-DAMaL9k2.js";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "@headlessui/react";
|
|
9
9
|
import "@material-symbols-svg/react-rounded/icons/chevron-left";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import a from "clsx";
|
|
3
3
|
import { SkeletonBox as s } from "../../components/SkeletonBox.js";
|
|
4
|
-
import { y as i } from "../../config-
|
|
4
|
+
import { y as i } from "../../config-DAMaL9k2.js";
|
|
5
5
|
const p = () => {
|
|
6
6
|
const { hideTokenInputHeadings: l } = i();
|
|
7
7
|
return /* @__PURE__ */ o("div", { className: "w-full gap-sw-xl relative flex flex-col", children: [
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { WidgetDepositContent as d } from "./WidgetDepositContent.js";
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { WidgetContainer as n } from "../../components/WidgetContainer.js";
|
|
3
|
+
import { WidgetDepositContent as p } from "./WidgetDepositContent.js";
|
|
5
4
|
const g = ({
|
|
6
|
-
HeaderComponent:
|
|
5
|
+
HeaderComponent: o,
|
|
7
6
|
FooterComponent: i,
|
|
8
|
-
isFullPage:
|
|
9
|
-
className:
|
|
10
|
-
...
|
|
11
|
-
}) => /* @__PURE__ */
|
|
12
|
-
|
|
7
|
+
isFullPage: e,
|
|
8
|
+
className: r,
|
|
9
|
+
...m
|
|
10
|
+
}) => /* @__PURE__ */ t(
|
|
11
|
+
n,
|
|
13
12
|
{
|
|
14
|
-
className:
|
|
15
|
-
isFullPage:
|
|
16
|
-
HeaderComponent:
|
|
13
|
+
className: r,
|
|
14
|
+
isFullPage: e,
|
|
15
|
+
HeaderComponent: o,
|
|
17
16
|
FooterComponent: i,
|
|
18
|
-
children: /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ t(p, { ...m })
|
|
19
18
|
}
|
|
20
|
-
)
|
|
19
|
+
);
|
|
21
20
|
export {
|
|
22
21
|
g as WidgetDeposit
|
|
23
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetDeposit/index.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetDeposit/index.tsx"],"sourcesContent":["import {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetDepositContent } from './WidgetDepositContent';\n\nexport type WidgetDepositProps = Props & Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetDeposit = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetDepositProps) => (\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetDepositContent {...widgetProps} />\n </WidgetContainer>\n);\n"],"names":["WidgetDeposit","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","jsx","WidgetContainer","WidgetDepositContent"],"mappings":";;;AAQO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAH;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAI,EAACE,GAAA,EAAsB,GAAGH,EAAA,CAAa;AAAA,EAAA;AACzC;"}
|
|
@@ -3,7 +3,7 @@ import { useState as S, useEffect as w } from "react";
|
|
|
3
3
|
import { useTokenModal as N } from "../../hooks/useTokenModal.js";
|
|
4
4
|
import { WidgetSwapSkeleton as T } from "./WidgetSwapSkeleton.js";
|
|
5
5
|
import { useTypedTranslation as O } from "../../localisation.js";
|
|
6
|
-
import { b as Q, u as j, y as q, n as F, c as U, p as b, o as K, S as P } from "../../config-
|
|
6
|
+
import { b as Q, u as j, y as q, n as F, c as U, p as b, o as K, S as P } from "../../config-DAMaL9k2.js";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "@headlessui/react";
|
|
9
9
|
import "@material-symbols-svg/react-rounded/icons/chevron-left";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import o from "clsx";
|
|
3
3
|
import { SkeletonBox as s } from "../../components/SkeletonBox.js";
|
|
4
|
-
import { y as i } from "../../config-
|
|
4
|
+
import { y as i } from "../../config-DAMaL9k2.js";
|
|
5
5
|
const m = () => {
|
|
6
6
|
const { hideTokenInputHeadings: e } = i();
|
|
7
7
|
return /* @__PURE__ */ a("div", { className: "w-full gap-sw-lg relative flex flex-col", children: [
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
FooterComponent: t,
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { WidgetContainer as n } from "../../components/WidgetContainer.js";
|
|
3
|
+
import { WidgetSwapContent as p } from "./WidgetSwapContent.js";
|
|
4
|
+
const g = ({
|
|
5
|
+
HeaderComponent: o,
|
|
6
|
+
FooterComponent: r,
|
|
8
7
|
isFullPage: i,
|
|
9
8
|
className: e,
|
|
10
|
-
...
|
|
11
|
-
}) => /* @__PURE__ */
|
|
12
|
-
|
|
9
|
+
...m
|
|
10
|
+
}) => /* @__PURE__ */ t(
|
|
11
|
+
n,
|
|
13
12
|
{
|
|
14
13
|
className: e,
|
|
15
14
|
isFullPage: i,
|
|
16
|
-
HeaderComponent:
|
|
17
|
-
FooterComponent:
|
|
18
|
-
children: /* @__PURE__ */
|
|
15
|
+
HeaderComponent: o,
|
|
16
|
+
FooterComponent: r,
|
|
17
|
+
children: /* @__PURE__ */ t(p, { ...m })
|
|
19
18
|
}
|
|
20
|
-
)
|
|
19
|
+
);
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
g as WidgetSwap
|
|
23
22
|
};
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetSwap/index.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetSwap/index.tsx"],"sourcesContent":["import {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetSwapContent } from './WidgetSwapContent';\n\nexport type WidgetSwapProps = Props & Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetSwap = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetSwapProps) => (\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetSwapContent {...widgetProps} />\n </WidgetContainer>\n);\n"],"names":["WidgetSwap","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","jsx","WidgetContainer","WidgetSwapContent"],"mappings":";;;AAQO,MAAMA,IAAa,CAAC;AAAA,EACzB,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAH;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAI,EAACE,GAAA,EAAmB,GAAGH,EAAA,CAAa;AAAA,EAAA;AACtC;"}
|
|
@@ -3,7 +3,7 @@ import { useState as _, useEffect as b } from "react";
|
|
|
3
3
|
import { useTokenModal as N } from "../../hooks/useTokenModal.js";
|
|
4
4
|
import { WidgetWithdrawSkeleton as y } from "./WidgetWithdrawSkeleton.js";
|
|
5
5
|
import { useTypedTranslation as O } from "../../localisation.js";
|
|
6
|
-
import { b as Q, u as j, y as q, n as F, c as U, p as T, o as K, S as P } from "../../config-
|
|
6
|
+
import { b as Q, u as j, y as q, n as F, c as U, p as T, o as K, S as P } from "../../config-DAMaL9k2.js";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "@headlessui/react";
|
|
9
9
|
import "@material-symbols-svg/react-rounded/icons/chevron-left";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import o from "clsx";
|
|
3
3
|
import { SkeletonBox as l } from "../../components/SkeletonBox.js";
|
|
4
|
-
import { y as x } from "../../config-
|
|
4
|
+
import { y as x } from "../../config-DAMaL9k2.js";
|
|
5
5
|
const p = () => {
|
|
6
6
|
const { hideTokenInputHeadings: s } = x();
|
|
7
7
|
return /* @__PURE__ */ a("div", { className: "w-full gap-sw-xl relative flex flex-col", children: [
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
HeaderComponent: t,
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { WidgetContainer as m } from "../../components/WidgetContainer.js";
|
|
3
|
+
import { WidgetWithdrawContent as n } from "./WidgetWithdrawContent.js";
|
|
4
|
+
const f = ({
|
|
5
|
+
HeaderComponent: r,
|
|
7
6
|
FooterComponent: i,
|
|
8
7
|
isFullPage: o,
|
|
9
8
|
className: e,
|
|
10
|
-
...
|
|
11
|
-
}) => /* @__PURE__ */
|
|
12
|
-
|
|
9
|
+
...d
|
|
10
|
+
}) => /* @__PURE__ */ t(
|
|
11
|
+
m,
|
|
13
12
|
{
|
|
14
13
|
className: e,
|
|
15
14
|
isFullPage: o,
|
|
16
|
-
HeaderComponent:
|
|
15
|
+
HeaderComponent: r,
|
|
17
16
|
FooterComponent: i,
|
|
18
|
-
children: /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ t(n, { ...d })
|
|
19
18
|
}
|
|
20
|
-
)
|
|
19
|
+
);
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
f as WidgetWithdraw
|
|
23
22
|
};
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetWithdraw/index.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetWithdraw/index.tsx"],"sourcesContent":["import {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetWithdrawContent } from './WidgetWithdrawContent';\n\nexport type WidgetWithdrawProps = Props &\n Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetWithdraw = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetWithdrawProps) => (\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetWithdrawContent {...widgetProps} />\n </WidgetContainer>\n);\n"],"names":["WidgetWithdraw","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","jsx","WidgetContainer","WidgetWithdrawContent"],"mappings":";;;AASO,MAAMA,IAAiB,CAAC;AAAA,EAC7B,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAH;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAI,EAACE,GAAA,EAAuB,GAAGH,EAAA,CAAa;AAAA,EAAA;AAC1C;"}
|
package/package.json
CHANGED
|
@@ -45,7 +45,17 @@ export const WidgetContainer = ({
|
|
|
45
45
|
);
|
|
46
46
|
|
|
47
47
|
if (!isFullPage) {
|
|
48
|
-
return
|
|
48
|
+
return (
|
|
49
|
+
<div
|
|
50
|
+
className={cn(
|
|
51
|
+
'relative w-auto mx-auto',
|
|
52
|
+
theme?.showContainer
|
|
53
|
+
? 'max-w-[496px] sm:w-[496px] p-csw-2xl bg-sw-container rounded-sw-lg'
|
|
54
|
+
: 'max-w-[456px] sm:w-[456px]',
|
|
55
|
+
)}>
|
|
56
|
+
{jsx}
|
|
57
|
+
</div>
|
|
58
|
+
);
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
return (
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BaseContainer } from '../../components/BaseContainer';
|
|
2
1
|
import {
|
|
3
2
|
WidgetContainer,
|
|
4
3
|
WidgetContainerProps,
|
|
@@ -14,13 +13,11 @@ export const WidgetDeposit = ({
|
|
|
14
13
|
className,
|
|
15
14
|
...widgetProps
|
|
16
15
|
}: WidgetDepositProps) => (
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</WidgetContainer>
|
|
25
|
-
</BaseContainer>
|
|
16
|
+
<WidgetContainer
|
|
17
|
+
className={className}
|
|
18
|
+
isFullPage={isFullPage}
|
|
19
|
+
HeaderComponent={HeaderComponent}
|
|
20
|
+
FooterComponent={FooterComponent}>
|
|
21
|
+
<WidgetDepositContent {...widgetProps} />
|
|
22
|
+
</WidgetContainer>
|
|
26
23
|
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BaseContainer } from '../../components/BaseContainer';
|
|
2
1
|
import {
|
|
3
2
|
WidgetContainer,
|
|
4
3
|
WidgetContainerProps,
|
|
@@ -14,13 +13,11 @@ export const WidgetSwap = ({
|
|
|
14
13
|
className,
|
|
15
14
|
...widgetProps
|
|
16
15
|
}: WidgetSwapProps) => (
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</WidgetContainer>
|
|
25
|
-
</BaseContainer>
|
|
16
|
+
<WidgetContainer
|
|
17
|
+
className={className}
|
|
18
|
+
isFullPage={isFullPage}
|
|
19
|
+
HeaderComponent={HeaderComponent}
|
|
20
|
+
FooterComponent={FooterComponent}>
|
|
21
|
+
<WidgetSwapContent {...widgetProps} />
|
|
22
|
+
</WidgetContainer>
|
|
26
23
|
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BaseContainer } from '../../components/BaseContainer';
|
|
2
1
|
import {
|
|
3
2
|
WidgetContainer,
|
|
4
3
|
WidgetContainerProps,
|
|
@@ -15,13 +14,11 @@ export const WidgetWithdraw = ({
|
|
|
15
14
|
className,
|
|
16
15
|
...widgetProps
|
|
17
16
|
}: WidgetWithdrawProps) => (
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</WidgetContainer>
|
|
26
|
-
</BaseContainer>
|
|
17
|
+
<WidgetContainer
|
|
18
|
+
className={className}
|
|
19
|
+
isFullPage={isFullPage}
|
|
20
|
+
HeaderComponent={HeaderComponent}
|
|
21
|
+
FooterComponent={FooterComponent}>
|
|
22
|
+
<WidgetWithdrawContent {...widgetProps} />
|
|
23
|
+
</WidgetContainer>
|
|
27
24
|
);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme as t } from "../hooks/useTheme.js";
|
|
3
|
-
import "../constants/chains.js";
|
|
4
|
-
import "viem";
|
|
5
|
-
import "ethers";
|
|
6
|
-
import { cn as e } from "../utils/cn.js";
|
|
7
|
-
const w = ({ children: o }) => {
|
|
8
|
-
const m = t();
|
|
9
|
-
return /* @__PURE__ */ r(
|
|
10
|
-
"div",
|
|
11
|
-
{
|
|
12
|
-
className: e(
|
|
13
|
-
"relative w-auto mx-auto",
|
|
14
|
-
m?.showContainer ? "max-w-[496px] sm:w-[496px] p-csw-2xl bg-sw-container rounded-sw-lg" : "max-w-[456px] sm:w-[456px]"
|
|
15
|
-
),
|
|
16
|
-
children: o
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
w as BaseContainer
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=BaseContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseContainer.js","sources":["../../src/components/BaseContainer.tsx"],"sourcesContent":["import { PropsWithChildren } from 'react';\nimport { useTheme } from '../hooks/useTheme';\nimport { cn } from '../utils';\n\nexport const BaseContainer = ({ children }: PropsWithChildren) => {\n const theme = useTheme();\n\n return (\n <div\n className={cn(\n 'relative w-auto mx-auto',\n theme?.showContainer\n ? 'max-w-[496px] sm:w-[496px] p-csw-2xl bg-sw-container rounded-sw-lg'\n : 'max-w-[456px] sm:w-[456px]',\n )}>\n {children}\n </div>\n );\n};\n"],"names":["BaseContainer","children","theme","useTheme","jsx","cn"],"mappings":";;;;;;AAIO,MAAMA,IAAgB,CAAC,EAAE,UAAAC,QAAkC;AAChE,QAAMC,IAAQC,EAAA;AAEd,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAH,GAAO,gBACH,uEACA;AAAA,MAAA;AAAA,MAEL,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { useTheme } from '../hooks/useTheme';
|
|
3
|
-
import { cn } from '../utils';
|
|
4
|
-
|
|
5
|
-
export const BaseContainer = ({ children }: PropsWithChildren) => {
|
|
6
|
-
const theme = useTheme();
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<div
|
|
10
|
-
className={cn(
|
|
11
|
-
'relative w-auto mx-auto',
|
|
12
|
-
theme?.showContainer
|
|
13
|
-
? 'max-w-[496px] sm:w-[496px] p-csw-2xl bg-sw-container rounded-sw-lg'
|
|
14
|
-
: 'max-w-[456px] sm:w-[456px]',
|
|
15
|
-
)}>
|
|
16
|
-
{children}
|
|
17
|
-
</div>
|
|
18
|
-
);
|
|
19
|
-
};
|