Skip to content

Commit

Permalink
Merge pull request #18 from babylonlabs-io/core-ui
Browse files Browse the repository at this point in the history
feat: install core-ui
  • Loading branch information
totraev authored Nov 21, 2024
2 parents c6c78e8 + b4bc3a2 commit c939af3
Show file tree
Hide file tree
Showing 72 changed files with 171 additions and 1,272 deletions.
15 changes: 13 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"release": "npm run build && changeset publish"
},
"dependencies": {
"@babylonlabs-io/bbn-core-ui": "^0.0.4",
"react-icons": "^5.3.0"
},
"files": [
Expand Down
26 changes: 0 additions & 26 deletions src/components/Avatar/Avatar.stories.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions src/components/Avatar/Avatar.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/components/Avatar/AvatarGroup.stories.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions src/components/Avatar/AvatarGroup.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/Avatar/index.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/components/Button/Button.stories.tsx

This file was deleted.

53 changes: 0 additions & 53 deletions src/components/Button/Button.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions src/components/Button/IconButton.stories.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions src/components/Button/IconButton.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/Button/index.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ export const Connected: Story = {
title: "Select Bitcoin Wallet",
logo: "/images/chains/bitcoin.png",
children: (
<ConnectedWallet className="cursor-default" logo="/images/wallets/okx.png" name="OKX" address="bc1pnT..e4Vtc" />
<ConnectedWallet
chainId="BTC"
className="cursor-default"
logo="/images/wallets/okx.png"
name="OKX"
address="bc1pnT..e4Vtc"
/>
),
},
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { JSX, PropsWithChildren } from "react";
import { twMerge } from "tailwind-merge";

import { Avatar, Text } from "@/index";
import { Avatar, Text } from "@babylonlabs-io/bbn-core-ui";

interface ChainButtonProps extends PropsWithChildren {
className?: string;
Expand Down
File renamed without changes.
11 changes: 5 additions & 6 deletions src/widgets/Chains/index.tsx → src/components/Chains/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { twMerge } from "tailwind-merge";
import { useMemo } from "react";
import { twMerge } from "tailwind-merge";
import { Button, DialogBody, DialogFooter, DialogHeader, Text } from "@babylonlabs-io/bbn-core-ui";

import { Button, DialogBody, DialogFooter, DialogHeader, Text } from "@/index";

import ConnectedWallet from "@/widgets/ConnectedWallet";
import { ChainButton } from "@/widgets/ChainButton";
import ConnectedWallet from "@/components/ConnectedWallet";
import { ChainButton } from "@/components/ChainButton";
import { withAppState } from "@/hocs/withAppState";
import type { IChain, IWallet } from "@/core/types";

interface ChainsProps {
chains: IChain[];
className?: string;
selectedWallets?: Record<string, IWallet>;
selectedWallets?: Record<string, IWallet | undefined>;
onClose?: () => void;
onSelectChain?: (chain: IChain) => void;
}
Expand Down
16 changes: 0 additions & 16 deletions src/components/Chip/Chip.stories.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/Chip/Chip.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Chip/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {} from "react";
import { twMerge } from "tailwind-merge";
import { Avatar, Text } from "@babylonlabs-io/bbn-core-ui";

import { Avatar, Text } from "@/index";
import { withAppState } from "@/hocs/withAppState";

interface ConnectedWalletProps {
Expand Down
Loading

0 comments on commit c939af3

Please sign in to comment.