Skip to content

Commit b8a78e1

Browse files
committed
Merge branch 'dev' into Shadcn_Migrate_developers/index.ts
2 parents 0733c64 + 6686d9a commit b8a78e1

File tree

19 files changed

+669
-301
lines changed

19 files changed

+669
-301
lines changed

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12670,6 +12670,24 @@
1267012670
"contributions": [
1267112671
"content"
1267212672
]
12673+
},
12674+
{
12675+
"login": "itzVarsha",
12676+
"name": "Varshitha",
12677+
"avatar_url": "https://avatars.githubusercontent.com/u/138134029?v=4",
12678+
"profile": "https://github.com/itzVarsha",
12679+
"contributions": [
12680+
"maintenance"
12681+
]
12682+
},
12683+
{
12684+
"login": "alexandriaroberts",
12685+
"name": "Alexandria Roberts",
12686+
"avatar_url": "https://avatars.githubusercontent.com/u/31341867?v=4",
12687+
"profile": "https://alexandriaroberts.dev/",
12688+
"contributions": [
12689+
"code"
12690+
]
1267312691
}
1267412692
],
1267512693
"contributorsPerLine": 7,

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
19391939
<tr>
19401940
<td align="center" valign="top" width="14.28%"><a href="https://growthepie.xyz"><img src="https://avatars.githubusercontent.com/u/32496674?v=4?s=100" width="100px;" alt="Matthias Seidl"/><br /><sub><b>Matthias Seidl</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=mseidlx" title="Code">💻</a></td>
19411941
<td align="center" valign="top" width="14.28%"><a href="https://github.com/JoeChenJ"><img src="https://avatars.githubusercontent.com/u/171761102?v=4?s=100" width="100px;" alt="JoeChenJ"/><br /><sub><b>JoeChenJ</b></sub></a><br /><a href="#content-JoeChenJ" title="Content">🖋</a></td>
1942+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/itzVarsha"><img src="https://avatars.githubusercontent.com/u/138134029?v=4?s=100" width="100px;" alt="Varshitha"/><br /><sub><b>Varshitha</b></sub></a><br /><a href="#maintenance-itzVarsha" title="Maintenance">🚧</a></td>
1943+
<td align="center" valign="top" width="14.28%"><a href="https://alexandriaroberts.dev/"><img src="https://avatars.githubusercontent.com/u/31341867?v=4?s=100" width="100px;" alt="Alexandria Roberts"/><br /><sub><b>Alexandria Roberts</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=alexandriaroberts" title="Code">💻</a></td>
19421944
</tr>
19431945
</tbody>
19441946
</table>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "9.4.1",
3+
"version": "9.4.2",
44
"license": "MIT",
55
"private": true,
66
"scripts": {
@@ -36,6 +36,7 @@
3636
"@hookform/resolvers": "^3.8.0",
3737
"@next/bundle-analyzer": "^14.2.5",
3838
"@radix-ui/react-accordion": "^1.2.0",
39+
"@radix-ui/react-avatar": "^1.1.2",
3940
"@radix-ui/react-checkbox": "^1.1.1",
4041
"@radix-ui/react-compose-refs": "^1.1.0",
4142
"@radix-ui/react-dialog": "^1.1.1",

public/images/0xparc-logo.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import * as React from "react"
2+
import { VStack } from "@chakra-ui/react"
3+
import { Meta, StoryObj } from "@storybook/react"
4+
5+
import DocLink from "."
6+
7+
const meta = {
8+
title: "Molecules / Navigation / DocLink",
9+
component: DocLink,
10+
tags: ["autodocs"],
11+
} satisfies Meta<typeof DocLink>
12+
13+
export default meta
14+
15+
type Story = StoryObj<typeof meta>
16+
17+
export const Default: Story = {
18+
args: {
19+
href: "/history/",
20+
children: "History of Ethereum",
21+
},
22+
render: (args) => (
23+
<VStack spacing={4} align="stretch">
24+
<DocLink {...args} />
25+
</VStack>
26+
),
27+
}
28+
29+
export const ExternalLink: Story = {
30+
args: {
31+
href: "https://ethereum.org",
32+
children: "Ethereum Website",
33+
isExternal: true,
34+
},
35+
render: (args) => (
36+
<VStack spacing={4} align="stretch">
37+
<DocLink {...args} />
38+
</VStack>
39+
),
40+
}
41+
42+
export const MultipleLinks: Story = {
43+
args: {
44+
href: "#",
45+
},
46+
render: () => (
47+
<VStack spacing={4} align="stretch">
48+
<DocLink href="/history/">History of Ethereum</DocLink>
49+
<DocLink href="https://ethereum.org" isExternal>
50+
Ethereum Website
51+
</DocLink>
52+
<DocLink href="/developers/docs/intro-to-ethereum/">
53+
Introduction to Ethereum
54+
</DocLink>
55+
</VStack>
56+
),
57+
}

src/components/DocLink.tsx renamed to src/components/DocLink/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { AiOutlineArrowRight } from "react-icons/ai"
22

33
import { cn } from "@/lib/utils/cn"
44

5-
import { Center, Flex, Stack } from "./ui/flex"
6-
import { LinkBox, LinkOverlay } from "./ui/link-box"
7-
import Emoji from "./Emoji"
5+
import Emoji from "../Emoji"
6+
import { Center, Flex, Stack } from "../ui/flex"
7+
import { LinkBox, LinkOverlay } from "../ui/link-box"
88

99
import { useRtlFlip } from "@/hooks/useRtlFlip"
1010

src/components/Avatar/Avatar.stories.tsx renamed to src/components/ui/__stories__/Avatar.stories.tsx

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import * as React from "react"
2-
import { AvatarGroup, HStack, VStack } from "@chakra-ui/react"
3-
import { Meta, StoryObj } from "@storybook/react"
1+
import type { Meta, StoryObj } from "@storybook/react"
42

5-
import Avatar from "."
3+
import { Avatar, AvatarGroup } from "../avatar"
4+
import { HStack, VStack } from "../flex"
65

76
const meta = {
87
title: "Atoms / Media & Icons / Avatars",
@@ -15,13 +14,13 @@ type Story = StoryObj<typeof meta>
1514

1615
export const Single: Story = {
1716
args: {
18-
name: "Dan Abrahmov",
17+
name: "dan abrahmov",
1918
src: "https://bit.ly/dan-abramov",
2019
href: "#",
2120
},
2221
render: (args) => (
23-
<VStack spacing={4}>
24-
{["lg", "md", "sm", "xs"].map((size) => (
22+
<VStack className="gap-4">
23+
{(["lg", "md", "sm", "xs"] as const).map((size) => (
2524
<Avatar key={size} size={size} {...args} />
2625
))}
2726
</VStack>
@@ -35,12 +34,12 @@ export const Group: Story = {
3534
href: "#",
3635
},
3736
render: (args) => (
38-
<VStack spacing={4}>
39-
{["sm", "xs"].map((size) => (
37+
<VStack className="gap-4">
38+
{(["sm", "xs"] as const).map((size) => (
4039
<AvatarGroup key={size} size={size} max={3}>
41-
<Avatar {...args} />
42-
<Avatar {...args} />
43-
<Avatar {...args} />
40+
<Avatar dataTest="one" {...args} />
41+
<Avatar dataTest="two" {...args} />
42+
<Avatar dataTest="three" {...args} />
4443
<Avatar {...args} />
4544
</AvatarGroup>
4645
))}
@@ -51,19 +50,19 @@ export const Group: Story = {
5150
export const WithUsername: Story = {
5251
args: {
5352
name: "Dan Abrahmov",
54-
src: "https://bit.ly/dan-abramov",
55-
href: "#",
53+
src: "http://bit.ly/dan-abramov",
54+
href: "http://bit.ly/dan-abramov",
5655
label: "daneabrahmov",
5756
},
5857
render: (args) => (
59-
<HStack spacing={16}>
58+
<HStack className="gap-4">
6059
<VStack>
61-
{["md", "sm"].map((size, idx) => (
60+
{(["md", "sm", "xs"] as const).map((size, idx) => (
6261
<Avatar key={idx} size={size} {...args} />
6362
))}
6463
</VStack>
6564
<VStack>
66-
{["md", "sm"].map((size, idx) => (
65+
{(["md", "sm", "xs"] as const).map((size, idx) => (
6766
<Avatar key={idx} size={size} direction="column" {...args} />
6867
))}
6968
</VStack>

0 commit comments

Comments
 (0)