@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.
Files changed (47) hide show
  1. package/dist/components/BlockchainList/BlockchainList.styles.d.ts +3 -3
  2. package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts +1 -1
  3. package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +15 -15
  4. package/dist/components/ConfirmWalletsModal/WalletList.styles.d.ts +3 -3
  5. package/dist/components/CustomCollapsible/CustomCollapsible.styles.d.ts +4 -4
  6. package/dist/components/HeaderButtons/HeaderButtons.styles.d.ts +8 -8
  7. package/dist/components/HistoryGroupedList/HistoryGroupedList.styles.d.ts +6 -6
  8. package/dist/components/Layout/Layout.styles.d.ts +4 -4
  9. package/dist/components/Layout/PageContainer.d.ts +1 -1
  10. package/dist/components/Layout/ScrollableArea.d.ts +1 -1
  11. package/dist/components/LoadingLiquiditySourceList/LoadingLiquiditySourceList.styles.d.ts +1 -1
  12. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts +14 -14
  13. package/dist/components/NoResult/NoResult.styles.d.ts +4 -4
  14. package/dist/components/NotificationContent/NotificationContent.styles.d.ts +8 -8
  15. package/dist/components/Quote/Quote.styles.d.ts +21 -21
  16. package/dist/components/Quote/QuoteCostDetails.styles.d.ts +5 -5
  17. package/dist/components/Quote/QuoteSummary.styles.d.ts +2 -2
  18. package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts +4 -4
  19. package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts +10 -10
  20. package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts +5 -5
  21. package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts +4 -4
  22. package/dist/components/Quotes/Quotes.styles.d.ts +3 -3
  23. package/dist/components/RefreshModal/RefreshModal.styles.d.ts +1 -1
  24. package/dist/components/SearchInput/SearchInput.styles.d.ts +1 -1
  25. package/dist/components/SettingsContainer/SettingsContainer.style.d.ts +3 -3
  26. package/dist/components/Slippage/Slippage.styles.d.ts +5 -5
  27. package/dist/components/SwapDetails/SwapDetails.styles.d.ts +15 -15
  28. package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.styles.d.ts +3 -3
  29. package/dist/components/SwapDetailsModal/SwapDetailsModal.styles.d.ts +2 -2
  30. package/dist/components/SwitchFromAndTo/SwitchFromAndTo.styles.d.ts +2 -2
  31. package/dist/components/TokenList/TokenList.styles.d.ts +18 -18
  32. package/dist/components/WalletModal/WalletModalContent.styles.d.ts +4 -4
  33. package/dist/components/WalletNamespacesModal/WalletNamespacesModal.styles.d.ts +1 -1
  34. package/dist/containers/App/App.styles.d.ts +1 -1
  35. package/dist/containers/ExpandedQuotes/ExpandedQuotes.styles.d.ts +2 -2
  36. package/dist/containers/Inputs/Inputs.styles.d.ts +2 -2
  37. package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts +3 -3
  38. package/dist/hooks/useTheme.d.ts.map +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/index.js.map +2 -2
  41. package/dist/types/config.d.ts +2 -1
  42. package/dist/types/config.d.ts.map +1 -1
  43. package/dist/widget-embedded.build.json +1 -1
  44. package/package.json +2 -2
  45. package/src/components/Layout/Layout.styles.ts +1 -1
  46. package/src/hooks/useTheme.ts +1 -0
  47. 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.0",
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.0",
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",
@@ -7,7 +7,7 @@ export const LayoutContainer = css({
7
7
  display: 'flex',
8
8
  flexDirection: 'column',
9
9
  overflow: 'hidden',
10
- boxShadow: '15px 15px 15px 0px rgba(0, 0, 0, 0.05)',
10
+ boxShadow: '$mainContainer',
11
11
  });
12
12
 
13
13
  export const Container = styled('div', {
@@ -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`,
@@ -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;