@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.
Files changed (32) hide show
  1. package/dist/components/Button/WalletDisconnectButton.d.ts +5 -0
  2. package/dist/components/Button/index.d.ts +1 -0
  3. package/dist/components/Copy/Copy.d.ts +12 -0
  4. package/dist/components/Copy/index.d.ts +1 -0
  5. package/dist/components/DisplayHash/DisplayHash.d.ts +10 -0
  6. package/dist/components/DisplayHash/index.d.ts +1 -0
  7. package/dist/components/Icons/ThemedIcon.d.ts +10 -0
  8. package/dist/components/Icons/common/CloseIcon.d.ts +2 -0
  9. package/dist/components/Icons/common/CopyIcon.d.ts +2 -0
  10. package/dist/components/Icons/index.d.ts +23 -0
  11. package/dist/components/Icons/wallet/BitcoinPublicKeyIcon.d.ts +2 -0
  12. package/dist/components/Icons/wallet/LinkWalletIcon.d.ts +2 -0
  13. package/dist/components/Icons/wallet/UsingInscriptionIcon.d.ts +2 -0
  14. package/dist/components/Menu/Menu.d.ts +1 -0
  15. package/dist/components/index.d.ts +3 -0
  16. package/dist/hooks/index.d.ts +10 -0
  17. package/dist/hooks/useCopy.d.ts +10 -0
  18. package/dist/index.cjs.js +1 -1
  19. package/dist/index.cjs.js.map +1 -1
  20. package/dist/index.d.ts +4 -0
  21. package/dist/index.es.js +1858 -1569
  22. package/dist/index.es.js.map +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/utils/trim.d.ts +7 -0
  25. package/dist/widgets/WalletMenu/WalletMenu.d.ts +20 -0
  26. package/dist/widgets/WalletMenu/components/WalletInfoCard.d.ts +11 -0
  27. package/dist/widgets/WalletMenu/components/WalletInfoSection.d.ts +10 -0
  28. package/dist/widgets/WalletMenu/components/WalletSettingItem.d.ts +10 -0
  29. package/dist/widgets/WalletMenu/components/WalletToggle.d.ts +8 -0
  30. package/dist/widgets/WalletMenu/components/index.d.ts +8 -0
  31. package/dist/widgets/WalletMenu/index.d.ts +10 -0
  32. 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>>;
@@ -1,2 +1,3 @@
1
1
  export * from './Button';
2
2
  export * from './IconButton';
3
+ export * from './WalletDisconnectButton';
@@ -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,2 @@
1
+ import { IconProps } from '../index';
2
+ export declare const CloseIcon: ({ className, size, variant, color }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../index';
2
+ export declare const CopyIcon: ({ className, size, variant, color }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import { IconProps } from '../index';
2
+ export declare const BitcoinPublicKeyIcon: ({ className, size, variant, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../index';
2
+ export declare const LinkWalletIcon: ({ className, size, variant, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../index';
2
+ export declare const UsingInscriptionIcon: ({ className, size, variant, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,7 @@ interface MenuProps {
8
8
  placement?: Placement;
9
9
  offset?: [number, number];
10
10
  className?: string;
11
+ mobileMode?: "drawer" | "dialog" | "auto";
11
12
  }
12
13
  export declare const Menu: React.FC<MenuProps>;
13
14
  export {};
@@ -0,0 +1,3 @@
1
+ export { Copy } from './Copy';
2
+ export { Toggle } from './Toggle';
3
+ export { DisplayHash } from './DisplayHash';
@@ -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;