@lifi/widget 2.4.4 → 2.4.6

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 (126) hide show
  1. package/AppDrawer.style.d.ts +6 -71
  2. package/cjs/AppDrawer.style.d.ts +6 -71
  3. package/cjs/components/ActiveTransactions/ActiveTransactions.style.d.ts +6 -65
  4. package/cjs/components/AmountInput/AmountInput.style.d.ts +2 -16
  5. package/cjs/components/AmountInput/AmountInputAdornment.style.d.ts +2 -32
  6. package/cjs/components/AppContainer.d.ts +4 -16
  7. package/cjs/components/Card/Card.d.ts +3 -8
  8. package/cjs/components/Card/CardHeader.d.ts +2 -16
  9. package/cjs/components/Card/CardIconButton.d.ts +2 -27
  10. package/cjs/components/Card/CardLabel.d.ts +5 -20
  11. package/cjs/components/Card/CardTitle.d.ts +2 -12
  12. package/cjs/components/ChainSelect/ChainSelect.style.d.ts +5 -15
  13. package/cjs/components/GasMessage/GasMessage.style.d.ts +8 -28
  14. package/cjs/components/Header/Header.style.d.ts +8 -61
  15. package/cjs/components/Header/NavigationTabs.style.d.ts +4 -29
  16. package/cjs/components/ListItemButton.d.ts +2 -18
  17. package/cjs/components/NFT/NFT.style.d.ts +2 -14
  18. package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +2 -27
  19. package/cjs/components/RouteCard/RouteCard.style.d.ts +2 -12
  20. package/cjs/components/Routes/RoutesExpanded.style.d.ts +8 -28
  21. package/cjs/components/SelectTokenButton/SelectTokenButton.style.d.ts +2 -16
  22. package/cjs/components/SendToWallet/SendToWallet.js +4 -1
  23. package/cjs/components/SendToWallet/SendToWallet.style.d.ts +2 -16
  24. package/cjs/components/SmallAvatar.d.ts +6 -31
  25. package/cjs/components/Step/CircularProgress.style.d.ts +2 -7
  26. package/cjs/components/StepActions/StepActions.style.d.ts +2 -14
  27. package/cjs/components/StepDivider/StepDivider.style.d.ts +2 -9
  28. package/cjs/components/Token/Token.style.d.ts +6 -26
  29. package/cjs/components/TokenAvatar/TokenAvatar.style.d.ts +4 -14
  30. package/cjs/components/TokenList/TokenList.style.d.ts +4 -33
  31. package/cjs/config/version.d.ts +1 -1
  32. package/cjs/config/version.js +1 -1
  33. package/cjs/i18n/en.json +2 -1
  34. package/cjs/pages/MainPage/MainPage.style.d.ts +2 -9
  35. package/cjs/pages/RoutesPage/RoutesPage.style.d.ts +2 -9
  36. package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +2 -18
  37. package/cjs/pages/SelectWalletPage/SelectWalletPage.js +6 -1
  38. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +2 -31
  39. package/cjs/pages/SettingsPage/EnabledToolsButton.style.d.ts +2 -18
  40. package/cjs/pages/SettingsPage/ResetSettingsButton.js +29 -1
  41. package/cjs/pages/SettingsPage/ResetSettingsButton.style.d.ts +4 -0
  42. package/cjs/pages/SettingsPage/ResetSettingsButton.style.js +13 -0
  43. package/cjs/pages/TransactionDetailsPage/TransactionDetailsPage.style.d.ts +2 -9
  44. package/cjs/pages/TransactionPage/StatusBottomSheet.style.d.ts +4 -14
  45. package/cjs/pages/TransactionPage/TransactionPage.style.d.ts +2 -9
  46. package/cjs/stores/StoreProvider.js +3 -1
  47. package/cjs/stores/chains/ChainOrderStore.d.ts +3 -2
  48. package/cjs/stores/chains/createChainOrderStore.d.ts +1 -1
  49. package/cjs/stores/chains/createChainOrderStore.js +3 -3
  50. package/cjs/stores/header/types.d.ts +3 -2
  51. package/cjs/stores/header/useHeaderStore.d.ts +1 -1
  52. package/cjs/stores/header/useHeaderStore.js +3 -3
  53. package/cjs/stores/routes/RouteExecutionStore.d.ts +3 -2
  54. package/cjs/stores/routes/createRouteExecutionStore.d.ts +1 -1
  55. package/cjs/stores/routes/createRouteExecutionStore.js +4 -4
  56. package/cjs/stores/settings/types.d.ts +7 -5
  57. package/cjs/stores/settings/useSendToWalletStore.d.ts +1 -1
  58. package/cjs/stores/settings/useSendToWalletStore.js +3 -3
  59. package/cjs/stores/settings/useSettingsStore.d.ts +2 -2
  60. package/cjs/stores/settings/useSettingsStore.js +10 -6
  61. package/cjs/stores/settings/useSplitSubvariantStore.d.ts +1 -1
  62. package/cjs/stores/settings/useSplitSubvariantStore.js +4 -4
  63. package/cjs/types/widget.d.ts +2 -0
  64. package/components/ActiveTransactions/ActiveTransactions.style.d.ts +6 -65
  65. package/components/AmountInput/AmountInput.style.d.ts +2 -16
  66. package/components/AmountInput/AmountInputAdornment.style.d.ts +2 -32
  67. package/components/AppContainer.d.ts +4 -16
  68. package/components/Card/Card.d.ts +3 -8
  69. package/components/Card/CardHeader.d.ts +2 -16
  70. package/components/Card/CardIconButton.d.ts +2 -27
  71. package/components/Card/CardLabel.d.ts +5 -20
  72. package/components/Card/CardTitle.d.ts +2 -12
  73. package/components/ChainSelect/ChainSelect.style.d.ts +5 -15
  74. package/components/GasMessage/GasMessage.style.d.ts +8 -28
  75. package/components/Header/Header.style.d.ts +8 -61
  76. package/components/Header/NavigationTabs.style.d.ts +4 -29
  77. package/components/ListItemButton.d.ts +2 -18
  78. package/components/NFT/NFT.style.d.ts +2 -14
  79. package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +2 -27
  80. package/components/RouteCard/RouteCard.style.d.ts +2 -12
  81. package/components/Routes/RoutesExpanded.style.d.ts +8 -28
  82. package/components/SelectTokenButton/SelectTokenButton.style.d.ts +2 -16
  83. package/components/SendToWallet/SendToWallet.js +4 -1
  84. package/components/SendToWallet/SendToWallet.style.d.ts +2 -16
  85. package/components/SmallAvatar.d.ts +6 -31
  86. package/components/Step/CircularProgress.style.d.ts +2 -7
  87. package/components/StepActions/StepActions.style.d.ts +2 -14
  88. package/components/StepDivider/StepDivider.style.d.ts +2 -9
  89. package/components/Token/Token.style.d.ts +6 -26
  90. package/components/TokenAvatar/TokenAvatar.style.d.ts +4 -14
  91. package/components/TokenList/TokenList.style.d.ts +4 -33
  92. package/config/version.d.ts +1 -1
  93. package/config/version.js +1 -1
  94. package/i18n/en.json +2 -1
  95. package/package.json +14 -14
  96. package/pages/MainPage/MainPage.style.d.ts +2 -9
  97. package/pages/RoutesPage/RoutesPage.style.d.ts +2 -9
  98. package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +2 -18
  99. package/pages/SelectWalletPage/SelectWalletPage.js +7 -2
  100. package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +2 -31
  101. package/pages/SettingsPage/EnabledToolsButton.style.d.ts +2 -18
  102. package/pages/SettingsPage/ResetSettingsButton.js +30 -2
  103. package/pages/SettingsPage/ResetSettingsButton.style.d.ts +4 -0
  104. package/pages/SettingsPage/ResetSettingsButton.style.js +10 -0
  105. package/pages/TransactionDetailsPage/TransactionDetailsPage.style.d.ts +2 -9
  106. package/pages/TransactionPage/StatusBottomSheet.style.d.ts +4 -14
  107. package/pages/TransactionPage/TransactionPage.style.d.ts +2 -9
  108. package/stores/StoreProvider.js +3 -1
  109. package/stores/chains/ChainOrderStore.d.ts +3 -2
  110. package/stores/chains/createChainOrderStore.d.ts +1 -1
  111. package/stores/chains/createChainOrderStore.js +3 -3
  112. package/stores/header/types.d.ts +3 -2
  113. package/stores/header/useHeaderStore.d.ts +1 -1
  114. package/stores/header/useHeaderStore.js +3 -3
  115. package/stores/routes/RouteExecutionStore.d.ts +3 -2
  116. package/stores/routes/createRouteExecutionStore.d.ts +1 -1
  117. package/stores/routes/createRouteExecutionStore.js +4 -4
  118. package/stores/settings/types.d.ts +7 -5
  119. package/stores/settings/useSendToWalletStore.d.ts +1 -1
  120. package/stores/settings/useSendToWalletStore.js +3 -3
  121. package/stores/settings/useSettingsStore.d.ts +2 -2
  122. package/stores/settings/useSettingsStore.js +10 -6
  123. package/stores/settings/useSplitSubvariantStore.d.ts +1 -1
  124. package/stores/settings/useSplitSubvariantStore.js +4 -4
  125. package/tsconfig.cjs.tsbuildinfo +1 -1
  126. package/types/widget.d.ts +2 -0
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createChainOrderStore = exports.maxChainToOrder = void 0;
4
- const zustand_1 = require("zustand");
5
4
  const middleware_1 = require("zustand/middleware");
