@aurora-is-near/intents-swap-widget 3.15.2 → 3.15.3
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/{config-CJfcVohD.js → config-DKdwFIJc.js} +114 -114
- package/dist/{config-CJfcVohD.js.map → config-DKdwFIJc.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/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/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/styles.css +1 -1
- package/dist/tailwind.css +0 -4
- package/dist/theme/ThemeProvider.js +1 -1
- package/dist/theme.css +5 -4
- 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 +3 -3
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js.map +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
- package/package.json +1 -1
- package/src/tailwind.css +0 -4
- package/src/theme/ThemeProvider.tsx +3 -1
- package/src/theme.css +5 -4
- package/src/widgets/WidgetDeposit/WidgetDepositContent.tsx +1 -1
|
@@ -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-DKdwFIJc.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-DKdwFIJc.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-DKdwFIJc.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-DKdwFIJc.js";
|
|
9
9
|
import "./checkers/isAmountChangedFromQuote.js";
|
|
10
10
|
import "ethers";
|
|
11
11
|
import "../machine.js";
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){.sw *,.sw :before,.sw :after,.sw ::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{.sw,.sw :host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--font-weight-medium:500;--font-weight-semibold:600;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius-full:99999px;--radius-sw-sm:var(--r-sw-sm);--radius-sw-md:var(--r-sw-md);--radius-sw-lg:var(--r-sw-lg);--color-sw-gray-50:var(--c-sw-gray-50);--color-sw-gray-100:var(--c-sw-gray-100);--color-sw-gray-200:var(--c-sw-gray-200);--color-sw-gray-300:var(--c-sw-gray-300);--color-sw-gray-400:var(--c-sw-gray-400);--color-sw-gray-600:var(--c-sw-gray-600);--color-sw-gray-700:var(--c-sw-gray-700);--color-sw-gray-800:var(--c-sw-gray-800);--color-sw-gray-900:var(--c-sw-gray-900);--color-sw-gray-950:var(--c-sw-gray-950);--color-sw-accent-50:var(--c-sw-accent-50);--color-sw-accent-200:var(--c-sw-accent-200);--color-sw-accent-300:var(--c-sw-accent-300);--color-sw-accent-400:var(--c-sw-accent-400);--color-sw-accent-500:var(--c-sw-accent-500);--color-sw-accent-950:var(--c-sw-accent-950);--color-sw-status-success:var(--c-sw-status-success);--color-sw-status-warning:var(--c-sw-status-warning);--color-sw-status-error:var(--c-sw-status-error);--spacing-sw-xxs:2px;--spacing-sw-xs:4px;--spacing-sw-sm:6px;--spacing-sw-md:8px;--spacing-sw-lg:12px;--spacing-sw-xl:16px;--spacing-sw-2xl:20px;--spacing-sw-3xl:24px;--spacing-sw-4xl:32px;--spacing-sw-5xl:40px;--spacing-sw-6xl:48px}}@layer base{.sw *,.sw :after,.sw :before,.sw ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.sw ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.sw,.sw :host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}.sw hr{height:0;color:inherit;border-top-width:1px}.sw abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.sw h1,.sw h2,.sw h3,.sw h4,.sw h5,.sw h6{font-size:inherit;font-weight:inherit}.sw a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.sw b,.sw strong{font-weight:bolder}.sw code,.sw kbd,.sw samp,.sw pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}.sw small{font-size:80%}.sw sub,.sw sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.sw sub{bottom:-.25em}.sw sup{top:-.5em}.sw table{text-indent:0;border-color:inherit;border-collapse:collapse}.sw :-moz-focusring{outline:auto}.sw progress{vertical-align:baseline}.sw summary{display:list-item}.sw ol,.sw ul,.sw menu{list-style:none}.sw img,.sw svg,.sw video,.sw canvas,.sw audio,.sw iframe,.sw embed,.sw object{vertical-align:middle;display:block}.sw img,.sw video{max-width:100%;height:auto}.sw button,.sw input,.sw select,.sw optgroup,.sw textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.sw ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.sw :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.sw :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.sw ::file-selector-button{margin-inline-end:4px}.sw ::-moz-placeholder{opacity:1}.sw ::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){.sw ::-moz-placeholder{color:currentColor}.sw ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.sw ::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}.sw ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.sw textarea{resize:vertical}.sw ::-webkit-search-decoration{-webkit-appearance:none}.sw ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.sw ::-webkit-datetime-edit{display:inline-flex}.sw ::-webkit-datetime-edit-fields-wrapper{padding:0}.sw ::-webkit-datetime-edit{padding-block:0}.sw ::-webkit-datetime-edit-year-field{padding-block:0}.sw ::-webkit-datetime-edit-month-field{padding-block:0}.sw ::-webkit-datetime-edit-day-field{padding-block:0}.sw ::-webkit-datetime-edit-hour-field{padding-block:0}.sw ::-webkit-datetime-edit-minute-field{padding-block:0}.sw ::-webkit-datetime-edit-second-field{padding-block:0}.sw ::-webkit-datetime-edit-millisecond-field{padding-block:0}.sw ::-webkit-datetime-edit-meridiem-field{padding-block:0}.sw ::-webkit-calendar-picker-indicator{line-height:1}.sw :-moz-ui-invalid{box-shadow:none}.sw button,.sw input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}.sw ::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.sw ::-webkit-inner-spin-button{height:auto}.sw ::-webkit-outer-spin-button{height:auto}.sw [hidden]:where(:not([hidden=until-found])){display:none!important}.sw[data-sw-theme=light]{color-scheme:light;--c-sw-gray-50:#24262d;--c-sw-gray-100:#2e3038;--c-sw-gray-200:#41444f;--c-sw-gray-300:#555967;--c-sw-gray-400:#686d7d;--c-sw-gray-500:#7e8396;--c-sw-gray-600:#979baa;--c-sw-gray-700:#b0b3bf;--c-sw-gray-800:#caccd3;--c-sw-gray-900:#e4e5e9;--c-sw-gray-950:#f3f3f5;--c-sw-accent-50:#280045;--c-sw-accent-100:#400069;--c-sw-accent-200:#7300b7;--c-sw-accent-300:#a528ff;--c-sw-accent-400:#ba7aff;--c-sw-accent-500:#d5b7ff;--c-sw-accent-600:#dcc4ff;--c-sw-accent-700:#e6d6ff;--c-sw-accent-800:#eee4ff;--c-sw-accent-900:#f6f1ff;--c-sw-accent-950:#fbf8ff;--c-sw-status-success:#00652f;--c-sw-status-warning:#a87a04;--c-sw-status-error:#9f002b}.sw[data-sw-theme=dark]{color-scheme:dark;--c-sw-gray-50:#f3f3f5;--c-sw-gray-100:#e4e5e9;--c-sw-gray-200:#caccd3;--c-sw-gray-300:#b0b3bf;--c-sw-gray-400:#979baa;--c-sw-gray-500:#7e8396;--c-sw-gray-600:#686d7d;--c-sw-gray-700:#555967;--c-sw-gray-800:#41444f;--c-sw-gray-900:#2e3038;--c-sw-gray-950:#24262d;--c-sw-accent-50:#fbf8ff;--c-sw-accent-100:#f6f1ff;--c-sw-accent-200:#eee4ff;--c-sw-accent-300:#e6d6ff;--c-sw-accent-400:#dcc4ff;--c-sw-accent-500:#d5b7ff;--c-sw-accent-600:#ba7aff;--c-sw-accent-700:#a528ff;--c-sw-accent-800:#7300b7;--c-sw-accent-900:#400069;--c-sw-accent-950:#280045;--c-sw-status-success:#98ffb5;--c-sw-status-warning:#fadfad;--c-sw-status-error:#ffb8be}.sw .sw{font-family:var(--font-family-sw)}.sw .hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.sw .hide-scrollbar::-webkit-scrollbar{display:none}}@layer components;@layer utilities{.sw .absolute{position:absolute}.sw .fixed{position:fixed}.sw .relative{position:relative}.sw .static{position:static}.sw .top-1\/2{top:50%}.sw .top-\[14px\]{top:14px}.sw .top-\[19px\]{top:19px}.sw .top-sw-2xl{top:var(--spacing-sw-2xl)}.sw .right-\[-4px\]{right:-4px}.sw .right-sw-2xl{right:var(--spacing-sw-2xl)}.sw .left-1\/2{left:50%}.sw .z-10{z-index:10}.sw .m-sw-lg{margin:var(--spacing-sw-lg)}.sw .mx-auto{margin-inline:auto}.sw .my-sw-sm{margin-block:var(--spacing-sw-sm)}.sw .mt-sw-2xl{margin-top:var(--spacing-sw-2xl)}.sw .mt-sw-lg{margin-top:var(--spacing-sw-lg)}.sw .mt-sw-md{margin-top:var(--spacing-sw-md)}.sw .mt-sw-sm{margin-top:var(--spacing-sw-sm)}.sw .mt-sw-xl{margin-top:var(--spacing-sw-xl)}.sw .mt-sw-xs{margin-top:var(--spacing-sw-xs)}.sw .mr-auto{margin-right:auto}.sw .mr-sw-md{margin-right:var(--spacing-sw-md)}.sw .mb-sw-2xl{margin-bottom:var(--spacing-sw-2xl)}.sw .mb-sw-md{margin-bottom:var(--spacing-sw-md)}.sw .mb-sw-xl{margin-bottom:var(--spacing-sw-xl)}.sw .ml-auto{margin-left:auto}.sw .ml-sw-lg{margin-left:var(--spacing-sw-lg)}.sw .flex{display:flex}.sw .hidden{display:none}.sw .inline{display:inline}.sw .inline-block{display:inline-block}.sw .h-\[1px\]{height:1px}.sw .h-\[12px\]{height:12px}.sw .h-\[16px\]{height:16px}.sw .h-\[20px\]{height:20px}.sw .h-\[28px\]{height:28px}.sw .h-\[34px\]{height:34px}.sw .h-\[36px\]{height:36px}.sw .h-\[40px\]{height:40px}.sw .h-\[44px\]{height:44px}.sw .h-\[48px\]{height:48px}.sw .h-\[108px\]{height:108px}.sw .h-\[116px\]{height:116px}.sw .h-\[120px\]{height:120px}.sw .h-\[152px\]{height:152px}.sw .h-\[165px\]{height:165px}.sw .h-\[180px\]{height:180px}.sw .h-fit{height:-moz-fit-content;height:fit-content}.sw .h-sw-2xl{height:var(--spacing-sw-2xl)}.sw .h-sw-4xl{height:var(--spacing-sw-4xl)}.sw .h-sw-lg{height:var(--spacing-sw-lg)}.sw .h-sw-xl{height:var(--spacing-sw-xl)}.sw .max-h-\[400px\]{max-height:400px}.sw .min-h-\[200px\]{min-height:200px}.sw .min-h-screen{min-height:100vh}.sw .min-h-sw-2xl{min-height:var(--spacing-sw-2xl)}.sw .w-\[16px\]{width:16px}.sw .w-\[28px\]{width:28px}.sw .w-\[34px\]{width:34px}.sw .w-\[40px\]{width:40px}.sw .w-\[44px\]{width:44px}.sw .w-\[60px\]{width:60px}.sw .w-\[100px\]{width:100px}.sw .w-\[180px\]{width:180px}.sw .w-\[200px\]{width:200px}.sw .w-fit{width:-moz-fit-content;width:fit-content}.sw .w-full{width:100%}.sw .w-sw-2xl{width:var(--spacing-sw-2xl)}.sw .w-sw-4xl{width:var(--spacing-sw-4xl)}.sw .w-sw-lg{width:var(--spacing-sw-lg)}.sw .w-sw-xl{width:var(--spacing-sw-xl)}.sw .max-w-\[80\%\]{max-width:80%}.sw .max-w-\[265px\]{max-width:265px}.sw .max-w-\[456px\]{max-width:456px}.sw .min-w-\[80px\]{min-width:80px}.sw .min-w-\[100px\]{min-width:100px}.sw .min-w-\[200px\]{min-width:200px}.sw .min-w-\[270px\]{min-width:270px}.sw .min-w-full{min-width:100%}.sw .min-w-max{min-width:-moz-max-content;min-width:max-content}.sw .shrink-0{flex-shrink:0}.sw .-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.sw .-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.sw .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.sw .animate-pulse{animation:var(--animate-pulse)}.sw .animate-spin{animation:var(--animate-spin)}.sw .cursor-default{cursor:default}.sw .cursor-not-allowed{cursor:not-allowed}.sw .cursor-pointer{cursor:pointer}.sw .list-none{list-style-type:none}.sw .flex-col{flex-direction:column}.sw .items-center{align-items:center}.sw .items-end{align-items:flex-end}.sw .justify-between{justify-content:space-between}.sw .justify-center{justify-content:center}.sw .justify-end{justify-content:flex-end}.sw .gap-\[10px\]{gap:10px}.sw .gap-sw-2xl{gap:var(--spacing-sw-2xl)}.sw .gap-sw-4xl{gap:var(--spacing-sw-4xl)}.sw .gap-sw-lg{gap:var(--spacing-sw-lg)}.sw .gap-sw-md{gap:var(--spacing-sw-md)}.sw .gap-sw-sm{gap:var(--spacing-sw-sm)}.sw .gap-sw-xl{gap:var(--spacing-sw-xl)}.sw .gap-sw-xs{gap:var(--spacing-sw-xs)}.sw .gap-sw-xxs{gap:var(--spacing-sw-xxs)}.sw .overflow-hidden{overflow:hidden}.sw .rounded-full{border-radius:3.40282e38px;border-radius:var(--radius-full)}.sw .rounded-sw-lg{border-radius:var(--radius-sw-lg)}.sw .rounded-sw-md{border-radius:var(--radius-sw-md)}.sw .rounded-sw-sm{border-radius:var(--radius-sw-sm)}.sw .border-2{border-style:var(--tw-border-style);border-width:2px}.sw .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sw .border-none{--tw-border-style:none;border-style:none}.sw .border-sw-gray-800{border-color:var(--color-sw-gray-800)}.sw .border-sw-gray-900{border-color:var(--color-sw-gray-900)}.sw .bg-\[\#fff\]{background-color:#fff}.sw .bg-sw-accent-500{background-color:var(--color-sw-accent-500)}.sw .bg-sw-gray-600{background-color:var(--color-sw-gray-600)}.sw .bg-sw-gray-700{background-color:var(--color-sw-gray-700)}.sw .bg-sw-gray-800{background-color:var(--color-sw-gray-800)}.sw .bg-sw-gray-900{background-color:var(--color-sw-gray-900)}.sw .bg-sw-gray-950{background-color:var(--color-sw-gray-950)}.sw .bg-sw-status-success{background-color:var(--color-sw-status-success)}.sw .bg-transparent{background-color:#0000}.sw .p-sw-2xl{padding:var(--spacing-sw-2xl)}.sw .p-sw-lg{padding:var(--spacing-sw-lg)}.sw .p-sw-md{padding:var(--spacing-sw-md)}.sw .px-\[1px\]{padding-inline:1px}.sw .px-sw-2xl{padding-inline:var(--spacing-sw-2xl)}.sw .px-sw-3xl{padding-inline:var(--spacing-sw-3xl)}.sw .px-sw-lg{padding-inline:var(--spacing-sw-lg)}.sw .px-sw-md{padding-inline:var(--spacing-sw-md)}.sw .px-sw-sm{padding-inline:var(--spacing-sw-sm)}.sw .px-sw-xl{padding-inline:var(--spacing-sw-xl)}.sw .py-sw-2xl{padding-block:var(--spacing-sw-2xl)}.sw .py-sw-6xl{padding-block:var(--spacing-sw-6xl)}.sw .py-sw-lg{padding-block:var(--spacing-sw-lg)}.sw .py-sw-md{padding-block:var(--spacing-sw-md)}.sw .py-sw-sm{padding-block:var(--spacing-sw-sm)}.sw .py-sw-xl{padding-block:var(--spacing-sw-xl)}.sw .py-sw-xs{padding-block:var(--spacing-sw-xs)}.sw .pt-sw-2xl{padding-top:var(--spacing-sw-2xl)}.sw .pt-sw-5xl{padding-top:var(--spacing-sw-5xl)}.sw .pt-sw-xl{padding-top:var(--spacing-sw-xl)}.sw .pr-sw-md{padding-right:var(--spacing-sw-md)}.sw .pb-sw-5xl{padding-bottom:var(--spacing-sw-5xl)}.sw .pb-sw-lg{padding-bottom:var(--spacing-sw-lg)}.sw .pl-sw-sm{padding-left:var(--spacing-sw-sm)}.sw .text-center{text-align:center}.sw .align-sub{vertical-align:sub}@layer components{.sw .text-sw-body-lg{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);letter-spacing:-.025rem;font-size:1rem;line-height:1.375rem}.sw .text-sw-body-md{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);letter-spacing:-.025rem;font-size:.875rem;line-height:1.25rem}.sw .text-sw-body-sm{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);letter-spacing:-.025rem;font-size:.75rem;line-height:1rem}.sw .text-sw-label-lg{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);letter-spacing:-.025rem;font-size:1rem;line-height:1rem}.sw .text-sw-label-md{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);letter-spacing:-.025rem;font-size:.875rem;line-height:1rem}.sw .text-sw-label-sm{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);letter-spacing:-.01875rem;font-size:.75rem;line-height:.875rem}.sw .text-sw-value-lg{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);letter-spacing:-.0625rem;font-size:2rem;line-height:2.25rem}}.sw .text-\[10px\]{font-size:10px}.sw .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.sw .text-nowrap{text-wrap:nowrap}.sw .text-sw-accent-300{color:var(--color-sw-accent-300)}.sw .text-sw-accent-500{color:var(--color-sw-accent-500)}.sw .text-sw-accent-950{color:var(--color-sw-accent-950)}.sw .text-sw-gray-50{color:var(--color-sw-gray-50)}.sw .text-sw-gray-100{color:var(--color-sw-gray-100)}.sw .text-sw-gray-200{color:var(--color-sw-gray-200)}.sw .text-sw-gray-300{color:var(--color-sw-gray-300)}.sw .text-sw-gray-400{color:var(--color-sw-gray-400)}.sw .text-sw-gray-950{color:var(--color-sw-gray-950)}.sw .text-sw-status-error{color:var(--color-sw-status-error)}.sw .text-sw-status-success{color:var(--color-sw-status-success)}.sw .text-sw-status-warning{color:var(--color-sw-status-warning)}.sw .lowercase{text-transform:lowercase}.sw .opacity-0{opacity:0}.sw .opacity-50{opacity:.5}.sw .opacity-100{opacity:1}.sw .shadow-\[0_6px_48px_0_rgba\(36\,38\,45\,0\.3\)\]{--tw-shadow:0 6px 48px 0 var(--tw-shadow-color,#24262d4d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sw .ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sw .ring-sw-gray-600{--tw-ring-color:var(--color-sw-gray-600)}.sw .ring-sw-gray-700{--tw-ring-color:var(--color-sw-gray-700)}.sw .ring-sw-status-error{--tw-ring-color:var(--color-sw-status-error)}.sw .ring-transparent{--tw-ring-color:transparent}.sw .grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.sw .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .delay-0{transition-delay:0s}.sw .duration-150{--tw-duration:.15s;transition-duration:.15s}.sw .duration-250{--tw-duration:.25s;transition-duration:.25s}.sw .duration-300{--tw-duration:.3s;transition-duration:.3s}.sw .ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.sw .\[transition-timing-function\:cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.275\)\]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}.sw .outline-none{--tw-outline-style:none;outline-style:none}.sw .ring-inset{--tw-ring-inset:inset}@media (hover:hover){.sw .group-hover\:rotate-180:is(:where(.group):hover *){rotate:180deg}.sw .group-hover\:border-sw-gray-700:is(:where(.group):hover *){border-color:var(--color-sw-gray-700)}.sw .group-hover\:border-sw-gray-800:is(:where(.group):hover *){border-color:var(--color-sw-gray-800)}.sw .hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .hover\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .hover\:bg-sw-accent-400:hover{background-color:var(--color-sw-accent-400)}.sw .hover\:bg-sw-gray-700:hover{background-color:var(--color-sw-gray-700)}.sw .hover\:bg-sw-gray-800:hover{background-color:var(--color-sw-gray-800)}.sw .hover\:text-sw-accent-50:hover{color:var(--color-sw-accent-50)}.sw .hover\:text-sw-accent-200:hover{color:var(--color-sw-accent-200)}.sw .hover\:text-sw-gray-50:hover{color:var(--color-sw-gray-50)}.sw .hover\:ring-sw-gray-100:hover{--tw-ring-color:var(--color-sw-gray-100)}}.sw .active\:scale-x-90:active{--tw-scale-x:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .active\:scale-y-110:active{--tw-scale-y:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .data-focus\:outline-none[data-focus]{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sw .sm\:fixed{position:fixed}.sw .sm\:h-full{height:100%}.sw .sm\:max-h-screen{max-height:100vh}.sw .sm\:overflow-auto{overflow:auto}}}.sw{--font-family-sw:"Inter",sans-serif;--r-sw-sm:6px;--r-sw-md:10px;--r-sw-lg:16px;--r-sw-xl:24px;font-feature-settings:"liga" 1,"calt" 1;font-family:Inter,sans-serif}@supports (font-variation-settings:normal){.sw{font-family:InterVariable,sans-serif}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|
|
1
|
+
/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){.sw *,.sw :before,.sw :after,.sw ::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{.sw,.sw :host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--font-weight-medium:500;--font-weight-semibold:600;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius-full:99999px;--radius-sw-sm:var(--r-sw-sm);--radius-sw-md:var(--r-sw-md);--radius-sw-lg:var(--r-sw-lg);--color-sw-gray-50:var(--c-sw-gray-50);--color-sw-gray-100:var(--c-sw-gray-100);--color-sw-gray-200:var(--c-sw-gray-200);--color-sw-gray-300:var(--c-sw-gray-300);--color-sw-gray-400:var(--c-sw-gray-400);--color-sw-gray-600:var(--c-sw-gray-600);--color-sw-gray-700:var(--c-sw-gray-700);--color-sw-gray-800:var(--c-sw-gray-800);--color-sw-gray-900:var(--c-sw-gray-900);--color-sw-gray-950:var(--c-sw-gray-950);--color-sw-accent-50:var(--c-sw-accent-50);--color-sw-accent-200:var(--c-sw-accent-200);--color-sw-accent-300:var(--c-sw-accent-300);--color-sw-accent-400:var(--c-sw-accent-400);--color-sw-accent-500:var(--c-sw-accent-500);--color-sw-accent-950:var(--c-sw-accent-950);--color-sw-status-success:var(--c-sw-status-success);--color-sw-status-warning:var(--c-sw-status-warning);--color-sw-status-error:var(--c-sw-status-error);--spacing-sw-xxs:2px;--spacing-sw-xs:4px;--spacing-sw-sm:6px;--spacing-sw-md:8px;--spacing-sw-lg:12px;--spacing-sw-xl:16px;--spacing-sw-2xl:20px;--spacing-sw-3xl:24px;--spacing-sw-4xl:32px;--spacing-sw-5xl:40px;--spacing-sw-6xl:48px}}@layer base{.sw *,.sw :after,.sw :before,.sw ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.sw ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.sw,.sw :host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}.sw hr{height:0;color:inherit;border-top-width:1px}.sw abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.sw h1,.sw h2,.sw h3,.sw h4,.sw h5,.sw h6{font-size:inherit;font-weight:inherit}.sw a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.sw b,.sw strong{font-weight:bolder}.sw code,.sw kbd,.sw samp,.sw pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}.sw small{font-size:80%}.sw sub,.sw sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.sw sub{bottom:-.25em}.sw sup{top:-.5em}.sw table{text-indent:0;border-color:inherit;border-collapse:collapse}.sw :-moz-focusring{outline:auto}.sw progress{vertical-align:baseline}.sw summary{display:list-item}.sw ol,.sw ul,.sw menu{list-style:none}.sw img,.sw svg,.sw video,.sw canvas,.sw audio,.sw iframe,.sw embed,.sw object{vertical-align:middle;display:block}.sw img,.sw video{max-width:100%;height:auto}.sw button,.sw input,.sw select,.sw optgroup,.sw textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.sw ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.sw :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.sw :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.sw ::file-selector-button{margin-inline-end:4px}.sw ::-moz-placeholder{opacity:1}.sw ::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){.sw ::-moz-placeholder{color:currentColor}.sw ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.sw ::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}.sw ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.sw textarea{resize:vertical}.sw ::-webkit-search-decoration{-webkit-appearance:none}.sw ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.sw ::-webkit-datetime-edit{display:inline-flex}.sw ::-webkit-datetime-edit-fields-wrapper{padding:0}.sw ::-webkit-datetime-edit{padding-block:0}.sw ::-webkit-datetime-edit-year-field{padding-block:0}.sw ::-webkit-datetime-edit-month-field{padding-block:0}.sw ::-webkit-datetime-edit-day-field{padding-block:0}.sw ::-webkit-datetime-edit-hour-field{padding-block:0}.sw ::-webkit-datetime-edit-minute-field{padding-block:0}.sw ::-webkit-datetime-edit-second-field{padding-block:0}.sw ::-webkit-datetime-edit-millisecond-field{padding-block:0}.sw ::-webkit-datetime-edit-meridiem-field{padding-block:0}.sw ::-webkit-calendar-picker-indicator{line-height:1}.sw :-moz-ui-invalid{box-shadow:none}.sw button,.sw input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}.sw ::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.sw ::-webkit-inner-spin-button{height:auto}.sw ::-webkit-outer-spin-button{height:auto}.sw [hidden]:where(:not([hidden=until-found])){display:none!important}.sw[data-sw-theme=light]{color-scheme:light;--c-sw-gray-50:#24262d;--c-sw-gray-100:#2e3038;--c-sw-gray-200:#41444f;--c-sw-gray-300:#555967;--c-sw-gray-400:#686d7d;--c-sw-gray-500:#7e8396;--c-sw-gray-600:#979baa;--c-sw-gray-700:#b0b3bf;--c-sw-gray-800:#caccd3;--c-sw-gray-900:#e4e5e9;--c-sw-gray-950:#f3f3f5;--c-sw-accent-50:#280045;--c-sw-accent-100:#400069;--c-sw-accent-200:#7300b7;--c-sw-accent-300:#a528ff;--c-sw-accent-400:#ba7aff;--c-sw-accent-500:#d5b7ff;--c-sw-accent-600:#dcc4ff;--c-sw-accent-700:#e6d6ff;--c-sw-accent-800:#eee4ff;--c-sw-accent-900:#f6f1ff;--c-sw-accent-950:#fbf8ff;--c-sw-status-success:#00652f;--c-sw-status-warning:#a87a04;--c-sw-status-error:#9f002b}.sw[data-sw-theme=dark]{color-scheme:dark;--c-sw-gray-50:#f3f3f5;--c-sw-gray-100:#e4e5e9;--c-sw-gray-200:#caccd3;--c-sw-gray-300:#b0b3bf;--c-sw-gray-400:#979baa;--c-sw-gray-500:#7e8396;--c-sw-gray-600:#686d7d;--c-sw-gray-700:#555967;--c-sw-gray-800:#41444f;--c-sw-gray-900:#2e3038;--c-sw-gray-950:#24262d;--c-sw-accent-50:#fbf8ff;--c-sw-accent-100:#f6f1ff;--c-sw-accent-200:#eee4ff;--c-sw-accent-300:#e6d6ff;--c-sw-accent-400:#dcc4ff;--c-sw-accent-500:#d5b7ff;--c-sw-accent-600:#ba7aff;--c-sw-accent-700:#a528ff;--c-sw-accent-800:#7300b7;--c-sw-accent-900:#400069;--c-sw-accent-950:#280045;--c-sw-status-success:#98ffb5;--c-sw-status-warning:#fadfad;--c-sw-status-error:#ffb8be}.sw .hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.sw .hide-scrollbar::-webkit-scrollbar{display:none}}@layer components;@layer utilities{.sw .absolute{position:absolute}.sw .fixed{position:fixed}.sw .relative{position:relative}.sw .static{position:static}.sw .top-1\/2{top:50%}.sw .top-\[14px\]{top:14px}.sw .top-\[19px\]{top:19px}.sw .top-sw-2xl{top:var(--spacing-sw-2xl)}.sw .right-\[-4px\]{right:-4px}.sw .right-sw-2xl{right:var(--spacing-sw-2xl)}.sw .left-1\/2{left:50%}.sw .z-10{z-index:10}.sw .m-sw-lg{margin:var(--spacing-sw-lg)}.sw .mx-auto{margin-inline:auto}.sw .my-sw-sm{margin-block:var(--spacing-sw-sm)}.sw .mt-sw-2xl{margin-top:var(--spacing-sw-2xl)}.sw .mt-sw-lg{margin-top:var(--spacing-sw-lg)}.sw .mt-sw-sm{margin-top:var(--spacing-sw-sm)}.sw .mt-sw-xl{margin-top:var(--spacing-sw-xl)}.sw .mt-sw-xs{margin-top:var(--spacing-sw-xs)}.sw .mr-auto{margin-right:auto}.sw .mr-sw-md{margin-right:var(--spacing-sw-md)}.sw .mb-sw-2xl{margin-bottom:var(--spacing-sw-2xl)}.sw .mb-sw-md{margin-bottom:var(--spacing-sw-md)}.sw .mb-sw-xl{margin-bottom:var(--spacing-sw-xl)}.sw .ml-auto{margin-left:auto}.sw .ml-sw-lg{margin-left:var(--spacing-sw-lg)}.sw .flex{display:flex}.sw .hidden{display:none}.sw .inline{display:inline}.sw .inline-block{display:inline-block}.sw .h-\[1px\]{height:1px}.sw .h-\[12px\]{height:12px}.sw .h-\[16px\]{height:16px}.sw .h-\[20px\]{height:20px}.sw .h-\[28px\]{height:28px}.sw .h-\[34px\]{height:34px}.sw .h-\[36px\]{height:36px}.sw .h-\[40px\]{height:40px}.sw .h-\[44px\]{height:44px}.sw .h-\[48px\]{height:48px}.sw .h-\[108px\]{height:108px}.sw .h-\[116px\]{height:116px}.sw .h-\[120px\]{height:120px}.sw .h-\[152px\]{height:152px}.sw .h-\[165px\]{height:165px}.sw .h-\[180px\]{height:180px}.sw .h-fit{height:-moz-fit-content;height:fit-content}.sw .h-sw-2xl{height:var(--spacing-sw-2xl)}.sw .h-sw-4xl{height:var(--spacing-sw-4xl)}.sw .h-sw-lg{height:var(--spacing-sw-lg)}.sw .h-sw-xl{height:var(--spacing-sw-xl)}.sw .max-h-\[400px\]{max-height:400px}.sw .min-h-\[200px\]{min-height:200px}.sw .min-h-screen{min-height:100vh}.sw .min-h-sw-2xl{min-height:var(--spacing-sw-2xl)}.sw .w-\[16px\]{width:16px}.sw .w-\[28px\]{width:28px}.sw .w-\[34px\]{width:34px}.sw .w-\[40px\]{width:40px}.sw .w-\[44px\]{width:44px}.sw .w-\[60px\]{width:60px}.sw .w-\[100px\]{width:100px}.sw .w-\[180px\]{width:180px}.sw .w-\[200px\]{width:200px}.sw .w-fit{width:-moz-fit-content;width:fit-content}.sw .w-full{width:100%}.sw .w-sw-2xl{width:var(--spacing-sw-2xl)}.sw .w-sw-4xl{width:var(--spacing-sw-4xl)}.sw .w-sw-lg{width:var(--spacing-sw-lg)}.sw .w-sw-xl{width:var(--spacing-sw-xl)}.sw .max-w-\[80\%\]{max-width:80%}.sw .max-w-\[265px\]{max-width:265px}.sw .max-w-\[456px\]{max-width:456px}.sw .min-w-\[80px\]{min-width:80px}.sw .min-w-\[100px\]{min-width:100px}.sw .min-w-\[200px\]{min-width:200px}.sw .min-w-\[270px\]{min-width:270px}.sw .min-w-full{min-width:100%}.sw .min-w-max{min-width:-moz-max-content;min-width:max-content}.sw .shrink-0{flex-shrink:0}.sw .-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.sw .-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.sw .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.sw .animate-pulse{animation:var(--animate-pulse)}.sw .animate-spin{animation:var(--animate-spin)}.sw .cursor-default{cursor:default}.sw .cursor-not-allowed{cursor:not-allowed}.sw .cursor-pointer{cursor:pointer}.sw .list-none{list-style-type:none}.sw .flex-col{flex-direction:column}.sw .items-center{align-items:center}.sw .items-end{align-items:flex-end}.sw .justify-between{justify-content:space-between}.sw .justify-center{justify-content:center}.sw .justify-end{justify-content:flex-end}.sw .gap-\[10px\]{gap:10px}.sw .gap-sw-2xl{gap:var(--spacing-sw-2xl)}.sw .gap-sw-4xl{gap:var(--spacing-sw-4xl)}.sw .gap-sw-lg{gap:var(--spacing-sw-lg)}.sw .gap-sw-md{gap:var(--spacing-sw-md)}.sw .gap-sw-sm{gap:var(--spacing-sw-sm)}.sw .gap-sw-xl{gap:var(--spacing-sw-xl)}.sw .gap-sw-xs{gap:var(--spacing-sw-xs)}.sw .gap-sw-xxs{gap:var(--spacing-sw-xxs)}.sw .overflow-hidden{overflow:hidden}.sw .rounded-full{border-radius:3.40282e38px;border-radius:var(--radius-full)}.sw .rounded-sw-lg{border-radius:var(--radius-sw-lg)}.sw .rounded-sw-md{border-radius:var(--radius-sw-md)}.sw .rounded-sw-sm{border-radius:var(--radius-sw-sm)}.sw .border-2{border-style:var(--tw-border-style);border-width:2px}.sw .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.sw .border-none{--tw-border-style:none;border-style:none}.sw .border-sw-gray-800{border-color:var(--color-sw-gray-800)}.sw .border-sw-gray-900{border-color:var(--color-sw-gray-900)}.sw .bg-\[\#fff\]{background-color:#fff}.sw .bg-sw-accent-500{background-color:var(--color-sw-accent-500)}.sw .bg-sw-gray-600{background-color:var(--color-sw-gray-600)}.sw .bg-sw-gray-700{background-color:var(--color-sw-gray-700)}.sw .bg-sw-gray-800{background-color:var(--color-sw-gray-800)}.sw .bg-sw-gray-900{background-color:var(--color-sw-gray-900)}.sw .bg-sw-gray-950{background-color:var(--color-sw-gray-950)}.sw .bg-sw-status-success{background-color:var(--color-sw-status-success)}.sw .bg-transparent{background-color:#0000}.sw .p-sw-2xl{padding:var(--spacing-sw-2xl)}.sw .p-sw-lg{padding:var(--spacing-sw-lg)}.sw .p-sw-md{padding:var(--spacing-sw-md)}.sw .px-\[1px\]{padding-inline:1px}.sw .px-sw-2xl{padding-inline:var(--spacing-sw-2xl)}.sw .px-sw-3xl{padding-inline:var(--spacing-sw-3xl)}.sw .px-sw-lg{padding-inline:var(--spacing-sw-lg)}.sw .px-sw-md{padding-inline:var(--spacing-sw-md)}.sw .px-sw-sm{padding-inline:var(--spacing-sw-sm)}.sw .px-sw-xl{padding-inline:var(--spacing-sw-xl)}.sw .py-sw-2xl{padding-block:var(--spacing-sw-2xl)}.sw .py-sw-6xl{padding-block:var(--spacing-sw-6xl)}.sw .py-sw-lg{padding-block:var(--spacing-sw-lg)}.sw .py-sw-md{padding-block:var(--spacing-sw-md)}.sw .py-sw-sm{padding-block:var(--spacing-sw-sm)}.sw .py-sw-xl{padding-block:var(--spacing-sw-xl)}.sw .py-sw-xs{padding-block:var(--spacing-sw-xs)}.sw .pt-sw-2xl{padding-top:var(--spacing-sw-2xl)}.sw .pt-sw-5xl{padding-top:var(--spacing-sw-5xl)}.sw .pt-sw-xl{padding-top:var(--spacing-sw-xl)}.sw .pr-sw-md{padding-right:var(--spacing-sw-md)}.sw .pb-sw-5xl{padding-bottom:var(--spacing-sw-5xl)}.sw .pb-sw-lg{padding-bottom:var(--spacing-sw-lg)}.sw .pl-sw-sm{padding-left:var(--spacing-sw-sm)}.sw .text-center{text-align:center}.sw .align-sub{vertical-align:sub}@layer components{.sw .text-sw-body-lg{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);letter-spacing:-.025rem;font-size:1rem;line-height:1.375rem}.sw .text-sw-body-md{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);letter-spacing:-.025rem;font-size:.875rem;line-height:1.25rem}.sw .text-sw-body-sm{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);letter-spacing:-.025rem;font-size:.75rem;line-height:1rem}.sw .text-sw-label-lg{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);letter-spacing:-.025rem;font-size:1rem;line-height:1rem}.sw .text-sw-label-md{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);letter-spacing:-.025rem;font-size:.875rem;line-height:1rem}.sw .text-sw-label-sm{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);letter-spacing:-.01875rem;font-size:.75rem;line-height:.875rem}.sw .text-sw-value-lg{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);letter-spacing:-.0625rem;font-size:2rem;line-height:2.25rem}}.sw .text-\[10px\]{font-size:10px}.sw .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.sw .text-nowrap{text-wrap:nowrap}.sw .text-sw-accent-300{color:var(--color-sw-accent-300)}.sw .text-sw-accent-500{color:var(--color-sw-accent-500)}.sw .text-sw-accent-950{color:var(--color-sw-accent-950)}.sw .text-sw-gray-50{color:var(--color-sw-gray-50)}.sw .text-sw-gray-100{color:var(--color-sw-gray-100)}.sw .text-sw-gray-200{color:var(--color-sw-gray-200)}.sw .text-sw-gray-300{color:var(--color-sw-gray-300)}.sw .text-sw-gray-400{color:var(--color-sw-gray-400)}.sw .text-sw-gray-950{color:var(--color-sw-gray-950)}.sw .text-sw-status-error{color:var(--color-sw-status-error)}.sw .text-sw-status-success{color:var(--color-sw-status-success)}.sw .text-sw-status-warning{color:var(--color-sw-status-warning)}.sw .lowercase{text-transform:lowercase}.sw .opacity-0{opacity:0}.sw .opacity-50{opacity:.5}.sw .opacity-100{opacity:1}.sw .shadow-\[0_6px_48px_0_rgba\(36\,38\,45\,0\.3\)\]{--tw-shadow:0 6px 48px 0 var(--tw-shadow-color,#24262d4d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sw .ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.sw .ring-sw-gray-600{--tw-ring-color:var(--color-sw-gray-600)}.sw .ring-sw-gray-700{--tw-ring-color:var(--color-sw-gray-700)}.sw .ring-sw-status-error{--tw-ring-color:var(--color-sw-status-error)}.sw .ring-transparent{--tw-ring-color:transparent}.sw .grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.sw .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.sw .delay-0{transition-delay:0s}.sw .duration-150{--tw-duration:.15s;transition-duration:.15s}.sw .duration-250{--tw-duration:.25s;transition-duration:.25s}.sw .duration-300{--tw-duration:.3s;transition-duration:.3s}.sw .ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.sw .\[transition-timing-function\:cubic-bezier\(0\.175\,0\.885\,0\.32\,1\.275\)\]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}.sw .outline-none{--tw-outline-style:none;outline-style:none}.sw .ring-inset{--tw-ring-inset:inset}@media (hover:hover){.sw .group-hover\:rotate-180:is(:where(.group):hover *){rotate:180deg}.sw .group-hover\:border-sw-gray-700:is(:where(.group):hover *){border-color:var(--color-sw-gray-700)}.sw .group-hover\:border-sw-gray-800:is(:where(.group):hover *){border-color:var(--color-sw-gray-800)}.sw .hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .hover\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .hover\:bg-sw-accent-400:hover{background-color:var(--color-sw-accent-400)}.sw .hover\:bg-sw-gray-700:hover{background-color:var(--color-sw-gray-700)}.sw .hover\:bg-sw-gray-800:hover{background-color:var(--color-sw-gray-800)}.sw .hover\:text-sw-accent-50:hover{color:var(--color-sw-accent-50)}.sw .hover\:text-sw-accent-200:hover{color:var(--color-sw-accent-200)}.sw .hover\:text-sw-gray-50:hover{color:var(--color-sw-gray-50)}.sw .hover\:ring-sw-gray-100:hover{--tw-ring-color:var(--color-sw-gray-100)}}.sw .active\:scale-x-90:active{--tw-scale-x:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .active\:scale-y-110:active{--tw-scale-y:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sw .data-focus\:outline-none[data-focus]{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sw .sm\:fixed{position:fixed}.sw .sm\:h-full{height:100%}.sw .sm\:max-h-screen{max-height:100vh}.sw .sm\:overflow-auto{overflow:auto}}}.sw{--font-family-sw:"Inter",sans-serif;--default-font-family:var(--font-family-sw);--r-sw-sm:6px;--r-sw-md:10px;--r-sw-lg:16px;--r-sw-xl:24px}.sw .sw{font-family:var(--font-family-sw);font-feature-settings:"liga" 1,"calt" 1}@supports (font-variation-settings:normal){.sw .sw{font-family:var(--font-family-sw)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|
package/dist/tailwind.css
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "browser-or-node";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./createColorPalette.js";
|
|
5
|
-
import { C as p, ae as a } from "../config-
|
|
5
|
+
import { C as p, ae as a } from "../config-DKdwFIJc.js";
|
|
6
6
|
export {
|
|
7
7
|
p as ThemeContext,
|
|
8
8
|
a as ThemeProvider
|
package/dist/theme.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--font-family-sw: 'Inter', sans-serif;
|
|
3
|
+
--default-font-family: var(--font-family-sw);
|
|
3
4
|
|
|
4
5
|
--r-sw-sm: 6px;
|
|
5
6
|
--r-sw-md: 10px;
|
|
@@ -73,11 +74,11 @@
|
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
font-family:
|
|
78
|
-
font-feature-settings: 'liga' 1, 'calt' 1;
|
|
77
|
+
.sw {
|
|
78
|
+
font-family: var(--font-family-sw);
|
|
79
|
+
font-feature-settings: 'liga' 1, 'calt' 1;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
@supports (font-variation-settings: normal) {
|
|
82
|
-
|
|
83
|
+
.sw { font-family: var(--font-family-sw); }
|
|
83
84
|
}
|
|
@@ -3,7 +3,7 @@ import { useState as y, useEffect as l, useCallback as B } from "react";
|
|
|
3
3
|
import { useTokenModal as R } from "../../hooks/useTokenModal.js";
|
|
4
4
|
import { useTypedTranslation as A } from "../../localisation.js";
|
|
5
5
|
import { WidgetDepositSkeleton as b } from "./WidgetDepositSkeleton.js";
|
|
6
|
-
import { b as F, u as q, y as
|
|
6
|
+
import { b as F, u as q, y as j, n as N, c as O, p as Q, o as U, S as K } from "../../config-DKdwFIJc.js";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "@headlessui/react";
|
|
9
9
|
import "framer-motion";
|
|
@@ -55,7 +55,7 @@ const Ye = ({
|
|
|
55
55
|
refetchQuoteInterval: g,
|
|
56
56
|
intentsAccountType: v,
|
|
57
57
|
onWalletSignout: D
|
|
58
|
-
} =
|
|
58
|
+
} = j(), { onChangeAmount: E, onChangeToken: f } = X(), { status: d, refetch: W } = N(), { tokenModalOpen: s, updateTokenModalState: a } = R({ onMsg: n }), k = Z(), [I, i] = y(!1);
|
|
59
59
|
l(() => {
|
|
60
60
|
k && i(!0);
|
|
61
61
|
}, [k]);
|
|
@@ -189,7 +189,7 @@ const Ye = ({
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
),
|
|
192
|
-
/* @__PURE__ */ t(J, {
|
|
192
|
+
/* @__PURE__ */ t(J, { children: ({ isExternal: e }) => e ? /* @__PURE__ */ _("div", { className: "gap-sw-2xl flex flex-col justify-between", children: [
|
|
193
193
|
/* @__PURE__ */ t(H, { onMsg: M }),
|
|
194
194
|
(o.state === "quote_success_internal" || o.state === "quote_success_external") && /* @__PURE__ */ t(
|
|
195
195
|
P,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDepositContent.js","sources":["../../../src/widgets/WidgetDeposit/WidgetDepositContent.tsx"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport type { CommonWidgetProps, TokenInputType } from '../types';\nimport { useTokenModal } from '../../hooks/useTokenModal';\nimport { useTypedTranslation } from '../../localisation';\nimport { WidgetDepositSkeleton } from './WidgetDepositSkeleton';\nimport {\n DepositMethodSwitcher,\n ExternalDeposit,\n SubmitButton,\n SuccessScreen,\n SwapQuote,\n TokenInput,\n TokensModal,\n} from '@/features';\n\nimport { Banner, BlockingError } from '@/components';\nimport { WalletCompatibilityCheck } from '@/features/WalletCompatibilityCheck';\n\nimport { useStoreSideEffects } from '@/machine/effects';\nimport { useComputedSnapshot, useUnsafeSnapshot } from '@/machine/snap';\nimport { fireEvent } from '@/machine/events/utils/fireEvent';\n\nimport {\n useIsCompatibilityCheckRequired,\n useTokenInputPair,\n useTokens,\n} from '@/hooks';\nimport { useConfig } from '@/config';\n\nimport { isDebug, notReachable } from '@/utils';\n\nimport type { Token, TransferResult } from '@/types';\n\ntype Msg =\n | { type: 'on_select_token'; token: Token; variant: TokenInputType }\n | { type: 'on_change_deposit_type'; isExternal: boolean }\n | { type: 'on_transfer_success' }\n | { type: 'on_tokens_modal_toggled'; isOpen: boolean };\n\nexport type Props = CommonWidgetProps<Msg>;\n\nexport const WidgetDepositContent = ({\n providers,\n onMsg,\n makeTransfer,\n isLoading,\n}: Props) => {\n const { ctx } = useUnsafeSnapshot();\n const { t } = useTypedTranslation();\n const { isDirectNearTokenWithdrawal } = useComputedSnapshot();\n const {\n chainsFilter,\n alchemyApiKey,\n refetchQuoteInterval,\n intentsAccountType,\n onWalletSignout,\n } = useConfig();\n\n const { onChangeAmount, onChangeToken } = useTokenInputPair();\n const { status: tokensStatus, refetch: refetchTokens } = useTokens();\n const { tokenModalOpen, updateTokenModalState } = useTokenModal({ onMsg });\n\n const isCompatibilityCheckRequired = useIsCompatibilityCheckRequired();\n const [isCompatibilityOpen, setIsCompatibilityOpen] = useState(false);\n\n useEffect(() => {\n if (isCompatibilityCheckRequired) {\n setIsCompatibilityOpen(true);\n }\n }, [isCompatibilityCheckRequired]);\n\n const [transferResult, setTransferResult] = useState<\n TransferResult | undefined\n >();\n\n const handleExternalDepositMsg = useCallback(\n (\n msg:\n | { type: 'on_transaction_received' }\n | { type: 'on_successful_transfer'; transferResult: TransferResult },\n ) => {\n switch (msg.type) {\n case 'on_successful_transfer':\n setTransferResult(msg.transferResult);\n break;\n case 'on_transaction_received':\n // Transaction received, no action needed\n break;\n default:\n notReachable(msg);\n }\n },\n [],\n );\n\n useEffect(() => {\n fireEvent('reset', { clearWalletAddress: true });\n\n return () => {\n fireEvent('depositTypeSet', { isExternal: false });\n };\n }, []);\n\n useStoreSideEffects({\n debug: isDebug(),\n listenTo: [\n 'checkWalletConnection',\n 'setSourceTokenBalance',\n 'setSourceTokenIntentsTarget',\n ['setDefaultSelectedTokens', { skipIntents: true }],\n ['makeQuote', { message: undefined, refetchQuoteInterval }],\n ['setBalancesUsingAlchemyExt', { alchemyApiKey }],\n ],\n });\n\n useEffect(() => {\n onMsg?.({\n type: 'on_change_deposit_type',\n isExternal: ctx.isDepositFromExternalWallet,\n });\n }, [ctx.isDepositFromExternalWallet]);\n\n if (!!isLoading || (tokensStatus !== 'error' && !ctx.sourceToken)) {\n return <WidgetDepositSkeleton />;\n }\n\n if (isCompatibilityOpen) {\n return (\n <WalletCompatibilityCheck\n providers={providers}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_sign_out':\n onWalletSignout?.(intentsAccountType);\n setIsCompatibilityOpen(false);\n break;\n case 'on_close':\n setIsCompatibilityOpen(false);\n break;\n default:\n notReachable(msg.type);\n }\n }}\n />\n );\n }\n\n if (ctx.state === 'transfer_success' && !!transferResult) {\n return (\n <SuccessScreen\n {...transferResult}\n message={[\n 'Your deposit has been successfully completed,',\n 'and the funds are now available in your account.',\n ]}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_dismiss_success':\n setTransferResult(undefined);\n break;\n default:\n notReachable(msg.type);\n }\n }}\n />\n );\n }\n\n switch (tokensStatus) {\n case 'error':\n return (\n <BlockingError\n message=\"Couldn't load tokens list.\"\n onClickRetry={refetchTokens}\n />\n );\n\n case 'success': {\n if (tokenModalOpen !== 'none') {\n return (\n <TokensModal\n showBalances\n showChainsSelector\n variant={tokenModalOpen}\n groupTokens={tokenModalOpen === 'source'}\n chainsFilter={\n tokenModalOpen === 'source'\n ? chainsFilter.source\n : chainsFilter.target\n }\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_select_token':\n onChangeToken(tokenModalOpen, msg.token);\n updateTokenModalState('none');\n onMsg?.({\n type: msg.type,\n token: msg.token,\n variant: tokenModalOpen,\n });\n break;\n case 'on_dismiss_tokens_modal':\n updateTokenModalState('none');\n break;\n default:\n notReachable(msg);\n }\n }}\n />\n );\n }\n\n return (\n <div className=\"gap-sw-2xl flex flex-col\">\n <TokenInput.Source\n showBalance={!ctx.isDepositFromExternalWallet}\n heading={t('tokenInput.heading.source.deposit', 'Sell')}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_select_token':\n onChangeToken('source', msg.token);\n break;\n case 'on_change_amount':\n onChangeAmount('source', msg.amount);\n break;\n case 'on_click_select_token':\n updateTokenModalState('source');\n break;\n default:\n notReachable(msg);\n }\n }}\n />\n\n <DepositMethodSwitcher className=\"mt-sw-md\">\n {({ isExternal }) =>\n isExternal ? (\n <div className=\"gap-sw-2xl flex flex-col justify-between\">\n <ExternalDeposit onMsg={handleExternalDepositMsg} />\n {(ctx.state === 'quote_success_internal' ||\n ctx.state === 'quote_success_external') && (\n <Banner\n multiline\n variant=\"warn\"\n message=\"Match the token, amount and network entered above in your wallet. Incorrect values will cause the deposit to fail and be refunded.\"\n />\n )}\n </div>\n ) : null\n }\n </DepositMethodSwitcher>\n\n {!isDirectNearTokenWithdrawal && <SwapQuote />}\n\n <SubmitButton\n providers={providers}\n makeTransfer={makeTransfer}\n label={t('submit.active.deposit', 'Deposit now')}\n onSuccess={(transfer) => {\n setTransferResult(transfer);\n onMsg?.({ type: 'on_transfer_success' });\n }}\n />\n </div>\n );\n }\n\n case 'pending':\n default:\n return <WidgetDepositSkeleton />;\n }\n};\n"],"names":["WidgetDepositContent","providers","onMsg","makeTransfer","isLoading","ctx","useUnsafeSnapshot","t","useTypedTranslation","isDirectNearTokenWithdrawal","useComputedSnapshot","chainsFilter","alchemyApiKey","refetchQuoteInterval","intentsAccountType","onWalletSignout","useConfig","onChangeAmount","onChangeToken","useTokenInputPair","tokensStatus","refetchTokens","useTokens","tokenModalOpen","updateTokenModalState","useTokenModal","isCompatibilityCheckRequired","useIsCompatibilityCheckRequired","isCompatibilityOpen","setIsCompatibilityOpen","useState","useEffect","transferResult","setTransferResult","handleExternalDepositMsg","useCallback","msg","notReachable","fireEvent","useStoreSideEffects","isDebug","WidgetDepositSkeleton","jsx","WalletCompatibilityCheck","SuccessScreen","BlockingError","TokensModal","jsxs","TokenInput","DepositMethodSwitcher","isExternal","ExternalDeposit","Banner","SwapQuote","SubmitButton","transfer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CO,MAAMA,KAAuB,CAAC;AAAA,EACnC,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AACF,MAAa;AACX,QAAM,EAAE,KAAAC,EAAA,IAAQC,EAAA,GACV,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,6BAAAC,EAAA,IAAgCC,EAAA,GAClC;AAAA,IACJ,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,iBAAAC;AAAA,EAAA,IACEC,EAAA,GAEE,EAAE,gBAAAC,GAAgB,eAAAC,EAAA,IAAkBC,EAAA,GACpC,EAAE,QAA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,EAAE,yBAAyB,aAAa;AAAA,YAC/C,WAAW,CAACgD,MAAa;AACvB,cAAAtB,EAAkBsB,CAAQ,GAC1BrD,IAAQ,EAAE,MAAM,uBAAuB;AAAA,YACzC;AAAA,UAAA;AAAA,QAAA;AAAA,MACF,GACF;AAAA,IAIJ,KAAK;AAAA,IACL;AACE,+BAAQuC,GAAA,EAAsB;AAAA,EAAA;AAEpC;"}
|
|
1
|
+
{"version":3,"file":"WidgetDepositContent.js","sources":["../../../src/widgets/WidgetDeposit/WidgetDepositContent.tsx"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport type { CommonWidgetProps, TokenInputType } from '../types';\nimport { useTokenModal } from '../../hooks/useTokenModal';\nimport { useTypedTranslation } from '../../localisation';\nimport { WidgetDepositSkeleton } from './WidgetDepositSkeleton';\nimport {\n DepositMethodSwitcher,\n ExternalDeposit,\n SubmitButton,\n SuccessScreen,\n SwapQuote,\n TokenInput,\n TokensModal,\n} from '@/features';\n\nimport { Banner, BlockingError } from '@/components';\nimport { WalletCompatibilityCheck } from '@/features/WalletCompatibilityCheck';\n\nimport { useStoreSideEffects } from '@/machine/effects';\nimport { useComputedSnapshot, useUnsafeSnapshot } from '@/machine/snap';\nimport { fireEvent } from '@/machine/events/utils/fireEvent';\n\nimport {\n useIsCompatibilityCheckRequired,\n useTokenInputPair,\n useTokens,\n} from '@/hooks';\nimport { useConfig } from '@/config';\n\nimport { isDebug, notReachable } from '@/utils';\n\nimport type { Token, TransferResult } from '@/types';\n\ntype Msg =\n | { type: 'on_select_token'; token: Token; variant: TokenInputType }\n | { type: 'on_change_deposit_type'; isExternal: boolean }\n | { type: 'on_transfer_success' }\n | { type: 'on_tokens_modal_toggled'; isOpen: boolean };\n\nexport type Props = CommonWidgetProps<Msg>;\n\nexport const WidgetDepositContent = ({\n providers,\n onMsg,\n makeTransfer,\n isLoading,\n}: Props) => {\n const { ctx } = useUnsafeSnapshot();\n const { t } = useTypedTranslation();\n const { isDirectNearTokenWithdrawal } = useComputedSnapshot();\n const {\n chainsFilter,\n alchemyApiKey,\n refetchQuoteInterval,\n intentsAccountType,\n onWalletSignout,\n } = useConfig();\n\n const { onChangeAmount, onChangeToken } = useTokenInputPair();\n const { status: tokensStatus, refetch: refetchTokens } = useTokens();\n const { tokenModalOpen, updateTokenModalState } = useTokenModal({ onMsg });\n\n const isCompatibilityCheckRequired = useIsCompatibilityCheckRequired();\n const [isCompatibilityOpen, setIsCompatibilityOpen] = useState(false);\n\n useEffect(() => {\n if (isCompatibilityCheckRequired) {\n setIsCompatibilityOpen(true);\n }\n }, [isCompatibilityCheckRequired]);\n\n const [transferResult, setTransferResult] = useState<\n TransferResult | undefined\n >();\n\n const handleExternalDepositMsg = useCallback(\n (\n msg:\n | { type: 'on_transaction_received' }\n | { type: 'on_successful_transfer'; transferResult: TransferResult },\n ) => {\n switch (msg.type) {\n case 'on_successful_transfer':\n setTransferResult(msg.transferResult);\n break;\n case 'on_transaction_received':\n // Transaction received, no action needed\n break;\n default:\n notReachable(msg);\n }\n },\n [],\n );\n\n useEffect(() => {\n fireEvent('reset', { clearWalletAddress: true });\n\n return () => {\n fireEvent('depositTypeSet', { isExternal: false });\n };\n }, []);\n\n useStoreSideEffects({\n debug: isDebug(),\n listenTo: [\n 'checkWalletConnection',\n 'setSourceTokenBalance',\n 'setSourceTokenIntentsTarget',\n ['setDefaultSelectedTokens', { skipIntents: true }],\n ['makeQuote', { message: undefined, refetchQuoteInterval }],\n ['setBalancesUsingAlchemyExt', { alchemyApiKey }],\n ],\n });\n\n useEffect(() => {\n onMsg?.({\n type: 'on_change_deposit_type',\n isExternal: ctx.isDepositFromExternalWallet,\n });\n }, [ctx.isDepositFromExternalWallet]);\n\n if (!!isLoading || (tokensStatus !== 'error' && !ctx.sourceToken)) {\n return <WidgetDepositSkeleton />;\n }\n\n if (isCompatibilityOpen) {\n return (\n <WalletCompatibilityCheck\n providers={providers}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_sign_out':\n onWalletSignout?.(intentsAccountType);\n setIsCompatibilityOpen(false);\n break;\n case 'on_close':\n setIsCompatibilityOpen(false);\n break;\n default:\n notReachable(msg.type);\n }\n }}\n />\n );\n }\n\n if (ctx.state === 'transfer_success' && !!transferResult) {\n return (\n <SuccessScreen\n {...transferResult}\n message={[\n 'Your deposit has been successfully completed,',\n 'and the funds are now available in your account.',\n ]}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_dismiss_success':\n setTransferResult(undefined);\n break;\n default:\n notReachable(msg.type);\n }\n }}\n />\n );\n }\n\n switch (tokensStatus) {\n case 'error':\n return (\n <BlockingError\n message=\"Couldn't load tokens list.\"\n onClickRetry={refetchTokens}\n />\n );\n\n case 'success': {\n if (tokenModalOpen !== 'none') {\n return (\n <TokensModal\n showBalances\n showChainsSelector\n variant={tokenModalOpen}\n groupTokens={tokenModalOpen === 'source'}\n chainsFilter={\n tokenModalOpen === 'source'\n ? chainsFilter.source\n : chainsFilter.target\n }\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_select_token':\n onChangeToken(tokenModalOpen, msg.token);\n updateTokenModalState('none');\n onMsg?.({\n type: msg.type,\n token: msg.token,\n variant: tokenModalOpen,\n });\n break;\n case 'on_dismiss_tokens_modal':\n updateTokenModalState('none');\n break;\n default:\n notReachable(msg);\n }\n }}\n />\n );\n }\n\n return (\n <div className=\"gap-sw-2xl flex flex-col\">\n <TokenInput.Source\n showBalance={!ctx.isDepositFromExternalWallet}\n heading={t('tokenInput.heading.source.deposit', 'Sell')}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_select_token':\n onChangeToken('source', msg.token);\n break;\n case 'on_change_amount':\n onChangeAmount('source', msg.amount);\n break;\n case 'on_click_select_token':\n updateTokenModalState('source');\n break;\n default:\n notReachable(msg);\n }\n }}\n />\n\n <DepositMethodSwitcher>\n {({ isExternal }) =>\n isExternal ? (\n <div className=\"gap-sw-2xl flex flex-col justify-between\">\n <ExternalDeposit onMsg={handleExternalDepositMsg} />\n {(ctx.state === 'quote_success_internal' ||\n ctx.state === 'quote_success_external') && (\n <Banner\n multiline\n variant=\"warn\"\n message=\"Match the token, amount and network entered above in your wallet. Incorrect values will cause the deposit to fail and be refunded.\"\n />\n )}\n </div>\n ) : null\n }\n </DepositMethodSwitcher>\n\n {!isDirectNearTokenWithdrawal && <SwapQuote />}\n\n <SubmitButton\n providers={providers}\n makeTransfer={makeTransfer}\n label={t('submit.active.deposit', 'Deposit now')}\n onSuccess={(transfer) => {\n setTransferResult(transfer);\n onMsg?.({ type: 'on_transfer_success' });\n }}\n />\n </div>\n );\n }\n\n case 'pending':\n default:\n return <WidgetDepositSkeleton />;\n }\n};\n"],"names":["WidgetDepositContent","providers","onMsg","makeTransfer","isLoading","ctx","useUnsafeSnapshot","t","useTypedTranslation","isDirectNearTokenWithdrawal","useComputedSnapshot","chainsFilter","alchemyApiKey","refetchQuoteInterval","intentsAccountType","onWalletSignout","useConfig","onChangeAmount","onChangeToken","useTokenInputPair","tokensStatus","refetchTokens","useTokens","tokenModalOpen","updateTokenModalState","useTokenModal","isCompatibilityCheckRequired","useIsCompatibilityCheckRequired","isCompatibilityOpen","setIsCompatibilityOpen","useState","useEffect","transferResult","setTransferResult","handleExternalDepositMsg","useCallback","msg","notReachable","fireEvent","useStoreSideEffects","isDebug","WidgetDepositSkeleton","jsx","WalletCompatibilityCheck","SuccessScreen","BlockingError","TokensModal","jsxs","TokenInput","DepositMethodSwitcher","isExternal","ExternalDeposit","Banner","SwapQuote","SubmitButton","transfer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CO,MAAMA,KAAuB,CAAC;AAAA,EACnC,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AACF,MAAa;AACX,QAAM,EAAE,KAAAC,EAAA,IAAQC,EAAA,GACV,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,6BAAAC,EAAA,IAAgCC,EAAA,GAClC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AAA,CAEJ,IACE,MAER;AAAA,QAEC,CAAC3C,KAA+B,gBAAAiC,EAACW,GAAA,EAAU;AAAA,QAE5C,gBAAAX;AAAA,UAACY;AAAA,UAAA;AAAA,YACC,WAAArD;AAAA,YACA,cAAAE;AAAA,YACA,OAAOI,EAAE,yBAAyB,aAAa;AAAA,YAC/C,WAAW,CAACgD,MAAa;AACvB,cAAAtB,EAAkBsB,CAAQ,GAC1BrD,IAAQ,EAAE,MAAM,uBAAuB;AAAA,YACzC;AAAA,UAAA;AAAA,QAAA;AAAA,MACF,GACF;AAAA,IAIJ,KAAK;AAAA,IACL;AACE,+BAAQuC,GAAA,EAAsB;AAAA,EAAA;AAEpC;"}
|
|
@@ -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-DKdwFIJc.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: [
|
|
@@ -3,7 +3,7 @@ import { useState as b, useEffect as y } from "react";
|
|
|
3
3
|
import { useTokenModal as R } from "../../hooks/useTokenModal.js";
|
|
4
4
|
import { WidgetSwapSkeleton as S } from "./WidgetSwapSkeleton.js";
|
|
5
5
|
import { useTypedTranslation as D } from "../../localisation.js";
|
|
6
|
-
import { b as N, u as O, y as Q, n as j, c as q, p as w, o as F, S as U } from "../../config-
|
|
6
|
+
import { b as N, u as O, y as Q, n as j, c as q, p as w, o as F, S as U } from "../../config-DKdwFIJc.js";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "@headlessui/react";
|
|
9
9
|
import "framer-motion";
|
|
@@ -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-DKdwFIJc.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: [
|
|
@@ -3,7 +3,7 @@ import { useState as w, useEffect as b } from "react";
|
|
|
3
3
|
import { useTokenModal as B } from "../../hooks/useTokenModal.js";
|
|
4
4
|
import { WidgetWithdrawSkeleton as y } from "./WidgetWithdrawSkeleton.js";
|
|
5
5
|
import { useTypedTranslation as D } from "../../localisation.js";
|
|
6
|
-
import { b as N, u as O, y as Q, n as j, c as q, p as S, o as F, S as U } from "../../config-
|
|
6
|
+
import { b as N, u as O, y as Q, n as j, c as q, p as S, o as F, S as U } from "../../config-DKdwFIJc.js";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "@headlessui/react";
|
|
9
9
|
import "framer-motion";
|
|
@@ -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-DKdwFIJc.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: [
|
package/package.json
CHANGED
package/src/tailwind.css
CHANGED
|
@@ -73,6 +73,8 @@ export const ThemeProvider = ({ children, theme }: ThemeProviderProps) => {
|
|
|
73
73
|
}, [theme]);
|
|
74
74
|
|
|
75
75
|
return (
|
|
76
|
-
<ThemeContext.Provider value={value}>
|
|
76
|
+
<ThemeContext.Provider value={value}>
|
|
77
|
+
<div className="sw">{children}</div>
|
|
78
|
+
</ThemeContext.Provider>
|
|
77
79
|
);
|
|
78
80
|
};
|
package/src/theme.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--font-family-sw: 'Inter', sans-serif;
|
|
3
|
+
--default-font-family: var(--font-family-sw);
|
|
3
4
|
|
|
4
5
|
--r-sw-sm: 6px;
|
|
5
6
|
--r-sw-md: 10px;
|
|
@@ -73,11 +74,11 @@
|
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
font-family:
|
|
78
|
-
font-feature-settings: 'liga' 1, 'calt' 1;
|
|
77
|
+
.sw {
|
|
78
|
+
font-family: var(--font-family-sw);
|
|
79
|
+
font-feature-settings: 'liga' 1, 'calt' 1;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
@supports (font-variation-settings: normal) {
|
|
82
|
-
|
|
83
|
+
.sw { font-family: var(--font-family-sw); }
|
|
83
84
|
}
|