@rango-dev/widget-embedded 0.29.1-next.0 → 0.29.1-next.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/BlockchainList/BlockchainList.styles.d.ts +3 -3
- package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +15 -15
- package/dist/components/ConfirmWalletsModal/WalletList.styles.d.ts +3 -3
- package/dist/components/CustomCollapsible/CustomCollapsible.styles.d.ts +4 -4
- package/dist/components/HeaderButtons/HeaderButtons.styles.d.ts +8 -8
- package/dist/components/HistoryGroupedList/HistoryGroupedList.styles.d.ts +6 -6
- package/dist/components/Layout/Layout.styles.d.ts +4 -4
- package/dist/components/Layout/PageContainer.d.ts +1 -1
- package/dist/components/Layout/ScrollableArea.d.ts +1 -1
- package/dist/components/LoadingLiquiditySourceList/LoadingLiquiditySourceList.styles.d.ts +1 -1
- package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts +14 -14
- package/dist/components/NoResult/NoResult.styles.d.ts +4 -4
- package/dist/components/NotificationContent/NotificationContent.styles.d.ts +8 -8
- package/dist/components/Quote/Quote.styles.d.ts +21 -21
- package/dist/components/Quote/QuoteCostDetails.styles.d.ts +5 -5
- package/dist/components/Quote/QuoteSummary.styles.d.ts +2 -2
- package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts +4 -4
- package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts +10 -10
- package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts +5 -5
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts +4 -4
- package/dist/components/Quotes/Quotes.styles.d.ts +3 -3
- package/dist/components/RefreshModal/RefreshModal.styles.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.styles.d.ts +1 -1
- package/dist/components/SettingsContainer/SettingsContainer.style.d.ts +3 -3
- package/dist/components/Slippage/Slippage.styles.d.ts +5 -5
- package/dist/components/SwapDetails/SwapDetails.styles.d.ts +15 -15
- package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.styles.d.ts +3 -3
- package/dist/components/SwapDetailsModal/SwapDetailsModal.styles.d.ts +2 -2
- package/dist/components/SwitchFromAndTo/SwitchFromAndTo.styles.d.ts +2 -2
- package/dist/components/TokenList/TokenList.styles.d.ts +18 -18
- package/dist/components/WalletModal/WalletModalContent.styles.d.ts +4 -4
- package/dist/components/WalletNamespacesModal/WalletNamespacesModal.styles.d.ts +1 -1
- package/dist/containers/App/App.styles.d.ts +1 -1
- package/dist/containers/ExpandedQuotes/ExpandedQuotes.styles.d.ts +2 -2
- package/dist/containers/Inputs/Inputs.styles.d.ts +2 -2
- package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts +3 -3
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/types/config.d.ts +2 -1
- package/dist/types/config.d.ts.map +1 -1
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +2 -2
- package/src/components/Layout/Layout.styles.ts +1 -1
- package/src/hooks/useTheme.ts +1 -0
- package/src/types/config.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.29.1-next.
|
|
3
|
+
"version": "0.29.1-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@rango-dev/queue-manager-rango-preset": "^0.34.1-next.0",
|
|
31
31
|
"@rango-dev/queue-manager-react": "^0.26.0",
|
|
32
32
|
"@rango-dev/signer-solana": "^0.29.1-next.0",
|
|
33
|
-
"@rango-dev/ui": "^0.35.1-next.
|
|
33
|
+
"@rango-dev/ui": "^0.35.1-next.1",
|
|
34
34
|
"@rango-dev/wallets-react": "^0.20.1-next.0",
|
|
35
35
|
"@rango-dev/wallets-shared": "^0.34.1-next.0",
|
|
36
36
|
"bignumber.js": "^9.1.1",
|
package/src/hooks/useTheme.ts
CHANGED
|
@@ -30,6 +30,7 @@ export function useTheme(props: WidgetTheme) {
|
|
|
30
30
|
const { dark, light } = customizedThemeTokens(colors);
|
|
31
31
|
|
|
32
32
|
const baseTheme = createTheme({
|
|
33
|
+
shadows: props.shadows || {},
|
|
33
34
|
radii: {
|
|
34
35
|
primary: `${borderRadius}px`,
|
|
35
36
|
secondary: `${secondaryBorderRadius}px`,
|
package/src/types/config.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Language } from '@rango-dev/ui';
|
|
1
|
+
import type { Language, theme } from '@rango-dev/ui';
|
|
2
2
|
import type { ProviderInterface } from '@rango-dev/wallets-react';
|
|
3
3
|
import type { WalletType } from '@rango-dev/wallets-shared';
|
|
4
4
|
import type { Asset } from 'rango-sdk';
|
|
@@ -49,6 +49,7 @@ export type WidgetTheme = {
|
|
|
49
49
|
mode?: 'auto' | 'light' | 'dark';
|
|
50
50
|
fontFamily?: string;
|
|
51
51
|
colors?: { light?: WidgetColors; dark?: WidgetColors };
|
|
52
|
+
shadows?: typeof theme.shadows;
|
|
52
53
|
borderRadius?: number;
|
|
53
54
|
secondaryBorderRadius?: number;
|
|
54
55
|
width?: number;
|