@avalabs/k2-alpine 1.188.0
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/README.md +29 -0
- package/dist/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/AccordionActions.d.ts +3 -0
- package/dist/components/Accordion/AccordionDetails.d.ts +3 -0
- package/dist/components/Accordion/AccordionSummary.d.ts +9 -0
- package/dist/components/Accordion/Accordions.d.ts +3 -0
- package/dist/components/Accordion/index.d.ts +5 -0
- package/dist/components/Avatar/Avatar.d.ts +9 -0
- package/dist/components/Button/SquareButton.d.ts +6 -0
- package/dist/components/CustomDialog/CustomDialog.d.ts +30 -0
- package/dist/components/CustomDialog/index.d.ts +1 -0
- package/dist/components/Icons/Airdrop.d.ts +2 -0
- package/dist/components/Icons/Avalanche.d.ts +9 -0
- package/dist/components/Icons/Avatar.d.ts +2 -0
- package/dist/components/Icons/Bitcoin.d.ts +9 -0
- package/dist/components/Icons/Bridge.d.ts +2 -0
- package/dist/components/Icons/CChain.d.ts +2 -0
- package/dist/components/Icons/ChevronDown.d.ts +2 -0
- package/dist/components/Icons/CloudAlert.d.ts +2 -0
- package/dist/components/Icons/CloudDownload.d.ts +2 -0
- package/dist/components/Icons/Contacts.d.ts +2 -0
- package/dist/components/Icons/Core.d.ts +2 -0
- package/dist/components/Icons/DeployedCode.d.ts +2 -0
- package/dist/components/Icons/Discover.d.ts +2 -0
- package/dist/components/Icons/Encrypted.d.ts +2 -0
- package/dist/components/Icons/Ethereum.d.ts +9 -0
- package/dist/components/Icons/Explorer.d.ts +2 -0
- package/dist/components/Icons/Export.d.ts +2 -0
- package/dist/components/Icons/Landscape.d.ts +2 -0
- package/dist/components/Icons/LedgerWallet.d.ts +2 -0
- package/dist/components/Icons/Monitoring.d.ts +2 -0
- package/dist/components/Icons/Outbound.d.ts +2 -0
- package/dist/components/Icons/PChainIcon.d.ts +2 -0
- package/dist/components/Icons/Portfolio.d.ts +2 -0
- package/dist/components/Icons/QrCode.d.ts +2 -0
- package/dist/components/Icons/Send.d.ts +2 -0
- package/dist/components/Icons/Signature.d.ts +2 -0
- package/dist/components/Icons/Solana.d.ts +7 -0
- package/dist/components/Icons/Stake.d.ts +2 -0
- package/dist/components/Icons/Swap.d.ts +2 -0
- package/dist/components/Icons/Tools.d.ts +2 -0
- package/dist/components/Icons/TriangleDown.d.ts +2 -0
- package/dist/components/Icons/TriangleUp.d.ts +2 -0
- package/dist/components/Icons/WalletClosed.d.ts +2 -0
- package/dist/components/Icons/WalletOpen.d.ts +2 -0
- package/dist/components/Icons/WaterDrop.d.ts +2 -0
- package/dist/components/Icons/XChainIcon.d.ts +2 -0
- package/dist/components/Icons/XPChain.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +146 -0
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/PopoverContent.d.ts +15 -0
- package/dist/components/Popover/PopoverItem.d.ts +40 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/PopoverItem/PopoverItem.d.ts +40 -0
- package/dist/components/PopoverItem/index.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +12 -0
- package/dist/components/Select/Select.d.ts +7 -0
- package/dist/components/StoreButtons/AppStore.d.ts +6 -0
- package/dist/components/StoreButtons/ChromeStore.d.ts +6 -0
- package/dist/components/StoreButtons/PlayStore.d.ts +6 -0
- package/dist/components/StoreButtons/index.d.ts +3 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +7 -0
- package/dist/components/Toast/Toast.d.ts +25 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/TruncateText/TruncateText.d.ts +30 -0
- package/dist/components/Typography/Typography.d.ts +5 -0
- package/dist/global.d.ts +181 -0
- package/dist/index.cjs +71 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +2704 -0
- package/dist/theme/components/alert.d.ts +2 -0
- package/dist/theme/components/appBar.d.ts +2 -0
- package/dist/theme/components/avatar.d.ts +2 -0
- package/dist/theme/components/backdrop.d.ts +2 -0
- package/dist/theme/components/button.d.ts +2 -0
- package/dist/theme/components/card.d.ts +2 -0
- package/dist/theme/components/checkbox.d.ts +2 -0
- package/dist/theme/components/container.d.ts +2 -0
- package/dist/theme/components/dialog.d.ts +2 -0
- package/dist/theme/components/drawer.d.ts +2 -0
- package/dist/theme/components/index.d.ts +1404 -0
- package/dist/theme/components/progress.d.ts +2 -0
- package/dist/theme/components/switch.d.ts +2 -0
- package/dist/theme/components/table.d.ts +2 -0
- package/dist/theme/components/tabs.d.ts +2 -0
- package/dist/theme/components/toolbar.d.ts +2 -0
- package/dist/theme/fonts.d.ts +4 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/palette.d.ts +4 -0
- package/dist/theme/shape.d.ts +2 -0
- package/dist/theme/theme.d.ts +4 -0
- package/dist/theme/typography.d.ts +2 -0
- package/dist/theme/utilities/getComponentStyles.d.ts +3 -0
- package/dist/utils/combineSx.d.ts +2 -0
- package/dist/utils/getHexAlpha.d.ts +3 -0
- package/dist/utils/withSx.d.ts +13 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +56 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# K2 Alpine Components
|
|
2
|
+
|
|
3
|
+
Component library to be used for Core applications.
|
|
4
|
+
|
|
5
|
+
## Using K2 Alpine
|
|
6
|
+
|
|
7
|
+
In order to use K2 Alpine, you must do some client-side setup.
|
|
8
|
+
|
|
9
|
+
### Installing fonts
|
|
10
|
+
|
|
11
|
+
You will need to set the following scripts in your `head` tag to install fonts.
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
15
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
|
|
16
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400..700;1,14..32,400..700&display=swap" />
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Scripts
|
|
20
|
+
|
|
21
|
+
`pnpm storybook` will allow you to start Storybook and be able to visualize the component library. Read more details in the [Storybook documentation](./docs/STORYBOOK.md).
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## Libraries
|
|
25
|
+
|
|
26
|
+
K2 Alpine Components uses the following libraries:
|
|
27
|
+
|
|
28
|
+
- [React](https://react.dev/)
|
|
29
|
+
- [MUI](https://mui.com/)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AccordionProps as MuiAccordionProps } from '@mui/material';
|
|
2
|
+
export type AccordionProps = Omit<MuiAccordionProps, 'square' | 'variant'>;
|
|
3
|
+
export declare const Accordion: import('react').ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AccordionActionsProps as MuiAccordionActionsProps } from '@mui/material';
|
|
2
|
+
export type AccordionActionsProps = MuiAccordionActionsProps;
|
|
3
|
+
export declare const AccordionActions: import('react').ForwardRefExoticComponent<Omit<MuiAccordionActionsProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AccordionDetailsProps as MuiAccordionDetailsProps } from '@mui/material';
|
|
2
|
+
export type AccordionDetailsProps = MuiAccordionDetailsProps;
|
|
3
|
+
export declare const AccordionDetails: import('react').ForwardRefExoticComponent<Omit<MuiAccordionDetailsProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AccordionSummaryProps as MuiAccordionSummaryProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface AccordionSummaryProps extends Omit<MuiAccordionSummaryProps, 'expandIcon'> {
|
|
4
|
+
expandIcon?: ReactNode;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
expandIconLabel?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const AccordionSummary: import('react').ForwardRefExoticComponent<Omit<AccordionSummaryProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonBaseProps } from '@mui/material';
|
|
2
|
+
export type SquareButtonProps = ButtonBaseProps & {
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SquareButton: import('react').MemoExoticComponent<({ icon, label, ...squareButtonRestProps }: SquareButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DialogProps as MuiDialogProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface CustomDialogProps extends Omit<MuiDialogProps, 'title'> {
|
|
4
|
+
/**
|
|
5
|
+
* Dialog title
|
|
6
|
+
*/
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Dialog subtitle
|
|
10
|
+
*/
|
|
11
|
+
subtitle?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Dialog body content
|
|
14
|
+
*/
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Dialog footer content
|
|
18
|
+
*/
|
|
19
|
+
footer?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Handler for close button click
|
|
22
|
+
*/
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to show the close button
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
showCloseButton?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare const CustomDialog: import('react').ForwardRefExoticComponent<Omit<CustomDialogProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CustomDialog';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconBaseProps } from 'react-icons';
|
|
2
|
+
type AvalancheIconColorScheme = {
|
|
3
|
+
backgroundFill?: string;
|
|
4
|
+
foregroundFill?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Avalanche: ({ size, backgroundFill, foregroundFill, ...rest }: IconBaseProps & AvalancheIconColorScheme) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const AvalancheColorIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const AvalancheAchromaticIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconBaseProps } from 'react-icons';
|
|
2
|
+
type BitcoinIconColorScheme = {
|
|
3
|
+
backgroundFill?: string;
|
|
4
|
+
foregroundFill?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Bitcoin: ({ size, backgroundFill, foregroundFill, ...rest }: IconBaseProps & BitcoinIconColorScheme) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const BitcoinColorIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const BitcoinAchromaticIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconBaseProps } from 'react-icons';
|
|
2
|
+
type EthereumIconColorScheme = {
|
|
3
|
+
backgroundFill?: string;
|
|
4
|
+
foregroundFill?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Ethereum: ({ size, backgroundFill, foregroundFill, ...rest }: IconBaseProps & EthereumIconColorScheme) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const EthereumColorIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const EthereumAchromaticIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IconBaseProps } from 'react-icons';
|
|
2
|
+
type SolanaIconColorScheme = {
|
|
3
|
+
backgroundFill?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const Solana: ({ size, backgroundFill, ...rest }: IconBaseProps & SolanaIconColorScheme) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const SolanaColorIcon: ({ size, ...rest }: IconBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
import { IconBaseProps } from 'react-icons';
|
|
3
|
+
/**
|
|
4
|
+
* SVG Icons
|
|
5
|
+
*/
|
|
6
|
+
export type IconWithSx = IconBaseProps & {
|
|
7
|
+
sx?: SxProps;
|
|
8
|
+
};
|
|
9
|
+
export declare const AvatarIcon: import('react').ComponentType<IconBaseProps & {
|
|
10
|
+
sx?: SxProps;
|
|
11
|
+
} & import('../..').WithSxProps>;
|
|
12
|
+
export declare const ChevronDownIcon: import('react').ComponentType<IconBaseProps & {
|
|
13
|
+
sx?: SxProps;
|
|
14
|
+
} & import('../..').WithSxProps>;
|
|
15
|
+
export declare const TriangleDownIcon: import('react').ComponentType<IconBaseProps & {
|
|
16
|
+
sx?: SxProps;
|
|
17
|
+
} & import('../..').WithSxProps>;
|
|
18
|
+
export declare const TriangleUpIcon: import('react').ComponentType<IconBaseProps & {
|
|
19
|
+
sx?: SxProps;
|
|
20
|
+
} & import('../..').WithSxProps>;
|
|
21
|
+
export declare const CoreIcon: import('react').ComponentType<IconBaseProps & {
|
|
22
|
+
sx?: SxProps;
|
|
23
|
+
} & import('../..').WithSxProps>;
|
|
24
|
+
/**
|
|
25
|
+
* Sidebar Icons
|
|
26
|
+
*/
|
|
27
|
+
export declare const ContactsIcon: import('react').ComponentType<IconBaseProps & {
|
|
28
|
+
sx?: SxProps;
|
|
29
|
+
} & import('../..').WithSxProps>;
|
|
30
|
+
export declare const DiscoverIcon: import('react').ComponentType<IconBaseProps & {
|
|
31
|
+
sx?: SxProps;
|
|
32
|
+
} & import('../..').WithSxProps>;
|
|
33
|
+
export declare const ExplorerIcon: import('react').ComponentType<IconBaseProps & {
|
|
34
|
+
sx?: SxProps;
|
|
35
|
+
} & import('../..').WithSxProps>;
|
|
36
|
+
export declare const OutboundIcon: import('react').ComponentType<IconBaseProps & {
|
|
37
|
+
sx?: SxProps;
|
|
38
|
+
} & import('../..').WithSxProps>;
|
|
39
|
+
export declare const PortfolioIcon: import('react').ComponentType<IconBaseProps & {
|
|
40
|
+
sx?: SxProps;
|
|
41
|
+
} & import('../..').WithSxProps>;
|
|
42
|
+
/**
|
|
43
|
+
* Transaction Icons
|
|
44
|
+
*/
|
|
45
|
+
export declare const BridgeIcon: import('react').ComponentType<IconBaseProps & {
|
|
46
|
+
sx?: SxProps;
|
|
47
|
+
} & import('../..').WithSxProps>;
|
|
48
|
+
export declare const SendIcon: import('react').ComponentType<IconBaseProps & {
|
|
49
|
+
sx?: SxProps;
|
|
50
|
+
} & import('../..').WithSxProps>;
|
|
51
|
+
export declare const StakeIcon: import('react').ComponentType<IconBaseProps & {
|
|
52
|
+
sx?: SxProps;
|
|
53
|
+
} & import('../..').WithSxProps>;
|
|
54
|
+
export declare const SwapIcon: import('react').ComponentType<IconBaseProps & {
|
|
55
|
+
sx?: SxProps;
|
|
56
|
+
} & import('../..').WithSxProps>;
|
|
57
|
+
/**
|
|
58
|
+
* Tool Icons
|
|
59
|
+
*/
|
|
60
|
+
export declare const AirdropIcon: import('react').ComponentType<IconBaseProps & {
|
|
61
|
+
sx?: SxProps;
|
|
62
|
+
} & import('../..').WithSxProps>;
|
|
63
|
+
export declare const AvalancheAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
64
|
+
sx?: SxProps;
|
|
65
|
+
} & import('../..').WithSxProps>;
|
|
66
|
+
export declare const AvalancheColorIcon: import('react').ComponentType<IconBaseProps & {
|
|
67
|
+
sx?: SxProps;
|
|
68
|
+
} & import('../..').WithSxProps>;
|
|
69
|
+
export declare const AvalancheIcon: import('react').ComponentType<IconBaseProps & {
|
|
70
|
+
sx?: SxProps;
|
|
71
|
+
} & import('../..').WithSxProps>;
|
|
72
|
+
export declare const BitcoinAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
73
|
+
sx?: SxProps;
|
|
74
|
+
} & import('../..').WithSxProps>;
|
|
75
|
+
export declare const BitcoinColorIcon: import('react').ComponentType<IconBaseProps & {
|
|
76
|
+
sx?: SxProps;
|
|
77
|
+
} & import('../..').WithSxProps>;
|
|
78
|
+
export declare const BitcoinIcon: import('react').ComponentType<IconBaseProps & {
|
|
79
|
+
sx?: SxProps;
|
|
80
|
+
} & import('../..').WithSxProps>;
|
|
81
|
+
export declare const CChainIcon: import('react').ComponentType<IconBaseProps & {
|
|
82
|
+
sx?: SxProps;
|
|
83
|
+
} & import('../..').WithSxProps>;
|
|
84
|
+
export declare const CloudAlertIcon: import('react').ComponentType<IconBaseProps & {
|
|
85
|
+
sx?: SxProps;
|
|
86
|
+
} & import('../..').WithSxProps>;
|
|
87
|
+
export declare const CloudDownloadIcon: import('react').ComponentType<IconBaseProps & {
|
|
88
|
+
sx?: SxProps;
|
|
89
|
+
} & import('../..').WithSxProps>;
|
|
90
|
+
export declare const DeployedCodeIcon: import('react').ComponentType<IconBaseProps & {
|
|
91
|
+
sx?: SxProps;
|
|
92
|
+
} & import('../..').WithSxProps>;
|
|
93
|
+
export declare const EncryptedIcon: import('react').ComponentType<IconBaseProps & {
|
|
94
|
+
sx?: SxProps;
|
|
95
|
+
} & import('../..').WithSxProps>;
|
|
96
|
+
export declare const EthereumAchromaticIcon: import('react').ComponentType<IconBaseProps & {
|
|
97
|
+
sx?: SxProps;
|
|
98
|
+
} & import('../..').WithSxProps>;
|
|
99
|
+
export declare const EthereumColorIcon: import('react').ComponentType<IconBaseProps & {
|
|
100
|
+
sx?: SxProps;
|
|
101
|
+
} & import('../..').WithSxProps>;
|
|
102
|
+
export declare const EthereumIcon: import('react').ComponentType<IconBaseProps & {
|
|
103
|
+
sx?: SxProps;
|
|
104
|
+
} & import('../..').WithSxProps>;
|
|
105
|
+
export declare const ExportIcon: import('react').ComponentType<IconBaseProps & {
|
|
106
|
+
sx?: SxProps;
|
|
107
|
+
} & import('../..').WithSxProps>;
|
|
108
|
+
export declare const LandscapeIcon: import('react').ComponentType<IconBaseProps & {
|
|
109
|
+
sx?: SxProps;
|
|
110
|
+
} & import('../..').WithSxProps>;
|
|
111
|
+
export declare const MonitoringIcon: import('react').ComponentType<IconBaseProps & {
|
|
112
|
+
sx?: SxProps;
|
|
113
|
+
} & import('../..').WithSxProps>;
|
|
114
|
+
export declare const PChainIcon: import('react').ComponentType<IconBaseProps & {
|
|
115
|
+
sx?: SxProps;
|
|
116
|
+
} & import('../..').WithSxProps>;
|
|
117
|
+
export declare const QrCodeIcon: import('react').ComponentType<IconBaseProps & {
|
|
118
|
+
sx?: SxProps;
|
|
119
|
+
} & import('../..').WithSxProps>;
|
|
120
|
+
export declare const SignatureIcon: import('react').ComponentType<IconBaseProps & {
|
|
121
|
+
sx?: SxProps;
|
|
122
|
+
} & import('../..').WithSxProps>;
|
|
123
|
+
export declare const SolanaColorIcon: import('react').ComponentType<IconBaseProps & {
|
|
124
|
+
sx?: SxProps;
|
|
125
|
+
} & import('../..').WithSxProps>;
|
|
126
|
+
export declare const WaterDropIcon: import('react').ComponentType<IconBaseProps & {
|
|
127
|
+
sx?: SxProps;
|
|
128
|
+
} & import('../..').WithSxProps>;
|
|
129
|
+
export declare const XChainIcon: import('react').ComponentType<IconBaseProps & {
|
|
130
|
+
sx?: SxProps;
|
|
131
|
+
} & import('../..').WithSxProps>;
|
|
132
|
+
export declare const XPChainIcon: import('react').ComponentType<IconBaseProps & {
|
|
133
|
+
sx?: SxProps;
|
|
134
|
+
} & import('../..').WithSxProps>;
|
|
135
|
+
/**
|
|
136
|
+
* Wallet Icons
|
|
137
|
+
*/
|
|
138
|
+
export declare const LedgerIcon: import('react').ComponentType<IconBaseProps & {
|
|
139
|
+
sx?: SxProps;
|
|
140
|
+
} & import('../..').WithSxProps>;
|
|
141
|
+
export declare const WalletClosedIcon: import('react').ComponentType<IconBaseProps & {
|
|
142
|
+
sx?: SxProps;
|
|
143
|
+
} & import('../..').WithSxProps>;
|
|
144
|
+
export declare const WalletOpenIcon: import('react').ComponentType<IconBaseProps & {
|
|
145
|
+
sx?: SxProps;
|
|
146
|
+
} & import('../..').WithSxProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PopoverProps as MuiPopoverProps, ThemeOptions } from '@mui/material';
|
|
2
|
+
export declare const PopoverOverrides: ThemeOptions['components'];
|
|
3
|
+
export type PopoverProps = MuiPopoverProps;
|
|
4
|
+
/**
|
|
5
|
+
* Popover component that displays content in a floating container.
|
|
6
|
+
* This component extends MUI's Popover with custom styling.
|
|
7
|
+
*
|
|
8
|
+
* The Popover will close when clicking outside by default.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Popover: import('react').ForwardRefExoticComponent<Omit<MuiPopoverProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
export interface PopoverContentProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the popover.
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Additional styles to apply to the content.
|
|
9
|
+
*/
|
|
10
|
+
sx?: SxProps<Theme>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* PopoverContent component for styling the content inside the Popover.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PopoverContent: import('react').ForwardRefExoticComponent<PopoverContentProps & import('react').RefAttributes<HTMLUListElement>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
export interface PopoverItemProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the item.
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* The label to display for the item.
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional icon to display before the label.
|
|
13
|
+
*/
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the item is selected.
|
|
17
|
+
*/
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the item is disabled.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Callback fired when the item is clicked.
|
|
25
|
+
*/
|
|
26
|
+
onClick?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Additional styles to apply to the item.
|
|
29
|
+
*/
|
|
30
|
+
sx?: SxProps<Theme>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show a check icon for the selected item.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
showCheckIcon?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* PopoverItem component for styling items inside the Popover.
|
|
39
|
+
*/
|
|
40
|
+
export declare const PopoverItem: import('react').ForwardRefExoticComponent<PopoverItemProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
export interface PopoverItemProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the item.
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* The label to display for the item.
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional icon to display before the label.
|
|
13
|
+
*/
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the item is selected.
|
|
17
|
+
*/
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the item is disabled.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Callback fired when the item is clicked.
|
|
25
|
+
*/
|
|
26
|
+
onClick?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Additional styles to apply to the item.
|
|
29
|
+
*/
|
|
30
|
+
sx?: SxProps<Theme>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show a check icon for the selected item.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
showCheckIcon?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* PopoverItem component for styling items inside the Popover.
|
|
39
|
+
*/
|
|
40
|
+
export declare const PopoverItem: import('react').ForwardRefExoticComponent<PopoverItemProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PopoverItem';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BoxProps, TextFieldProps } from '@mui/material';
|
|
2
|
+
export type SearchInputProps = TextFieldProps & {
|
|
3
|
+
boxProps?: BoxProps & {
|
|
4
|
+
'data-testid'?: string;
|
|
5
|
+
};
|
|
6
|
+
inputRef?: TextFieldProps['inputRef'];
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
isMobile?: boolean;
|
|
9
|
+
size?: 'medium' | 'small';
|
|
10
|
+
withHotkeys?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const SearchInput: ({ boxProps, inputRef, isLoading, size, ...rest }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectChangeEvent, SelectProps } from '@mui/material';
|
|
2
|
+
export type BorderlessSelectProps = Omit<SelectProps, 'onChange'> & {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (e: SelectChangeEvent<unknown>) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const Select: import('react').MemoExoticComponent<({ value, label, onChange, IconComponent, children, ...otherProps }: BorderlessSelectProps) => import("react/jsx-runtime").JSX.Element>;
|