@babylonlabs-io/core-ui 1.8.0 → 1.9.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/dist/components/Button/WalletDisconnectButton.d.ts +5 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Copy/Copy.d.ts +12 -0
- package/dist/components/Copy/index.d.ts +1 -0
- package/dist/components/DisplayHash/DisplayHash.d.ts +10 -0
- package/dist/components/DisplayHash/index.d.ts +1 -0
- package/dist/components/Icons/ThemedIcon.d.ts +10 -0
- package/dist/components/Icons/common/CloseIcon.d.ts +2 -0
- package/dist/components/Icons/common/CopyIcon.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +23 -0
- package/dist/components/Icons/wallet/BitcoinPublicKeyIcon.d.ts +2 -0
- package/dist/components/Icons/wallet/LinkWalletIcon.d.ts +2 -0
- package/dist/components/Icons/wallet/UsingInscriptionIcon.d.ts +2 -0
- package/dist/components/Menu/Menu.d.ts +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/useCopy.d.ts +10 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +1858 -1569
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/trim.d.ts +7 -0
- package/dist/widgets/WalletMenu/WalletMenu.d.ts +20 -0
- package/dist/widgets/WalletMenu/components/WalletInfoCard.d.ts +11 -0
- package/dist/widgets/WalletMenu/components/WalletInfoSection.d.ts +10 -0
- package/dist/widgets/WalletMenu/components/WalletSettingItem.d.ts +10 -0
- package/dist/widgets/WalletMenu/components/WalletToggle.d.ts +8 -0
- package/dist/widgets/WalletMenu/components/index.d.ts +8 -0
- package/dist/widgets/WalletMenu/index.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from './Button';
|
|
2
|
+
export interface WalletDisconnectButtonProps extends Omit<ButtonProps, "color" | "variant"> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const WalletDisconnectButton: import('react').ForwardRefExoticComponent<Omit<WalletDisconnectButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CopyProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
value: string;
|
|
5
|
+
showIcon?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
onCopy?: (value: string) => void;
|
|
8
|
+
isCopied?: boolean;
|
|
9
|
+
copiedText?: string;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const Copy: React.FC<CopyProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Copy } from './Copy';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Text } from '../Text';
|
|
3
|
+
interface DisplayHashProps {
|
|
4
|
+
value: string;
|
|
5
|
+
symbols?: number;
|
|
6
|
+
size?: React.ComponentProps<typeof Text>['variant'];
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DisplayHash: React.FC<DisplayHashProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DisplayHash } from './DisplayHash';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface ThemedIconProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
variant?: "default" | "primary" | "secondary" | "error" | "success" | "accent-primary" | "accent-secondary";
|
|
6
|
+
background?: boolean;
|
|
7
|
+
rounded?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ThemedIcon: ({ children, className, size, variant, background, rounded, }: ThemedIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface BaseIconProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface IconProps extends BaseIconProps {
|
|
6
|
+
variant?: "default" | "primary" | "secondary" | "error" | "success" | "accent-primary" | "accent-secondary";
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const iconColorVariants: {
|
|
10
|
+
readonly default: "text-accent-primary";
|
|
11
|
+
readonly primary: "text-primary-light";
|
|
12
|
+
readonly secondary: "text-accent-secondary";
|
|
13
|
+
readonly error: "text-error-main";
|
|
14
|
+
readonly success: "text-success-main";
|
|
15
|
+
readonly "accent-primary": "text-accent-primary";
|
|
16
|
+
readonly "accent-secondary": "text-accent-secondary";
|
|
17
|
+
};
|
|
18
|
+
export { ThemedIcon } from './ThemedIcon';
|
|
19
|
+
export { BitcoinPublicKeyIcon } from './wallet/BitcoinPublicKeyIcon';
|
|
20
|
+
export { LinkWalletIcon } from './wallet/LinkWalletIcon';
|
|
21
|
+
export { UsingInscriptionIcon } from './wallet/UsingInscriptionIcon';
|
|
22
|
+
export { CopyIcon } from './common/CopyIcon';
|
|
23
|
+
export { CloseIcon } from './common/CloseIcon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { useCopy } from './useCopy';
|
|
2
|
+
export type { UseCopyReturn, UseCopyOptions } from './useCopy';
|
|
3
|
+
export { useIsMobile } from './useIsMobile';
|
|
4
|
+
export { useClickOutside } from './useClickOutside';
|
|
5
|
+
export { useControlledState } from './useControlledState';
|
|
6
|
+
export { useMemoizedArray } from './useMemoizedArray';
|
|
7
|
+
export { useModalManager } from './useModalManager';
|
|
8
|
+
export { useResizeObserver } from './useResizeObserver';
|
|
9
|
+
export { useTableScroll } from './useTableScroll';
|
|
10
|
+
export { useTableSort } from './useTableSort';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface UseCopyReturn {
|
|
2
|
+
isCopied: (id: string) => boolean;
|
|
3
|
+
copiedText: (id: string) => string;
|
|
4
|
+
copyToClipboard: (id: string, value: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface UseCopyOptions {
|
|
7
|
+
copiedText?: string;
|
|
8
|
+
timeout?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function useCopy(options?: UseCopyOptions): UseCopyReturn;
|