@avalabs/k2-alpine 0.0.0-main-747398c
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/assets/branding/ach.svg +8 -0
- package/assets/branding/apple_pay.svg +8 -0
- package/assets/branding/ava-gpt-avatar.svg +10 -0
- package/assets/branding/ava-gpt-dark.svg +17 -0
- package/assets/branding/ava-gpt-light.svg +17 -0
- package/assets/branding/avalanche-p-chain.svg +12 -0
- package/assets/branding/avalanche.svg +4 -0
- package/assets/branding/avalanche_xp_dark.svg +4 -0
- package/assets/branding/avalanche_xp_light.svg +4 -0
- package/assets/branding/bank_transfer.svg +8 -0
- package/assets/branding/binance.svg +8 -0
- package/assets/branding/bitcoin.svg +4 -0
- package/assets/branding/cash.svg +8 -0
- package/assets/branding/coinbase.svg +12 -0
- package/assets/branding/credit_card.svg +8 -0
- package/assets/branding/ethereum.svg +9 -0
- package/assets/branding/google_pay.svg +8 -0
- package/assets/branding/halliday.svg +18 -0
- package/assets/branding/mobile_money.svg +8 -0
- package/assets/branding/moonpay.svg +18 -0
- package/assets/branding/onramper.svg +21 -0
- package/assets/branding/p_chain_dark.svg +4 -0
- package/assets/branding/p_chain_light.svg +4 -0
- package/assets/branding/shopee_pay.svg +8 -0
- package/assets/branding/solona.svg +10 -0
- package/assets/branding/stripe.svg +18 -0
- package/assets/branding/x_chain_dark.svg +4 -0
- package/assets/branding/x_chain_light.svg +4 -0
- package/assets/currencies/ae.svg +20 -0
- package/assets/currencies/ar.svg +83 -0
- package/assets/currencies/au.svg +41 -0
- package/assets/currencies/bd.svg +18 -0
- package/assets/currencies/bg.svg +19 -0
- package/assets/currencies/br.svg +320 -0
- package/assets/currencies/ca.svg +20 -0
- package/assets/currencies/ch.svg +18 -0
- package/assets/currencies/cl.svg +20 -0
- package/assets/currencies/cn.svg +22 -0
- package/assets/currencies/co.svg +19 -0
- package/assets/currencies/cz.svg +19 -0
- package/assets/currencies/dk.svg +18 -0
- package/assets/currencies/eg.svg +48 -0
- package/assets/currencies/eu.svg +137 -0
- package/assets/currencies/gb.svg +30 -0
- package/assets/currencies/gh.svg +20 -0
- package/assets/currencies/hk.svg +27 -0
- package/assets/currencies/hu.svg +19 -0
- package/assets/currencies/id.svg +18 -0
- package/assets/currencies/il.svg +20 -0
- package/assets/currencies/in.svg +70 -0
- package/assets/currencies/ir.svg +56 -0
- package/assets/currencies/jp.svg +18 -0
- package/assets/currencies/kr.svg +23 -0
- package/assets/currencies/ma.svg +28 -0
- package/assets/currencies/mx.svg +404 -0
- package/assets/currencies/my.svg +25 -0
- package/assets/currencies/ng.svg +19 -0
- package/assets/currencies/no.svg +19 -0
- package/assets/currencies/nz.svg +115 -0
- package/assets/currencies/ph.svg +31 -0
- package/assets/currencies/pk.svg +20 -0
- package/assets/currencies/pl.svg +18 -0
- package/assets/currencies/ro.svg +19 -0
- package/assets/currencies/ru.svg +19 -0
- package/assets/currencies/sa.svg +50 -0
- package/assets/currencies/se.svg +18 -0
- package/assets/currencies/sg.svg +24 -0
- package/assets/currencies/th.svg +20 -0
- package/assets/currencies/tr.svg +18 -0
- package/assets/currencies/tw.svg +21 -0
- package/assets/currencies/ua.svg +18 -0
- package/assets/currencies/us.svg +25 -0
- package/assets/currencies/vn.svg +18 -0
- package/assets/currencies/za.svg +33 -0
- package/assets/logos/provider-alchemy.svg +7 -0
- package/assets/logos/provider-banxa.svg +10 -0
- package/assets/logos/provider-bilira.svg +11 -0
- package/assets/logos/provider-binanceconnect.svg +4 -0
- package/assets/logos/provider-blockchaincom.svg +6 -0
- package/assets/logos/provider-btcdirect.svg +4 -0
- package/assets/logos/provider-coinbase.svg +4 -0
- package/assets/logos/provider-coinflow.svg +4 -0
- package/assets/logos/provider-fonbnk.svg +4 -0
- package/assets/logos/provider-guardarian.svg +10 -0
- package/assets/logos/provider-harbour.svg +4 -0
- package/assets/logos/provider-koywe.svg +4 -0
- package/assets/logos/provider-kyber.svg +14 -0
- package/assets/logos/provider-mercuryo.svg +4 -0
- package/assets/logos/provider-mesh.svg +4 -0
- package/assets/logos/provider-meso.svg +4 -0
- package/assets/logos/provider-odos.svg +3 -0
- package/assets/logos/provider-onmeta.svg +4 -0
- package/assets/logos/provider-onramp.svg +4 -0
- package/assets/logos/provider-paybis.svg +4 -0
- package/assets/logos/provider-paypal.svg +6 -0
- package/assets/logos/provider-revolut.svg +4 -0
- package/assets/logos/provider-robinhood.svg +4 -0
- package/assets/logos/provider-sardine.svg +4 -0
- package/assets/logos/provider-shift4.svg +4 -0
- package/assets/logos/provider-simplex.svg +4 -0
- package/assets/logos/provider-stripe.svg +4 -0
- package/assets/logos/provider-topper.svg +5 -0
- package/assets/logos/provider-transak.svg +4 -0
- package/assets/logos/provider-transfi.svg +22 -0
- package/assets/logos/provider-unlimit.svg +4 -0
- package/assets/logos/provider-velora.svg +17 -0
- package/assets/logos/provider-yak.svg +2197 -0
- package/assets/logos/provider-yellowcard.svg +10 -0
- package/assets/tokens/aave.svg +13 -0
- package/assets/tokens/ada.svg +40 -0
- package/assets/tokens/apt.svg +19 -0
- package/assets/tokens/arb.svg +17 -0
- package/assets/tokens/arena.svg +16 -0
- package/assets/tokens/atom.svg +17 -0
- package/assets/tokens/avax.svg +11 -0
- package/assets/tokens/bch.svg +11 -0
- package/assets/tokens/bgb.svg +12 -0
- package/assets/tokens/bnb.svg +11 -0
- package/assets/tokens/btc.svg +4 -0
- package/assets/tokens/dai.svg +11 -0
- package/assets/tokens/doge.svg +11 -0
- package/assets/tokens/dot.svg +11 -0
- package/assets/tokens/eth-white.svg +16 -0
- package/assets/tokens/eth.svg +16 -0
- package/assets/tokens/euroc.svg +24 -0
- package/assets/tokens/fil.svg +11 -0
- package/assets/tokens/flow.svg +13 -0
- package/assets/tokens/ggavax.svg +11 -0
- package/assets/tokens/grt.svg +11 -0
- package/assets/tokens/hbar.svg +11 -0
- package/assets/tokens/hype.svg +11 -0
- package/assets/tokens/icp.svg +21 -0
- package/assets/tokens/imx.svg +16 -0
- package/assets/tokens/ldo.svg +44 -0
- package/assets/tokens/leo.svg +82 -0
- package/assets/tokens/link.svg +11 -0
- package/assets/tokens/ltc.svg +11 -0
- package/assets/tokens/matic.svg +11 -0
- package/assets/tokens/mnt.svg +12 -0
- package/assets/tokens/near.svg +11 -0
- package/assets/tokens/okb.svg +18 -0
- package/assets/tokens/om.svg +15 -0
- package/assets/tokens/ondo.svg +13 -0
- package/assets/tokens/pi.svg +12 -0
- package/assets/tokens/qnt.svg +16 -0
- package/assets/tokens/savax.svg +11 -0
- package/assets/tokens/shib.svg +24 -0
- package/assets/tokens/sol.svg +15 -0
- package/assets/tokens/steth.svg +18 -0
- package/assets/tokens/stx.svg +11 -0
- package/assets/tokens/sui.svg +11 -0
- package/assets/tokens/ton.svg +11 -0
- package/assets/tokens/trx.svg +11 -0
- package/assets/tokens/uni.svg +19 -0
- package/assets/tokens/usdc.svg +11 -0
- package/assets/tokens/usdt.svg +11 -0
- package/assets/tokens/vet.svg +11 -0
- package/assets/tokens/wavax.svg +11 -0
- package/assets/tokens/xlm.svg +12 -0
- package/assets/tokens/xrp.svg +11 -0
- package/assets/tokens/xsgd.svg +13 -0
- package/assets/transactions/advance-time.svg +8 -0
- package/assets/transactions/airdrop.svg +7 -0
- package/assets/transactions/bridge.svg +8 -0
- package/assets/transactions/check_small.svg +8 -0
- package/assets/transactions/compare.svg +8 -0
- package/assets/transactions/contract-call.svg +8 -0
- package/assets/transactions/psychiatry.svg +8 -0
- package/assets/transactions/receive.svg +8 -0
- package/assets/transactions/send.svg +8 -0
- package/assets/transactions/transaction-subnet.svg +8 -0
- package/assets/transactions/tx-type-add.svg +8 -0
- package/assets/transactions/tx-type-send.svg +8 -0
- package/assets/transactions/unwrap.svg +8 -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 +10 -0
- package/dist/components/Button/SquareButton.d.ts +38 -0
- package/dist/components/ContentfulJsonRender/ContentfulJsonRender.d.ts +7 -0
- package/dist/components/CustomDialog/CustomDialog.d.ts +33 -0
- package/dist/components/CustomDialog/index.d.ts +1 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +14 -0
- package/dist/components/DateTimePicker/components/DayPicker/Day.d.ts +6 -0
- package/dist/components/DateTimePicker/components/DayPicker/DropdownNav.d.ts +7 -0
- package/dist/components/DateTimePicker/components/DayPicker/GenericDropdown.d.ts +20 -0
- package/dist/components/DateTimePicker/components/DayPicker/Months.d.ts +12 -0
- package/dist/components/DateTimePicker/components/DayPicker/MonthsDropdown.d.ts +6 -0
- package/dist/components/DateTimePicker/components/DayPicker/Weekday.d.ts +6 -0
- package/dist/components/DateTimePicker/components/DayPicker/YearsDropdown.d.ts +6 -0
- package/dist/components/DateTimePicker/components/DayPicker/index.d.ts +6 -0
- package/dist/components/DateTimePicker/components/TimePicker/GenericDigitPicker.d.ts +9 -0
- package/dist/components/DateTimePicker/components/TimePicker/MeridiemPicker.d.ts +11 -0
- package/dist/components/DateTimePicker/components/TimePicker/TimePicker.d.ts +8 -0
- package/dist/components/DateTimePicker/index.d.ts +2 -0
- package/dist/components/DateTimePicker/types.d.ts +6 -0
- package/dist/components/Glow/Glow.d.ts +6 -0
- package/dist/components/Icons/AddImage.d.ts +2 -0
- package/dist/components/Icons/Airdrop.d.ts +2 -0
- package/dist/components/Icons/Approve.d.ts +2 -0
- package/dist/components/Icons/ArrowDown.d.ts +2 -0
- package/dist/components/Icons/ArrowLeft.d.ts +2 -0
- package/dist/components/Icons/ArrowRight.d.ts +2 -0
- package/dist/components/Icons/ArrowUp.d.ts +2 -0
- package/dist/components/Icons/AvaGpt.d.ts +7 -0
- package/dist/components/Icons/Avalanche.d.ts +9 -0
- package/dist/components/Icons/AvalancheHorizontal.d.ts +2 -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/CheckboxChecked.d.ts +2 -0
- package/dist/components/Icons/CheckboxIndeterminate.d.ts +2 -0
- package/dist/components/Icons/CheckboxUnchecked.d.ts +2 -0
- package/dist/components/Icons/ChevronDown.d.ts +2 -0
- package/dist/components/Icons/ChevronRight.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/Coinbase.d.ts +2 -0
- package/dist/components/Icons/Contacts.d.ts +2 -0
- package/dist/components/Icons/ContractCall.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/Discord.d.ts +2 -0
- package/dist/components/Icons/Discover.d.ts +2 -0
- package/dist/components/Icons/DocumentCsv.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/Explore.d.ts +2 -0
- package/dist/components/Icons/Explorer.d.ts +2 -0
- package/dist/components/Icons/Export.d.ts +2 -0
- package/dist/components/Icons/Facebook.d.ts +2 -0
- package/dist/components/Icons/FileDownload.d.ts +2 -0
- package/dist/components/Icons/FillOrder.d.ts +2 -0
- package/dist/components/Icons/Gift.d.ts +2 -0
- package/dist/components/Icons/Github.d.ts +2 -0
- package/dist/components/Icons/GlobeIcon.d.ts +2 -0
- package/dist/components/Icons/Halliday.d.ts +2 -0
- package/dist/components/Icons/Hide.d.ts +2 -0
- package/dist/components/Icons/IOSClear.d.ts +2 -0
- package/dist/components/Icons/Instagram.d.ts +2 -0
- package/dist/components/Icons/Keystone.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/LinkedIn.d.ts +2 -0
- package/dist/components/Icons/Logout.d.ts +2 -0
- package/dist/components/Icons/Medium.d.ts +2 -0
- package/dist/components/Icons/MetaMask.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/PaceClock.d.ts +2 -0
- package/dist/components/Icons/Password.d.ts +2 -0
- package/dist/components/Icons/Plant.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/Rabby.d.ts +2 -0
- package/dist/components/Icons/Reddit.d.ts +2 -0
- package/dist/components/Icons/Refresh.d.ts +2 -0
- package/dist/components/Icons/Search.d.ts +2 -0
- package/dist/components/Icons/Search2.d.ts +2 -0
- package/dist/components/Icons/SecurityKey.d.ts +2 -0
- package/dist/components/Icons/Send.d.ts +2 -0
- package/dist/components/Icons/Settings.d.ts +2 -0
- package/dist/components/Icons/Sidebar.d.ts +2 -0
- package/dist/components/Icons/SidebarDock.d.ts +2 -0
- package/dist/components/Icons/SidebarUndock.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/StackedLineChart.d.ts +2 -0
- package/dist/components/Icons/Stake.d.ts +2 -0
- package/dist/components/Icons/Swap.d.ts +2 -0
- package/dist/components/Icons/Sync.d.ts +2 -0
- package/dist/components/Icons/Telegram.d.ts +2 -0
- package/dist/components/Icons/TextIcon.d.ts +2 -0
- package/dist/components/Icons/Tools.d.ts +2 -0
- package/dist/components/Icons/Transfer.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/Unwrap.d.ts +2 -0
- package/dist/components/Icons/Upload.d.ts +2 -0
- package/dist/components/Icons/Velora.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/X.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/YouTube.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +333 -0
- package/dist/components/Popover/Popover.d.ts +5 -0
- package/dist/components/Popover/PopoverContent.d.ts +15 -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 +13 -0
- package/dist/components/Select/Select.d.ts +5 -0
- package/dist/components/SelectCountry/SelectCountry.d.ts +20 -0
- package/dist/components/SelectCountry/index.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +18 -0
- package/dist/components/Stepper/index.d.ts +1 -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/TabBar/TabBar.d.ts +18 -0
- package/dist/components/TabBar/index.d.ts +1 -0
- package/dist/components/ThemeInvert/ThemeInvert.d.ts +2 -0
- package/dist/components/ThemeInvert/index.d.ts +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +7 -0
- package/dist/components/Tilt/Tilt.d.ts +39 -0
- package/dist/components/Toast/Toast.d.ts +26 -0
- package/dist/components/TruncateText/TruncateText.d.ts +32 -0
- package/dist/components/Typography/Typography.d.ts +5 -0
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +10921 -0
- package/dist/index.js.map +1 -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/chip.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/formControlLabel.d.ts +2 -0
- package/dist/theme/components/index.d.ts +2680 -0
- package/dist/theme/components/input.d.ts +2 -0
- package/dist/theme/components/popover.d.ts +7 -0
- package/dist/theme/components/popper.d.ts +2 -0
- package/dist/theme/components/progress.d.ts +2 -0
- package/dist/theme/components/slider.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/components/typography.d.ts +2 -0
- package/dist/theme/fonts.d.ts +4 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/logos/index.d.ts +43 -0
- package/dist/theme/palette.d.ts +4 -0
- package/dist/theme/shape.d.ts +2 -0
- package/dist/theme/theme.d.ts +289 -0
- package/dist/theme/typography.d.ts +3 -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/utils/withThemeInvert.d.ts +4 -0
- package/package.json +78 -0
|
@@ -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?: (e?: React.MouseEvent<HTMLDivElement, MouseEvent>) => 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,13 @@
|
|
|
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
|
+
autoFocus?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const SearchInput: ({ boxProps, inputRef, isLoading, size, autoFocus, ...rest }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SelectProps } from '@mui/material';
|
|
2
|
+
export type BorderlessSelectProps = SelectProps & {
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const Select: import('react').MemoExoticComponent<({ value, label, onChange, IconComponent, children, sx, MenuProps, ...otherProps }: BorderlessSelectProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BorderlessSelectProps } from '@avalabs/k2-alpine';
|
|
2
|
+
export interface Country {
|
|
3
|
+
countryCode: string;
|
|
4
|
+
name: string;
|
|
5
|
+
regions?: string[];
|
|
6
|
+
flagImageUrl?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectCountryProps extends Omit<BorderlessSelectProps, 'label' | 'children' | 'onChange'> {
|
|
9
|
+
countries: Country[];
|
|
10
|
+
value?: string;
|
|
11
|
+
onChange?: (countryCode: string) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
searchText?: string;
|
|
14
|
+
emptyText?: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
error?: boolean;
|
|
18
|
+
helperText?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function SelectCountry({ countries, value, onChange, placeholder, searchText, emptyText, label, disabled, error, helperText, ...props }: SelectCountryProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SelectCountry, type SelectCountryProps, type Country } from './SelectCountry';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface Step {
|
|
3
|
+
title: string | React.ReactNode;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
summary?: React.ReactNode;
|
|
6
|
+
nextLabel?: string;
|
|
7
|
+
nextDisabled?: boolean;
|
|
8
|
+
onNext?: () => void;
|
|
9
|
+
footerContent?: React.ReactNode;
|
|
10
|
+
hideUnlessActive?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface StepperProps {
|
|
13
|
+
steps: Step[];
|
|
14
|
+
activeStep: number;
|
|
15
|
+
onStepChange?: (step: number) => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Stepper: React.FC<StepperProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Stepper';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TabProps, TabsProps } from '@mui/material';
|
|
2
|
+
export type TabBarItemProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
} & TabProps;
|
|
7
|
+
export type TabBarProps = TabsProps & {
|
|
8
|
+
tabBarItems: TabBarItemProps[];
|
|
9
|
+
size?: 'extension';
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* TabBar component
|
|
13
|
+
*
|
|
14
|
+
* @param {TabBarProps} props
|
|
15
|
+
*
|
|
16
|
+
* Scrollable variant of the Tabs component overridden to match the design system
|
|
17
|
+
*/
|
|
18
|
+
export declare const TabBar: import('react').NamedExoticComponent<TabBarProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabBar, type TabBarItemProps } from './TabBar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeInvert } from './ThemeInvert';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { CoreTheme } from '../../theme';
|
|
3
|
+
type ThemeProviderProps = {
|
|
4
|
+
theme: CoreTheme;
|
|
5
|
+
};
|
|
6
|
+
export declare const ThemeProvider: import('react').NamedExoticComponent<PropsWithChildren<ThemeProviderProps>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export interface TiltProps {
|
|
4
|
+
/**
|
|
5
|
+
* Maximum rotation angle in degrees
|
|
6
|
+
* @default 20
|
|
7
|
+
*/
|
|
8
|
+
rotationRange?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to show the sheen effect on tilt
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
showSheen?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Additional CSS styles using MUI's sx prop format
|
|
16
|
+
*/
|
|
17
|
+
sx?: SxProps<Theme>;
|
|
18
|
+
/**
|
|
19
|
+
* Callback for when the element is clicked
|
|
20
|
+
*/
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Callback for when the mouse enters the element
|
|
24
|
+
*/
|
|
25
|
+
onMouseEnter?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Callback for when the mouse leaves the element
|
|
28
|
+
*/
|
|
29
|
+
onMouseLeave?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Scale factor to apply on hover. Pass a number greater than 1 for a zoom effect.
|
|
32
|
+
* @default undefined (no scaling)
|
|
33
|
+
*/
|
|
34
|
+
scaleOnHover?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A wrapper component that adds 3D tilt effect to its children based on mouse position
|
|
38
|
+
*/
|
|
39
|
+
export declare const Tilt: ({ children, rotationRange, showSheen, scaleOnHover, sx, onClick, onMouseEnter, onMouseLeave, }: PropsWithChildren<TiltProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ToastType = 'info' | 'success' | 'critical' | 'error' | 'suspicious' | 'scam' | 'custom' | 'basic';
|
|
2
|
+
export type ToastPosition = {
|
|
3
|
+
vertical: 'top' | 'bottom';
|
|
4
|
+
horizontal: 'left' | 'center' | 'right';
|
|
5
|
+
};
|
|
6
|
+
export type ToastOptions = {
|
|
7
|
+
id?: number | string;
|
|
8
|
+
position?: ToastPosition;
|
|
9
|
+
duration?: number;
|
|
10
|
+
showCloseIcon?: boolean;
|
|
11
|
+
type?: ToastType;
|
|
12
|
+
description?: string;
|
|
13
|
+
action?: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare const toast: {
|
|
16
|
+
info: (title: string, options?: ToastOptions) => string | number;
|
|
17
|
+
success: (title: string, options?: ToastOptions) => string | number;
|
|
18
|
+
critical: (title: string, options?: ToastOptions) => string | number;
|
|
19
|
+
error: (title: string, options?: ToastOptions) => string | number;
|
|
20
|
+
suspicious: (title: string, options?: ToastOptions) => string | number;
|
|
21
|
+
scam: (title: string, options?: ToastOptions) => string | number;
|
|
22
|
+
show: (title: string, options?: ToastOptions) => string | number;
|
|
23
|
+
dismiss: (id: string) => void;
|
|
24
|
+
dismissAll: () => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const Toaster: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Breakpoint, TypographyProps } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export declare const TRUNCATE_TEXT_SIZES: {
|
|
4
|
+
readonly compact: 9;
|
|
5
|
+
readonly small: 12;
|
|
6
|
+
readonly medium: 24;
|
|
7
|
+
readonly large: 48;
|
|
8
|
+
};
|
|
9
|
+
export type TruncateTextSize = keyof typeof TRUNCATE_TEXT_SIZES;
|
|
10
|
+
export declare const truncateAddress: (address: string, chars?: number) => string;
|
|
11
|
+
export declare const truncateLabel: (label: string, labelLength: number) => string;
|
|
12
|
+
export interface TruncateTextProps extends Omit<TypographyProps, 'monospace'> {
|
|
13
|
+
label?: string;
|
|
14
|
+
size?: true | number | TruncateTextSize;
|
|
15
|
+
showTooltip?: boolean;
|
|
16
|
+
monospace?: boolean;
|
|
17
|
+
truncateAtBreakpoint?: Breakpoint;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* TruncateText component for displaying truncated text with optional tooltip
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // Basic usage (compact size)
|
|
24
|
+
* <TruncateText>0x742d35Cc6634C0532925a3b844Bc454e4438f44e</TruncateText>
|
|
25
|
+
*
|
|
26
|
+
* // Medium size truncation
|
|
27
|
+
* <TruncateText size="medium">0x742d35Cc6634C0532925a3b844Bc454e4438f44e</TruncateText>
|
|
28
|
+
*
|
|
29
|
+
* // Label truncation (truncates at the end instead of in the middle)
|
|
30
|
+
* <TruncateText label="This is a very long label" size="medium" />
|
|
31
|
+
*/
|
|
32
|
+
export declare const TruncateText: import('react').NamedExoticComponent<PropsWithChildren<TruncateTextProps>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TypographyProps as MuiTypographyProps } from '@mui/material';
|
|
2
|
+
export type TypographyProps = Omit<MuiTypographyProps, 'fontWeight'> & {
|
|
3
|
+
fontWeight?: 'semibold' | MuiTypographyProps['fontWeight'];
|
|
4
|
+
};
|
|
5
|
+
export declare const Typography: import('react').NamedExoticComponent<TypographyProps>;
|