5
+ const traditional_1 = require("zustand/traditional");
6
6
  exports.maxChainToOrder = 9;
7
- const createChainOrderStore = ({ namePrefix }) => (0, zustand_1.create)((0, middleware_1.persist)((set, get) => ({
7
+ const createChainOrderStore = ({ namePrefix }) => (0, traditional_1.createWithEqualityFn)((0, middleware_1.persist)((set, get) => ({
8
8
  chainOrder: [],
9
9
  availableChains: [],
10
10
  initializeChains: (chainIds) => {
@@ -49,5 +49,5 @@ const createChainOrderStore = ({ namePrefix }) => (0, zustand_1.create)((0, midd
49
49
  name: `${namePrefix || 'li.fi'}-widget-chains-order`,
50
50
  version: 0,
51
51
  partialize: (state) => ({ chainOrder: state.chainOrder }),
52
- }));
52
+ }), Object.is);
53
53
  exports.createChainOrderStore = createChainOrderStore;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import type { StoreApi, UseBoundStore } from 'zustand';
3
- export type HeaderStore = UseBoundStore<StoreApi<HeaderState>>;
2
+ import type { StoreApi } from 'zustand';
3
+ import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional';
4
+ export type HeaderStore = UseBoundStoreWithEqualityFn<StoreApi<HeaderState>>;
4
5
  export interface HeaderStateBase {
5
6
  element?: React.ReactNode | null;
6
7
  title?: string;
@@ -5,4 +5,4 @@ export declare const HeaderStoreContext: import("react").Context<HeaderStore | n
5
5
  export declare function HeaderStoreProvider({ children, ...props }: PersistStoreProviderProps): import("react/jsx-runtime").JSX.Element;
6
6
  export declare function useHeaderStore<T>(selector: (state: HeaderState) => T, equalityFn?: (left: T, right: T) => boolean): T;
7
7
  export declare function useHeaderStoreContext(): HeaderStore;
8
- export declare const createHeaderStore: ({ namePrefix }: PersistStoreProps) => import("zustand").UseBoundStore<import("zustand").StoreApi<HeaderState>>;
8
+ export declare const createHeaderStore: ({ namePrefix }: PersistStoreProps) => import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<HeaderState>>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createHeaderStore = exports.useHeaderStoreContext = exports.useHeaderStore = exports.HeaderStoreProvider = exports.HeaderStoreContext = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const zustand_1 = require("zustand");
6
+ const traditional_1 = require("zustand/traditional");
7
7
  exports.HeaderStoreContext = (0, react_1.createContext)(null);
8
8
  function HeaderStoreProvider({ children, ...props }) {
9
9
  const storeRef = (0, react_1.useRef)();
@@ -29,7 +29,7 @@ function useHeaderStoreContext() {
29
29
  return useStore;
30
30
  }
31
31
  exports.useHeaderStoreContext = useHeaderStoreContext;
32
- const createHeaderStore = ({ namePrefix }) => (0, zustand_1.create)((set, get) => ({
32
+ const createHeaderStore = ({ namePrefix }) => (0, traditional_1.createWithEqualityFn)((set, get) => ({
33
33
  setAction: (element) => {
34
34
  set(() => ({
35
35
  element,
@@ -52,5 +52,5 @@ const createHeaderStore = ({ namePrefix }) => (0, zustand_1.create)((set, get) =
52
52
  title: undefined,
53
53
  }));
54
54
  },
55
- }));
55
+ }), Object.is);
56
56
  exports.createHeaderStore = createHeaderStore;
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
- import type { StoreApi, UseBoundStore } from 'zustand';
2
+ import type { StoreApi } from 'zustand';
3
+ import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional';
3
4
  import type { PersistStoreProviderProps } from '../types';
4
5
  import type { RouteExecutionState } from './types';
5
- export type RouteExecutionStore = UseBoundStore<StoreApi<RouteExecutionState>>;
6
+ export type RouteExecutionStore = UseBoundStoreWithEqualityFn<StoreApi<RouteExecutionState>>;
6
7
  export declare const RouteExecutionStoreContext: import("react").Context<RouteExecutionStore | null>;
7
8
  export declare function RouteExecutionStoreProvider({ children, ...props }: PersistStoreProviderProps): import("react/jsx-runtime").JSX.Element;
8
9
  export declare function useRouteExecutionStore<T>(selector: (state: RouteExecutionState) => T, equalityFn?: (left: T, right: T) => boolean): T;
@@ -1,3 +1,3 @@
1
1
  import type { PersistStoreProps } from '../types';
2
2
  import type { RouteExecutionState } from './types';
3
- export declare const createRouteExecutionStore: ({ namePrefix }: PersistStoreProps) => import("zustand").UseBoundStore<import("zustand").StoreApi<RouteExecutionState>>;
3
+ export declare const createRouteExecutionStore: ({ namePrefix }: PersistStoreProps) => import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<RouteExecutionState>>;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createRouteExecutionStore = void 0;
4
- const zustand_1 = require("zustand");
5
4
  const middleware_1 = require("zustand/middleware");
5
+ const traditional_1 = require("zustand/traditional");
6
6
  const utils_1 = require("../../utils");
7
7
  const types_1 = require("./types");
8
8
  const utils_2 = require("./utils");
9
- const createRouteExecutionStore = ({ namePrefix }) => (0, zustand_1.create)((0, middleware_1.persist)((set, get) => ({
9
+ const createRouteExecutionStore = ({ namePrefix }) => (0, traditional_1.createWithEqualityFn)((0, middleware_1.persist)((set, get) => ({
10
10
  routes: {},
11
11
  setExecutableRoute: (route, insurableRouteId) => {
12
12
  if (!get().routes[route.id]) {
@@ -154,7 +154,7 @@ const createRouteExecutionStore = ({ namePrefix }) => (0, zustand_1.create)((0,
154
154
  }
155
155
  }
156
156
  catch (error) {
157
- console.log(error);
157
+ console.error(error);
158
158
  }
159
159
  return state;
160
160
  },
@@ -184,5 +184,5 @@ const createRouteExecutionStore = ({ namePrefix }) => (0, zustand_1.create)((0,
184
184
  }
185
185
  return persistedState;
186
186
  },
187
- }));
187
+ }), Object.is);
188
188
  exports.createRouteExecutionStore = createRouteExecutionStore;
@@ -1,6 +1,7 @@
1
1
  import type { Order } from '@lifi/sdk';
2
2
  import type { PropsWithChildren } from 'react';
3
- import type { StoreApi, UseBoundStore } from 'zustand';
3
+ import type { StoreApi } from 'zustand';
4
+ import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional';
4
5
  import type { Appearance, WidgetConfig } from '../../types';
5
6
  export type ValueSetter<S> = <K extends keyof S>(key: K, value: S[Extract<K, string>]) => void;
6
7
  export type ValuesSetter<S> = <K extends keyof S>(values: Record<K, S[Extract<K, string>]>) => void;
@@ -34,12 +35,13 @@ export interface SendToWalletStore extends SendToWalletState {
34
35
  toggleSendToWallet(): void;
35
36
  setSendToWallet(value: boolean): void;
36
37
  }
38
+ export type SplitSubvariantOptions = 'bridge' | 'swap';
37
39
  export interface SplitSubvariantState {
38
- state?: 'swap' | 'bridge';
39
- setState(state: 'swap' | 'bridge'): void;
40
+ state?: SplitSubvariantOptions;
41
+ setState(state: SplitSubvariantOptions): void;
40
42
  }
41
- export type SplitSubvariantStore = UseBoundStore<StoreApi<SplitSubvariantState>>;
43
+ export type SplitSubvariantStore = UseBoundStoreWithEqualityFn<StoreApi<SplitSubvariantState>>;
42
44
  export interface SplitSubvariantProps {
43
- state?: 'swap' | 'bridge';
45
+ state?: SplitSubvariantOptions;
44
46
  }
45
47
  export type SplitSubvariantProviderProps = PropsWithChildren<SplitSubvariantProps>;
@@ -1,2 +1,2 @@
1
1
  import type { SendToWalletStore } from './types';
2
- export declare const useSendToWalletStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SendToWalletStore>>;
2
+ export declare const useSendToWalletStore: import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<SendToWalletStore>>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useSendToWalletStore = void 0;
4
- const zustand_1 = require("zustand");
5
- exports.useSendToWalletStore = (0, zustand_1.create)((set) => ({
4
+ const traditional_1 = require("zustand/traditional");
5
+ exports.useSendToWalletStore = (0, traditional_1.createWithEqualityFn)((set) => ({
6
6
  showSendToWallet: false,
7
7
  showSendToWalletDirty: false,
8
8
  toggleSendToWallet: () => set((state) => ({
@@ -13,4 +13,4 @@ exports.useSendToWalletStore = (0, zustand_1.create)((set) => ({
13
13
  showSendToWallet: value,
14
14
  showSendToWalletDirty: true,
15
15
  }),
16
- }));
16
+ }), Object.is);
@@ -1,6 +1,6 @@
1
1
  import type { WidgetConfig } from '../../types';
2
2
  import type { SettingsProps, SettingsState } from './types';
3
- export declare const defaultConfigurableSettings: Pick<SettingsState, 'routePriority' | 'slippage'>;
3
+ export declare const defaultConfigurableSettings: Pick<SettingsState, 'routePriority' | 'slippage' | 'gasPrice'>;
4
4
  export declare const defaultSettings: SettingsProps;
5
- export declare const useSettingsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SettingsState>>;
5
+ export declare const useSettingsStore: import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<SettingsState>>;
6
6
  export declare const setDefaultSettings: (config?: WidgetConfig) => void;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setDefaultSettings = exports.useSettingsStore = exports.defaultSettings = exports.defaultConfigurableSettings = void 0;
4
- const zustand_1 = require("zustand");
5
4
  const middleware_1 = require("zustand/middleware");
5
+ const traditional_1 = require("zustand/traditional");
6
6
  const types_1 = require("./types");
7
7
  exports.defaultConfigurableSettings = {
8
8
  routePriority: 'RECOMMENDED',
9
9
  slippage: '0.5',
10
+ gasPrice: 'normal',
10
11
  };
11
12
  exports.defaultSettings = {
12
13
  appearance: 'auto',
@@ -16,7 +17,7 @@ exports.defaultSettings = {
16
17
  enabledBridges: [],
17
18
  enabledExchanges: [],
18
19
  };
19
- exports.useSettingsStore = (0, zustand_1.create)((0, middleware_1.persist)((set, get) => ({
20
+ exports.useSettingsStore = (0, traditional_1.createWithEqualityFn)((0, middleware_1.persist)((set, get) => ({
20
21
  ...exports.defaultSettings,
21
22
  setValue: (key, value) => set(() => ({
22
23
  [key]: value,
@@ -67,10 +68,10 @@ exports.useSettingsStore = (0, zustand_1.create)((0, middleware_1.persist)((set,
67
68
  }, {}),
68
69
  })),
69
70
  reset: (config, bridges, exchanges) => {
71
+ const { appearance, ...restDefaultSettings } = exports.defaultSettings;
70
72
  set(() => ({
71
- ...exports.defaultSettings,
73
+ ...restDefaultSettings,
72
74
  ...exports.defaultConfigurableSettings,
73
- appearance: config.appearance ?? exports.defaultSettings.appearance,
74
75
  }));
75
76
  get().initializeTools('Bridges', bridges, true);
76
77
  get().initializeTools('Exchanges', exchanges, true);
@@ -100,9 +101,9 @@ exports.useSettingsStore = (0, zustand_1.create)((0, middleware_1.persist)((set,
100
101
  }
101
102
  return persistedState;
102
103
  },
103
- }));
104
+ }), Object.is);
104
105
  const setDefaultSettings = (config) => {
105
- const { slippage, routePriority, setValue } = exports.useSettingsStore.getState();
106
+ const { slippage, routePriority, setValue, gasPrice } = exports.useSettingsStore.getState();
106
107
  const defaultSlippage = (config?.slippage ||
107
108
  config?.sdkConfig?.defaultRouteOptions?.slippage ||
108
109
  0) * 100;
@@ -116,5 +117,8 @@ const setDefaultSettings = (config) => {
116
117
  if (!routePriority) {
117
118
  setValue('routePriority', exports.defaultConfigurableSettings.routePriority);
118
119
  }
120
+ if (!gasPrice) {
121
+ setValue('gasPrice', exports.defaultConfigurableSettings.gasPrice);
122
+ }
119
123
  };
120
124
  exports.setDefaultSettings = setDefaultSettings;
@@ -4,4 +4,4 @@ export declare const SplitSubvariantStoreContext: import("react").Context<SplitS
4
4
  export declare function SplitSubvariantStoreProvider({ children, ...props }: SplitSubvariantProviderProps): import("react/jsx-runtime").JSX.Element;
5
5
  export declare function useSplitSubvariantStore<T>(selector: (state: SplitSubvariantState) => T, equalityFn?: (left: T, right: T) => boolean): T;
6
6
  export declare function useSplitSubvariantStoreContext(): SplitSubvariantStore;
7
- export declare const createSplitSubvariantStore: ({ state }: SplitSubvariantProps) => import("zustand").UseBoundStore<import("zustand").StoreApi<SplitSubvariantState>>;
7
+ export declare const createSplitSubvariantStore: ({ state }: SplitSubvariantProps) => import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<SplitSubvariantState>>;
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createSplitSubvariantStore = exports.useSplitSubvariantStoreContext = exports.useSplitSubvariantStore = exports.SplitSubvariantStoreProvider = exports.SplitSubvariantStoreContext = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const zustand_1 = require("zustand");
6
+ const traditional_1 = require("zustand/traditional");
7
7
  exports.SplitSubvariantStoreContext = (0, react_1.createContext)(null);
8
8
  const shouldRecreateStore = (store, props) => {
9
9
  const { state } = store.getState();
10
- return (!state && props.state) || (state && !props.state);
10
+ return state !== props.state;
11
11
  };
12
12
  function SplitSubvariantStoreProvider({ children, ...props }) {
13
13
  const storeRef = (0, react_1.useRef)();
@@ -33,12 +33,12 @@ function useSplitSubvariantStoreContext() {
33
33
  return useStore;
34
34
  }
35
35
  exports.useSplitSubvariantStoreContext = useSplitSubvariantStoreContext;
36
- const createSplitSubvariantStore = ({ state }) => (0, zustand_1.create)((set) => ({
36
+ const createSplitSubvariantStore = ({ state }) => (0, traditional_1.createWithEqualityFn)((set) => ({
37
37
  state,
38
38
  setState(state) {
39
39
  set(() => ({
40
40
  state,
41
41
  }));
42
42
  },
43
- }));
43
+ }), Object.is);
44
44
  exports.createSplitSubvariantStore = createSplitSubvariantStore;
@@ -4,6 +4,7 @@ import type { Components, PaletteMode, PaletteOptions, Shape, Theme } from '@mui
4
4
  import type { TypographyOptions } from '@mui/material/styles/createTypography';
5
5
  import type { CSSProperties, ReactNode, RefObject } from 'react';
6
6
  import type { LanguageKey, LanguageResources } from '../providers';
7
+ import type { SplitSubvariantOptions } from '../stores';
7
8
  export type WidgetVariant = 'default' | 'expandable' | 'drawer';
8
9
  export type WidgetSubvariant = 'default' | 'split' | 'nft' | 'refuel';
9
10
  export declare enum DisabledUI {
@@ -79,6 +80,7 @@ export interface WidgetConfig {
79
80
  insurance?: boolean;
80
81
  variant?: WidgetVariant;
81
82
  subvariant?: WidgetSubvariant;
83
+ subvariantOptions?: SplitSubvariantOptions;
82
84
  appearance?: Appearance;
83
85
  theme?: ThemeConfig;
84
86
  containerStyle?: CSSProperties;
@@ -1,71 +1,12 @@
1
1
  /// <reference types="react" />
2
- export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
3
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
4
- centerRipple?: boolean | undefined;
5
- children?: import("react").ReactNode;
6
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
7
- disabled?: boolean | undefined;
8
- disableRipple?: boolean | undefined;
9
- disableTouchRipple?: boolean | undefined;
10
- focusRipple?: boolean | undefined;
11
- focusVisibleClassName?: string | undefined;
12
- LinkComponent?: import("react").ElementType<any> | undefined;
13
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
14
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
15
- tabIndex?: number | undefined;
16
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
17
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
18
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
20
- }, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
21
5
  export declare const ListItem: import("@emotion/styled").StyledComponent<{
22
6
  button?: false | undefined;
23
- } & import("@mui/material").ListItemBaseProps & {
24
- components?: {
25
- Root?: import("react").ElementType<any> | undefined;
26
- } | undefined;
27
- componentsProps?: {
28
- root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
29
- } | undefined;
30
- slotProps?: {
31
- root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
32
- } | undefined;
33
- slots?: {
34
- root?: import("react").ElementType<any> | undefined;
35
- } | undefined;
36
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
7
+ } & import("@mui/material").ListItemOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
37
8
  ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
38
- }, "button" | "className" | "style" | "classes" | "autoFocus" | "children" | "disabled" | "sx" | "alignItems" | "divider" | "components" | "dense" | "slotProps" | "slots" | "componentsProps" | "selected" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "disablePadding" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
39
- export declare const ShowAllButton: import("@emotion/styled").StyledComponent<{
40
- children?: import("react").ReactNode;
41
- classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
42
- color?: import("@mui/types").OverridableStringUnion<"inherit" | "primary" | "secondary" | "error" | "warning" | "info" | "success", import("@mui/material").ButtonPropsColorOverrides> | undefined;
43
- disabled?: boolean | undefined;
44
- disableElevation?: boolean | undefined;
45
- disableFocusRipple?: boolean | undefined;
46
- endIcon?: import("react").ReactNode;
47
- fullWidth?: boolean | undefined;
48
- href?: string | undefined;
49
- size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
50
- startIcon?: import("react").ReactNode;
51
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
52
- variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
53
- } & Omit<{
54
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
55
- centerRipple?: boolean | undefined;
56
- children?: import("react").ReactNode;
57
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
58
- disabled?: boolean | undefined;
59
- disableRipple?: boolean | undefined;
60
- disableTouchRipple?: boolean | undefined;
61
- focusRipple?: boolean | undefined;
62
- focusVisibleClassName?: string | undefined;
63
- LinkComponent?: import("react").ElementType<any> | undefined;
64
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
65
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
66
- tabIndex?: number | undefined;
67
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
68
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
69
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
9
+ }, "button" | "className" | "style" | "classes" | "children" | "disabled" | "sx" | "autoFocus" | "alignItems" | "divider" | "components" | "dense" | "componentsProps" | "slots" | "slotProps" | "selected" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "disablePadding" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ export declare const ShowAllButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
70
11
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
71
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
12
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,21 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const maxInputFontSize = 24;
3
3
  export declare const minInputFontSize = 14;
4
- export declare const FormControl: import("@emotion/styled").StyledComponent<{
5
- children?: import("react").ReactNode;
6
- classes?: Partial<import("@mui/material").FormControlClasses> | undefined;
7
- color?: import("@mui/types").OverridableStringUnion<"primary" | "secondary" | "error" | "warning" | "info" | "success", import("@mui/material").FormControlPropsColorOverrides> | undefined;
8
- disabled?: boolean | undefined;
9
- error?: boolean | undefined;
10
- fullWidth?: boolean | undefined;
11
- focused?: boolean | undefined;
12
- hiddenLabel?: boolean | undefined;
13
- margin?: "normal" | "none" | "dense" | undefined;
14
- required?: boolean | undefined;
15
- size?: import("@mui/types").OverridableStringUnion<"small" | "medium", import("@mui/material").FormControlPropsSizeOverrides> | undefined;
16
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
17
- variant?: "outlined" | "filled" | "standard" | undefined;
18
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ export declare const FormControl: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
5
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
20
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "children" | "disabled" | "sx" | "margin" | "fullWidth" | "size" | "variant" | "error" | "required" | "focused" | "hiddenLabel"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
+ }, "className" | "style" | "classes" | "children" | "disabled" | "sx" | "color" | "margin" | "fullWidth" | "size" | "variant" | "error" | "required" | "focused" | "hiddenLabel"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
21
7
  export declare const Input: import("@emotion/styled").StyledComponent<import("@mui/material").InputBaseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,34 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const Button: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
5
- color?: import("@mui/types").OverridableStringUnion<"inherit" | "primary" | "secondary" | "error" | "warning" | "info" | "success", import("@mui/material").ButtonPropsColorOverrides> | undefined;
6
- disabled?: boolean | undefined;
7
- disableElevation?: boolean | undefined;
8
- disableFocusRipple?: boolean | undefined;
9
- endIcon?: import("react").ReactNode;
10
- fullWidth?: boolean | undefined;
11
- href?: string | undefined;
12
- size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
13
- startIcon?: import("react").ReactNode;
14
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
15
- variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
16
- } & Omit<{
17
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
18
- centerRipple?: boolean | undefined;
19
- children?: import("react").ReactNode;
20
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
21
- disabled?: boolean | undefined;
22
- disableRipple?: boolean | undefined;
23
- disableTouchRipple?: boolean | undefined;
24
- focusRipple?: boolean | undefined;
25
- focusVisibleClassName?: string | undefined;
26
- LinkComponent?: import("react").ElementType<any> | undefined;
27
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
28
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
29
- tabIndex?: number | undefined;
30
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
31
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
32
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
+ export declare const Button: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
33
3
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
34
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,24 +1,12 @@
1
1
  import type { PropsWithChildren } from 'react';
2
2
  import type { WidgetVariant } from '../types';
3
3
  export declare const maxHeight = 680;
4
- export declare const AppExpandedContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
5
- children?: import("react").ReactNode;
6
- component?: import("react").ElementType<any> | undefined;
7
- ref?: import("react").Ref<unknown> | undefined;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ export declare const AppExpandedContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
5
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
11
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
6
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
12
7
  variant?: WidgetVariant | undefined;
13
8
  }, {}, {}>;
14
- export declare const FlexContainer: import("@emotion/styled").StyledComponent<{
15
- children?: import("react").ReactNode;
16
- classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
17
- disableGutters?: boolean | undefined;
18
- fixed?: boolean | undefined;
19
- maxWidth?: false | import("@mui/material").Breakpoint | undefined;
20
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
21
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
+ export declare const FlexContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
10
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
23
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
+ }, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
24
12
  export declare const AppContainer: React.FC<PropsWithChildren<{}>>;
@@ -8,14 +8,9 @@ export type CardProps = {
8
8
  onClick?: MouseEventHandler<HTMLDivElement>;
9
9
  pointerEvents?: 'auto' | 'none';
10
10
  } & BoxProps;
11
- export declare const Card: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
12
- children?: import("react").ReactNode;
13
- component?: import("react").ElementType<any> | undefined;
14
- ref?: import("react").Ref<unknown> | undefined;
15
- sx?: import("@mui/material").SxProps<Theme> | undefined;
16
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
+ export declare const Card: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
12
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
18
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
13
+ }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
19
14
  variant?: CardVariant | undefined;
20
15
  selectionColor?: "primary" | "secondary" | undefined;
21
16
  indented?: boolean | undefined;
@@ -23,5 +18,5 @@ export declare const Card: import("@emotion/styled").StyledComponent<import("@mu
23
18
  pointerEvents?: "none" | "auto" | undefined;
24
19
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
25
20
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
26
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component">, {}, {}>;
21
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<Theme>>, {}, {}>;
27
22
  export {};
@@ -1,18 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const CardHeader: import("@emotion/styled").StyledComponent<{
3
- action?: import("react").ReactNode;
4
- avatar?: import("react").ReactNode;
5
- classes?: Partial<import("@mui/material").CardHeaderClasses> | undefined;
6
- disableTypography?: boolean | undefined;
7
- subheader?: import("react").ReactNode;
8
- subheaderTypographyProps?: import("@mui/material").TypographyProps<"span", {
9
- component?: "span" | undefined;
10
- }> | undefined;
11
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
12
- title?: import("react").ReactNode;
13
- titleTypographyProps?: import("@mui/material").TypographyProps<"span", {
14
- component?: "span" | undefined;
15
- }> | undefined;
16
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const CardHeader: import("@emotion/styled").StyledComponent<import("@mui/material").CardHeaderOwnProps<"span", "span"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
18
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "title" | "action" | "sx" | "disableTypography" | "avatar" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "action" | "sx" | "title" | "disableTypography" | "avatar" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,29 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const CardIconButton: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
5
- color?: import("@mui/types").OverridableStringUnion<"inherit" | "default" | "primary" | "secondary" | "error" | "warning" | "info" | "success", import("@mui/material").IconButtonPropsColorOverrides> | undefined;
6
- disabled?: boolean | undefined;
7
- disableFocusRipple?: boolean | undefined;
8
- edge?: false | "end" | "start" | undefined;
9
- size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").IconButtonPropsSizeOverrides> | undefined;
10
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
11
- } & Omit<{
12
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
13
- centerRipple?: boolean | undefined;
14
- children?: import("react").ReactNode;
15
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
16
- disabled?: boolean | undefined;
17
- disableRipple?: boolean | undefined;
18
- disableTouchRipple?: boolean | undefined;
19
- focusRipple?: boolean | undefined;
20
- focusVisibleClassName?: string | undefined;
21
- LinkComponent?: import("react").ElementType<any> | undefined;
22
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
23
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
24
- tabIndex?: number | undefined;
25
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
26
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
27
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
+ export declare const CardIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
28
3
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
29
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "size" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "disableFocusRipple" | "size" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;